diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c1906122..7fc2d4b3 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,32 +1,32 @@ lockVersion: 2.0.0 id: 0c8d1667-2710-4860-aee3-7d221dbc0a60 management: - docChecksum: 46717390b4d61e8129895ab2c4077aca + docChecksum: 215ed07f72b279a5efcbc56e1952884d docVersion: 1.0.0 - speakeasyVersion: 1.798.0 - generationVersion: 2.938.0 - releaseVersion: 1.4.0 - configChecksum: f819fbd05ad12ee6a899087de7ff3e68 + speakeasyVersion: 1.808.0 + generationVersion: 2.960.7 + releaseVersion: 1.4.1 + configChecksum: f62af1b870921d89d59840b5bb60d1e5 repoURL: https://github.com/kombohq/python-sdk.git installationURL: https://github.com/kombohq/python-sdk.git published: true persistentEdits: - generation_id: 8d4f8705-fcd9-4863-bbc6-5023eaaf34ad - pristine_commit_hash: ee49b5bf1ebad37a97a99f7d43f45b26bd7be90a - pristine_tree_hash: bb60f28772df72b29415eec7b5b01bb09b0c53b3 + generation_id: 7c3be7b5-c917-446d-9052-d2655c6982af + pristine_commit_hash: ed57d69c4854b22a9fe638607fd6f577a54cf1d9 + pristine_tree_hash: e95b50cfd047bf7773ce0302be6bbd3a5b5a7dd7 features: python: additionalDependencies: 1.1.0 constsAndDefaults: 1.0.8 - core: 6.1.2 + core: 6.1.14 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 enumUnions: 0.1.1 - envVarSecurityUsage: 0.3.3 + envVarSecurityUsage: 0.3.4 errors: 3.4.5 flatRequests: 1.0.1 flattening: 3.1.1 - globalSecurity: 3.0.7 + globalSecurity: 3.0.8 globalSecurityCallbacks: 1.0.0 globalSecurityFlattening: 1.0.0 globalServerURLs: 3.2.1 @@ -37,14 +37,14 @@ features: methodArguments: 1.1.1 nameOverrides: 3.0.3 nullables: 1.0.2 - openEnums: 1.0.4 + openEnums: 1.0.5 operationTimeout: 0.3.1 pagination: 3.0.10 responseFormat: 1.1.0 retries: 3.1.2 sdkHooks: 1.3.0 serverIDs: 3.0.0 - unions: 3.1.10 + unions: 3.1.16 webhooks: 2.0.0 trackedFiles: .gitattributes: @@ -77,8 +77,12 @@ trackedFiles: pristine_git_object: 2419c02cddd3e5c8fce427a9002a37f989099f54 docs/models/amount.md: id: 437bf42a480e - last_write_checksum: sha1:a93a35a251a17ed9514160734abc844f4dd2fc94 - pristine_git_object: bcaccc5b22b1cc44d3e5a3e0a265f4c7d326a828 + last_write_checksum: sha1:f09db30796eb78229ce0d15baba7f1d43ef77806 + pristine_git_object: 95559a7f1f857cb99d568af1a5a5921b383c547c + docs/models/amountytd.md: + id: 7d3ef05fa6a6 + last_write_checksum: sha1:ea97f8cc836183572343a1ab876534bbf9346d63 + pristine_git_object: 961d44ad6a566c32f240f66bf73b05529bab3835 docs/models/assesscandidatedata.md: id: 1c1434b54a77 last_write_checksum: sha1:6d5e02105835f41e8a47df7d4368779a027a9c2a @@ -345,12 +349,12 @@ trackedFiles: pristine_git_object: ba8231b0d059d7c5519dacdfafea5931bba8ab09 docs/models/domesticbankrouting.md: id: 22cf84c8424d - last_write_checksum: sha1:053fb3f246d5f9e6fd7eca67f907db2334964bbd - pristine_git_object: 8d46bbb756be62349353714ac35131cb2460b112 + last_write_checksum: sha1:7330e669587ccccc24d910f9c6867a6238ef22c8 + pristine_git_object: 909c3d389c175a01df3890c8254956ddf38b6349 docs/models/domesticbankroutingtype.md: id: 15ddcb0fabf7 - last_write_checksum: sha1:b104ff14ae13a50f94b0514ea63dbe1d6dae56aa - pristine_git_object: 318b6b37cc57b1b9683ed7698ff5ab390630be2b + last_write_checksum: sha1:0a4bfb4b9760377266197bf324db0db3d1f7e50c + pristine_git_object: dd4b52ddf1ac9de95c0ced4483415a4cfc18e39c docs/models/employee.md: id: d1b548d594fb last_write_checksum: sha1:ccc276988e1d4fbe41ed8a3e178b6b0d62b49479 @@ -901,8 +905,8 @@ trackedFiles: pristine_git_object: ceee3d8b2b4e25074cf5973af5544c277054106b docs/models/getatsjobspositiveresponsehiringteam.md: id: eddbc94b5b9c - last_write_checksum: sha1:2f06d79f824c5938cdd97170e9090681ead2e09f - pristine_git_object: 8d66b19441b1cda041f503137ded4bfbe2b8a137 + last_write_checksum: sha1:37974d3c0098008158e0728c413214ca01637b6a + pristine_git_object: 70cc6eae772a6f56eb45d42ae843f0379a308b36 docs/models/getatsjobspositiveresponsehiringteamrole.md: id: af2220d319ff last_write_checksum: sha1:b7193b861aa5c54ce8fdcc0ff7c24032ad0b0a92 @@ -921,8 +925,8 @@ trackedFiles: pristine_git_object: caa9ff5efd41fe8d2f83a469933acd4211a2f98e docs/models/getatsjobspositiveresponseresult.md: id: bc3ee2032568 - last_write_checksum: sha1:9b7f07120dda4ff66d8179d35dbb6a59c0e5ce5b - pristine_git_object: c8a1fdabddf0079929fe10e314a27d0ff6b9aacb + last_write_checksum: sha1:a6346ba99f2624ec685a9161a6df9864693de366 + pristine_git_object: 4c31a0ebc4feb24e6b54df758021946bcf1b7f91 docs/models/getatsjobspositiveresponsescope.md: id: 4ccfff568e71 last_write_checksum: sha1:fbf761eb8ecafb22a028d6eaec6a5f89bd15da38 @@ -1397,8 +1401,8 @@ trackedFiles: pristine_git_object: 8db07bf9e1bc50d1d542fb0accca8dea280630bc docs/models/gethrisemployeespositiveresponse.md: id: 12504ac67689 - last_write_checksum: sha1:3e22729bc9704f8ecf2fabfd1b91afd23d6b2d59 - pristine_git_object: 6a70ac2fdf66288611ee598131e9dd77d23f7ea0 + last_write_checksum: sha1:616e44e6549b36491c2a1aaa7a51771d701f6d76 + pristine_git_object: 6c55f30690df917ff244e762b215ff8168ef3ff2 docs/models/gethrisemployeespositiveresponsebalanceunit.md: id: 291dc7d356f9 last_write_checksum: sha1:61ca7838cc9e9136d239b1ca84148c272d7060ca @@ -1437,8 +1441,8 @@ trackedFiles: pristine_git_object: c4a5790d763d8b55499eb6a8b48266f7024cc218 docs/models/gethrisemployeespositiveresponseresult.md: id: f22126783d86 - last_write_checksum: sha1:4b4870f0b0a21f8bb88948fa1830fec077cedac6 - pristine_git_object: 3abc2b87cdd0420e5ae9f6d9fccf2d621b8e2597 + last_write_checksum: sha1:35800730dcb459a59ee5a10c3c9f1f9b1fa43799 + pristine_git_object: 15ad8432e02818069eb0099e927f76f968ff8d64 docs/models/gethrisemployeespositiveresponseusedunit.md: id: a8b7687b239b last_write_checksum: sha1:602c8870beced57331084b9236e9c9fcdfe72e25 @@ -1493,16 +1497,16 @@ trackedFiles: pristine_git_object: edd66fd9a51af1692512dc2a9977475c36f4fdc5 docs/models/gethrisgroupspositiveresponse.md: id: 9cae216a5d89 - last_write_checksum: sha1:a69e3d4723881d6a760e7a47879402a667141cea - pristine_git_object: ff0b4c9a4c9a5e5816236c9ef468af81f1eab2d3 + last_write_checksum: sha1:1e48d558c42f7a15a07c133497fb225410eb8e19 + pristine_git_object: 2ee8a2ae256f0da0ce6f1e8a25846e49ce10a645 docs/models/gethrisgroupspositiveresponsedata.md: id: 16d9de921dc1 last_write_checksum: sha1:eeeb75f631deeb5594b2b3d82c339da261e39d46 pristine_git_object: 13db04d3a6f70cdc585da901c67a4040cf378ef8 docs/models/gethrisgroupspositiveresponseresult.md: id: e1f5940459b5 - last_write_checksum: sha1:3337b78f4a57101bf5db1b6c72a713ebec7a7c42 - pristine_git_object: 9b2f04d89802b1dd69921447ef00bd9dba542cce + last_write_checksum: sha1:fe863f32daab36f1a5ceda82132eae95d84186c7 + pristine_git_object: 150fde6da81be6a72782f4c6002185c59fb9dedf docs/models/gethrisgroupspositiveresponsetype.md: id: 944358b321a7 last_write_checksum: sha1:ca7333ddcf738a87cd00932f709b39d036c42e86 @@ -1521,8 +1525,8 @@ trackedFiles: pristine_git_object: 0e21e5bc2b9d8304480320ebd42f487915b4ace7 docs/models/gethrislegalentitiespositiveresponse.md: id: bb1ff9197bf8 - last_write_checksum: sha1:413da118d8c4dd49c23b8d32e82fe61d0b26276b - pristine_git_object: ff317dced7c1d5156dfbc787237a78b30f1471ac + last_write_checksum: sha1:325c42fe4d31bbfee8386d8c10e7f1c6ca102bca + pristine_git_object: 9b0b6e3bb8bd3c7283b8aa03d379dd0d403097be docs/models/gethrislegalentitiespositiveresponseaddress.md: id: 1916f6c7b389 last_write_checksum: sha1:8610129ed0cd8bf891013f0590bb52a1d162225e @@ -1533,8 +1537,8 @@ trackedFiles: pristine_git_object: 898acf0cc8f41cbcd953771a98223abbc03b8a28 docs/models/gethrislegalentitiespositiveresponseresult.md: id: 64de18fc3514 - last_write_checksum: sha1:abc59bc38741cf9f284850b1411f8a5d0f671346 - pristine_git_object: 09591b1e4156ad7e70cd402d46135a073c59140d + last_write_checksum: sha1:9220a70847f773c6062b1d34352a630643ce8f54 + pristine_git_object: d6c44fbaa138a68a941d41fe2bda0c274cbe0824 docs/models/gethrislegalentitiesrequest.md: id: 92f14be5d172 last_write_checksum: sha1:0eb3670eb2390027a3aeecf963fa3890a224cff6 @@ -1549,8 +1553,8 @@ trackedFiles: pristine_git_object: 70de77b6ac2284aff86b2d56753e11140ecf8541 docs/models/gethrislocationspositiveresponse.md: id: e86239736e8b - last_write_checksum: sha1:e69dc3711526bb0d42584ecfb43d66e3180da12b - pristine_git_object: 0dab7cda3fd0e2bcd7ad605c8f379f5bc3f32412 + last_write_checksum: sha1:d0dc0cfbb96d3f5b1f05eceda573ca6671eebd18 + pristine_git_object: 04b42f852c5189b1866534e69e814d968a9dc471 docs/models/gethrislocationspositiveresponseaddress.md: id: 613c5748c248 last_write_checksum: sha1:12da3d863f64a989948f51497211013b74261449 @@ -1561,8 +1565,8 @@ trackedFiles: pristine_git_object: edf6cd41135522ef0a4dfb6b99c8b7c63b378c8b docs/models/gethrislocationspositiveresponseresult.md: id: 192497dbabd4 - last_write_checksum: sha1:e276aa723e4d3edc42acc343b80cccd2ed8825a4 - pristine_git_object: e3a0631067d500debb1cd93290a9209bcb3c8c43 + last_write_checksum: sha1:7dcaa2a6ea50a501abf684f4c2ecd2d652946edf + pristine_git_object: bb9a65491b559b76606c91cb204bb69fa6b81cef docs/models/gethrislocationsrequest.md: id: bcaf49210ad3 last_write_checksum: sha1:5d054a411f86dfc3cb4ae5314eddfb685dc7b085 @@ -1585,16 +1589,16 @@ trackedFiles: pristine_git_object: 454a5a6a111b08fd86e31b5f52b4bf400491ce33 docs/models/gethrispayrunspositiveresponsegrosspay.md: id: 0ce8a8553e90 - last_write_checksum: sha1:ade80b5fd63b7fedbf90e766f7f1f9c12b068bab - pristine_git_object: 5c9961422ef8e28a323eb7bf23eb5369686550e1 + last_write_checksum: sha1:97dd165885dd5f7e0eadbad7eade72c48f939a13 + pristine_git_object: 8c06abd72023ad7bfc22f0dc89782f10da7d575c docs/models/gethrispayrunspositiveresponsenetpay.md: id: 981bcde7ca63 - last_write_checksum: sha1:5e3eeaf5a46095962399ab1a871b61393357c991 - pristine_git_object: b4d922c79d93341358f6fdc5a79ef562259c1fb7 + last_write_checksum: sha1:8db6dd7bfc75314f68c8f23e8cd5917d85d74b93 + pristine_git_object: 3b97678de1691977ff8c0f1234e5d5f97562356c docs/models/gethrispayrunspositiveresponsepaidamount.md: id: c95f5ad2dd6b - last_write_checksum: sha1:9b93f8a5c4c547e93d5b2a1aa916315f8adf45fb - pristine_git_object: dc06cdac67cc7a63e0978c29ec6efe283b5e97d5 + last_write_checksum: sha1:2ab7eeef8cdc1b5d947dbea8ee4fe30fea832071 + pristine_git_object: 6ad9e35ad8a7181736c2a67d270ecc07b153bcba docs/models/gethrispayrunspositiveresponseresult.md: id: 8f7940dc58da last_write_checksum: sha1:018bfea5b698e6a1c7b3b0d7dfa3a9ef09bdf2c2 @@ -1617,32 +1621,32 @@ trackedFiles: pristine_git_object: d22ea126a369a89bad209a5de5daf84d0b2d9c34 docs/models/gethrispayslipspositiveresponse.md: id: 921ea86d5b09 - last_write_checksum: sha1:92a06dea9342f92ceeccd83ede831d7ae6e773b8 - pristine_git_object: 94601e33a9c5818686ac22f21e016a0977b5f47b + last_write_checksum: sha1:9b48b121691913fe38191e4385618729c76169ef + pristine_git_object: b8b7960e5a431b43f28a8cfb1f42b2d8eccfbc24 docs/models/gethrispayslipspositiveresponsedata.md: id: 3641b40effc0 last_write_checksum: sha1:ae384ad1e78692aa5dedc571ee0986d88b1434dc pristine_git_object: 536494bd0ceeaf0e94ba7e350bd6bed74da1555b docs/models/gethrispayslipspositiveresponsegrosspay.md: id: 54bf2017f5c4 - last_write_checksum: sha1:32ea8e61c7763f1f94f794e256c36894a0f0c448 - pristine_git_object: 968a449ab1643567c26f09334e55ffb0a82e7ae2 + last_write_checksum: sha1:efb073861f128d88ec3ed44bbf9a9ad0597336df + pristine_git_object: b06d2ef359fb9e7c985cfd9ad4a63a55c6c47e11 docs/models/gethrispayslipspositiveresponsenetpay.md: id: b0a7aea67ba6 - last_write_checksum: sha1:3d9c0f69e830b165f8fc8857b0d5a34acc365e77 - pristine_git_object: 9a710a7b5cf87556662cbd96c041967ccc239bca + last_write_checksum: sha1:552cab8cbe64cba15378757709a47b5aa29c19ba + pristine_git_object: fecc38c3c61e4716df843ca79438a920d995041e docs/models/gethrispayslipspositiveresponsepaidamount.md: id: edcefad7d3cb - last_write_checksum: sha1:8ec3616973023c68b3bc7fbe6adb4bce64635217 - pristine_git_object: 894c5d1d4331c284aeb91d304b773e9c8878fe81 + last_write_checksum: sha1:994c4f5f73ef92b81f764139142517a848a4b4a0 + pristine_git_object: 2cc5a95cfe9473d668ddd307e30e3b7498e06022 docs/models/gethrispayslipspositiveresponseresult.md: id: 4513982035ca - last_write_checksum: sha1:2947d3bdc4c0a6905265a1e71c809d3cdd52fc49 - pristine_git_object: 5d3802525598ebde43b722b3e3f4080395bc1f21 + last_write_checksum: sha1:e727db1001ef21175e91d531d22061802f65d46d + pristine_git_object: 6ddd568bf72c2f1cdce2972b7a3e514ee1aa0f36 docs/models/gethrispayslipspositiveresponsetotals.md: id: 39dca590f71c - last_write_checksum: sha1:46209899adcf1da4fb5175a12ff7e4495dc3d950 - pristine_git_object: 8f4ba89ece1985f857430f6e9d44398618b6e3fa + last_write_checksum: sha1:affcba924fab8aba996915fb393ad79d8ca0be37 + pristine_git_object: 66bbbdf45166fb9766da3cfd5f18b54a803261d7 docs/models/gethrispayslipsrequest.md: id: a175989bb947 last_write_checksum: sha1:5fcd1efa6393ca2f22b5073c5767409b6f2dd589 @@ -1987,6 +1991,10 @@ trackedFiles: id: 196fbcdd2548 last_write_checksum: sha1:5f6b1b4e62cb3042461ae31755b653a9e698a48e pristine_git_object: 1fa3773fb30afb32ff2cdf998e44557aeae8ba2a + docs/models/grosspayytd.md: + id: e2aadd0d017b + last_write_checksum: sha1:77ab88d82fbd8256d812da25a58864e2fa038757 + pristine_git_object: 5bd9131b436a52e155c624c72ba73a8b1a76cd36 docs/models/headers.md: id: 0ec0ab95b977 last_write_checksum: sha1:5b17f8973b7b6ca5fe27757bb17eab29034fbd8e @@ -2109,8 +2117,8 @@ trackedFiles: pristine_git_object: 95d7af043b98494373f18f3ceae6a530e7e4af71 docs/models/integrationtool.md: id: 59f82e2d180c - last_write_checksum: sha1:02bc6d04ec7f73290a681f8533fce4e9e9be2374 - pristine_git_object: bd35e339b00d486af7be406f4d666d0e4b6d31d2 + last_write_checksum: sha1:d37d7fab7177fe62d0cda45c6c7db9f3477caf34 + pristine_git_object: 298bd4d6b26537277f1543221200a0ecb6b32258 docs/models/internal/globals.md: id: 9c173b87f41f last_write_checksum: sha1:3969d44e1ad9258f466c40b241681eb82c1ac29a @@ -2205,8 +2213,8 @@ trackedFiles: pristine_git_object: 2e5d5dac33e72f4cf8981a4ae1cb5eb0db3677ce docs/models/lineitem.md: id: 946ed7dd10b9 - last_write_checksum: sha1:def49cf06e47313bbf177932e3749da01afd7262 - pristine_git_object: 5ddffe77010ab4219bbc114e1be70e8daed75b88 + last_write_checksum: sha1:9361c409b511f7761749818b3180367d61688357 + pristine_git_object: e8dd5206fd728deb26241fe84f589685e0c13903 docs/models/manager.md: id: 475dd5a54e8a last_write_checksum: sha1:24ea1923a0a2365c3df1937cb3fcf7d32f0b3efe @@ -2235,6 +2243,10 @@ trackedFiles: id: 6ee802922293 last_write_checksum: sha1:742c9a1d8b7af218bd4409c70db9e51bdabc79fc pristine_git_object: f5ec5e91917640a2c9a7a18ed0e8430622528cc8 + docs/models/netpayytd.md: + id: 947aa9c3e21e + last_write_checksum: sha1:81120265833b0e184252ac483843078b50f163ca + pristine_git_object: 067e525c25c6d06abd321d6b908379dcccf36506 docs/models/offer.md: id: e20e1bb1fed4 last_write_checksum: sha1:f57b5704c7ffdc90d0d5af4f8e736668d185ee70 @@ -2247,6 +2259,10 @@ trackedFiles: id: 957ee74ef883 last_write_checksum: sha1:fcc738fa1fdec584ba09b403404cb84124a066da pristine_git_object: cef59f026d5b96b47d4f67f7b1ec516955cccb8a + docs/models/paidamountytd.md: + id: 947dc11c0363 + last_write_checksum: sha1:c57e1fc0d7f5d6b834d7da7352482c0483d25f9e + pristine_git_object: f0519ad49215c03fc3637b42204602089bc8fe04 docs/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.md: id: 52bfec13e773 last_write_checksum: sha1:657881248ba1535eea1b41cc7aeaca9745ce2404 @@ -2267,6 +2283,10 @@ trackedFiles: id: f0e24a2fe282 last_write_checksum: sha1:85455ee950eb8de4eb2c2efa014cdb02070e878f pristine_git_object: 51c9cf5b0108fec5c68d8ae006269005dfe5b32f + docs/models/paycode.md: + id: e07e030c0f50 + last_write_checksum: sha1:0b07b367a2fdb534f5e7bdf094c35b83651fdc22 + pristine_git_object: 3238e851d19e83d0460cc201b688fa9b41efacc3 docs/models/payrun.md: id: 5ba90dd6de7a last_write_checksum: sha1:8cc23ceb992ae468622236e0f598d468b0772f0e @@ -2349,8 +2369,8 @@ trackedFiles: pristine_git_object: 377f364bfea1fa8bf0ed9aede4d63f735ee40caf docs/models/postatsapplicationsapplicationidnotesrequestbody.md: id: 19dfbfbce757 - last_write_checksum: sha1:1264387652bf6e9eb120ce0fcf3454a4edd14a49 - pristine_git_object: 358cba82d4a065420b2bf9b86289e84815db032d + last_write_checksum: sha1:8d01e810b115e56cfbb27433123c19d8c3456223 + pristine_git_object: e01f01b29c6117ad07d5697074b5de6d6115eb4b docs/models/postatsapplicationsapplicationidnotesrequestbodybullhorn.md: id: 58385a2c263a last_write_checksum: sha1:823a020d468ca5ec4d1ad5a8d0196e5f23d35af8 @@ -2497,12 +2517,16 @@ trackedFiles: pristine_git_object: 045abe6d1f9a6a5894d6e29d24f1aadf8939f28c docs/models/postatsapplicationsapplicationidresultlinksrequestbodyremotefields.md: id: 7e534f22fffc - last_write_checksum: sha1:82b4be48cd6911d920469c4ef6ee4ad17b6bf0a8 - pristine_git_object: 47b7f291ca7ff2e5686f550d37f649905c2772c0 + last_write_checksum: sha1:88176a87bbd028679425bd2a35c9b118cb0243e6 + pristine_git_object: b8711ff13f87916e8c3a9755aba2949aff5ff68c docs/models/postatsapplicationsapplicationidresultlinksrequestbodytalent360.md: id: 9c568f846661 last_write_checksum: sha1:72e7a79b18c5a25d30a22e7b4d7cd3c93ef4cf13 pristine_git_object: ad530a809f44edc467e77cc62626020bd37c71fb + docs/models/postatsapplicationsapplicationidresultlinksrequestbodytraffit.md: + id: e42b2d5b7d34 + last_write_checksum: sha1:1f6117e50a0bd01354a249668ca8088c032d8c3b + pristine_git_object: e5aa6b663ffcf5649564a22e5a67cd208b71baa9 docs/models/postatsapplicationsapplicationidresultlinksrequestbodyworkable.md: id: 236d17f5f9fa last_write_checksum: sha1:55973ba4fdda1f6e82dc56a4ec5f9c496c5387f3 @@ -2609,12 +2633,16 @@ trackedFiles: pristine_git_object: 5f694039f10342499682ce35717702fd9cc348be docs/models/postatscandidatescandidateidresultlinksrequestbodyremotefields.md: id: 43488809128f - last_write_checksum: sha1:a570f2a452aea6fe0a0afbc555a650ef42bdf160 - pristine_git_object: 830b0e000514ecb635a217655c65dd21ccfd2299 + last_write_checksum: sha1:48a3b9c12fd7b23d2b780facbe675d7b6a9b3364 + pristine_git_object: feedd2a89024bb6a62d92245ebc4899a4c6af8a6 docs/models/postatscandidatescandidateidresultlinksrequestbodytalent360.md: id: 97e7c9de0a61 last_write_checksum: sha1:f926e7232dedeceb37f4a720e8e115a8d6e2a0f4 pristine_git_object: 2e6d5253f13a9258b269e06cc8636e58c0b56883 + docs/models/postatscandidatescandidateidresultlinksrequestbodytraffit.md: + id: 02b49ae0cd8a + last_write_checksum: sha1:5cd0c9a4c121686a7fc8994fc4ace327fee4ab61 + pristine_git_object: 66cd2be91d1917f128b8d6683f856b087751e568 docs/models/postatscandidatescandidateidresultlinksrequestbodyworkable.md: id: 065b12bfc4ab last_write_checksum: sha1:d423a6b5147d6a03744a5d6f9b67fba96cc33dad @@ -2717,8 +2745,8 @@ trackedFiles: pristine_git_object: 0656d11f44a263e60e06640ddc525c1e420d604b docs/models/postatscandidatesrequestbody.md: id: 97589dedd994 - last_write_checksum: sha1:1b9c1bd80075094ab64721bd524c8d19e29ce334 - pristine_git_object: 6ee4c2d5a0aabd2903ca2298f52df60a17847fb4 + last_write_checksum: sha1:b8badb2b807beb2612f8d13d11df6b5f947685d3 + pristine_git_object: dc323aeda93887405e8ede85e243e5cdae2b107f docs/models/postatscandidatesrequestbodyadditionalemailaddress.md: id: a18f5d1a82f9 last_write_checksum: sha1:159020a78708111a69bbb2661b26f2ae420cae00 @@ -2819,6 +2847,10 @@ trackedFiles: id: 67ede2be6c7e last_write_checksum: sha1:0bb60c56fd7ce81d7b246c66be02a57b0c2f7bea pristine_git_object: 10bf5f01272660cb21bdfae43990e5050e444cba + docs/models/postatscandidatesrequestbodyemplypeople.md: + id: 9349e673b56a + last_write_checksum: sha1:bf5f6836a9389e13df4387adffa64f29b01c353f + pristine_git_object: 2c2807202ed9dbe4146a7d3c7fb6f3b5590ae018 docs/models/postatscandidatesrequestbodyexperiencedatum.md: id: a47397d68f50 last_write_checksum: sha1:9b9e7489d6978c238e4d6ae662b2c1c9c64a3a99 @@ -2827,6 +2859,10 @@ trackedFiles: id: 84d588e1d06e last_write_checksum: sha1:347ea24ea83ec2496002f4c66123e7f2f04c8ea2 pristine_git_object: e6cfd578d947a0b7b76293675b568c19c10e63cd + docs/models/postatscandidatesrequestbodyfountain.md: + id: a0121b59b03f + last_write_checksum: sha1:ce53f5723b97aab86630e859025a4bea524a693c + pristine_git_object: bde8ebd586882098fd6a9b9cfc8b7512331d6d4a docs/models/postatscandidatesrequestbodygdprconsent.md: id: da3e97087096 last_write_checksum: sha1:531cbdc4ae23f9034059c15c528bfe379826e4e1 @@ -2855,6 +2891,10 @@ trackedFiles: id: 38d8d7ca9715 last_write_checksum: sha1:c9f75c99e97ebf8a6eb8caaa18628c20c4d83dc8 pristine_git_object: 52051067c2a61c8a13d7a465708d8c395ca37d71 + docs/models/postatscandidatesrequestbodyicims.md: + id: 266cf3eb4b84 + last_write_checksum: sha1:8a212d16f024e8d1853bcb0100b9f2c3586e7950 + pristine_git_object: d4150e1ce3ec2d16a9da337b256722d6c4bc4fb8 docs/models/postatscandidatesrequestbodyjobapplicationdata.md: id: 458fb8521052 last_write_checksum: sha1:f2b9cf2b01d024c8515f6c236ee70449bc3550b0 @@ -2957,8 +2997,8 @@ trackedFiles: pristine_git_object: d61fb1f0a618fa4b9933cb1612c2ebeb07f1d5a3 docs/models/postatscandidatesrequestbodyremotefields.md: id: a29732cdb42a - last_write_checksum: sha1:a3357c7f7566a549d9be3d665b927731999e69aa - pristine_git_object: 201aaa3a4fe05577b17ace55aaf8af0ede6a5b3c + last_write_checksum: sha1:f633101facb82c332d04d51e10abe7374a33b10b + pristine_git_object: 55f5ae5c4d68a335e6c35b3b558ed7483052edfd docs/models/postatscandidatesrequestbodyresumedata.md: id: 6e43a280682c last_write_checksum: sha1:b68c5072d69278b61ac352daeafa81d164080432 @@ -2981,8 +3021,8 @@ trackedFiles: pristine_git_object: 5dead257300bcb9e03f9ee33f899465fdcda567d docs/models/postatscandidatesrequestbodysmartrecruiters.md: id: 7d3127500dbd - last_write_checksum: sha1:523599e3de97879dcb14f60aed1b1fb780f7bb31 - pristine_git_object: 33b2447a24181e822b6d41f7a1d26124653920ee + last_write_checksum: sha1:1db6d7201cb736f984cf8b1d6bddb540869eb61e + pristine_git_object: e909aed18cf758f1501450dd5bbacb177b067a39 docs/models/postatscandidatesrequestbodysociallink.md: id: 398f7dbf744d last_write_checksum: sha1:96c52dbf579bfa5c24af942c16745301fb314981 @@ -3013,8 +3053,8 @@ trackedFiles: pristine_git_object: 5ed9861ea6b85b88b7278e58df1252042a59568b docs/models/postatscandidatesrequestbodytalentsoft.md: id: 10a4816ba1d4 - last_write_checksum: sha1:d372bf60e7ddad412410bd9368347b66d4fa28fa - pristine_git_object: 46ca19e329371cf96f2ad55131aefc3c3e3a42dd + last_write_checksum: sha1:c49b3449ba81d3a3fee19678cf0489d2f68a6764 + pristine_git_object: 5d3678386103037f211c441028e505b32875904e docs/models/postatscandidatesrequestbodyteamtailor.md: id: 5648e1b8db30 last_write_checksum: sha1:7d69b86e53311cc10f700122563a5dba8293888d @@ -3333,8 +3373,8 @@ trackedFiles: pristine_git_object: c0b0257a94cdb87a434d2fe3fc4c26a1ccf79fac docs/models/postatsjobsjobidapplicationsrequestbody.md: id: 8a4216629ba7 - last_write_checksum: sha1:2cb1bc221210d4e303fa0cb5a477b1dbc182f465 - pristine_git_object: 7f50dc315019cde07ce81966b4f7eb6f606732ff + last_write_checksum: sha1:9dd6f94cecf65ff2fef33ba8730d83fa5667b9f2 + pristine_git_object: 92fc74cfdf2e4d3e30b2f200ad638e5c2326efc9 docs/models/postatsjobsjobidapplicationsrequestbodyadditionalemailaddress.md: id: 8ad794237dcb last_write_checksum: sha1:30f23c25eca06a16e91fcb8fc5831d3e0ebb24e4 @@ -3431,6 +3471,10 @@ trackedFiles: id: 8a1dc5f0bc9b last_write_checksum: sha1:3c5f9131d1130438cdcb5c303cf1efbab6662b3b pristine_git_object: 731be90c83a2fd934cb48da5c2e460ae41f68bb8 + docs/models/postatsjobsjobidapplicationsrequestbodyemplypeople.md: + id: 41978023966b + last_write_checksum: sha1:825dc8a8c4c48d439732a8a2ef8a13fd1bb41e2f + pristine_git_object: 0280f1f76e4cb1cbaa34b2d0b015f52874d757d7 docs/models/postatsjobsjobidapplicationsrequestbodyexperiencedatum.md: id: b6cb99a641e2 last_write_checksum: sha1:ec867ef523fce3d31e670726da680e773bc4cdcb @@ -3439,6 +3483,10 @@ trackedFiles: id: 86acb2e35f83 last_write_checksum: sha1:b0c544d6dcbe053752a505a2114c69b06bcd72c8 pristine_git_object: 23505677d3c7107d915bf0a9b356714be27c467c + docs/models/postatsjobsjobidapplicationsrequestbodyfountain.md: + id: 2380144c6a65 + last_write_checksum: sha1:68cc0f6d76e53acd7be8258b5c937008a2972676 + pristine_git_object: 76d44c08934b86e12cf7f376fa410029b347357c docs/models/postatsjobsjobidapplicationsrequestbodygdprconsent.md: id: 9c3a58870729 last_write_checksum: sha1:8940c45dfdd132a86dd1cf1f7c2ce5d2414c6307 @@ -3467,6 +3515,10 @@ trackedFiles: id: 59b3d7729ce6 last_write_checksum: sha1:2781f849a5dc3c9ba77d9e875295d2fc700f2ae9 pristine_git_object: f999278d1f2abca42cbcad9d8d5e4b95adca2eb6 + docs/models/postatsjobsjobidapplicationsrequestbodyicims.md: + id: 800925faf50d + last_write_checksum: sha1:d3a91b3e0081dd3fd43fa35f40ca97221b262bde + pristine_git_object: f8d3c5ee299d11f4a844f9476a742f3b352564f8 docs/models/postatsjobsjobidapplicationsrequestbodyjobapplicationdata.md: id: a9fac6a7fefe last_write_checksum: sha1:976e5d596314078ecfe262e4f75241c2ae90055f @@ -3569,8 +3621,8 @@ trackedFiles: pristine_git_object: 72d663cb3905829a744e7bb265859e39eb6dd382 docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md: id: 0dedc4f12d45 - last_write_checksum: sha1:5880a7c2a37a6928df6b8f705095243e5122317c - pristine_git_object: ae0c4841ac4287d8dfd6daccc553002803c51593 + last_write_checksum: sha1:ead8066509cbcc776fc259f6e4c12456c4242017 + pristine_git_object: 12f71a22268166055e469adac3447f196eaedcef docs/models/postatsjobsjobidapplicationsrequestbodyresumedata.md: id: 2b9769b36fa2 last_write_checksum: sha1:844aa8831da738f33d395ebd66d44106375a38d6 @@ -3593,8 +3645,8 @@ trackedFiles: pristine_git_object: 218acc6aa6a2c8968d6e857e70094c5dc6745f9d docs/models/postatsjobsjobidapplicationsrequestbodysmartrecruiters.md: id: eead926e3620 - last_write_checksum: sha1:758ea5bce8288d7f61054ed5e7eb52110d2f820d - pristine_git_object: 7b22d081cdd3b51cd4c5f43e36989a0d2f28fb7f + last_write_checksum: sha1:8beff479c256f8016bc0ddf1bc800a5188a3e34c + pristine_git_object: 9f788835c938450239680ced161f729b243cefda docs/models/postatsjobsjobidapplicationsrequestbodysociallink.md: id: 99f031eed1ca last_write_checksum: sha1:419237139ac13e624ae6e3b3265fb3d66811e934 @@ -3625,8 +3677,8 @@ trackedFiles: pristine_git_object: e81a20f2087e9024d162d1bc11960e984d7352be docs/models/postatsjobsjobidapplicationsrequestbodytalentsoft.md: id: 0e5aea0ee96f - last_write_checksum: sha1:e393a015ab0bc7d2237125dd3875f7193954451f - pristine_git_object: 92a617b0125cbe00faa86495e753755e23352c18 + last_write_checksum: sha1:71c1c29b316804fb6bd6674662f28ba464b172cf + pristine_git_object: eda13a9df48c1b0decda367884a92d0d7767964a docs/models/postatsjobsjobidapplicationsrequestbodyteamtailor.md: id: d06ffa9784be last_write_checksum: sha1:eadae70ec62b248f7992efb453f115541244c797 @@ -4039,14 +4091,18 @@ trackedFiles: id: 08407e447792 last_write_checksum: sha1:5128441db2f6c8bd78bd3579938fce8baaf279ed pristine_git_object: e0f572199a7d07260846e9784465ec3c5cd68c57 + docs/models/putatsapplicationsapplicationidstagerequestbodylever.md: + id: 1b0ea247b895 + last_write_checksum: sha1:4ee0196f81baa738a656b017575ab49b8a9a2775 + pristine_git_object: 4b2dd9f4a0e437419fc587cad3c090ac7014aa03 docs/models/putatsapplicationsapplicationidstagerequestbodypostheaders.md: id: 330704e23b9f last_write_checksum: sha1:e98a130812cd0d6e7cc7dcc59c5debd4ed88a339 pristine_git_object: 2b33533851887bf5a7a309783dc22e2412905c75 docs/models/putatsapplicationsapplicationidstagerequestbodyremotefields.md: id: 3dc955c8d64d - last_write_checksum: sha1:25c14f2758ffc8286f17804b4da908b02251be35 - pristine_git_object: b59349b2aaa3038a7de24544eca38101dc4aa3bf + last_write_checksum: sha1:e63853fc3d0924c6d3d47f136b60fb35ee209da0 + pristine_git_object: c85e46abe8859e7c5b92c764b3fd67dea117cc9f docs/models/putatsapplicationsapplicationidstagerequestbodysuccessfactors.md: id: 5f26946dc194 last_write_checksum: sha1:cddf0abbd77206227e4e0f4b4565dbc527723f0b @@ -4525,8 +4581,8 @@ trackedFiles: pristine_git_object: 8fbf98b6a71ad8110c5c6ebf17481f739599f1ae docs/models/worklocation.md: id: af21f262b620 - last_write_checksum: sha1:d97e6425c5bdbcf819d5652e7b12067f57fd2afa - pristine_git_object: 2e577270ba2ab1d86e8908f8c80b96dc4458a62d + last_write_checksum: sha1:71fd9cd69a35bdca4076bad028f4f6ada3f35498 + pristine_git_object: 88b266dc85499911ed8ef94c0dbeca4818cfa87c docs/models/worklocationaddress.md: id: a8df26c1afdb last_write_checksum: sha1:77cc8c684b3314d0bd2d839745a8799d4743aba2 @@ -4541,20 +4597,20 @@ trackedFiles: pristine_git_object: 74f759ee15d215acb1999ae8345fda5bc68ed817 docs/sdks/ats/README.md: id: 24fafa267f6c - last_write_checksum: sha1:7ea810bbbfcc4702ce75a52fbc40b1e52b523849 - pristine_git_object: a39991b1e0cbf12769b7f4af1f7299951316f409 + last_write_checksum: sha1:e8153f07c3d28d4e6756fa5181cf37278363af94 + pristine_git_object: 5be91e3ac062c10d464b295d9253f26544f09ae5 docs/sdks/connect/README.md: id: 074a4658c86b last_write_checksum: sha1:b566a8a5ce9a930511eea2f4d663da210b57e270 pristine_git_object: 2e0ba9a6b65bd0c4a916d6b76f2263120690b58a docs/sdks/general/README.md: id: ce0ada6fa2e1 - last_write_checksum: sha1:9e4d9f11de3e68a2adb3dfe7f53f00a18bc226e6 - pristine_git_object: 38a5f23e9a20d95e1260d268cd3842d8bf8fc40d + last_write_checksum: sha1:46f264e508f4bd499b04c087612ec911d2495b30 + pristine_git_object: 592f1e062fcf5e0a04518a5744653e5ac104fca5 docs/sdks/hris/README.md: id: 0baa868a038c - last_write_checksum: sha1:638980b40661fdaf2b60ddfb7258eef9aadbf6bc - pristine_git_object: d364d2d566a5ec402f3b3338b7d1fa3c0b7a5f1c + last_write_checksum: sha1:d579eb689746b38f7c4841121dd3e43a866b7ba9 + pristine_git_object: 05b70f665af0cd90e02335b8c34a6035a78e440b py.typed: id: 258c3ed47ae4 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 @@ -4565,8 +4621,8 @@ trackedFiles: pristine_git_object: f456032107a9387ba6c98afd1c981df2f4b3d636 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:48d85b3a4750717c62f07210c8fd5f9a8407f584 - pristine_git_object: 61f65460b132961b68804feb21188ea8b926b188 + last_write_checksum: sha1:d8806f941870a6b00a7c32ef04e39a7c603414ba + pristine_git_object: a07e127b198b49c7bf7786dc10f252b6e4b1bf23 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:b6ad6f0515a952d7cb052befddb6a117d4f627d8 @@ -4593,16 +4649,16 @@ trackedFiles: pristine_git_object: 460080ad13f20f8eac822635c7778a371e892c5d src/kombo/_version.py: id: 45cf440ad1df - last_write_checksum: sha1:0c995120e7a03bfdfc98f8b904817ac4896a54cb - pristine_git_object: 5ff814d9e964d4d518fce288969555d23e5953a4 + last_write_checksum: sha1:1eca45213be3106638c894c938db4831066d6cde + pristine_git_object: cc5bdde65c4b3b19f2a90be77ca10153e38e29c5 src/kombo/assessment.py: id: aec6e8a7589f last_write_checksum: sha1:4d155741d6e52c6b6fcb93cccb6dd2efd191cfb5 pristine_git_object: b2c845ee7e48489c5dcccb8893d7ca6c8ad123bf src/kombo/ats.py: id: a9839762f5c3 - last_write_checksum: sha1:5dba43da7e3867e994a0a140e5c436481f908cfd - pristine_git_object: 6350a413e335ce1e48eca5db265202b5081fddd0 + last_write_checksum: sha1:f6583cc7c623f32d408fb3294e99d81a3005019e + pristine_git_object: 58fe9985c8b6628bea76126d92371988516ee27a src/kombo/basesdk.py: id: 8f30a0bd36ff last_write_checksum: sha1:f7cceecb507a387fd50740b9f4cd3cfe5cb3451b @@ -4645,56 +4701,56 @@ trackedFiles: pristine_git_object: 16ac2977e80b6eabe4020aa8a21dd28e83032f9a src/kombo/general.py: id: 107ecb9f3651 - last_write_checksum: sha1:7da44f2845094eff7125eea3abf3dd10c8baca78 - pristine_git_object: 7e85779abdebd1742958157046982890071a5564 + last_write_checksum: sha1:874c623167439c4a7d7210ab68acf0c6c3e15991 + pristine_git_object: e50fdfe8f4a34d8ccd744724fccb8e34e5e35943 src/kombo/hris.py: id: 9ba1b37ab10a - last_write_checksum: sha1:44866f436b8aacd94fc5f041da5ee84d965285f0 - pristine_git_object: fd59c773c25fa979123fe8516b1469d4400f31cd + last_write_checksum: sha1:24098a55dc00674af3b1e3ed02ddb4490031f49e + pristine_git_object: ba22e2f25c8366ec1e797f48717c49fda431e070 src/kombo/httpclient.py: id: 4e74c7821304 last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7 pristine_git_object: 89560b566073785535643e694c112bedbd3db13d src/kombo/models/__init__.py: id: 45e6e8c7f07f - last_write_checksum: sha1:3d1b358c638e6478459a62fba1108b114381572d - pristine_git_object: be79094f9a288a132b6e988c59a6d6d05e80e4b1 + last_write_checksum: sha1:a9076762fd6c7e00f81dc582d560e73d950a0e11 + pristine_git_object: 873b7b4c61103308707f5d0c180df187d6a602b4 src/kombo/models/assessmentorderreceivedwebhookpayload.py: id: 532c2db2ee93 - last_write_checksum: sha1:a89544ec063f76ec1faa875bf51141a32963ef51 - pristine_git_object: 1ccd60cbf49825dc8eefefe2fb42d316a1f6b812 + last_write_checksum: sha1:5ac164f6bd97962fb68634fe13d927d1bdee3395 + pristine_git_object: e53fbe7d0748ebbbcfdd6bf43f522c28aa7f1d33 src/kombo/models/connectionflowfailedwebhookpayload.py: id: bc2f80279ec9 - last_write_checksum: sha1:2fddb08551fb7c6cc0c072464367efa8cd314d81 - pristine_git_object: ab1a25921a9f02ed68cee5bfad5b7c6f567acd82 + last_write_checksum: sha1:833f7927cebb5f81223ca65ab7c6651da9016087 + pristine_git_object: afaa8c9874e9f99c48ed379f98b1a48389457f04 src/kombo/models/datachangedwebhookpayload.py: id: a4be1cf7f915 last_write_checksum: sha1:f1b46605896ab345102469d8cebef67ddaba6e55 pristine_git_object: 1a7308557ca0665d86274c7ce85bcaeb7c1fbbe1 src/kombo/models/deleteatscandidatescandidateidtagsop.py: id: e636f19f3437 - last_write_checksum: sha1:88443050e0c1c2de5c660f3b2ddc92c49d022e44 - pristine_git_object: 263e2afb8744651b0ccaace8554db7452512d405 + last_write_checksum: sha1:fdc5c43cddfd7fa45c31c68020b3078b82aa1fa7 + pristine_git_object: 61738a362202ea36fc4fd1ffaf3d387fd14a5847 src/kombo/models/deleteatscandidatescandidateidtagspositiveresponse.py: id: 081f465ef05a last_write_checksum: sha1:1893284778fc22b282eb7f4e5a454fa73b849d16 pristine_git_object: 4a57904b55aa3065d618a921df7b7b9f220e4c41 src/kombo/models/deleteatscandidatescandidateidtagsrequestbody.py: id: be84ae9dd77b - last_write_checksum: sha1:1872e5202c5a441c68b70580d78a0cb2abe35e20 - pristine_git_object: ac0544fb649d541cf29659c8f212bb2adfc25a02 + last_write_checksum: sha1:624770e7376bf03a769fe9e23a31e9a574395265 + pristine_git_object: 128ab6d52043faf3808d551b52ce821ceab759df src/kombo/models/deletehrisabsencesabsenceidop.py: id: 0c1cb6b7339e - last_write_checksum: sha1:93306f721e49894e0d2b95f5b2f8ee39b9ef75b8 - pristine_git_object: f945abad5296ba9d13f13cc85f4a2909549406d6 + last_write_checksum: sha1:abbd25eddefb7326af83c26e9a8c4ff5d820e326 + pristine_git_object: 6147ce639d69b82bf003c5b7aa4f646b6266ebfb src/kombo/models/deletehrisabsencesabsenceidpositiveresponse.py: id: f92003c6f1a5 - last_write_checksum: sha1:ecca2c686f781b3454a028622cda6dc7154abbd8 - pristine_git_object: 1b5f95b9ad0277b80f8a0838f11a420da61292a2 + last_write_checksum: sha1:ac8c53c2f4d6339c19319e2e5e329aa237163e00 + pristine_git_object: a0447588e54bb71462985a7f0769a73299904602 src/kombo/models/deletehrisabsencesabsenceidrequestbody.py: id: 416d7ecacd29 - last_write_checksum: sha1:ca37e84b40114a33edb145791f50127bfa060f5d - pristine_git_object: a41815001255fb618b604addba8400974d33648d + last_write_checksum: sha1:f2cb1c69ebff44009a5f3b2a083d752ad030f7ed + pristine_git_object: 9405f007813abcc19b07d44575aab2fa49c2d451 src/kombo/models/deleteintegrationsintegrationidop.py: id: a9b3a868f56f last_write_checksum: sha1:1d340452c33601634342c0185a63beb9f31d8be8 @@ -4709,140 +4765,140 @@ trackedFiles: pristine_git_object: e1b2190eaddba44878760d005c5aa2f99f39de1b src/kombo/models/getassessmentordersop.py: id: 605d9e03c3a2 - last_write_checksum: sha1:f6d8ac9a4d1ac03a3970fb228eaf7bce73d89e16 - pristine_git_object: e7d71de37c1c886c633688f41dbd8b83b43ea063 + last_write_checksum: sha1:f58aaca9693cbbf6703a8dbefce6a4be70465f08 + pristine_git_object: 9e03dab56a6d940975c32d82fd12c07dafcd2e91 src/kombo/models/getassessmentorderspositiveresponse.py: id: d6de23a8c4c8 - last_write_checksum: sha1:c00e14158f3a61d2b0c5c0c2424306ad2c7ee234 - pristine_git_object: 30a1e19f2847c8d0f6b870583222f6ff78894035 + last_write_checksum: sha1:ba86bc33ea9894741d86955eff51fbbdd4236530 + pristine_git_object: c087538e76a7d8a13356df2c00443c5e59202dc8 src/kombo/models/getassessmentpackagesop.py: id: 457cf143d459 - last_write_checksum: sha1:43a51c8d2f997318cfd89f350f129ddb959afb88 - pristine_git_object: a87fdbbe7564f000eee32f4633ba045710a1bd53 + last_write_checksum: sha1:a6861a1d3714261bd8ffe499ae3c3a779af4502c + pristine_git_object: 34c4ed3bb1ff376d522dd16e840f3222ce8b69be src/kombo/models/getassessmentpackagespositiveresponse.py: id: b5f893857139 - last_write_checksum: sha1:f3ba012b8979942bb0f994585682c3a0dadf255a - pristine_git_object: f8dfd027e43e619b72c392544187300905312259 + last_write_checksum: sha1:13f01f53d789eabda7a95edcf8d222f972c396c2 + pristine_git_object: a0494b3144408d5e1b95abcae3e33eae0e5d62c2 src/kombo/models/getatsapplicationsapplicationidattachmentsop.py: id: 5e26f3fd68e2 - last_write_checksum: sha1:39eb251280d5a88c92b88c346ed626019754401e - pristine_git_object: 1fcd645bc051236f95ed2a72c5dc13c2476e9df4 + last_write_checksum: sha1:9e880fc572379d9e2e7b2b557ec7dc225f30da11 + pristine_git_object: b2347e86b559b27947cb44bb54729fed17f8222b src/kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py: id: b5513715d598 - last_write_checksum: sha1:d259048fc4cc7d737ffeba5c75026c95a7879722 - pristine_git_object: 78c6d9d0d700be464bc4ede22c504efe7972a709 + last_write_checksum: sha1:74333a33657b40ab16e73f87c1a7c9a6e9367730 + pristine_git_object: bd73859cf2bcd40dba529be2854bf46ffa6c563e src/kombo/models/getatsapplicationsop.py: id: 871cae4f97d6 - last_write_checksum: sha1:074fa39070da68be0582db7461929854c074504e - pristine_git_object: a480c10b4b2a73a0238f5be7eb3a2ddf8a9be87d + last_write_checksum: sha1:09b8a74d2822465fe876c10857b5460fe5c96078 + pristine_git_object: f6e0da4198144d1290aecd162b431a93e3c0f1d0 src/kombo/models/getatsapplicationspositiveresponse.py: id: a63a51b4fa00 - last_write_checksum: sha1:08ca736e4c26ea12177cdf8d0cd66c2baa302e45 - pristine_git_object: e06bae88ff99b99b803fb6e64bc20117fd75d9ab + last_write_checksum: sha1:2868fd2d4c48605e068bae7be45dd593bf3c2204 + pristine_git_object: 83dffaf0aaa562f54e661577875bffab058c345f src/kombo/models/getatsapplicationstagesop.py: id: 9af8d74e7860 - last_write_checksum: sha1:18bbbfd081e5029288fc4b60d437ad42a7ee2554 - pristine_git_object: 6daa6ec22e0c1b9c81d3ba80816aff60cf4133b8 + last_write_checksum: sha1:9a7b9901470848b8f676ec645aeace24eac1d5f4 + pristine_git_object: 4417f2d52c57d441f997cd4f45e03db3d4b8adbf src/kombo/models/getatsapplicationstagespositiveresponse.py: id: 1526a6f6fffe - last_write_checksum: sha1:ec553a54468960821b42b764854c6e65f8db91fa - pristine_git_object: f5d52f08ee15918dcf940521c4a182146e7f76df + last_write_checksum: sha1:a7686f00da409eb37b4e012360f4181a7fa06f88 + pristine_git_object: 9be80fc7efd8db9a4bc45188e01ca298f0cdde17 src/kombo/models/getatsattachmentsop.py: id: 692f04e11767 - last_write_checksum: sha1:1d2a277c4f8e1bba53be1795f5c02847a02a85a0 - pristine_git_object: d3583482040f9563c8df3b608b85f6fb3707201a + last_write_checksum: sha1:675ab6474f66c379eb495123399b5d7784460394 + pristine_git_object: 7c43fbacb46b0455c876db02f5c66bccdd4b6db5 src/kombo/models/getatsattachmentspositiveresponse.py: id: 809e2efba37f - last_write_checksum: sha1:5e751f5141ebc38bead48ff099388fd45d4fff34 - pristine_git_object: 752cbcac350078d5493a9f21056f8fbe6e952461 + last_write_checksum: sha1:afe77e6caa93cb88c0c81a36ffb0186f3afb2090 + pristine_git_object: 6fef5d916bbbe01892825e8ab014fd39044a0081 src/kombo/models/getatscandidatescandidateidattachmentsop.py: id: 0cd2685524a8 - last_write_checksum: sha1:f78ede67dbb884a5a16b8c8c37b580c23a2bce6e - pristine_git_object: 65fe7f0588d1496e31abdeaff871619e95f998b9 + last_write_checksum: sha1:3b49e4c8d471ecf2c89a0e95a691ef48be65375b + pristine_git_object: 3e1a25a89e6a6b2c13d6e78b4efd822a725d532b src/kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py: id: 95278f59f51c - last_write_checksum: sha1:97ee5601db6986ed8cedcccf4f2e8f431af24016 - pristine_git_object: 28106ce543ee396b34f79bed5592b48ad747c68c + last_write_checksum: sha1:2cc6bf779f2286cc0bab154dc8243743e9fc335e + pristine_git_object: 9fe5a76c7b5f2d0fc4f024ae473fffbace468c55 src/kombo/models/getatscandidatesop.py: id: fe3b46f57904 - last_write_checksum: sha1:013e833c26f2224931e206266f6b59dd24dd6874 - pristine_git_object: 61bc6ad25f5a27a7d62a96aa88290e53bf87c0d4 + last_write_checksum: sha1:846577679e2a6d91aa778f8fef5488b45c624234 + pristine_git_object: 973b1da710ac65e9c2389b4697d7010c932a1a96 src/kombo/models/getatscandidatespositiveresponse.py: id: 55c347e74a19 - last_write_checksum: sha1:43e85c961f0500fc7a3c8b9a796607e23d760b13 - pristine_git_object: a0f51765e24bd5900c4011c3b0839b348f100b19 + last_write_checksum: sha1:8d3c3d9a5d95be400dbb69018568620b701bae58 + pristine_git_object: c87ebcaf0e05e7f5857399d9713e157128e387d6 src/kombo/models/getatsinterviewsop.py: id: f2e589cff331 - last_write_checksum: sha1:458ef071e5f54e5fbaf01f67fa2b120bef85cbce - pristine_git_object: e802e5e1c5a1b855d4573ca0aa2c83babe482c8c + last_write_checksum: sha1:cde0194c53ff14a1dbf859944b1a382ca6021224 + pristine_git_object: d8b90d0e96a6de2dbab08ecdb7dd5e35abf961f1 src/kombo/models/getatsinterviewspositiveresponse.py: id: 05922b6fb21b - last_write_checksum: sha1:93e2203ba46cdcf4d4712a403cef0a3f394c9f28 - pristine_git_object: 68c9845c67db2ae7e7afa82f54b4851eedb976d4 + last_write_checksum: sha1:0940abd9688bc25df23121bad7466f2176c9d066 + pristine_git_object: 2c228cc7f98cdcdf2026dc8824f0a4fbfaccf621 src/kombo/models/getatsjobsop.py: id: 2c486ae8aa94 - last_write_checksum: sha1:372994a35c48fd8926cbb439cbd77c9e643e9409 - pristine_git_object: a2c306c08bb1fec21cb4249cac421701bc45a1dd + last_write_checksum: sha1:a61b1ce2c927f2e6c568e5d68c98f74f90e8e8a5 + pristine_git_object: c129f65b1457b64b16f1f35724de719744014cb4 src/kombo/models/getatsjobspositiveresponse.py: id: 99a8e27010c9 - last_write_checksum: sha1:3b462a57434b0952045175dff37df7391fc4a42c - pristine_git_object: e65ec63e4ecdd211fbf3c01227990f1a7b37faa6 + last_write_checksum: sha1:46dcee958c0de0e3f1d79f65744c4a028be8b3dd + pristine_git_object: b01bec900ff32351faa82ac003996f684b81f717 src/kombo/models/getatsnotesop.py: id: 6da712c9c1bf - last_write_checksum: sha1:071b69772a37d1b05dfc12d320f7662622631787 - pristine_git_object: 64e4833fa0124d31b4cabfb13a66ac4f890ac98e + last_write_checksum: sha1:9e9dcaae7b50bdf3a2e5485e71d95eb01f620baa + pristine_git_object: d2dabe11fa8e4698d44abc79c3a157008aae43e8 src/kombo/models/getatsnotespositiveresponse.py: id: c5c19b58d67e - last_write_checksum: sha1:9d0539384eceed9839b4ce8ab4a2657b3f460d68 - pristine_git_object: dc9be60df68088287efefa193eef6b26c92ec89e + last_write_checksum: sha1:4ccf42a3fbe357b96c05fe0ad394bbb1a6d6b624 + pristine_git_object: d901a35e4bfc4482ee081a9c8ec5da33a5b2c050 src/kombo/models/getatsoffersop.py: id: e7ea828aed53 - last_write_checksum: sha1:c73c8851a6dd5414658e0edb45dadcd9da337a8b - pristine_git_object: 2189c1931247ef90499f11be02adf750aa52323e + last_write_checksum: sha1:81f5f350685b93573d9e92dc94af0d89f52078ba + pristine_git_object: 45b9f444d61a5ed131f4f9a68c920ebf2d310dc1 src/kombo/models/getatsofferspositiveresponse.py: id: 1178a0958495 - last_write_checksum: sha1:fd2b230e13fa9c4dd71db265ac28fc95f066012d - pristine_git_object: 96ac759d884d1f98f5d380c8f00babb2813080ec + last_write_checksum: sha1:8952587681df710dcfc115c58be2d023aea37f85 + pristine_git_object: e93c29a5b61ef6dd676d2a463828b7b630566967 src/kombo/models/getatsrejectionreasonsop.py: id: adfc8d8e1b63 - last_write_checksum: sha1:55fece4041ea498559238ae2fed87ff2c8fa755a - pristine_git_object: 4cbd0b880ce12d5c2b4364dd344a1f7656885784 + last_write_checksum: sha1:bbf477bbb1e2714c5b67dd790158a9bb118bec68 + pristine_git_object: 8a05133cabe05ec43b82973f1ac3b16ec71afd7d src/kombo/models/getatsrejectionreasonspositiveresponse.py: id: 09e9b8202dd7 - last_write_checksum: sha1:d5759644ab08bb9d770fa2aa5b065595f4b3067b - pristine_git_object: aedba34f39e4fde29c63b4ce5ad6bbcf1cc7b7bc + last_write_checksum: sha1:6d1ba71ec56c7143d79faccbeddb997dfc53fec2 + pristine_git_object: 0316a6734b7c8cf0cae8f4deb85f58aa86ff2de6 src/kombo/models/getatsrolesop.py: id: c6a1bfbfb95b - last_write_checksum: sha1:8172b100559ae71c921f631bd511d3177de6e543 - pristine_git_object: ec555ae69ede59fe26ba64d1426051d0edccd1a6 + last_write_checksum: sha1:be0741c147c92b66dbeca918eddce0c27396e5a0 + pristine_git_object: 572b904d48cb97e34d9f0b7c7a037493e52126bd src/kombo/models/getatsrolespositiveresponse.py: id: 7a0f5dded887 - last_write_checksum: sha1:f30de94287e5cbf81a175f4a3d81a08f5eeeab9b - pristine_git_object: 95c8b3376aeb59614a0cccec734b8e64bb86b721 + last_write_checksum: sha1:94c1d34487531da51ad07475a09dd4b83a915ddc + pristine_git_object: 18b2803ed6569ea125b6d47536251f5def4871c2 src/kombo/models/getatsscorecardsop.py: id: b76a72b81aee - last_write_checksum: sha1:4a31c41c7549a8dbf4194b76cb23d6b52fbb6f54 - pristine_git_object: 64f4f01211edcd05695297c8a963cfb2dff354c4 + last_write_checksum: sha1:433e3defec812a5ffe903bbcb351dee86e1a249f + pristine_git_object: cc2818debdb06938b9ad63a84a12932a65e81fce src/kombo/models/getatsscorecardspositiveresponse.py: id: e5f1bc3b2b2a - last_write_checksum: sha1:a7d6aacb9cebdc64083c3a2cdb921d2772dcefdc - pristine_git_object: 199489cc97ee811e2dc60ad2ab28f01ed544e81e + last_write_checksum: sha1:a1c3d3e8e3bd2d4e3b278b30478b7dda84d9d2f1 + pristine_git_object: a103353cec09e9644618c740530cb4c425b940e9 src/kombo/models/getatstagsop.py: id: 106922ec5228 - last_write_checksum: sha1:c66e9b1b93e2179024f92b6588d0c7f36f1603e9 - pristine_git_object: e2141c8900c93f6602f2da9aeeccc9fd746f9a35 + last_write_checksum: sha1:002152337dd237c03f847a35efcb90e13a97f56a + pristine_git_object: c541bd75eea4e63d16853adbf7083a1e16bbd9d4 src/kombo/models/getatstagspositiveresponse.py: id: caf3f9029964 - last_write_checksum: sha1:debcd7de2ff7e79dc75a851d59948b18e6d86192 - pristine_git_object: 9faf8279c17d34e139489f88a1e50c90ba37bba1 + last_write_checksum: sha1:5834e60f1ce5aa8170048e92901b5ebb66b108f8 + pristine_git_object: ae9faf38da8928ba720718018f8e1e4d8a12ea4e src/kombo/models/getatsusersop.py: id: 3dea73611e1e - last_write_checksum: sha1:ffb050e2e8878632cbfea018ccedbef88b095ae6 - pristine_git_object: 7b0819a07c3bd81c91f1850a7ea9b9c2e0903e16 + last_write_checksum: sha1:bf61b578c0fcc5efd47def22711c456aed4617f4 + pristine_git_object: 19aa9a424792d324c2072bcfee8be01477d441e0 src/kombo/models/getatsuserspositiveresponse.py: id: 957d5988d11c - last_write_checksum: sha1:6e85935bbf3440573998fd0f97c256e0a965db29 - pristine_git_object: c0648c695055b228c6f0f2aee5bf103168317a78 + last_write_checksum: sha1:701a4505a2afc869bb183cfdb705b865ac0d0a40 + pristine_git_object: 4062aeb6c160a1fb621021be6a34c45e92acea43 src/kombo/models/getcheckapikeypositiveresponse.py: id: 46cbd25e47ae last_write_checksum: sha1:735e8b0dc716944910db0ef85efba874ee7daeba @@ -4853,160 +4909,160 @@ trackedFiles: pristine_git_object: 84e9889fe258f3e69cbad45f9401f1b6758f8e6a src/kombo/models/getconnectintegrationbytokentokenpositiveresponse.py: id: 579e09f0854b - last_write_checksum: sha1:55375b8a866567b90f6212bf62bfc443a64c8158 - pristine_git_object: d92464f663add384a976acc8b062ac141430cef4 + last_write_checksum: sha1:04dda93acc5bba9e77447e696985393f7b858ba6 + pristine_git_object: 6f5431586009d2cf9bcc9a1fe50fba7d0d11d247 src/kombo/models/gethrisabsencesop.py: id: 0906c126338e - last_write_checksum: sha1:105eb1d08ed526a72c6f15c9dd6491c4b3d3d8f0 - pristine_git_object: 9b894a600374a7289296f5cbf681dc16b416efb6 + last_write_checksum: sha1:4edab8dc2db69f3c143c7fa1c86af1db82e34597 + pristine_git_object: 4af7bd7acc30ff45ccc95d4e92a60442a6165407 src/kombo/models/gethrisabsencespositiveresponse.py: id: 7976db3c6ae3 - last_write_checksum: sha1:39623587a22fede5364458e42d6e2d339a5c9c85 - pristine_git_object: 14b82df97d1ea837779ec26463d29bda8ce12994 + last_write_checksum: sha1:fbdf0f441fc560ba23c179d55b583c2b2451e754 + pristine_git_object: 6ccc1220c3d16358ef44752f26abf3c74905969b src/kombo/models/gethrisabsencetypesop.py: id: 79cfb4ccaf3e - last_write_checksum: sha1:ee5d29c2f41e2bb5c051f4e4653767f53fa2b967 - pristine_git_object: dd5a93661f83f49b01b69c855d50705181ff5e50 + last_write_checksum: sha1:c58e5410e3444ed986f8dc951acc577639722c22 + pristine_git_object: 2521af21a76fc64b900c611127883a6d07731a4b src/kombo/models/gethrisabsencetypespositiveresponse.py: id: 7297a0379493 - last_write_checksum: sha1:e3095969781914179dc22ce5e5b0bb5bbf3b8b74 - pristine_git_object: 68c16b87a10aaf3c57cf746ebe6233abe9cc35c2 + last_write_checksum: sha1:14eca76822e17e772b45549767dfc2f139e85d5a + pristine_git_object: f05e3b2bba14f1e336a17530dd46e8321dc042eb src/kombo/models/gethrisemployeedocumentcategoriesop.py: id: "576619816e15" - last_write_checksum: sha1:65acd6563a11cdc4e0c15475f0796f18d5da203b - pristine_git_object: 1597b6e2433610d2f90d6e8a4e81daa6cfd43eac + last_write_checksum: sha1:6546f7c1baa6ee971c849b87540a549bae002aae + pristine_git_object: cb7f5beda4bb1a73cc6b1a00a9c8f6aeaddf414e src/kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py: id: 7cc03e59b5cc - last_write_checksum: sha1:74f4b48c520eac924139b4a132b7f98341e4f5a0 - pristine_git_object: 3c93ef1ca2595f9fc337348e931f7c0d18e7ccac + last_write_checksum: sha1:920bf55d05da2103bb353add70f6fe25ab352551 + pristine_git_object: e81c513775c700304c3cb1f029834a2a84607e15 src/kombo/models/gethrisemployeesformop.py: id: 72906084d85b - last_write_checksum: sha1:7dab9439f64da84094016ae91b48a592dc316e97 - pristine_git_object: d77eadaabdf830e1a783d9d917b3ef816b80625a + last_write_checksum: sha1:cd1fd0dbc88c404eb473e659d3f493fd02d22522 + pristine_git_object: 7cf139e7a90306353cf0782cec7242a3f154b58d src/kombo/models/gethrisemployeesformpositiveresponse.py: id: 7f0cb7fe0d3c - last_write_checksum: sha1:7d48d081498faa715b5c68e6fbb68ae7cd357584 - pristine_git_object: b29b6f93ab9719aa432d36cd14d2abd7cf74e424 + last_write_checksum: sha1:1fc8b9d4eb9bfa3f0c5606a7b9e6121da5bd8cd0 + pristine_git_object: 0741eeb807aab5c4a721e6f96b03ddd7015d8f7c src/kombo/models/gethrisemployeesop.py: id: 84d84ea0468f - last_write_checksum: sha1:0ba475f478a2945d803780c4e979b66b6f6040e0 - pristine_git_object: 51ed169e95b1a8aa2015877e503862e717cf1864 + last_write_checksum: sha1:e058db89163d166cec87b0c86d58e3a2c5edf61b + pristine_git_object: c772a654ced41fba44e3356eced2a2f2eeec28e4 src/kombo/models/gethrisemployeespositiveresponse.py: id: 346e2acc9925 - last_write_checksum: sha1:0ba4ae80afa55675161a04044a326a8180a22b4f - pristine_git_object: eb9fcd29197de3bfdcc0f9877a897193722a4f10 + last_write_checksum: sha1:b64087bd5ecd6d42bd4c3071bfa35b98903ed548 + pristine_git_object: feda259dcd57ae85ff69e54eb2d4c1245c280bb3 src/kombo/models/gethrisemploymentsop.py: id: e4fe2d1565d8 - last_write_checksum: sha1:45abf13e86be94d30e28de5cf948a5e1c044a5b9 - pristine_git_object: 6981c30164838b874ae95f2943954638281e40f6 + last_write_checksum: sha1:2b4a8ddc58335a9bf74133aeb7f6859d07113487 + pristine_git_object: 5b9ffef8ec74347b3f9ec6ca8d225d7366dd3f39 src/kombo/models/gethrisemploymentspositiveresponse.py: id: 76dbda44512b - last_write_checksum: sha1:c407430453c09e61ee462ea2dd362fc50383109b - pristine_git_object: af3258a69d2d8185df69e93752325ede5a965c0d + last_write_checksum: sha1:01efb13ab4812b15e3654e49ec9b12c886cd12a8 + pristine_git_object: 43c703a7272643dc3141c628282a7f3345f6e0ce src/kombo/models/gethrisgroupsop.py: id: 65d838c3f3f7 - last_write_checksum: sha1:0160672da1004469ced30a1fe294108433df0c57 - pristine_git_object: b7c29f17b3078f24d760eb8ac1cc3ff874c2ade7 + last_write_checksum: sha1:73531d4c302574ae18caa9349a0551cce5aa79b1 + pristine_git_object: 354e8774810b9e10d3ee7b67c0f3e5e1a649d307 src/kombo/models/gethrisgroupspositiveresponse.py: id: a564834ff533 - last_write_checksum: sha1:44ef73c060cbb5ba554198578680fd2102ffc993 - pristine_git_object: 65b2e20d09584d1b6d4db6d0561a8800ae8d34f4 + last_write_checksum: sha1:cbb34188380ede8a6da6dfd6ad7a3c6b3978b0e4 + pristine_git_object: 7ad35020c34552c3213beb04cd3d319a11e9e18c src/kombo/models/gethrislegalentitiesop.py: id: 1248ce2860f7 - last_write_checksum: sha1:c89c7755344060142851deb120c1a1213d4403da - pristine_git_object: 7f7bd3a5e2ad3f9848f08cc0b2bb435ed36dcb48 + last_write_checksum: sha1:414f777f2eb50ad840a1a8ae21be68a4e6298e82 + pristine_git_object: 7ca70435dcb2467d51ce084278e703005c014eca src/kombo/models/gethrislegalentitiespositiveresponse.py: id: 1c4fda736245 - last_write_checksum: sha1:5ab0f363af4dc13fc7259bb60eb1d025493f7186 - pristine_git_object: 78cb6b2373bff3281470e7119705b5ceda8f1058 + last_write_checksum: sha1:5717c98e8eef4d41c96aacbdec8f88c7f9284651 + pristine_git_object: 3ba55a964820ad1f3c1d795b418266c16dbf1e42 src/kombo/models/gethrislocationsop.py: id: f91bef57a525 - last_write_checksum: sha1:4f7f5a0d8735f6febc38277b204cec49dc3118c0 - pristine_git_object: 7c41c9808bcca34657cd1944963f5f48a26dc5b7 + last_write_checksum: sha1:4bbe4f3a79be57be13238ff6873f44b6fbaccdb2 + pristine_git_object: 43380413d1d1a0ba28eb1bd66c0f704f6e78ddbc src/kombo/models/gethrislocationspositiveresponse.py: id: 3556e7b1020c - last_write_checksum: sha1:0f628cb2309f2a4d345295001bd9c4dac8738d83 - pristine_git_object: dd4d8bedb41f9c53e29b5cd31d74158db6fee159 + last_write_checksum: sha1:2f8f2b52d2a5a4289093d67f3e04cf5da5cb090b + pristine_git_object: d835176ed69ddc5290aa7537ec49ed38ed21a177 src/kombo/models/gethrispayrunsop.py: id: cee7487c3430 - last_write_checksum: sha1:53fa34e657f606507c3f343c569a5b522c427729 - pristine_git_object: 3a9cd72e65176561bd61e6889d6e56a9b179e502 + last_write_checksum: sha1:7b740b1380bb51cffda01ebb102dce282cb0d0ad + pristine_git_object: 477234a8cd3f5d6b5e057181a023afff9a1ea491 src/kombo/models/gethrispayrunspositiveresponse.py: id: da5f7c9019f4 - last_write_checksum: sha1:8cdd5f4e4a386ed6b35919dee8df9a9596eb89d9 - pristine_git_object: c26d99d77a92800fb5d10dde87a0c460dcb70457 + last_write_checksum: sha1:60e2c5af26f39ae58872a0219c5b99518c3c6c31 + pristine_git_object: 3e2632860281edf72ebf835abaa9b0061d3a3a65 src/kombo/models/gethrispayslipsop.py: id: c5bed69919a3 - last_write_checksum: sha1:400924429d06a3b4d65a8a1ff7e64631e0be5910 - pristine_git_object: aeea3ad6b5a6442858c31b4be215df75a07c1499 + last_write_checksum: sha1:73e33f30270ba1d2b04d4736f71f096464714775 + pristine_git_object: 8336dde3e6ac9987c6e6b827a43465096b8e97b1 src/kombo/models/gethrispayslipspositiveresponse.py: id: 31addaacfccf - last_write_checksum: sha1:24cf2af80fd666691c7c8dbdd5d6f8c285fbd0cd - pristine_git_object: 654a839494a6b2a7f934c8f561cf64f16dde021c + last_write_checksum: sha1:3bd73fb564e20f549c682348598806a84da34e33 + pristine_git_object: 84f320a82d904287e21d4190be78adf437de823b src/kombo/models/gethrisperformancereviewcyclesop.py: id: 531d13c1919b - last_write_checksum: sha1:b36d63a3f77016394bbf6bf444d01b410b2e2d26 - pristine_git_object: c80a4a1b034bd87a440313c21141cddf0b0cf3ef + last_write_checksum: sha1:44b2b6287cbd3f5bda28f9127b4a3c3613ac3ecb + pristine_git_object: 7af16034eebd15eaf45aab5357514e3cca9d0f31 src/kombo/models/gethrisperformancereviewcyclespositiveresponse.py: id: f89eef88f951 - last_write_checksum: sha1:a987fd0f8f8f9e94af34a6924417a01ea7048542 - pristine_git_object: 2674a8b2cc3abee83f61109a2d14cc582effde90 + last_write_checksum: sha1:77ba3ac808a423ceacf62bf54e3f7e392f13c061 + pristine_git_object: 69110a0c6b86d4bf07dd826ee143e739975db947 src/kombo/models/gethrisperformancereviewsop.py: id: d94f4f049afb - last_write_checksum: sha1:65f48b5a7574ad90457290118ef60d26233d3187 - pristine_git_object: 7ea61446b957d7f81a202c63193a35450e5507e2 + last_write_checksum: sha1:f11832169c29b96da64612c2e878e66acc3adb7a + pristine_git_object: d0f94a5c682a211fbf379982240eb40928c05bc7 src/kombo/models/gethrisperformancereviewspositiveresponse.py: id: 44962807cdec - last_write_checksum: sha1:d8712a222cebffc3a03f0d2e14a829d076d01923 - pristine_git_object: 2e4d3bbc2bdbd40bf55a9f1778adfbaecd4f9fef + last_write_checksum: sha1:a48f92154d08839859575769160a28f91464a290 + pristine_git_object: f4e75fdfcdb8ac7d7923e9cd80ca540272eb42a6 src/kombo/models/gethrisstaffingentitiesop.py: id: cb874a746b1d - last_write_checksum: sha1:c794296945216283c48ef7c4e6668435dda48811 - pristine_git_object: ce93cb538b03bf3d208f855403187932e960d575 + last_write_checksum: sha1:75c834a677e4da6f5e114622a87c6810918afde8 + pristine_git_object: 165eb65e022cc29eef679b6b8f75da5e500749bd src/kombo/models/gethrisstaffingentitiespositiveresponse.py: id: 0a4835131da4 - last_write_checksum: sha1:47d825f498fe7aba44d045e70d5ef4eea164def5 - pristine_git_object: 579dc60d2ddbd1cc3377351b641a0e793890a6f9 + last_write_checksum: sha1:62a1ad4d094e59b57b77023701a22482d67bd7e9 + pristine_git_object: a5ba5cab310ddfa982ba20a15bed090f79f3bfa3 src/kombo/models/gethristimeoffbalancesop.py: id: c5a6da4c41fd - last_write_checksum: sha1:964ef09eaab0320e321e17063f25ae5a28420211 - pristine_git_object: 859e2d064adc68eebce6a57a643ac333c01691cd + last_write_checksum: sha1:505d30fda41ced2604bc3b18a234203a188f9509 + pristine_git_object: 9af89120846dfb1adf89cdbd5232c57e61e385f5 src/kombo/models/gethristimeoffbalancespositiveresponse.py: id: 3d3404082bef - last_write_checksum: sha1:09de60be6433bac7d967f0314b0f7a7a6658c285 - pristine_git_object: 54688838fd428f294b5f258b94449c0125f111ac + last_write_checksum: sha1:d5a94c8f747f6833af9f594288bae8430a2fa061 + pristine_git_object: 5749cfadd0181e64152ba378dabc503ae5907f62 src/kombo/models/gethristimesheetsop.py: id: 52b574c1096b - last_write_checksum: sha1:5e25a922056b86aeb77d5cd03d1318bd9d4cf2cb - pristine_git_object: ad162e4a4dd5274371be8d9423a3b352b430eef6 + last_write_checksum: sha1:52aa330cad6c5e7ce7e33f4a721703156440fe2d + pristine_git_object: c60f9848c7dcdb8e17fbadb1025df57a5ccd83e8 src/kombo/models/gethristimesheetspositiveresponse.py: id: cc9ce3094f9e - last_write_checksum: sha1:7bd4c4688c3e42c9fcea5620172380d11d64b26c - pristine_git_object: 2bc9402f8b60bbdc1614fc7659390f31a18d25c0 + last_write_checksum: sha1:ef39759e2ef90fea06ef8b300fb3845e9461d3f3 + pristine_git_object: cecf06d5a8874ea78e9155e9b90c7d97b84db32b src/kombo/models/getintegrationsintegrationidcustomfieldsop.py: id: 33942052f982 - last_write_checksum: sha1:31f683a2b31056d6c62ecb7b336e09b6b0f6a462 - pristine_git_object: ce0954b373ebcfe1b96241b9008cfa884e03b811 + last_write_checksum: sha1:77caf0b9a6310704cfbedd430f6f5c1f2cec0ec6 + pristine_git_object: b2d2bb280179fcb5bd90e5bb41e17292225e15eb src/kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py: id: 142ff4169074 - last_write_checksum: sha1:d6e2b5d6f0ac7831d428b4c6f0f9be45ba5c7d8b - pristine_git_object: bb3772f37181d9232e8257e004418d10b81970c3 + last_write_checksum: sha1:52513fc0a5d814a411bf67f3d6f8d6b78fdbce0a + pristine_git_object: ea85797d497682505c6653611367bb1c1ef4e8e2 src/kombo/models/getintegrationsintegrationidintegrationfieldsop.py: id: e5ca6b183dee - last_write_checksum: sha1:61a9b7f6fd8f3331bfc482b0b9bf92096dd188d0 - pristine_git_object: f7ca488b54be4773f9653fcf0b8b47f98faa9d0f + last_write_checksum: sha1:21760767f6dcbb42fe123859aa53d1523248bc51 + pristine_git_object: 3c89cca55ec1b7861347cb9826b15aad27aac1d3 src/kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py: id: b8bbc50cf1b4 - last_write_checksum: sha1:de5e1bd72ac6f672ac86ac305df9af6ca09beeca - pristine_git_object: db83c1651ca9298497f7c83f0074c688492914dd + last_write_checksum: sha1:73b484624865c85f919af4d798e2a52ebc8a814e + pristine_git_object: cbda5a367563a6085cd051039bdba27e063f816c src/kombo/models/getintegrationsintegrationidop.py: id: dca70077e1cf last_write_checksum: sha1:06775a7924d30c62733200373cae42ea44062640 pristine_git_object: f2f5a4d8e857df7bbef8e871d416bf359b421f6c src/kombo/models/getintegrationsintegrationidpositiveresponse.py: id: d98c984b435b - last_write_checksum: sha1:dcf67cada332f942be10010e33e600b29b308e17 - pristine_git_object: 66a65e6061715806f92c241e01fb5e4b81511e7e + last_write_checksum: sha1:93a688f21ea55fec0b3bdc0eea4388bbebd43a45 + pristine_git_object: 72b6016da6e6c0c7d2a91b6eeab77ee439bfc9d2 src/kombo/models/gettoolscategoryop.py: id: 26e5fd68cadb last_write_checksum: sha1:40f5144d6d44d03ec0d298558d41fd988436c1e7 @@ -5017,236 +5073,236 @@ trackedFiles: pristine_git_object: 0b4dd2d58d983b8c775360d4fc2181c5b1029f95 src/kombo/models/gettoolscategorypositiveresponse.py: id: ce0006faad82 - last_write_checksum: sha1:7c83f8137944c05b221d2571ebe07eec199d04ba - pristine_git_object: a71cf28a2351f1bf6f7671f705e4d640c3a5b190 + last_write_checksum: sha1:0a0eca5a5234b7123ca93c721642a3b9940fb0ec + pristine_git_object: 09064c6a0233c214a2765e1dc36c2acb94c540eb src/kombo/models/inlineassessmentorderreceivedwebhookpayload.py: id: b5dd4cffd7be - last_write_checksum: sha1:da336c17f07475f94e82a118975163d96efd7dd2 - pristine_git_object: 403c9e55550d76997a850b23bd1ae392a6a5be87 + last_write_checksum: sha1:bb2f7271aa2efc2ba72ec587b962e59807bbfe61 + pristine_git_object: fffd5289e9c714971c198100de815b2d5f0c0e4b src/kombo/models/integrationcreatedwebhookpayload.py: id: 091570d52f9a - last_write_checksum: sha1:27663e2db9db0e0c3e651a3e4f03eac760340ca9 - pristine_git_object: 2c6b1677e90ed5fcc670557bcc0062419ea1f2ed + last_write_checksum: sha1:c1ae24e832e48f040b96e7f5f49ce087d7ca3acd + pristine_git_object: 859cf037fff10152b15f1eb7cfcf54f46829c833 src/kombo/models/integrationdeletedwebhookpayload.py: id: 226850a6b541 - last_write_checksum: sha1:270beac4fdcc3d594d17ecbe7d1bf4e50cdff890 - pristine_git_object: 3f56fb1d9385df5cd21a5a3ff02c0ca44518a5fa + last_write_checksum: sha1:5711eb4cac4a668c308e4eb1b6c88087b0450180 + pristine_git_object: 3306990ba3acfec0c4c3d334926598be560870cb src/kombo/models/integrationstatechangedwebhookpayload.py: id: f46156a4c581 - last_write_checksum: sha1:2b1ea60c8cc21c529f9b4b0c22ea5b05a6802de3 - pristine_git_object: fc2479d35259e4dc8a117656beb86b2064e5827e + last_write_checksum: sha1:560c3426f1731533ce1cac6b33c16e0fcaf10f67 + pristine_git_object: c718ae63fa0cd3fd5de290a74bafcad9b1ab6ef7 src/kombo/models/internal/__init__.py: id: 65ac4aa2c6a3 last_write_checksum: sha1:990396312b0ef7df1d4090090669c0c9c0c9e8c6 pristine_git_object: f3035185b9e0a7130e8530f7a5a3284eee916ad1 src/kombo/models/internal/globals.py: id: 182df04d8a5a - last_write_checksum: sha1:ba0abb7c79f7a36febdd742132514abacbad7210 - pristine_git_object: 01d246f0f0143c1df2b214c968138d4f7c63b6b2 + last_write_checksum: sha1:e5db7b56c359086f640e21f52464fffe91b5aad8 + pristine_git_object: 87c38d4845d48317ca51d5e0b08f87b387c97063 src/kombo/models/issuestatuschangedwebhookpayload.py: id: afad57a02bf5 - last_write_checksum: sha1:2450bda00124520074ff39652d2bba20b0a84397 - pristine_git_object: 4be9bca7c4379541254efaa1484688f57564c683 + last_write_checksum: sha1:53d3af85d53489bbdefd114c9d47449001110536 + pristine_git_object: 91f688f05a04cdc88aa885f1e24df9bbb11f8619 src/kombo/models/komboatserror.py: id: 5ab918f31c61 - last_write_checksum: sha1:1a06ff57d69ee43a245d4745a582fbd5969fdb4c - pristine_git_object: 0e7fa76abd980434631f0420e8cdb18dfbf8c74a + last_write_checksum: sha1:d94a2e0efa5aa025ae601acbeff330978162a0f2 + pristine_git_object: b33766dba141fa1bd62d6ad15f6a505f3c0ed558 src/kombo/models/kombogeneralerror.py: id: d6bcd40e2b8b - last_write_checksum: sha1:96461354b38b29583a22bd13fd7fa8c9c8feb819 - pristine_git_object: 165038ac7ba6bb4f14eccd053064aa88f189846f + last_write_checksum: sha1:6f63014ad76279e9764773a93ec4c8d6df51c05b + pristine_git_object: ab2155ba37ebd75e95939da100d6afbb3f67e708 src/kombo/models/kombohriserror.py: id: 5e562dfd3678 - last_write_checksum: sha1:69ea93be16f8e1d2443fcf975e5a102d27dd1684 - pristine_git_object: 8c0e6300a11adae05d3962d423710625504692c7 + last_write_checksum: sha1:2c930de6471c4adaea7a5950e31f30c35391fb30 + pristine_git_object: 598f9aaf773eaad12ffbf8c27d7277394124322b src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidop.py: id: 68196467a356 last_write_checksum: sha1:56945e8f4f74bd29fae5594c7b138e753dbf32d0 pristine_git_object: 60cc1c79b3a97c17c27a6d3144be0ce28cc8a1d3 src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py: id: 83d72adc4530 - last_write_checksum: sha1:59f69b9db947a82025bd31dfa49056a0ca487397 - pristine_git_object: 69916e13b15ea6cb74c66fb571b7adcf68a558ae + last_write_checksum: sha1:59db3d57b3fd76759a27d2cce488b6c7c8ff604c + pristine_git_object: 385fee4c992562803e6bfbed7ff779bd509855ee src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py: id: bb08a8758d4e - last_write_checksum: sha1:038b476f40719b6f01abf3a842201626625b3ca3 - pristine_git_object: c0435bfe5c0be8d83e94a9f6d21b454cb2602a38 + last_write_checksum: sha1:826bf7a7fa9fce4fc6868826403e62422ef1f442 + pristine_git_object: 60032571008d992254feaef908d8a21d454a9e47 src/kombo/models/postatsapplicationsapplicationidattachmentsop.py: id: 19702f697982 - last_write_checksum: sha1:9b79798b69f72404ced14e46582e5614b26f9b2c - pristine_git_object: ce854ced83a1dab2c6ad63822a1b873600bbbcab + last_write_checksum: sha1:46f5f906197f0aec6469f8452a758bc573bad50d + pristine_git_object: f7d0cd461905a9252193130b6126b8953852c1da src/kombo/models/postatsapplicationsapplicationidattachmentspositiveresponse.py: id: b8a80dd3e0a4 last_write_checksum: sha1:cbc0e4d395f6b02a72c5c5ccc6a5dc35143a996c pristine_git_object: 7411af70014283c52063e2bb01354cbaf016c185 src/kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py: id: c1ccccb52c52 - last_write_checksum: sha1:1c585955424593a37a7f20f5cbc929f7e7df3ab2 - pristine_git_object: 07362a42c578e96d5b2515c0b809752ec59746f7 + last_write_checksum: sha1:a97e734dadacfdeb83d5e12119e4d8bb101513ca + pristine_git_object: d6dbf839e986a6d282056755f9a1aa6dd1a24310 src/kombo/models/postatsapplicationsapplicationidnotesop.py: id: eb40d379d56c - last_write_checksum: sha1:fce93231fd5b04979a2b4d4c7560ea4a7e5b5ae0 - pristine_git_object: c898b93e1c20e2d4ed85668964d8cf99d09211a3 + last_write_checksum: sha1:e99671b18a9247fccaed8780775eecdbe8a15244 + pristine_git_object: 276fc60f2f916bf308479625a3968b849f825ca9 src/kombo/models/postatsapplicationsapplicationidnotespositiveresponse.py: id: a0f80eb91ac2 last_write_checksum: sha1:a584f58d1de6882793592f6d7755989a2686a0af pristine_git_object: 5a56d68268d640ec3f8f2f9003c111979fa83642 src/kombo/models/postatsapplicationsapplicationidnotesrequestbody.py: id: 44497b08cf43 - last_write_checksum: sha1:f0eed646553eebb2e7dcae130254e605e289c513 - pristine_git_object: 3571cbddaf7a470dafb6a957212cde5cffbbfd14 + last_write_checksum: sha1:6d7fbf8410a7971a7ec291c94772bbeaf9371959 + pristine_git_object: dd69506898545d9baad875bbdbfa9160092db074 src/kombo/models/postatsapplicationsapplicationidrejectop.py: id: 53d6e1ff7e85 - last_write_checksum: sha1:ea87c41f6ca5319550810062c6e790d4da60b6f8 - pristine_git_object: c4051eafa59097e6078b634ed890ab0b2737e9b5 + last_write_checksum: sha1:7f3a050a43275c10bd2bf85cc9da89a291a2e351 + pristine_git_object: a24e72daa3c43bc8ae3c2d77ad6c8e6b1cd78917 src/kombo/models/postatsapplicationsapplicationidrejectpositiveresponse.py: id: 9302d72b2447 last_write_checksum: sha1:351e0aaadcdeaaa1687dd9d0aa91e436b7b6e022 pristine_git_object: a6a347ce18cc008fd1e97d457887390c15756d2d src/kombo/models/postatsapplicationsapplicationidrejectrequestbody.py: id: a9d3440eecda - last_write_checksum: sha1:6a2a5d194b25d896cbaec7ca7771eeb055681f58 - pristine_git_object: 51cecd96f17159a1e1ffd18b491e12cfbb9c1f44 + last_write_checksum: sha1:65ba0b2f15e1cb3a61dd4e07362373cfaf2cf783 + pristine_git_object: 3ff3ed4bad6a57af8a5c8d1b745893bd037801d2 src/kombo/models/postatsapplicationsapplicationidresultlinksop.py: id: f6e134bb53b4 - last_write_checksum: sha1:00264be1917f21e72ebedea2dc705b4fe23191a3 - pristine_git_object: afd2be145ab1f6f11a8ebd04395f36890529da23 + last_write_checksum: sha1:15eaccb96a1d1d48cc06b8614b51ea370d87db6f + pristine_git_object: 296211614fb19ffcfad564670c2db5bccf329d02 src/kombo/models/postatsapplicationsapplicationidresultlinkspositiveresponse.py: id: 03fa95854a57 last_write_checksum: sha1:d52b9274462266a14d5ebb346f0a18a58a94705a pristine_git_object: 03be529dc77e6da68aaac5403f4491f25229a8f1 src/kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py: id: 15e34c668fd7 - last_write_checksum: sha1:4553166fd24e50d5736bd38741aba71865717b8c - pristine_git_object: 43d46424b64a02afc006bd2e59e02a8db5427dbf + last_write_checksum: sha1:71821af77d3f95eba804d6808e6b3701720ed696 + pristine_git_object: 426bda3a9bc11b3833aa3fb95abf747f09fcf166 src/kombo/models/postatscandidatescandidateidattachmentsop.py: id: 7c6984e982a3 - last_write_checksum: sha1:9c7d3e830a010ede5599ec784d12ab1ff98cf176 - pristine_git_object: 0c7354cb0122c316937cfc56102bde3cbe8df4f0 + last_write_checksum: sha1:c00bacc1bb7e2ef992cf34ba9737325c3ddc8fc9 + pristine_git_object: 621e274661abd24f75bcc6862489e8477c0ad81b src/kombo/models/postatscandidatescandidateidattachmentspositiveresponse.py: id: 7e6bc6c5251d last_write_checksum: sha1:eee0cbdaa67f4b95d64eebcb22ca65635d38052a pristine_git_object: 080f16a0eba46f1510d327afac05410925de53b6 src/kombo/models/postatscandidatescandidateidattachmentsrequestbody.py: id: 2450f91c21e1 - last_write_checksum: sha1:4df1eeae1a5b2fd4aa59f1f048041354f573d0fb - pristine_git_object: 7d26f432af14824831426928043d6dd703eb3e87 + last_write_checksum: sha1:172fe5de99ebf9fd7288fa377d1cba70b79e4476 + pristine_git_object: 90f75c144c052f9d5a83f20a50b47011fc4a7387 src/kombo/models/postatscandidatescandidateidresultlinksop.py: id: d2c063e27c94 - last_write_checksum: sha1:33be9f6da7c6795a80f92a6485e0f692fd014f71 - pristine_git_object: ea1134a98fb96967a3329f59c2ac0b61586a71df + last_write_checksum: sha1:b89736b501d4a4b75c2f418e517e3c7d189a3ec3 + pristine_git_object: 7f3df20f26d9b80f5e48e2d0888b7ef6247e1147 src/kombo/models/postatscandidatescandidateidresultlinkspositiveresponse.py: id: 1b8d28ba8fe6 last_write_checksum: sha1:e34b306068726209b4466ca021057a0431470bef pristine_git_object: 1910122477d1088243d2c088ca1e0fd03346c6cb src/kombo/models/postatscandidatescandidateidresultlinksrequestbody.py: id: 872b369e52c5 - last_write_checksum: sha1:1fe95feb727b3cfc8f8a126779ce8db25314f004 - pristine_git_object: f803c99ba5e059c91c37500057509c9032e4f8b7 + last_write_checksum: sha1:038cee8a734d3bfa387126d1a94a3570f14c93ee + pristine_git_object: ad8045ca82de689539114b81be63fa6471ecef25 src/kombo/models/postatscandidatescandidateidtagsop.py: id: 2fea2f5a65f9 - last_write_checksum: sha1:e6f1e9adece4a90ed6219598d006fdf284bf1012 - pristine_git_object: e5b9eae7f9128409080c2c8a5fc304848c564eac + last_write_checksum: sha1:c1240e5ec0ebdc8bdc38879e4d9527dffb644be0 + pristine_git_object: 8778191a01407f7976473d5d231a9876f5e0580a src/kombo/models/postatscandidatescandidateidtagspositiveresponse.py: id: 3c85a3c7d677 last_write_checksum: sha1:5cba7566f0e70d76f9cb85ce9354987e4d44ab33 pristine_git_object: 312ef84775125e8d2ba7e72c5fe9ce625ab65cd1 src/kombo/models/postatscandidatescandidateidtagsrequestbody.py: id: b7125fca0157 - last_write_checksum: sha1:4534d3dc3e9beb320dc40ed491b925aaf0f65a9a - pristine_git_object: eab32c5e65fe4bef680592b09a62f2b259ed18a0 + last_write_checksum: sha1:38c20ff95c1ab6e82c8dee2b19eb3a7b5729fbee + pristine_git_object: 90ed57c876f1abf6cb327c54088af0261cb24f80 src/kombo/models/postatscandidatesop.py: id: bc8d4ec54a70 - last_write_checksum: sha1:14712ee5cf8d43ddf41706a2865ca69037f07715 - pristine_git_object: 563e52d9da5218e8f758dc8b87709442047ef986 + last_write_checksum: sha1:b9252dd5432f2665b2a28000107feaec79596f8e + pristine_git_object: df2c653fb0f75d97e5298c051940076b2c4ed00e src/kombo/models/postatscandidatespositiveresponse.py: id: 9c14571088e1 - last_write_checksum: sha1:162df5a0fc4b18c8bb967a930995e626d1c6741e - pristine_git_object: 7a97ad39aca8886d0999a4573a69626c1bfc5cbb + last_write_checksum: sha1:2b8e0e218b53acda62603f7c15b6b2103f8bd07f + pristine_git_object: b9b06284f3556b6732e36a40ff5f0efc8302d3cb src/kombo/models/postatscandidatesrequestbody.py: id: ac6e98f043e9 - last_write_checksum: sha1:f8383c63ded20f8b960b13c3c09d6a22ac9134d3 - pristine_git_object: 4c71b625e0064cc0a06ef963c1f8e62d3dc17178 + last_write_checksum: sha1:5b6b625da658cad509664bd1ad1af5f01f3397e2 + pristine_git_object: 1de89e5ea71b31decc5805e8b38578e5f91b97e5 src/kombo/models/postatsimporttrackedapplicationop.py: id: d36d9960022a - last_write_checksum: sha1:e0aa98b306d9e4852785f10e40e97c34f084efef - pristine_git_object: 9c929ae5092542a2d14278ccaf09a2dc535313d6 + last_write_checksum: sha1:d480e00ce7e58d82144fa2f39fcabf187eaa4a8c + pristine_git_object: b1444652980fe88a822f3c1ca0651509a6678f81 src/kombo/models/postatsimporttrackedapplicationpositiveresponse.py: id: 347cb97d0d44 - last_write_checksum: sha1:0b16ebb1418f1d72cc15d40344cff26c0b9e2758 - pristine_git_object: b322c0c220d97d5738d87c398dff50c2a82d3c71 + last_write_checksum: sha1:403012c7738e8ecda8e7f22a0f2b60fab224e83e + pristine_git_object: bcefedb8290db48f90d9baa8d408eb5a081424ad src/kombo/models/postatsimporttrackedapplicationrequestbody.py: id: e346d429375d - last_write_checksum: sha1:0b3c0b973fc43a1b8e69693f2dccf3f2a1381907 - pristine_git_object: 82578ced224e148267a90ed7cfda72c7033d2a66 + last_write_checksum: sha1:f8d6c5928e35f64f4b537f29905e9c15c1453eb0 + pristine_git_object: aa39ac47a7f6f5119820f877dd9b352182be200e src/kombo/models/postatsjobsjobidapplicationsop.py: id: 6888f681bfce - last_write_checksum: sha1:e716bd7bd9294f3e8d2af78be50fc4a00807e7ea - pristine_git_object: de1399d40dda8c5fff919b5048d2f2c296634c08 + last_write_checksum: sha1:6078cae1ac97a4be56c6642a6bedbc978ef880f8 + pristine_git_object: db94dcc76be2db9926bb4ad21bbd80cc5a260599 src/kombo/models/postatsjobsjobidapplicationspositiveresponse.py: id: 1179f9a0a488 - last_write_checksum: sha1:23310cc7db90ee6dfa89d6095328eac725ee4104 - pristine_git_object: 20ba13411c0885c7b43e5c4c0d6ae721b13f02e1 + last_write_checksum: sha1:5fb4ac0b9eced9cd2606328367f93d4a4b380a74 + pristine_git_object: 49d156d4cab230d1b8be898a37d253119a52126e src/kombo/models/postatsjobsjobidapplicationsrequestbody.py: id: a451a5e6b515 - last_write_checksum: sha1:aa28006227c506b89f82038d3bbfdb0f3114ba48 - pristine_git_object: 6db3af0fdeb7a5959ad5664fb6948b6187219253 + last_write_checksum: sha1:c1053c8fe26ba910d952a9902f4d88fd9dbed8c4 + pristine_git_object: 8f928fe490c739be7d0ee1f3511fa3b8e7dd04b1 src/kombo/models/postconnectcreatelinkpositiveresponse.py: id: a3271239a82f - last_write_checksum: sha1:543a7f17d567995e4f37abf477f4592fd0d5cdac - pristine_git_object: e682c8afbefb1f3400009fa32d86706979690a16 + last_write_checksum: sha1:0104dbe9a7d2523c7bec9bcea6af373a661722a1 + pristine_git_object: f2446c940b04711eb461ebc6cc32df1d3a7de059 src/kombo/models/postconnectcreatelinkrequestbody.py: id: 8ae6871fd392 - last_write_checksum: sha1:ee18689e48f1fbf5c45c4360efb8bf167f45389f - pristine_git_object: 3e409965ef5e1fc9bc23acf30f7fe7cf665d76d9 + last_write_checksum: sha1:33dc9bb88f6bb56cee397762ded809eacabdb567 + pristine_git_object: 59b1ba0fe8dbc9be57cdef84391a409e028d71f0 src/kombo/models/postforcesyncop.py: id: 695738b0e4fb - last_write_checksum: sha1:4288d66c5efda40419ee3602e124d5186662a99e - pristine_git_object: d52d42e64bc2d9a44e05d0455402bb1f0acae48b + last_write_checksum: sha1:55aad7bc3abf73723f6fd77b758321b6beba24be + pristine_git_object: e88d7082c437797bcf83ae513f353a8572881aa7 src/kombo/models/postforcesyncpositiveresponse.py: id: e2b5a2fd4ed7 last_write_checksum: sha1:ff75f5a1ddafd755083ec9b2a6223bba27ead4b2 pristine_git_object: d815e5f2fe2af304f0dd548fe2c0ca5cec706ae3 src/kombo/models/postforcesyncrequestbody.py: id: 6d2f18d9f10e - last_write_checksum: sha1:11d279e442c5afadfb6f724c3b6b6444d4cde284 - pristine_git_object: c8721961ccb957167fbacc4f9a62657f5d7ec14a + last_write_checksum: sha1:63d40a86ddf871406db6a096c046783051e76f9a + pristine_git_object: 03dcf5dd9e7ca41fdcd620102f1ebc9890a857b2 src/kombo/models/posthrisabsencesop.py: id: 8710d4eb55b3 - last_write_checksum: sha1:077ff612e5f096a579f6b4973acacd175d748083 - pristine_git_object: 3b3f68f9e20a10c02e9012ce47605370fe3c9e74 + last_write_checksum: sha1:fdcc859c58b57f81feeeb9eea599b53fe82e6a53 + pristine_git_object: 09636b8ff462741d2d8f14623c66a1df0c0885de src/kombo/models/posthrisabsencespositiveresponse.py: id: d61aff36a38b - last_write_checksum: sha1:c76ebdc2e9f4346ed85a5530fc7a249a42e3c431 - pristine_git_object: 3071c6646d92f78977e5b3814eb04244a3020e60 + last_write_checksum: sha1:dd9bb5b16708de98baf916087b23af84b3a15460 + pristine_git_object: b96487d3ee0e56e173c490961e2743ade607bd96 src/kombo/models/posthrisabsencesrequestbody.py: id: 6af28f32b693 - last_write_checksum: sha1:99cf28f183e00722a1455fbdef23a0a75fb04c1a - pristine_git_object: 94a41e51ba9dcff336f394bda2fc400d5c7a728e + last_write_checksum: sha1:bd6915ea1a5523cd8be2a4a4d8adc530af0c59bc + pristine_git_object: a0362e9bc696ae1b3093f171a3577b34951ce88e src/kombo/models/posthrisemployeesemployeeiddocumentsop.py: id: 4059a1ca18bb - last_write_checksum: sha1:03e7954aa1109e823db715bf2818c1e726fb2105 - pristine_git_object: 7929690e178cd99ebc58cc5bc404cd89f699d5d5 + last_write_checksum: sha1:c6a78506ceec7b6ae530dacdcb7488a9b22c7339 + pristine_git_object: 432f649e056edd91c8b9741876413becf105afb4 src/kombo/models/posthrisemployeesemployeeiddocumentspositiveresponse.py: id: 01873f49d788 last_write_checksum: sha1:cb5c457b9b823722e66c388b312898756b4bd251 pristine_git_object: 520fce8b64b787c7105b78cfa557e181df2307a9 src/kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py: id: 86f398f647ff - last_write_checksum: sha1:d6242f534e0da21e80b620761875d92eb7b7f361 - pristine_git_object: 1875f4031fad70a156ad0ded9518c4701cfb1bcb + last_write_checksum: sha1:d9143673ca4f9453ed461f27e136b701f0513e2c + pristine_git_object: dd2382d66a3e7bca241833917e5a46d04669abca src/kombo/models/posthrisemployeesformop.py: id: 03b363d3974d - last_write_checksum: sha1:f9fc9f9005aafc0e5a85d76748a9b562d2de947b - pristine_git_object: 250b61fecc1df084218ebbbb48f208ce3880ed81 + last_write_checksum: sha1:e519a25f57e2e481d044335658f34d24484b6294 + pristine_git_object: 83c2002c44c19c11aa44d90dded9250fcf38571f src/kombo/models/posthrisemployeesformpositiveresponse.py: id: 8fcfa622d725 - last_write_checksum: sha1:b228de24b110c6d960cb3eabe55e7b6a0315ba92 - pristine_git_object: 57a43ed974c4d590f164230b14787396494213aa + last_write_checksum: sha1:b0a8d0e7950d91c68bb570723c0ec1ebe667a6a3 + pristine_git_object: 623d309bcc0af9dec2587948ac3d8a6142e7d603 src/kombo/models/posthrisemployeesformrequestbody.py: id: cea1d0099ef3 - last_write_checksum: sha1:a377c94e3ad50a9e9ebb1f0bbb3dbafeb1ddc7f4 - pristine_git_object: f76e7b7b2f9ec1ffd8dc4ae8f774ebec2945c6ee + last_write_checksum: sha1:05054257cc9160808e5627e62ba83ad49dde5684 + pristine_git_object: 4de9605016417944def012e28951a8f00d925164 src/kombo/models/postintegrationsintegrationidrelinkop.py: id: 53c23a3b15fe last_write_checksum: sha1:4fed16acf3b504fd64e18ed10e313c2b9e33418d @@ -5257,8 +5313,8 @@ trackedFiles: pristine_git_object: 93c22a17910cbb890f5a6ac3d79ab6a81d6c904c src/kombo/models/postintegrationsintegrationidrelinkrequestbody.py: id: dfa481c1c118 - last_write_checksum: sha1:4c2d070eb7de08233ff5fcaa0646e32c45e17964 - pristine_git_object: 3b3fb28fdfb45683b4706c8365f92fac634cff05 + last_write_checksum: sha1:266899f102081a9e00ee9c4d9bfc0da20c3a7d13 + pristine_git_object: 39e6def26f58ff49592805986a8db1622286aad3 src/kombo/models/postintegrationsintegrationidsetuplinkop.py: id: 03808fbb56b5 last_write_checksum: sha1:73b9c0f247d60cb460c791dea09bfe24e9ac683e @@ -5269,36 +5325,36 @@ trackedFiles: pristine_git_object: ba51b6dc74dfdde420cb40d45579715a55d38141 src/kombo/models/postintegrationsintegrationidsetuplinkrequestbody.py: id: 2fc51aa8478f - last_write_checksum: sha1:9a16b9f04592549436729b79a8061abd511bdb88 - pristine_git_object: 0145bb44a6bd5a6b092e54df5a382074753f2c9d + last_write_checksum: sha1:7dfac402ac1bc86b4fa8a7d27cc4f15cb57f05cf + pristine_git_object: 13dd9c1b0e71e829269d3303ec6e3a462f5319eb src/kombo/models/postpassthroughtoolapiop.py: id: 85a5a54ec09d - last_write_checksum: sha1:88d00b720a39283d596ede0140e444a80ef07bfc - pristine_git_object: 809eb5863c507cce52d602d278a660415f124a53 + last_write_checksum: sha1:10befdd1c8a072a3d4612ee8a7b8550cded0e28b + pristine_git_object: 6b2c5f2b3395e5ba7e13108e626bd0bcb7c18f3d src/kombo/models/postpassthroughtoolapipositiveresponse.py: id: 013f22e4f188 - last_write_checksum: sha1:6eae04767b1ef7eff449226ed3f6a50f4877f122 - pristine_git_object: 49d411659e54293dbf90a3219f3560997456d4f1 + last_write_checksum: sha1:3303e57f75912efa1af18ffa18457cb70cb8c9fe + pristine_git_object: 663f9fdaaf95cbc073800af2bd023186762b584b src/kombo/models/postpassthroughtoolapirequestbody.py: id: b2daa32824c5 - last_write_checksum: sha1:0d7f93faa017b3d814ccc7c3921ce723564324a2 - pristine_git_object: d730678555b723d63c3936d7febab2139b6abc09 + last_write_checksum: sha1:facd5b9085b8f4f3c23b5605786d3414b750812b + pristine_git_object: 61b771113f86700f77f4dadc88267dee912a2191 src/kombo/models/putassessmentordersassessmentorderidresultop.py: id: 0dc0f67b26d7 - last_write_checksum: sha1:1d857f7376e105df9884c069423b88f6a4d35961 - pristine_git_object: ed121dabf4dbbdab51d6425457522e06c0164764 + last_write_checksum: sha1:ed473852eb24dc9b3524ed935e53649da923e37b + pristine_git_object: fca3ee8000fd1399fedc855ba192d7780a902412 src/kombo/models/putassessmentordersassessmentorderidresultpositiveresponse.py: id: 29c75277d3bf last_write_checksum: sha1:b5164cd8df0e9297676740dfc51e810876d139cf pristine_git_object: b34ea0de9602c887e0e0354fe501e917e9ac179e src/kombo/models/putassessmentordersassessmentorderidresultrequestbody.py: id: 9752de46be3c - last_write_checksum: sha1:4790257a538728b6602676729495f14b35033f76 - pristine_git_object: 66ee80af92a0e82dc24286a43a9f59c8b0e514c0 + last_write_checksum: sha1:a1fa65877c1fe4fe514ed25c0939836e560b2c84 + pristine_git_object: 6a9413c5050263514ceace828c069f6336a7e4f5 src/kombo/models/putassessmentpackagesop.py: id: b33421f2efc8 - last_write_checksum: sha1:2946fc1834bc5c093cf71bfc8d1f562439ae4143 - pristine_git_object: d795ea9a788880bb1e2eceb876df0a83e49212c8 + last_write_checksum: sha1:7de5c3348ddbed137b5a0a2269ecc7a2d6d018c5 + pristine_git_object: b553e41270279da675eb0cdecda9f659e00bab37 src/kombo/models/putassessmentpackagespositiveresponse.py: id: 05d8be16d757 last_write_checksum: sha1:e58e922b73243b2464f20c7cc53472556b3d5718 @@ -5309,28 +5365,28 @@ trackedFiles: pristine_git_object: c9b704e59efc5308fbe78733b5a9d71a4a5a6947 src/kombo/models/putatsapplicationsapplicationidstageop.py: id: 0a5b706930d9 - last_write_checksum: sha1:cad0e8db5aec525b4b10f72e2962cb86a7d210b7 - pristine_git_object: 5be91c275dd2d7c7a9ab2c34679c64767610b675 + last_write_checksum: sha1:73ccb7a446de38f9886e1e55fb604b5ed18d273d + pristine_git_object: 1d446f6c32a48dcf7715d13bf4e261619af84ddf src/kombo/models/putatsapplicationsapplicationidstagepositiveresponse.py: id: 35a435e0b5d0 last_write_checksum: sha1:7f22b134151ebee024e8c005416b2e98f7815777 pristine_git_object: 43a73b99099baf273eae5f17b02bf79782da61b8 src/kombo/models/putatsapplicationsapplicationidstagerequestbody.py: id: eaea7fd23cea - last_write_checksum: sha1:1fab24f79b791dd8122d0dc738334604b5b3fd7a - pristine_git_object: d655d159ea9bdf6bb89d8bc0e0a74f5fbe9f3c1e + last_write_checksum: sha1:16bac5c7d0215cf9c7269410c49e072404746d4e + pristine_git_object: d68a193bdaa06734ac3fa780bff74ac036b2261c src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidop.py: id: 30c04c98682e last_write_checksum: sha1:027a950f81923ef7b1274fb65cebb43b53fbce8a pristine_git_object: 6b3a68de1786cce0f75fcde7cd6a3af3f4362345 src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py: id: 88117f6adcae - last_write_checksum: sha1:a18605b3b93b3349966cb449143d76f18e53cceb - pristine_git_object: c6dff1f540ba6a057105a8d143bcd97796bfc217 + last_write_checksum: sha1:3a13f892582caae483bee2957f17134d4bde4f96 + pristine_git_object: 2bb69023038a08a53451c53fcc78fa6e9902e5f1 src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py: id: 55311185c306 - last_write_checksum: sha1:d5bc155a0e6bda961174112fb47b18e84798cfd8 - pristine_git_object: 72b22b330063a142d8a55cf046a113380eab3bab + last_write_checksum: sha1:a70d38ff7c855c5094240e1d7e22a806a887cdff + pristine_git_object: 748940fe4b515d7a8ed012c13ff61c891351c8b2 src/kombo/models/putintegrationsintegrationidenabledop.py: id: 545629a8b4e0 last_write_checksum: sha1:4a36d0016591cdcee9e32f5ee75f1d34654cba9b @@ -5345,12 +5401,12 @@ trackedFiles: pristine_git_object: 3e7d6ac827420db4eecf6c19deb38cd6ac1f3fcb src/kombo/models/schema1_union_1.py: id: ec9b08a4abeb - last_write_checksum: sha1:ec529da67986c5588f39dd8c17378addc6972002 - pristine_git_object: 6c7d00cc78e110bc2a77bb0b6e99bb04a3d368b3 + last_write_checksum: sha1:28613446239344d3dcbf692d0eeb9c54819de6c9 + pristine_git_object: 1bc1599cc1f8eb9eafc69c10153f0ceb22fc87f9 src/kombo/models/schema2.py: id: 07833c1a69f0 - last_write_checksum: sha1:52e87cebd724c9e6afe62cac74272e2e2c57335c - pristine_git_object: b1a1c68eeed66ac19365d47795445ef6b7988d04 + last_write_checksum: sha1:cb1ac40482b6a40cae17c1f56cb7db5092b89e12 + pristine_git_object: dcd2892d9c734637737951ef0ba682c3ba2ebbc1 src/kombo/models/schema4.py: id: eaa7465473c1 last_write_checksum: sha1:feaa5dd82595414a0e0564a5762f87ddbe26cde8 @@ -5361,8 +5417,8 @@ trackedFiles: pristine_git_object: 3538231d0fe0780405672a144202123d7b7ef9da src/kombo/models/syncfinishedwebhookpayload.py: id: 5590d922cba7 - last_write_checksum: sha1:8aeaa38cee50e848c209760f8cc13ac31a49ac48 - pristine_git_object: 9d24fb033b93fbffb48adae4fd8c8c34ba8a38a1 + last_write_checksum: sha1:b946739df13baeae5ac804ee0ca96cb7306ea1cc + pristine_git_object: 1870e49c84f993e3217c6b2c26c1e136a963b2ab src/kombo/models/webhookassessmentorderreceivedwebhookpayloadop.py: id: ecd51c42c941 last_write_checksum: sha1:26d7e1fac2b33d99e774273dcf4e9bea36ebac88 @@ -5413,28 +5469,28 @@ trackedFiles: pristine_git_object: 98fc8bfab0afc59899322d16e5c91f8db0aa2a73 src/kombo/types/__init__.py: id: d9aba2928678 - last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9 - pristine_git_object: faa268137bc01c9d08cfadc4797017db48747a96 + last_write_checksum: sha1:166eb50af851c4200ed67fe47c64b1d58b99ed72 + pristine_git_object: 3a43a78ab719ec504ec95c050c984c843407d366 src/kombo/types/base64fileinput.py: id: 70d02f7057ad last_write_checksum: sha1:1522687ae3398374c35710cad993a6e82b5ab99d pristine_git_object: 862566fe2b1db830276b390e136e65090e5963d2 src/kombo/types/basemodel.py: id: fcedd4cc094d - last_write_checksum: sha1:10d84aedeb9d35edfdadf2c3020caa1d24d8b584 - pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee + last_write_checksum: sha1:99c644208e340c4974b94bbe6d52019c80fedb97 + pristine_git_object: 5ca5fdd558ea6d8d8d39cb9ff7877984fd7d63da src/kombo/utils/__init__.py: id: cc48ef24cece last_write_checksum: sha1:370ec05f8793eddc69ee21a4df8fb1b08d11561d pristine_git_object: 6d6c5c3f9973b392924f0ee369a6c6bb5407ea02 src/kombo/utils/annotations.py: id: ef5c87c1f451 - last_write_checksum: sha1:a4824ad65f730303e4e1e3ec1febf87b4eb46dbc - pristine_git_object: 12e0aa4f1151bb52474cc02e88397329b90703f6 + last_write_checksum: sha1:2dd01678125b08184a96e28bb4f3692381bf04cc + pristine_git_object: 3af322f22ea3253fd1b6cdbb889af11c8b20dc3f src/kombo/utils/datetimes.py: id: 2cb38f000778 - last_write_checksum: sha1:fa47d54c549ff9b95496ce91930fadfb04a36be9 - pristine_git_object: adad24762cf452d137abe94fda0fd26224cef593 + last_write_checksum: sha1:8d08dfebf00458efa19e0c19455eddcc9f14b8ca + pristine_git_object: ad634bfe1b612415e92f188544da27a92b20a90c src/kombo/utils/dynamic_imports.py: id: b6914f844f62 last_write_checksum: sha1:a1940c63feb8eddfd8026de53384baf5056d5dcc @@ -5477,8 +5533,8 @@ trackedFiles: pristine_git_object: 406c1e7c36c7a4fa4fb48bb567d254e2803e1792 src/kombo/utils/security.py: id: acd4ded0aa8d - last_write_checksum: sha1:c11eef495b6aaa249178c24c796940cc540b7a00 - pristine_git_object: 42d8d78e9981eed7507670014d99588e27ab325a + last_write_checksum: sha1:ef45e8c8810b4890c8e8761cff6e6f9a034e9a73 + pristine_git_object: 74c020cff54e7fc580c3db915bceffd4740e6115 src/kombo/utils/serializers.py: id: 5d7d8c5e2d73 last_write_checksum: sha1:2fb543339b424a0818b126e69695df5c91cd4d7b @@ -5489,12 +5545,12 @@ trackedFiles: pristine_git_object: 8396514d3bbe9a4a1d2caa604d90d9adf16123e3 src/kombo/utils/url.py: id: 7b3d335c5292 - last_write_checksum: sha1:6479961baa90432ca25626f8e40a7bbc32e73b41 - pristine_git_object: c78ccbae426ce6d385709d97ce0b1c2813ea2418 + last_write_checksum: sha1:0269c7e27f701e0c72d44bc2a36ac4d44ef2108c + pristine_git_object: 8eeaa7b0cc48e5e528afc0527da8b76ef46308d4 src/kombo/utils/values.py: id: 089c05c60fc5 - last_write_checksum: sha1:65e1ee8607767a4fc1ae7a55c74d77a23ab3cef1 - pristine_git_object: ac217f473c5d52a454a2979b3eb35e66175d365c + last_write_checksum: sha1:c0eaaf8779a4ba3ae068579a57182667efef0cb7 + pristine_git_object: 094755b73f7f9382d8df997602080c82a55896fd examples: webhookDataChangedWebhookPayload: speakeasy-default-webhook-data-changed-webhook-payload: @@ -5899,7 +5955,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "employee_number": "3243422", "first_name": "John", "last_name": "Doe", "nationality": "French", "display_full_name": "John Doe", "job_title": "Integrations Team Lead", "work_email": "john.doe@acme.com", "personal_email": "john@doe.me", "mobile_phone_number": "801-555-4687", "ssn": "555-32-6395", "tax_id": "12 345 678 901", "gender": "MALE", "ethnicity": "BLACK_AFRICAN_AMERICAN", "marital_status": "MARRIED", "employment_status": "INACTIVE", "employment_type": "FULL_TIME", "weekly_hours": 40, "avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png", "work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53", "legal_entity_id": "xB32bied320csBSsl3XWdlw33", "manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo", "home_address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "bank_accounts": [{"iban": "DE12345678901234567890", "bic": "COBADEFFXXX", "account_number": "1234567890", "holder_name": "John Doe", "bank_name": "Commerzbank", "domestic_bank_routing": {"number": "34567890", "type": "DE_BANKLEITZAHL"}}], "date_of_birth": "1986-01-01T00:00:00Z", "start_date": "2020-04-07T00:00:00Z", "termination_date": "2022-05-20T00:00:00Z", "remote_created_at": "2020-04-07T12:32:01Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}, "employments": [{"id": "12vpXR7BeqYNWDShXRgsonnm", "remote_id": "859", "employee_id": "26vafvWSRmbhNcxJYqjCzuJg", "job_title": "Social Media Marketer", "pay_rate": 85000, "pay_period": "YEAR", "pay_frequency": "SEMIMONTHLY", "employment_type": "FULL_TIME", "pay_currency": "EUR", "effective_date": "2021-01-30T00:00:00Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}], "time_off_balances": [{"id": "FuyRuk5NqP3qTcThED3ymTuE", "remote_id": "124123", "employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j", "type_id": "BQJaBxRCiqN46G27VTegvkEr", "balance": 14, "balance_unit": "DAYS", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "used": 3, "used_unit": "DAYS"}], "manager": {"first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "id": "26vafvWSRmbhNcxJYqjCzuJg", "employee_number": "3243422", "work_email": "john.doe@acme.com", "remote_id": "32", "employment_status": "INACTIVE", "termination_date": "2022-05-20T00:00:00Z"}, "groups": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "type": "TEAM"}], "legal_entity": {"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}}, "work_location": {"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z"}}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "employee_number": "3243422", "first_name": "John", "last_name": "Doe", "nationality": "French", "display_full_name": "John Doe", "job_title": "Integrations Team Lead", "work_email": "john.doe@acme.com", "personal_email": "john@doe.me", "mobile_phone_number": "801-555-4687", "ssn": "555-32-6395", "tax_id": "12 345 678 901", "gender": "MALE", "ethnicity": "BLACK_AFRICAN_AMERICAN", "marital_status": "MARRIED", "employment_status": "INACTIVE", "employment_type": "FULL_TIME", "weekly_hours": 40, "avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png", "work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53", "legal_entity_id": "xB32bied320csBSsl3XWdlw33", "manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo", "home_address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "bank_accounts": [{"iban": "DE12345678901234567890", "bic": "COBADEFFXXX", "account_number": "1234567890", "holder_name": "John Doe", "bank_name": "Commerzbank", "domestic_bank_routing": {"number": "34567890", "type": "DE_BANKLEITZAHL"}}], "date_of_birth": "1986-01-01T00:00:00Z", "start_date": "2020-04-07T00:00:00Z", "termination_date": "2022-05-20T00:00:00Z", "remote_created_at": "2020-04-07T12:32:01Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}, "employments": [{"id": "12vpXR7BeqYNWDShXRgsonnm", "remote_id": "859", "employee_id": "26vafvWSRmbhNcxJYqjCzuJg", "job_title": "Social Media Marketer", "pay_rate": 85000, "pay_period": "YEAR", "pay_frequency": "SEMIMONTHLY", "employment_type": "FULL_TIME", "pay_currency": "EUR", "effective_date": "2021-01-30T00:00:00Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}], "time_off_balances": [{"id": "FuyRuk5NqP3qTcThED3ymTuE", "remote_id": "124123", "employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j", "type_id": "BQJaBxRCiqN46G27VTegvkEr", "balance": 14, "balance_unit": "DAYS", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "used": 3, "used_unit": "DAYS"}], "manager": {"first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "id": "26vafvWSRmbhNcxJYqjCzuJg", "employee_number": "3243422", "work_email": "john.doe@acme.com", "remote_id": "32", "employment_status": "INACTIVE", "termination_date": "2022-05-20T00:00:00Z"}, "groups": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "type": "TEAM"}], "legal_entity": {"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}}, "work_location": {"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z", "custom_fields": {}}}]}} default: application/json: {"status": "error", "error": {"code": "HRIS.EMPLOYEE_ALREADY_EXISTS", "title": "", "message": "", "log_url": "https://upbeat-conservation.name/"}} example1: @@ -5912,7 +5968,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "employee_number": "3243422", "first_name": "John", "last_name": "Doe", "nationality": "French", "display_full_name": "John Doe", "job_title": "Integrations Team Lead", "work_email": "john.doe@acme.com", "personal_email": "john@doe.me", "mobile_phone_number": "801-555-4687", "ssn": "555-32-6395", "tax_id": "12 345 678 901", "gender": "MALE", "ethnicity": "BLACK_AFRICAN_AMERICAN", "marital_status": "MARRIED", "employment_status": "INACTIVE", "employment_type": "FULL_TIME", "weekly_hours": 40, "avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png", "work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53", "legal_entity_id": "xB32bied320csBSsl3XWdlw33", "manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo", "home_address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "bank_accounts": [{"iban": "DE12345678901234567890", "bic": "COBADEFFXXX", "account_number": "1234567890", "holder_name": "John Doe", "bank_name": "Commerzbank", "domestic_bank_routing": {"number": "34567890", "type": "DE_BANKLEITZAHL"}}], "date_of_birth": "1986-01-01T00:00:00Z", "start_date": "2020-04-07T00:00:00Z", "termination_date": "2022-05-20T00:00:00Z", "remote_created_at": "2020-04-07T12:32:01Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}, "employments": [{"id": "12vpXR7BeqYNWDShXRgsonnm", "remote_id": "859", "employee_id": "26vafvWSRmbhNcxJYqjCzuJg", "job_title": "Social Media Marketer", "pay_rate": 85000, "pay_period": "YEAR", "pay_frequency": "SEMIMONTHLY", "employment_type": "FULL_TIME", "pay_currency": "EUR", "effective_date": "2021-01-30T00:00:00Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}], "time_off_balances": [{"id": "FuyRuk5NqP3qTcThED3ymTuE", "remote_id": "124123", "employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j", "type_id": "BQJaBxRCiqN46G27VTegvkEr", "balance": 14, "balance_unit": "DAYS", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "used": 3, "used_unit": "DAYS"}], "manager": {"first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "id": "26vafvWSRmbhNcxJYqjCzuJg", "employee_number": "3243422", "work_email": "john.doe@acme.com", "remote_id": "32", "employment_status": "INACTIVE", "termination_date": "2022-05-20T00:00:00Z"}, "groups": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "type": "TEAM"}], "legal_entity": {"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}}, "work_location": {"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z"}}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "employee_number": "3243422", "first_name": "John", "last_name": "Doe", "nationality": "French", "display_full_name": "John Doe", "job_title": "Integrations Team Lead", "work_email": "john.doe@acme.com", "personal_email": "john@doe.me", "mobile_phone_number": "801-555-4687", "ssn": "555-32-6395", "tax_id": "12 345 678 901", "gender": "MALE", "ethnicity": "BLACK_AFRICAN_AMERICAN", "marital_status": "MARRIED", "employment_status": "INACTIVE", "employment_type": "FULL_TIME", "weekly_hours": 40, "avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png", "work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53", "legal_entity_id": "xB32bied320csBSsl3XWdlw33", "manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo", "home_address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "bank_accounts": [{"iban": "DE12345678901234567890", "bic": "COBADEFFXXX", "account_number": "1234567890", "holder_name": "John Doe", "bank_name": "Commerzbank", "domestic_bank_routing": {"number": "34567890", "type": "DE_BANKLEITZAHL"}}], "date_of_birth": "1986-01-01T00:00:00Z", "start_date": "2020-04-07T00:00:00Z", "termination_date": "2022-05-20T00:00:00Z", "remote_created_at": "2020-04-07T12:32:01Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}, "employments": [{"id": "12vpXR7BeqYNWDShXRgsonnm", "remote_id": "859", "employee_id": "26vafvWSRmbhNcxJYqjCzuJg", "job_title": "Social Media Marketer", "pay_rate": 85000, "pay_period": "YEAR", "pay_frequency": "SEMIMONTHLY", "employment_type": "FULL_TIME", "pay_currency": "EUR", "effective_date": "2021-01-30T00:00:00Z", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}], "time_off_balances": [{"id": "FuyRuk5NqP3qTcThED3ymTuE", "remote_id": "124123", "employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j", "type_id": "BQJaBxRCiqN46G27VTegvkEr", "balance": 14, "balance_unit": "DAYS", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "used": 3, "used_unit": "DAYS"}], "manager": {"first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "id": "26vafvWSRmbhNcxJYqjCzuJg", "employee_number": "3243422", "work_email": "john.doe@acme.com", "remote_id": "32", "employment_status": "INACTIVE", "termination_date": "2022-05-20T00:00:00Z"}, "groups": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "type": "TEAM"}], "legal_entity": {"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}}, "work_location": {"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z", "custom_fields": {}}}]}} Error Response: parameters: query: @@ -6112,7 +6168,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "type": "TEAM", "parent_id": "KGaJ5XaVPob8mYVfD49W4DGB"}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "type": "TEAM", "parent_id": "KGaJ5XaVPob8mYVfD49W4DGB", "custom_fields": {}}]}} default: application/json: {"status": "error", "error": {"code": "HRIS.EMPLOYEE_ALREADY_EXISTS", "title": "", "message": "", "log_url": "https://gray-hovel.biz"}} example1: @@ -6125,7 +6181,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "type": "TEAM", "parent_id": "KGaJ5XaVPob8mYVfD49W4DGB"}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "Customer Success", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "type": "TEAM", "parent_id": "KGaJ5XaVPob8mYVfD49W4DGB", "custom_fields": {}}]}} Error Response: parameters: query: @@ -6206,7 +6262,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z"}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z", "custom_fields": {}}]}} default: application/json: {"status": "error", "error": {"code": "HRIS.EMPLOYEE_ALREADY_EXISTS", "title": null, "message": "", "log_url": "https://shady-millet.biz"}} example1: @@ -6219,7 +6275,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z"}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "22st2Ji8XpncEYEak8mvQgQF", "remote_id": "1348", "name": "Kombo HQ", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "type": "OFFICE", "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": "2022-08-07T14:01:29.196Z", "custom_fields": {}}]}} Error Response: parameters: query: @@ -6480,7 +6536,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}]}} default: application/json: {"status": "error", "error": {"code": "HRIS.EMPLOYEE_ALREADY_EXISTS", "title": "", "message": "", "log_url": "https://neighboring-ice-cream.org"}} example1: @@ -6493,7 +6549,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "4B9bKBpX5tnwjiG93TAqF7ci", "remote_id": "49", "name": "ACME Inc.", "address": {"city": "Berlin", "country": "DE", "raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany", "state": "Berlin", "street_1": "Sonnenallee 63", "street_2": null, "zip_code": "12045"}, "changed_at": "2022-08-07T14:01:29.196Z", "remote_deleted_at": null, "custom_fields": {}}]}} Error Response: parameters: query: @@ -8202,7 +8258,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "E4q8YceHEtPWeGwBAEcd9xPs", "remote_id": "300000331094861", "changed_at": "2026-01-10T12:32:01Z", "remote_deleted_at": null, "totals": {"gross_pay": {"currency": "USD", "value": 2207.75}, "net_pay": {"currency": "USD", "value": 1730.35}, "paid_amount": {"currency": "USD", "value": 1730.35}}, "employee": {"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "work_email": "john.doe@acme.com", "remote_deleted_at": null}, "pay_run": {"id": "HdyE3KNfcbNzXFRqwW1Wh2eP", "remote_id": "300000092871122", "start_date": "2026-01-01T00:00:00Z", "end_date": "2026-01-13T00:00:00Z", "legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"}, "line_items": [{"id": "8TMenmF8QVyP1EqagstHhsPG", "remote_id": "300000331094861:REGULAR_SALARY", "name": "Regular Salary", "amount": {"currency": "USD", "value": 2207.75}}, {"id": "CELfyfzuHs6Dz1MDPdoSCY3U", "remote_id": "300000331094861:FIT_WITHHELD", "name": "FIT Withheld", "amount": {"currency": "USD", "value": 235.94}}, {"id": "H1gPqyuZTK3y75NRxe4QZ3u7", "remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD", "name": "Social Security Employee Withheld", "amount": {"currency": "USD", "value": 136.88}}, {"id": "HEnJXik92Qqph5SX4NtK6NRM", "remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD", "name": "Medicare Employee Withheld", "amount": {"currency": "USD", "value": 32.01}}, {"id": "Ho16emGY5zVYeEc2nN9CWeKv", "remote_id": "300000331094861:SIT_WITHHELD_CA", "name": "SIT Withheld (CA)", "amount": {"currency": "USD", "value": 71.47}}, {"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ", "remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA", "name": "VPDI Employee Withheld (CA)", "amount": {"currency": "USD", "value": 1.1}}]}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "E4q8YceHEtPWeGwBAEcd9xPs", "remote_id": "300000331094861", "custom_fields": {}, "changed_at": "2026-01-10T12:32:01Z", "remote_deleted_at": null, "totals": {"gross_pay": {"currency": "USD", "value": 2207.75}, "net_pay": {"currency": "USD", "value": 1730.35}, "paid_amount": {"currency": "USD", "value": 1730.35}, "gross_pay_ytd": {"currency": "USD", "value": 4415.5}, "net_pay_ytd": {"currency": "USD", "value": 3460.7}, "paid_amount_ytd": {"currency": "USD", "value": 3460.7}}, "employee": {"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "work_email": "john.doe@acme.com", "remote_deleted_at": null}, "pay_run": {"id": "HdyE3KNfcbNzXFRqwW1Wh2eP", "remote_id": "300000092871122", "start_date": "2026-01-01T00:00:00Z", "end_date": "2026-01-13T00:00:00Z", "legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"}, "line_items": [{"id": "8TMenmF8QVyP1EqagstHhsPG", "remote_id": "300000331094861:REGULAR_SALARY", "name": "Regular Salary", "pay_code": {"remote_id": "200", "remote_label": "Regular Salary"}, "amount": {"currency": "USD", "value": 2207.75}, "amount_ytd": {"currency": "USD", "value": 4415.5}, "custom_fields": {}}, {"id": "CELfyfzuHs6Dz1MDPdoSCY3U", "remote_id": "300000331094861:FIT_WITHHELD", "name": "FIT Withheld", "pay_code": {"remote_id": "FIT", "remote_label": "FIT Withheld"}, "amount": {"currency": "USD", "value": 235.94}, "amount_ytd": {"currency": "USD", "value": 471.88}, "custom_fields": {}}, {"id": "H1gPqyuZTK3y75NRxe4QZ3u7", "remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD", "name": "Social Security Employee Withheld", "pay_code": {"remote_id": "SOCSEC", "remote_label": "Social Security Employee Withheld"}, "amount": {"currency": "USD", "value": 136.88}, "amount_ytd": {"currency": "USD", "value": 273.76}, "custom_fields": {}}, {"id": "HEnJXik92Qqph5SX4NtK6NRM", "remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD", "name": "Medicare Employee Withheld", "pay_code": {"remote_id": "MEDICARE", "remote_label": "Medicare Employee Withheld"}, "amount": {"currency": "USD", "value": 32.01}, "amount_ytd": {"currency": "USD", "value": 64.02}, "custom_fields": {}}, {"id": "Ho16emGY5zVYeEc2nN9CWeKv", "remote_id": "300000331094861:SIT_WITHHELD_CA", "name": "SIT Withheld (CA)", "pay_code": {"remote_id": "SIT_CA", "remote_label": "SIT Withheld (CA)"}, "amount": {"currency": "USD", "value": 71.47}, "amount_ytd": {"currency": "USD", "value": 142.94}, "custom_fields": {}}, {"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ", "remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA", "name": "VPDI Employee Withheld (CA)", "pay_code": {"remote_id": "VPDI_CA", "remote_label": "VPDI Employee Withheld (CA)"}, "amount": {"currency": "USD", "value": 1.1}, "amount_ytd": {"currency": "USD", "value": 2.2}, "custom_fields": {}}]}]}} default: application/json: {"status": "error", "error": {"code": "HRIS.EMPLOYEE_ALREADY_EXISTS", "title": "", "message": "", "log_url": "https://shiny-deck.org"}} example1: @@ -8215,7 +8271,7 @@ examples: X-Integration-Id: "workday:HWUTwvyx2wLoSUHphiWVrp28" responses: "200": - application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "E4q8YceHEtPWeGwBAEcd9xPs", "remote_id": "300000331094861", "changed_at": "2026-01-10T12:32:01Z", "remote_deleted_at": null, "totals": {"gross_pay": {"currency": "USD", "value": 2207.75}, "net_pay": {"currency": "USD", "value": 1730.35}, "paid_amount": {"currency": "USD", "value": 1730.35}}, "employee": {"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "work_email": "john.doe@acme.com", "remote_deleted_at": null}, "pay_run": {"id": "HdyE3KNfcbNzXFRqwW1Wh2eP", "remote_id": "300000092871122", "start_date": "2026-01-01T00:00:00Z", "end_date": "2026-01-13T00:00:00Z", "legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"}, "line_items": [{"id": "8TMenmF8QVyP1EqagstHhsPG", "remote_id": "300000331094861:REGULAR_SALARY", "name": "Regular Salary", "amount": {"currency": "USD", "value": 2207.75}}, {"id": "CELfyfzuHs6Dz1MDPdoSCY3U", "remote_id": "300000331094861:FIT_WITHHELD", "name": "FIT Withheld", "amount": {"currency": "USD", "value": 235.94}}, {"id": "H1gPqyuZTK3y75NRxe4QZ3u7", "remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD", "name": "Social Security Employee Withheld", "amount": {"currency": "USD", "value": 136.88}}, {"id": "HEnJXik92Qqph5SX4NtK6NRM", "remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD", "name": "Medicare Employee Withheld", "amount": {"currency": "USD", "value": 32.01}}, {"id": "Ho16emGY5zVYeEc2nN9CWeKv", "remote_id": "300000331094861:SIT_WITHHELD_CA", "name": "SIT Withheld (CA)", "amount": {"currency": "USD", "value": 71.47}}, {"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ", "remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA", "name": "VPDI Employee Withheld (CA)", "amount": {"currency": "USD", "value": 1.1}}]}]}} + application/json: {"status": "success", "data": {"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=", "results": [{"id": "E4q8YceHEtPWeGwBAEcd9xPs", "remote_id": "300000331094861", "custom_fields": {}, "changed_at": "2026-01-10T12:32:01Z", "remote_deleted_at": null, "totals": {"gross_pay": {"currency": "USD", "value": 2207.75}, "net_pay": {"currency": "USD", "value": 1730.35}, "paid_amount": {"currency": "USD", "value": 1730.35}, "gross_pay_ytd": {"currency": "USD", "value": 4415.5}, "net_pay_ytd": {"currency": "USD", "value": 3460.7}, "paid_amount_ytd": {"currency": "USD", "value": 3460.7}}, "employee": {"id": "26vafvWSRmbhNcxJYqjCzuJg", "remote_id": "32", "first_name": "John", "last_name": "Doe", "display_full_name": "John Doe", "work_email": "john.doe@acme.com", "remote_deleted_at": null}, "pay_run": {"id": "HdyE3KNfcbNzXFRqwW1Wh2eP", "remote_id": "300000092871122", "start_date": "2026-01-01T00:00:00Z", "end_date": "2026-01-13T00:00:00Z", "legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"}, "line_items": [{"id": "8TMenmF8QVyP1EqagstHhsPG", "remote_id": "300000331094861:REGULAR_SALARY", "name": "Regular Salary", "pay_code": {"remote_id": "200", "remote_label": "Regular Salary"}, "amount": {"currency": "USD", "value": 2207.75}, "amount_ytd": {"currency": "USD", "value": 4415.5}, "custom_fields": {}}, {"id": "CELfyfzuHs6Dz1MDPdoSCY3U", "remote_id": "300000331094861:FIT_WITHHELD", "name": "FIT Withheld", "pay_code": {"remote_id": "FIT", "remote_label": "FIT Withheld"}, "amount": {"currency": "USD", "value": 235.94}, "amount_ytd": {"currency": "USD", "value": 471.88}, "custom_fields": {}}, {"id": "H1gPqyuZTK3y75NRxe4QZ3u7", "remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD", "name": "Social Security Employee Withheld", "pay_code": {"remote_id": "SOCSEC", "remote_label": "Social Security Employee Withheld"}, "amount": {"currency": "USD", "value": 136.88}, "amount_ytd": {"currency": "USD", "value": 273.76}, "custom_fields": {}}, {"id": "HEnJXik92Qqph5SX4NtK6NRM", "remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD", "name": "Medicare Employee Withheld", "pay_code": {"remote_id": "MEDICARE", "remote_label": "Medicare Employee Withheld"}, "amount": {"currency": "USD", "value": 32.01}, "amount_ytd": {"currency": "USD", "value": 64.02}, "custom_fields": {}}, {"id": "Ho16emGY5zVYeEc2nN9CWeKv", "remote_id": "300000331094861:SIT_WITHHELD_CA", "name": "SIT Withheld (CA)", "pay_code": {"remote_id": "SIT_CA", "remote_label": "SIT Withheld (CA)"}, "amount": {"currency": "USD", "value": 71.47}, "amount_ytd": {"currency": "USD", "value": 142.94}, "custom_fields": {}}, {"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ", "remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA", "name": "VPDI Employee Withheld (CA)", "pay_code": {"remote_id": "VPDI_CA", "remote_label": "VPDI Employee Withheld (CA)"}, "amount": {"currency": "USD", "value": 1.1}, "amount_ytd": {"currency": "USD", "value": 2.2}, "custom_fields": {}}]}]}} Error Response: parameters: query: @@ -8333,7 +8389,7 @@ examples: default: application/json: {"status": "error", "error": {"code": null, "title": null, "message": "The message is always in the response.", "log_url": null}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `kombo.hris.get_hris_pay_runs()`: **Added**\n* `kombo.hris.get_hris_payslips()`: **Added**\n* `kombo.ats.get_ats_scorecards()`: **Added**\n* `kombo.ats.get_ats_attachments()`: **Added**\n* `kombo.ats.create_candidate()`: `request.remote_fields` **Changed**\n* `kombo.ats.create_application()`: `request.remote_fields` **Changed**\n* `kombo.connect.create_connection_link()`: \n * `request` **Changed**\n * `response.data.static_ips` **Added**\n" +releaseNotes: "## Python SDK Changes:\n* `kombo.hris.get_employees()`: `response.data.results[]` **Changed** (Breaking ⚠️)\n* `kombo.hris.get_groups()`: `response.data.results[].custom_fields` **Added**\n* `kombo.hris.get_locations()`: `response.data.results[].custom_fields` **Added**\n* `kombo.hris.get_legal_entities()`: `response.data.results[].custom_fields` **Added**\n* `kombo.hris.get_hris_payslips()`: `response.data.results[]` **Changed**\n* `kombo.ats.move_application_to_stage()`: \n * `request.remote_fields.lever` **Added**\n* `kombo.ats.add_application_result_link()`: \n * `request.remote_fields.traffit` **Added**\n* `kombo.ats.add_application_note()`: `request.title` **Added**\n* `kombo.ats.create_candidate()`: `request.remote_fields` **Changed**\n* `kombo.ats.add_candidate_result_link()`: \n * `request.remote_fields.traffit` **Added**\n* `kombo.ats.create_application()`: `request.remote_fields` **Changed**\n* `kombo.connect.create_connection_link()`: `request.integration_tool` **Changed**\n" generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d3864fe8..e36c0509 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,6 +15,7 @@ generation: sharedErrorComponentsApr2025: true sharedNestedComponentsJan2026: false nameOverrideFeb2026: false + openSingleValueEnumsOct2026: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true @@ -31,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false python: - version: 1.4.0 + version: 1.4.1 additionalDependencies: dev: inline-snapshot: '>=0.13.0' @@ -85,6 +86,7 @@ python: methodArguments: infer-optional-args methodTimeoutArgument: timeout-ms methodTimeoutUnits: milliseconds + modelSerializationMethods: false moduleName: "" multipartArrayFormat: legacy optionalDependencies: {} @@ -92,6 +94,7 @@ python: packageManager: uv packageName: kombo preApplyUnionDiscriminators: false + preserveUnknownFields: false pytestFilterWarnings: [] pytestTimeout: 0 rawResponseHelpers: false diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1c336595..7fd88bce 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.798.0 +speakeasyVersion: 1.808.0 sources: kombo-prepared-spec: sourceNamespace: kombo-api - sourceRevisionDigest: sha256:b5f1845cda8b548154d1b9e835e2fc701e8e1c3834417aa57f898c58f6c0f04d - sourceBlobDigest: sha256:0f7e67ea4d75aabbe0572c1351117ff92fb10204f63da3188353463a33238a23 + sourceRevisionDigest: sha256:d76da3b46f2c876973442458b46ae62d2f773b657c03e53a69a617e746492ebd + sourceBlobDigest: sha256:6a76d404a9f1e71b6016c08d9d4b4483f092e643669ad8eec250332450d0bcfb tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: kombo-python: source: kombo-prepared-spec sourceNamespace: kombo-api - sourceRevisionDigest: sha256:b5f1845cda8b548154d1b9e835e2fc701e8e1c3834417aa57f898c58f6c0f04d - sourceBlobDigest: sha256:0f7e67ea4d75aabbe0572c1351117ff92fb10204f63da3188353463a33238a23 + sourceRevisionDigest: sha256:d76da3b46f2c876973442458b46ae62d2f773b657c03e53a69a617e746492ebd + sourceBlobDigest: sha256:6a76d404a9f1e71b6016c08d9d4b4483f092e643669ad8eec250332450d0bcfb codeSamplesNamespace: kombo-api-python-code-samples - codeSamplesRevisionDigest: sha256:09b567362c7cbe45b3efd85b9e09f2ddaa71397016181f0b8a12c33acf9b31cc + codeSamplesRevisionDigest: sha256:82d1b4ab5d092bfa6e5868cec7d96b385d5f74ea4517a31e2ddcbf9b72571536 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README-PYPI.md b/README-PYPI.md index 8c2e8092..3e14d7f3 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -501,6 +501,7 @@ def main(): api_key="", ) as k_client: # Rest of application here... + pass # Or when using async: @@ -510,6 +511,7 @@ async def amain(): api_key="", ) as k_client: # Rest of application here... + pass ``` diff --git a/README.md b/README.md index 33c038f5..57040b16 100644 --- a/README.md +++ b/README.md @@ -501,6 +501,7 @@ def main(): api_key="", ) as k_client: # Rest of application here... + pass # Or when using async: @@ -510,6 +511,7 @@ async def amain(): api_key="", ) as k_client: # Rest of application here... + pass ``` diff --git a/RELEASES.md b/RELEASES.md index 577778bc..0b507162 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -308,4 +308,14 @@ Based on: ### Generated - [python v1.4.0] . ### Releases -- [PyPI v1.4.0] https://pypi.org/project/kombo/1.4.0 - . \ No newline at end of file +- [PyPI v1.4.0] https://pypi.org/project/kombo/1.4.0 - . + +## 2026-11-10 10:10:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.808.0 (2.960.7) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.4.1] . +### Releases +- [PyPI v1.4.1] https://pypi.org/project/kombo/1.4.1 - . \ No newline at end of file diff --git a/docs/models/amount.md b/docs/models/amount.md index bcaccc5b..95559a7f 100644 --- a/docs/models/amount.md +++ b/docs/models/amount.md @@ -5,7 +5,7 @@ The amount of the line item. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/amountytd.md b/docs/models/amountytd.md new file mode 100644 index 00000000..961d44ad --- /dev/null +++ b/docs/models/amountytd.md @@ -0,0 +1,11 @@ +# AmountYtd + +The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/domesticbankrouting.md b/docs/models/domesticbankrouting.md index 8d46bbb7..909c3d38 100644 --- a/docs/models/domesticbankrouting.md +++ b/docs/models/domesticbankrouting.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `number` | *str* | :heavy_check_mark: | Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45). | -| `type` | [Nullable[models.DomesticBankRoutingType]](../models/domesticbankroutingtype.md) | :heavy_check_mark: | Enum of the routing type, prefixed with the iso-3166-1-alpha-2 banks origin country. If there is uncertainty about the type, it will be set to null. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `number` | *str* | :heavy_check_mark: | Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code, SG bank and branch code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45). | +| `type` | [Nullable[models.DomesticBankRoutingType]](../models/domesticbankroutingtype.md) | :heavy_check_mark: | Enum of the routing type, prefixed with the iso-3166-1-alpha-2 banks origin country. If there is uncertainty about the type, it will be set to null. | \ No newline at end of file diff --git a/docs/models/domesticbankroutingtype.md b/docs/models/domesticbankroutingtype.md index 318b6b37..dd4b52dd 100644 --- a/docs/models/domesticbankroutingtype.md +++ b/docs/models/domesticbankroutingtype.md @@ -18,3 +18,4 @@ value: DomesticBankRoutingType = "GB_SORT_CODE" - `"CA_ROUTING_NUMBER"` - `"AU_BSB_CODE"` - `"FR_RIB"` +- `"SG_BANK_BRANCH_CODE"` diff --git a/docs/models/getatsjobspositiveresponsehiringteam.md b/docs/models/getatsjobspositiveresponsehiringteam.md index 8d66b194..70cc6eae 100644 --- a/docs/models/getatsjobspositiveresponsehiringteam.md +++ b/docs/models/getatsjobspositiveresponsehiringteam.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. | | -| `remote_id` | *Nullable[str]* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. | | -| `first_name` | *Nullable[str]* | :heavy_check_mark: | First name of the user. | | -| `last_name` | *Nullable[str]* | :heavy_check_mark: | Last name of the user. | | -| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the user. If the email address is invalid, it will be set to null. | | -| ~~`hiring_team_roles`~~ | List[[models.GetAtsJobsPositiveResponseHiringTeamRole](../models/getatsjobspositiveresponsehiringteamrole.md)] | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use `job_roles` to access the full list of job roles (including custom labels and unmapped roles).)** Array of the roles of the user for this specific job. Example: ["RECRUITER", "HIRING_MANAGER"]. | [
"RECRUITER",
"HIRING_MANAGER"
] | -| `job_roles` | List[[models.JobRole](../models/jobrole.md)] | :heavy_check_mark: | Roles assigned to this user for this job.

Visit our in-depth guide about [roles](/ats/features/roles) to learn more.

Use `system_roles` on the `/v1/ats/users` endpoint for system-wide roles. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. | | +| `remote_id` | *Nullable[str]* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. | | +| `first_name` | *Nullable[str]* | :heavy_check_mark: | First name of the user. | | +| `last_name` | *Nullable[str]* | :heavy_check_mark: | Last name of the user. | | +| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the user. If the email address is invalid, it will be set to null. | | +| ~~`hiring_team_roles`~~ | List[[models.GetAtsJobsPositiveResponseHiringTeamRole](../models/getatsjobspositiveresponsehiringteamrole.md)] | :heavy_check_mark: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use `job_roles` to access the full list of job roles (including custom labels and unmapped roles).)** Array of the roles of the user for this specific job. Example: ["RECRUITER", "HIRING_MANAGER"]. | [
"RECRUITER",
"HIRING_MANAGER"
] | +| `job_roles` | List[[models.JobRole](../models/jobrole.md)] | :heavy_check_mark: | Roles assigned to this user for this job.

Visit our in-depth guide about [roles](/ats/features/roles) to learn more.

Use `system_roles` on the `/v1/ats/users` endpoint for system-wide roles. | | \ No newline at end of file diff --git a/docs/models/getatsjobspositiveresponseresult.md b/docs/models/getatsjobspositiveresponseresult.md index c8a1fdab..4c31a0eb 100644 --- a/docs/models/getatsjobspositiveresponseresult.md +++ b/docs/models/getatsjobspositiveresponseresult.md @@ -10,7 +10,7 @@ | `name` | *Nullable[str]* | :heavy_check_mark: | Title of the job. | | `job_code` | *Nullable[str]* | :heavy_check_mark: | The human readable job code. Some systems expose this as the Requisition Code/ID. | | `description` | *Nullable[str]* | :heavy_check_mark: | Description of the job. This field is usually returned as HTML. | -| ~~`confidential`~~ | *Nullable[bool]* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated)** It makes more sense to store the visibility of a job in an enum. Therefore, we introduced the `visibility` enum on jobs. | +| ~~`confidential`~~ | *Nullable[bool]* | :heavy_check_mark: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated)** It makes more sense to store the visibility of a job in an enum. Therefore, we introduced the `visibility` enum on jobs. | | `weekly_hours` | *Nullable[float]* | :heavy_check_mark: | The number of hours per week an employee is expected to work. | | `employment_type` | [OptionalNullable[models.GetAtsJobsPositiveResponseEmploymentType]](../models/getatsjobspositiveresponseemploymenttype.md) | :heavy_minus_sign: | The type of employment contract. In rare cases where can't find a clear mapping, the original string is passed through. | | `status` | [OptionalNullable[models.GetAtsJobsPositiveResponseStatus]](../models/getatsjobspositiveresponsestatus.md) | :heavy_minus_sign: | The job's current status.

*Note: For any checks (e.g., "can we publish this job?"), always evaluate both `status` and `visibility`. For example, a job can be `status=OPEN` with `visibility=INTERNAL`, meaning only existing employees can apply.*

In rare cases where we can’t find a clear mapping, the original string is passed through. | @@ -32,7 +32,7 @@ | `closed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date the job closed or is scheduled to close. A future value typically indicates the job remains open for applications until that date.

Please use the `status` and `visibility` fields to determine if a job can be published.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `remote_created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was created in the remote system.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `remote_updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | A timestamp retrieved from the remote system, describing when the resource was last updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | -| ~~`contact_id`~~ | *Nullable[str]* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated)** The user ID of the contact person for this job. We strongly recommend using the new `hiring_team` property instead as it provides more complete and accurate information about the ATS users connected to a job. | +| ~~`contact_id`~~ | *Nullable[str]* | :heavy_check_mark: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated)** The user ID of the contact person for this job. We strongly recommend using the new `hiring_team` property instead as it provides more complete and accurate information about the ATS users connected to a job. | | `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `stages` | List[[models.Stage](../models/stage.md)] | :heavy_check_mark: | Application stages a candidate can be in for this particular job. | diff --git a/docs/models/gethrisemployeespositiveresponse.md b/docs/models/gethrisemployeespositiveresponse.md index 6a70ac2f..6c55f306 100644 --- a/docs/models/gethrisemployeespositiveresponse.md +++ b/docs/models/gethrisemployeespositiveresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | -| `data` | [models.GetHrisEmployeesPositiveResponseData](../models/gethrisemployeespositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"employee_number": "3243422",
"first_name": "John",
"last_name": "Doe",
"nationality": "French",
"display_full_name": "John Doe",
"job_title": "Integrations Team Lead",
"work_email": "john.doe@acme.com",
"personal_email": "john@doe.me",
"mobile_phone_number": "801-555-4687",
"ssn": "555-32-6395",
"tax_id": "12 345 678 901",
"gender": "MALE",
"ethnicity": "BLACK_AFRICAN_AMERICAN",
"marital_status": "MARRIED",
"employment_status": "INACTIVE",
"employment_type": "FULL_TIME",
"weekly_hours": 40,
"avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png",
"work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53",
"legal_entity_id": "xB32bied320csBSsl3XWdlw33",
"manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo",
"home_address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"bank_accounts": [
{
"account_number": "1234567890",
"bank_name": "Commerzbank",
"bic": "COBADEFFXXX",
"domestic_bank_routing": {
"number": "34567890",
"type": "DE_BANKLEITZAHL"
},
"holder_name": "John Doe",
"iban": "DE12345678901234567890"
}
],
"date_of_birth": "1986-01-01T00:00:00Z",
"start_date": "2020-04-07T00:00:00Z",
"termination_date": "2022-05-20T00:00:00Z",
"remote_created_at": "2020-04-07T12:32:01Z",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"custom_fields": {},
"integration_fields": [],
"remote_data": null,
"employments": [
{
"id": "12vpXR7BeqYNWDShXRgsonnm",
"remote_id": "859",
"employee_id": "26vafvWSRmbhNcxJYqjCzuJg",
"job_title": "Social Media Marketer",
"pay_rate": 85000,
"pay_period": "YEAR",
"pay_frequency": "SEMIMONTHLY",
"employment_type": "FULL_TIME",
"pay_currency": "EUR",
"effective_date": "2021-01-30T00:00:00Z",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
],
"time_off_balances": [
{
"id": "FuyRuk5NqP3qTcThED3ymTuE",
"remote_id": "124123",
"employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j",
"type_id": "BQJaBxRCiqN46G27VTegvkEr",
"balance": 14,
"balance_unit": "DAYS",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"used": 3,
"used_unit": "DAYS",
"remote_data": null
}
],
"manager": {
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"employee_number": "3243422",
"work_email": "john.doe@acme.com",
"remote_id": "32",
"employment_status": "INACTIVE",
"termination_date": "2022-05-20T00:00:00Z"
},
"groups": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"type": "TEAM"
}
],
"legal_entity": {
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "ACME Inc.",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
}
},
"teams": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"type": "TEAM"
}
],
"work_location": {
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null
}
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | +| `data` | [models.GetHrisEmployeesPositiveResponseData](../models/gethrisemployeespositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"employee_number": "3243422",
"first_name": "John",
"last_name": "Doe",
"nationality": "French",
"display_full_name": "John Doe",
"job_title": "Integrations Team Lead",
"work_email": "john.doe@acme.com",
"personal_email": "john@doe.me",
"mobile_phone_number": "801-555-4687",
"ssn": "555-32-6395",
"tax_id": "12 345 678 901",
"gender": "MALE",
"ethnicity": "BLACK_AFRICAN_AMERICAN",
"marital_status": "MARRIED",
"employment_status": "INACTIVE",
"employment_type": "FULL_TIME",
"weekly_hours": 40,
"avatar": "https://resources.bamboohr.com/images/photo_person_150x150.png",
"work_location_id": "7E2gyuv6TmvtByzBxW9Sxt53",
"legal_entity_id": "xB32bied320csBSsl3XWdlw33",
"manager_id": "9pf2pxBB8VX8EQMC9aipW2Bo",
"home_address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"bank_accounts": [
{
"account_number": "1234567890",
"bank_name": "Commerzbank",
"bic": "COBADEFFXXX",
"domestic_bank_routing": {
"number": "34567890",
"type": "DE_BANKLEITZAHL"
},
"holder_name": "John Doe",
"iban": "DE12345678901234567890"
}
],
"date_of_birth": "1986-01-01T00:00:00Z",
"start_date": "2020-04-07T00:00:00Z",
"termination_date": "2022-05-20T00:00:00Z",
"remote_created_at": "2020-04-07T12:32:01Z",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"custom_fields": {},
"integration_fields": [],
"remote_data": null,
"employments": [
{
"id": "12vpXR7BeqYNWDShXRgsonnm",
"remote_id": "859",
"employee_id": "26vafvWSRmbhNcxJYqjCzuJg",
"job_title": "Social Media Marketer",
"pay_rate": 85000,
"pay_period": "YEAR",
"pay_frequency": "SEMIMONTHLY",
"employment_type": "FULL_TIME",
"pay_currency": "EUR",
"effective_date": "2021-01-30T00:00:00Z",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
],
"time_off_balances": [
{
"id": "FuyRuk5NqP3qTcThED3ymTuE",
"remote_id": "124123",
"employee_id": "2Up4ZCvq1bFVzmzXG6EWzV3j",
"type_id": "BQJaBxRCiqN46G27VTegvkEr",
"balance": 14,
"balance_unit": "DAYS",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"used": 3,
"used_unit": "DAYS",
"remote_data": null
}
],
"manager": {
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"employee_number": "3243422",
"work_email": "john.doe@acme.com",
"remote_id": "32",
"employment_status": "INACTIVE",
"termination_date": "2022-05-20T00:00:00Z"
},
"groups": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"type": "TEAM"
}
],
"legal_entity": {
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "ACME Inc.",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
}
},
"teams": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"type": "TEAM"
}
],
"work_location": {
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
}
]
} | \ No newline at end of file diff --git a/docs/models/gethrisemployeespositiveresponseresult.md b/docs/models/gethrisemployeespositiveresponseresult.md index 3abc2b87..15ad8432 100644 --- a/docs/models/gethrisemployeespositiveresponseresult.md +++ b/docs/models/gethrisemployeespositiveresponseresult.md @@ -42,4 +42,4 @@ | `manager` | [Nullable[models.Manager]](../models/manager.md) | :heavy_check_mark: | N/A | {
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"employee_number": "3243422",
"work_email": "john.doe@acme.com",
"remote_id": "32",
"employment_status": "INACTIVE",
"termination_date": "2022-05-20T00:00:00Z"
} | | `groups` | List[[models.GetHrisEmployeesPositiveResponseGroup](../models/gethrisemployeespositiveresponsegroup.md)] | :heavy_check_mark: | N/A | | | `legal_entity` | [Nullable[models.GetHrisEmployeesPositiveResponseLegalEntity]](../models/gethrisemployeespositiveresponselegalentity.md) | :heavy_check_mark: | N/A | {
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "ACME Inc.",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
}
} | -| `work_location` | [Nullable[models.WorkLocation]](../models/worklocation.md) | :heavy_check_mark: | N/A | {
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null
} | \ No newline at end of file +| `work_location` | [Nullable[models.WorkLocation]](../models/worklocation.md) | :heavy_check_mark: | N/A | {
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": {},
"integration_fields": []
} | \ No newline at end of file diff --git a/docs/models/gethrisgroupspositiveresponse.md b/docs/models/gethrisgroupspositiveresponse.md index ff0b4c9a..2ee8a2ae 100644 --- a/docs/models/gethrisgroupspositiveresponse.md +++ b/docs/models/gethrisgroupspositiveresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | -| `data` | [models.GetHrisGroupsPositiveResponseData](../models/gethrisgroupspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"type": "TEAM",
"parent_id": "KGaJ5XaVPob8mYVfD49W4DGB",
"remote_data": null
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | +| `data` | [models.GetHrisGroupsPositiveResponseData](../models/gethrisgroupspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "Customer Success",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"type": "TEAM",
"parent_id": "KGaJ5XaVPob8mYVfD49W4DGB",
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
]
} | \ No newline at end of file diff --git a/docs/models/gethrisgroupspositiveresponseresult.md b/docs/models/gethrisgroupspositiveresponseresult.md index 9b2f04d8..150fde6d 100644 --- a/docs/models/gethrisgroupspositiveresponseresult.md +++ b/docs/models/gethrisgroupspositiveresponseresult.md @@ -11,4 +11,5 @@ | `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | `type` | [Nullable[models.GetHrisGroupsPositiveResponseType]](../models/gethrisgroupspositiveresponsetype.md) | :heavy_check_mark: | Type of the group. | -| `parent_id` | *Nullable[str]* | :heavy_check_mark: | The Kombo ID of the group’s parent group in the organizational structure. The ID can be used to retrieve the group from the `get groups` endpoint. | \ No newline at end of file +| `parent_id` | *Nullable[str]* | :heavy_check_mark: | The Kombo ID of the group’s parent group in the organizational structure. The ID can be used to retrieve the group from the `get groups` endpoint. | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | \ No newline at end of file diff --git a/docs/models/gethrislegalentitiespositiveresponse.md b/docs/models/gethrislegalentitiespositiveresponse.md index ff317dce..9b0b6e3b 100644 --- a/docs/models/gethrislegalentitiespositiveresponse.md +++ b/docs/models/gethrislegalentitiespositiveresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | -| `data` | [models.GetHrisLegalEntitiesPositiveResponseData](../models/gethrislegalentitiespositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "ACME Inc.",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"remote_data": null
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | +| `data` | [models.GetHrisLegalEntitiesPositiveResponseData](../models/gethrislegalentitiespositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "4B9bKBpX5tnwjiG93TAqF7ci",
"remote_id": "49",
"name": "ACME Inc.",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": null,
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
]
} | \ No newline at end of file diff --git a/docs/models/gethrislegalentitiespositiveresponseresult.md b/docs/models/gethrislegalentitiespositiveresponseresult.md index 09591b1e..d6c44fba 100644 --- a/docs/models/gethrislegalentitiespositiveresponseresult.md +++ b/docs/models/gethrislegalentitiespositiveresponseresult.md @@ -10,4 +10,5 @@ | `name` | *Nullable[str]* | :heavy_check_mark: | The legal entity’s name. | | `address` | [OptionalNullable[models.GetHrisLegalEntitiesPositiveResponseAddress]](../models/gethrislegalentitiespositiveresponseaddress.md) | :heavy_minus_sign: | The legal entity’s address. | | `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | -| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | \ No newline at end of file +| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | \ No newline at end of file diff --git a/docs/models/gethrislocationspositiveresponse.md b/docs/models/gethrislocationspositiveresponse.md index 0dab7cda..04b42f85 100644 --- a/docs/models/gethrislocationspositiveresponse.md +++ b/docs/models/gethrislocationspositiveresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | -| `data` | [models.GetHrisLocationsPositiveResponseData](../models/gethrislocationspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | +| `data` | [models.GetHrisLocationsPositiveResponseData](../models/gethrislocationspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "22st2Ji8XpncEYEak8mvQgQF",
"remote_id": "1348",
"name": "Kombo HQ",
"address": {
"city": "Berlin",
"country": "DE",
"raw": "Sonnenallee 63\n12045 Berlin, Berlin\nGermany",
"state": "Berlin",
"street_1": "Sonnenallee 63",
"street_2": null,
"zip_code": "12045"
},
"type": "OFFICE",
"changed_at": "2022-08-07T14:01:29.196Z",
"remote_deleted_at": "2022-08-07T14:01:29.196Z",
"remote_data": null,
"custom_fields": {},
"integration_fields": []
}
]
} | \ No newline at end of file diff --git a/docs/models/gethrislocationspositiveresponseresult.md b/docs/models/gethrislocationspositiveresponseresult.md index e3a06310..bb9a6549 100644 --- a/docs/models/gethrislocationspositiveresponseresult.md +++ b/docs/models/gethrislocationspositiveresponseresult.md @@ -11,4 +11,5 @@ | `address` | [OptionalNullable[models.GetHrisLocationsPositiveResponseAddress]](../models/gethrislocationspositiveresponseaddress.md) | :heavy_minus_sign: | The work location’s address | | `type` | *Nullable[str]* | :heavy_check_mark: | The work location’s type. A freeform string. | | `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | -| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | \ No newline at end of file +| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | \ No newline at end of file diff --git a/docs/models/gethrispayrunspositiveresponsegrosspay.md b/docs/models/gethrispayrunspositiveresponsegrosspay.md index 5c996142..8c06abd7 100644 --- a/docs/models/gethrispayrunspositiveresponsegrosspay.md +++ b/docs/models/gethrispayrunspositiveresponsegrosspay.md @@ -5,7 +5,7 @@ The total gross pay for the pay run, before taxes and after gross deductions. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayrunspositiveresponsenetpay.md b/docs/models/gethrispayrunspositiveresponsenetpay.md index b4d922c7..3b97678d 100644 --- a/docs/models/gethrispayrunspositiveresponsenetpay.md +++ b/docs/models/gethrispayrunspositiveresponsenetpay.md @@ -5,7 +5,7 @@ The total net pay for the pay run, after taxes have been applied to the gross pa ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayrunspositiveresponsepaidamount.md b/docs/models/gethrispayrunspositiveresponsepaidamount.md index dc06cdac..6ad9e35a 100644 --- a/docs/models/gethrispayrunspositiveresponsepaidamount.md +++ b/docs/models/gethrispayrunspositiveresponsepaidamount.md @@ -5,7 +5,7 @@ The total amount paid out through the pay run. This value accounts for net earni ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponse.md b/docs/models/gethrispayslipspositiveresponse.md index 94601e33..b8b7960e 100644 --- a/docs/models/gethrispayslipspositiveresponse.md +++ b/docs/models/gethrispayslipspositiveresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | -| `data` | [models.GetHrisPayslipsPositiveResponseData](../models/gethrispayslipspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "E4q8YceHEtPWeGwBAEcd9xPs",
"remote_id": "300000331094861",
"changed_at": "2026-01-10T12:32:01Z",
"remote_deleted_at": null,
"remote_data": null,
"totals": {
"gross_pay": {
"currency": "USD",
"value": 2207.75
},
"net_pay": {
"currency": "USD",
"value": 1730.35
},
"paid_amount": {
"currency": "USD",
"value": 1730.35
}
},
"employee": {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"work_email": "john.doe@acme.com",
"remote_deleted_at": null
},
"pay_run": {
"id": "HdyE3KNfcbNzXFRqwW1Wh2eP",
"remote_id": "300000092871122",
"start_date": "2026-01-01T00:00:00Z",
"end_date": "2026-01-13T00:00:00Z",
"legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"
},
"line_items": [
{
"id": "8TMenmF8QVyP1EqagstHhsPG",
"remote_id": "300000331094861:REGULAR_SALARY",
"name": "Regular Salary",
"amount": {
"currency": "USD",
"value": 2207.75
}
},
{
"id": "CELfyfzuHs6Dz1MDPdoSCY3U",
"remote_id": "300000331094861:FIT_WITHHELD",
"name": "FIT Withheld",
"amount": {
"currency": "USD",
"value": 235.94
}
},
{
"id": "H1gPqyuZTK3y75NRxe4QZ3u7",
"remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD",
"name": "Social Security Employee Withheld",
"amount": {
"currency": "USD",
"value": 136.88
}
},
{
"id": "HEnJXik92Qqph5SX4NtK6NRM",
"remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD",
"name": "Medicare Employee Withheld",
"amount": {
"currency": "USD",
"value": 32.01
}
},
{
"id": "Ho16emGY5zVYeEc2nN9CWeKv",
"remote_id": "300000331094861:SIT_WITHHELD_CA",
"name": "SIT Withheld (CA)",
"amount": {
"currency": "USD",
"value": 71.47
}
},
{
"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ",
"remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA",
"name": "VPDI Employee Withheld (CA)",
"amount": {
"currency": "USD",
"value": 1.1
}
}
]
}
]
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `status` | *Literal["success"]* | :heavy_check_mark: | N/A | | +| `data` | [models.GetHrisPayslipsPositiveResponseData](../models/gethrispayslipspositiveresponsedata.md) | :heavy_check_mark: | N/A | {
"next": "eyJwYWdlIjoxMiwibm90ZSI6InRoaXMgaXMganVzdCBhbiBleGFtcGxlIGFuZCBub3QgcmVwcmVzZW50YXRpdmUgZm9yIGEgcmVhbCBjdXJzb3IhIn0=",
"results": [
{
"id": "E4q8YceHEtPWeGwBAEcd9xPs",
"remote_id": "300000331094861",
"custom_fields": {},
"integration_fields": [],
"changed_at": "2026-01-10T12:32:01Z",
"remote_deleted_at": null,
"remote_data": null,
"totals": {
"gross_pay": {
"currency": "USD",
"value": 2207.75
},
"net_pay": {
"currency": "USD",
"value": 1730.35
},
"paid_amount": {
"currency": "USD",
"value": 1730.35
},
"gross_pay_ytd": {
"currency": "USD",
"value": 4415.5
},
"net_pay_ytd": {
"currency": "USD",
"value": 3460.7
},
"paid_amount_ytd": {
"currency": "USD",
"value": 3460.7
}
},
"employee": {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"work_email": "john.doe@acme.com",
"remote_deleted_at": null
},
"pay_run": {
"id": "HdyE3KNfcbNzXFRqwW1Wh2eP",
"remote_id": "300000092871122",
"start_date": "2026-01-01T00:00:00Z",
"end_date": "2026-01-13T00:00:00Z",
"legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"
},
"line_items": [
{
"id": "8TMenmF8QVyP1EqagstHhsPG",
"remote_id": "300000331094861:REGULAR_SALARY",
"name": "Regular Salary",
"pay_code": {
"remote_id": "200",
"remote_label": "Regular Salary"
},
"amount": {
"currency": "USD",
"value": 2207.75
},
"amount_ytd": {
"currency": "USD",
"value": 4415.5
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "CELfyfzuHs6Dz1MDPdoSCY3U",
"remote_id": "300000331094861:FIT_WITHHELD",
"name": "FIT Withheld",
"pay_code": {
"remote_id": "FIT",
"remote_label": "FIT Withheld"
},
"amount": {
"currency": "USD",
"value": 235.94
},
"amount_ytd": {
"currency": "USD",
"value": 471.88
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "H1gPqyuZTK3y75NRxe4QZ3u7",
"remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD",
"name": "Social Security Employee Withheld",
"pay_code": {
"remote_id": "SOCSEC",
"remote_label": "Social Security Employee Withheld"
},
"amount": {
"currency": "USD",
"value": 136.88
},
"amount_ytd": {
"currency": "USD",
"value": 273.76
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "HEnJXik92Qqph5SX4NtK6NRM",
"remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD",
"name": "Medicare Employee Withheld",
"pay_code": {
"remote_id": "MEDICARE",
"remote_label": "Medicare Employee Withheld"
},
"amount": {
"currency": "USD",
"value": 32.01
},
"amount_ytd": {
"currency": "USD",
"value": 64.02
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "Ho16emGY5zVYeEc2nN9CWeKv",
"remote_id": "300000331094861:SIT_WITHHELD_CA",
"name": "SIT Withheld (CA)",
"pay_code": {
"remote_id": "SIT_CA",
"remote_label": "SIT Withheld (CA)"
},
"amount": {
"currency": "USD",
"value": 71.47
},
"amount_ytd": {
"currency": "USD",
"value": 142.94
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ",
"remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA",
"name": "VPDI Employee Withheld (CA)",
"pay_code": {
"remote_id": "VPDI_CA",
"remote_label": "VPDI Employee Withheld (CA)"
},
"amount": {
"currency": "USD",
"value": 1.1
},
"amount_ytd": {
"currency": "USD",
"value": 2.2
},
"custom_fields": {},
"integration_fields": []
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponsegrosspay.md b/docs/models/gethrispayslipspositiveresponsegrosspay.md index 968a449a..b06d2ef3 100644 --- a/docs/models/gethrispayslipspositiveresponsegrosspay.md +++ b/docs/models/gethrispayslipspositiveresponsegrosspay.md @@ -5,7 +5,7 @@ The total gross pay for the payslip, before taxes and after gross deductions. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponsenetpay.md b/docs/models/gethrispayslipspositiveresponsenetpay.md index 9a710a7b..fecc38c3 100644 --- a/docs/models/gethrispayslipspositiveresponsenetpay.md +++ b/docs/models/gethrispayslipspositiveresponsenetpay.md @@ -5,7 +5,7 @@ The total net pay for the payslip, after taxes have been applied to the gross pa ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponsepaidamount.md b/docs/models/gethrispayslipspositiveresponsepaidamount.md index 894c5d1d..2cc5a95c 100644 --- a/docs/models/gethrispayslipspositiveresponsepaidamount.md +++ b/docs/models/gethrispayslipspositiveresponsepaidamount.md @@ -5,7 +5,7 @@ The amount of the payslip that was actually paid out to the employee. This value ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | -| `value` | *float* | :heavy_check_mark: | The monetary value. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponseresult.md b/docs/models/gethrispayslipspositiveresponseresult.md index 5d380252..6ddd568b 100644 --- a/docs/models/gethrispayslipspositiveresponseresult.md +++ b/docs/models/gethrispayslipspositiveresponseresult.md @@ -3,13 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. | | -| `remote_id` | *str* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. | | -| `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | -| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | -| `totals` | [models.GetHrisPayslipsPositiveResponseTotals](../models/gethrispayslipspositiveresponsetotals.md) | :heavy_check_mark: | N/A | {
"gross_pay": {
"currency": "USD",
"value": 2207.75
},
"net_pay": {
"currency": "USD",
"value": 1730.35
},
"paid_amount": {
"currency": "USD",
"value": 1730.35
}
} | -| `employee` | [models.Employee](../models/employee.md) | :heavy_check_mark: | The employee that the payslip is for. | {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"work_email": "john.doe@acme.com",
"remote_deleted_at": null
} | -| `pay_run` | [Nullable[models.PayRun]](../models/payrun.md) | :heavy_check_mark: | The pay run the payslip was paid out through. | {
"id": "HdyE3KNfcbNzXFRqwW1Wh2eP",
"remote_id": "300000092871122",
"start_date": "2026-01-01T00:00:00Z",
"end_date": "2026-01-13T00:00:00Z",
"legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"
} | -| `line_items` | List[[models.LineItem](../models/lineitem.md)] | :heavy_check_mark: | The individual earnings, deductions, and contributions that make up the payslip. | [
{
"id": "8TMenmF8QVyP1EqagstHhsPG",
"remote_id": "300000331094861:REGULAR_SALARY",
"name": "Regular Salary",
"amount": {
"currency": "USD",
"value": 2207.75
}
},
{
"id": "CELfyfzuHs6Dz1MDPdoSCY3U",
"remote_id": "300000331094861:FIT_WITHHELD",
"name": "FIT Withheld",
"amount": {
"currency": "USD",
"value": 235.94
}
},
{
"id": "H1gPqyuZTK3y75NRxe4QZ3u7",
"remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD",
"name": "Social Security Employee Withheld",
"amount": {
"currency": "USD",
"value": 136.88
}
},
{
"id": "HEnJXik92Qqph5SX4NtK6NRM",
"remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD",
"name": "Medicare Employee Withheld",
"amount": {
"currency": "USD",
"value": 32.01
}
},
{
"id": "Ho16emGY5zVYeEc2nN9CWeKv",
"remote_id": "300000331094861:SIT_WITHHELD_CA",
"name": "SIT Withheld (CA)",
"amount": {
"currency": "USD",
"value": 71.47
}
},
{
"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ",
"remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA",
"name": "VPDI Employee Withheld (CA)",
"amount": {
"currency": "USD",
"value": 1.1
}
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. | | +| `remote_id` | *str* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. | | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | | +| `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | +| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | | +| `totals` | [models.GetHrisPayslipsPositiveResponseTotals](../models/gethrispayslipspositiveresponsetotals.md) | :heavy_check_mark: | N/A | {
"gross_pay": {
"currency": "USD",
"value": 2207.75
},
"net_pay": {
"currency": "USD",
"value": 1730.35
},
"paid_amount": {
"currency": "USD",
"value": 1730.35
},
"gross_pay_ytd": {
"currency": "USD",
"value": 4415.5
},
"net_pay_ytd": {
"currency": "USD",
"value": 3460.7
},
"paid_amount_ytd": {
"currency": "USD",
"value": 3460.7
}
} | +| `employee` | [models.Employee](../models/employee.md) | :heavy_check_mark: | The employee that the payslip is for. | {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"display_full_name": "John Doe",
"work_email": "john.doe@acme.com",
"remote_deleted_at": null
} | +| `pay_run` | [Nullable[models.PayRun]](../models/payrun.md) | :heavy_check_mark: | The pay run the payslip was paid out through. | {
"id": "HdyE3KNfcbNzXFRqwW1Wh2eP",
"remote_id": "300000092871122",
"start_date": "2026-01-01T00:00:00Z",
"end_date": "2026-01-13T00:00:00Z",
"legal_entity_id": "3Y6vdh2SPujGVx8oj4g8hdUu"
} | +| `line_items` | List[[models.LineItem](../models/lineitem.md)] | :heavy_check_mark: | The individual earnings, deductions, and contributions that make up the payslip. | [
{
"id": "8TMenmF8QVyP1EqagstHhsPG",
"remote_id": "300000331094861:REGULAR_SALARY",
"name": "Regular Salary",
"pay_code": {
"remote_id": "200",
"remote_label": "Regular Salary"
},
"amount": {
"currency": "USD",
"value": 2207.75
},
"amount_ytd": {
"currency": "USD",
"value": 4415.5
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "CELfyfzuHs6Dz1MDPdoSCY3U",
"remote_id": "300000331094861:FIT_WITHHELD",
"name": "FIT Withheld",
"pay_code": {
"remote_id": "FIT",
"remote_label": "FIT Withheld"
},
"amount": {
"currency": "USD",
"value": 235.94
},
"amount_ytd": {
"currency": "USD",
"value": 471.88
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "H1gPqyuZTK3y75NRxe4QZ3u7",
"remote_id": "300000331094861:SOCIAL_SECURITY_EMPLOYEE_WITHHELD",
"name": "Social Security Employee Withheld",
"pay_code": {
"remote_id": "SOCSEC",
"remote_label": "Social Security Employee Withheld"
},
"amount": {
"currency": "USD",
"value": 136.88
},
"amount_ytd": {
"currency": "USD",
"value": 273.76
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "HEnJXik92Qqph5SX4NtK6NRM",
"remote_id": "300000331094861:MEDICARE_EMPLOYEE_WITHHELD",
"name": "Medicare Employee Withheld",
"pay_code": {
"remote_id": "MEDICARE",
"remote_label": "Medicare Employee Withheld"
},
"amount": {
"currency": "USD",
"value": 32.01
},
"amount_ytd": {
"currency": "USD",
"value": 64.02
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "Ho16emGY5zVYeEc2nN9CWeKv",
"remote_id": "300000331094861:SIT_WITHHELD_CA",
"name": "SIT Withheld (CA)",
"pay_code": {
"remote_id": "SIT_CA",
"remote_label": "SIT Withheld (CA)"
},
"amount": {
"currency": "USD",
"value": 71.47
},
"amount_ytd": {
"currency": "USD",
"value": 142.94
},
"custom_fields": {},
"integration_fields": []
},
{
"id": "9D24qXFEp1pSQ2Y3jaRFSTBQ",
"remote_id": "300000331094861:VPDI_EMPLOYEE_WITHHELD_CA",
"name": "VPDI Employee Withheld (CA)",
"pay_code": {
"remote_id": "VPDI_CA",
"remote_label": "VPDI Employee Withheld (CA)"
},
"amount": {
"currency": "USD",
"value": 1.1
},
"amount_ytd": {
"currency": "USD",
"value": 2.2
},
"custom_fields": {},
"integration_fields": []
}
] | \ No newline at end of file diff --git a/docs/models/gethrispayslipspositiveresponsetotals.md b/docs/models/gethrispayslipspositiveresponsetotals.md index 8f4ba89e..66bbbdf4 100644 --- a/docs/models/gethrispayslipspositiveresponsetotals.md +++ b/docs/models/gethrispayslipspositiveresponsetotals.md @@ -3,8 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `gross_pay` | [OptionalNullable[models.GetHrisPayslipsPositiveResponseGrossPay]](../models/gethrispayslipspositiveresponsegrosspay.md) | :heavy_minus_sign: | The total gross pay for the payslip, before taxes and after gross deductions. | -| `net_pay` | [OptionalNullable[models.GetHrisPayslipsPositiveResponseNetPay]](../models/gethrispayslipspositiveresponsenetpay.md) | :heavy_minus_sign: | The total net pay for the payslip, after taxes have been applied to the gross pay. | -| `paid_amount` | [OptionalNullable[models.GetHrisPayslipsPositiveResponsePaidAmount]](../models/gethrispayslipspositiveresponsepaidamount.md) | :heavy_minus_sign: | The amount of the payslip that was actually paid out to the employee. This value accounts for net earnings and deductions. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `gross_pay` | [OptionalNullable[models.GetHrisPayslipsPositiveResponseGrossPay]](../models/gethrispayslipspositiveresponsegrosspay.md) | :heavy_minus_sign: | The total gross pay for the payslip, before taxes and after gross deductions. | +| `net_pay` | [OptionalNullable[models.GetHrisPayslipsPositiveResponseNetPay]](../models/gethrispayslipspositiveresponsenetpay.md) | :heavy_minus_sign: | The total net pay for the payslip, after taxes have been applied to the gross pay. | +| `paid_amount` | [OptionalNullable[models.GetHrisPayslipsPositiveResponsePaidAmount]](../models/gethrispayslipspositiveresponsepaidamount.md) | :heavy_minus_sign: | The amount of the payslip that was actually paid out to the employee. This value accounts for net earnings and deductions. | +| `gross_pay_ytd` | [OptionalNullable[models.GrossPayYtd]](../models/grosspayytd.md) | :heavy_minus_sign: | The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. | +| `net_pay_ytd` | [OptionalNullable[models.NetPayYtd]](../models/netpayytd.md) | :heavy_minus_sign: | The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. | +| `paid_amount_ytd` | [OptionalNullable[models.PaidAmountYtd]](../models/paidamountytd.md) | :heavy_minus_sign: | The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. | \ No newline at end of file diff --git a/docs/models/grosspayytd.md b/docs/models/grosspayytd.md new file mode 100644 index 00000000..5bd9131b --- /dev/null +++ b/docs/models/grosspayytd.md @@ -0,0 +1,11 @@ +# GrossPayYtd + +The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/integrationtool.md b/docs/models/integrationtool.md index bd35e339..298bd4d6 100644 --- a/docs/models/integrationtool.md +++ b/docs/models/integrationtool.md @@ -93,6 +93,7 @@ value: IntegrationTool = "workday" - `"talentclue"` - `"inrecruiting"` - `"jobadder"` +- `"jobadderjobboard"` - `"ubeeo"` - `"connexys"` - `"hr4you"` @@ -123,6 +124,7 @@ value: IntegrationTool = "workday" - `"sandbox"` - `"guidecom"` - `"spott"` +- `"stardex"` - `"logicmelon"` - `"loxo"` - `"kula"` @@ -131,10 +133,12 @@ value: IntegrationTool = "workday" - `"pageup"` - `"talent360"` - `"emplypeople"` +- `"hibob"` - `"workdaycustomreport"` - `"workdaycustomreportsftp"` - `"ukgprowfm"` - `"adpdecidium"` +- `"adplink"` - `"payfitcustomer"` - `"payfitpartner"` - `"payfit"` @@ -142,7 +146,6 @@ value: IntegrationTool = "workday" - `"fourth"` - `"kenjo"` - `"heavenhr"` -- `"hibob"` - `"cezannehr"` - `"entraid"` - `"azuread"` @@ -210,6 +213,7 @@ value: IntegrationTool = "workday" - `"nibelis"` - `"peoplexd"` - `"zellis"` +- `"veda"` - `"sftp"` - `"sftpfetch"` - `"360learning"` diff --git a/docs/models/lineitem.md b/docs/models/lineitem.md index 5ddffe77..e8dd5206 100644 --- a/docs/models/lineitem.md +++ b/docs/models/lineitem.md @@ -3,9 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. For some integrations, this ID can still change if the payslip is edited. | -| `remote_id` | *str* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. This value may include the item's position on the payslip, which can change if the payslip is edited. | -| `name` | *Nullable[str]* | :heavy_check_mark: | The name of the salary type. | -| `amount` | [OptionalNullable[models.Amount]](../models/amount.md) | :heavy_minus_sign: | The amount of the line item. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `id` | *str* | :heavy_check_mark: | The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing. For some integrations, this ID can still change if the payslip is edited. | | +| `remote_id` | *str* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. This value may include the item's position on the payslip, which can change if the payslip is edited. | | +| `name` | *Nullable[str]* | :heavy_check_mark: | The name of the salary type. | | +| `pay_code` | [models.PayCode](../models/paycode.md) | :heavy_check_mark: | The pay code (salary type) this line item belongs to in the remote system. | {
"remote_id": "200",
"remote_label": "Regular Salary"
} | +| `amount` | [OptionalNullable[models.Amount]](../models/amount.md) | :heavy_minus_sign: | The amount of the line item. | | +| `amount_ytd` | [OptionalNullable[models.AmountYtd]](../models/amountytd.md) | :heavy_minus_sign: | The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. | | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | | \ No newline at end of file diff --git a/docs/models/netpayytd.md b/docs/models/netpayytd.md new file mode 100644 index 00000000..067e525c --- /dev/null +++ b/docs/models/netpayytd.md @@ -0,0 +1,11 @@ +# NetPayYtd + +The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/paidamountytd.md b/docs/models/paidamountytd.md new file mode 100644 index 00000000..f0519ad4 --- /dev/null +++ b/docs/models/paidamountytd.md @@ -0,0 +1,11 @@ +# PaidAmountYtd + +The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `currency` | *str* | :heavy_check_mark: | The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in. | +| `value` | *float* | :heavy_check_mark: | The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero). | \ No newline at end of file diff --git a/docs/models/paycode.md b/docs/models/paycode.md new file mode 100644 index 00000000..3238e851 --- /dev/null +++ b/docs/models/paycode.md @@ -0,0 +1,11 @@ +# PayCode + +The pay code (salary type) this line item belongs to in the remote system. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `remote_id` | *str* | :heavy_check_mark: | The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. | +| `remote_label` | *Nullable[str]* | :heavy_check_mark: | The name of the salary type as it appears in the remote system. | \ No newline at end of file diff --git a/docs/models/postatsapplicationsapplicationidnotesrequestbody.md b/docs/models/postatsapplicationsapplicationidnotesrequestbody.md index 358cba82..e01f01b2 100644 --- a/docs/models/postatsapplicationsapplicationidnotesrequestbody.md +++ b/docs/models/postatsapplicationsapplicationidnotesrequestbody.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `title` | *Optional[str]* | :heavy_minus_sign: | Title of the note, often called "subject" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead. | | `content` | *str* | :heavy_check_mark: | UTF-8 content of the note. | | `content_type` | [models.ContentType](../models/contenttype.md) | :heavy_check_mark: | Content type of the note. Currently only `PLAIN_TEXT` is supported. | | `remote_fields` | [Optional[models.PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields]](../models/postatsapplicationsapplicationidnotesrequestbodyremotefields.md) | :heavy_minus_sign: | Tool specific remote fields for the note. | \ No newline at end of file diff --git a/docs/models/postatsapplicationsapplicationidresultlinksrequestbodyremotefields.md b/docs/models/postatsapplicationsapplicationidresultlinksrequestbodyremotefields.md index 47b7f291..b8711ff1 100644 --- a/docs/models/postatsapplicationsapplicationidresultlinksrequestbodyremotefields.md +++ b/docs/models/postatsapplicationsapplicationidresultlinksrequestbodyremotefields.md @@ -10,5 +10,6 @@ Additional fields that we will pass through to specific ATS systems. | `icims` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyIcims]](../models/postatsapplicationsapplicationidresultlinksrequestbodyicims.md) | :heavy_minus_sign: | Fields specific to iCIMS. | | `oracle` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyOracle]](../models/postatsapplicationsapplicationidresultlinksrequestbodyoracle.md) | :heavy_minus_sign: | Fields specific to Oracle. | | `talent360` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360]](../models/postatsapplicationsapplicationidresultlinksrequestbodytalent360.md) | :heavy_minus_sign: | Talent360 specific remote fields for the result link. | +| `traffit` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit]](../models/postatsapplicationsapplicationidresultlinksrequestbodytraffit.md) | :heavy_minus_sign: | Fields specific to Traffit. | | `greenhouse` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyGreenhouse]](../models/postatsapplicationsapplicationidresultlinksrequestbodygreenhouse.md) | :heavy_minus_sign: | Fields specific to Greenhouse. | | `workable` | [Optional[models.PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkable]](../models/postatsapplicationsapplicationidresultlinksrequestbodyworkable.md) | :heavy_minus_sign: | Workable specific remote fields for ATS actions. | \ No newline at end of file diff --git a/docs/models/postatsapplicationsapplicationidresultlinksrequestbodytraffit.md b/docs/models/postatsapplicationsapplicationidresultlinksrequestbodytraffit.md new file mode 100644 index 00000000..e5aa6b66 --- /dev/null +++ b/docs/models/postatsapplicationsapplicationidresultlinksrequestbodytraffit.md @@ -0,0 +1,10 @@ +# PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit + +Fields specific to Traffit. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `candidate` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ "_Assessment_Score": "5" }`. The field must be available via integration in Traffit. | \ No newline at end of file diff --git a/docs/models/postatscandidatescandidateidresultlinksrequestbodyremotefields.md b/docs/models/postatscandidatescandidateidresultlinksrequestbodyremotefields.md index 830b0e00..feedd2a8 100644 --- a/docs/models/postatscandidatescandidateidresultlinksrequestbodyremotefields.md +++ b/docs/models/postatscandidatescandidateidresultlinksrequestbodyremotefields.md @@ -10,5 +10,6 @@ Additional fields that we will pass through to specific ATS systems. | `icims` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyIcims]](../models/postatscandidatescandidateidresultlinksrequestbodyicims.md) | :heavy_minus_sign: | Fields specific to iCIMS. | | `oracle` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyOracle]](../models/postatscandidatescandidateidresultlinksrequestbodyoracle.md) | :heavy_minus_sign: | Fields specific to Oracle. | | `talent360` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360]](../models/postatscandidatescandidateidresultlinksrequestbodytalent360.md) | :heavy_minus_sign: | Talent360 specific remote fields for the result link. | +| `traffit` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit]](../models/postatscandidatescandidateidresultlinksrequestbodytraffit.md) | :heavy_minus_sign: | Fields specific to Traffit. | | `greenhouse` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyGreenhouse]](../models/postatscandidatescandidateidresultlinksrequestbodygreenhouse.md) | :heavy_minus_sign: | Fields specific to Greenhouse. | | `workable` | [Optional[models.PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkable]](../models/postatscandidatescandidateidresultlinksrequestbodyworkable.md) | :heavy_minus_sign: | Workable specific remote fields for ATS actions. | \ No newline at end of file diff --git a/docs/models/postatscandidatescandidateidresultlinksrequestbodytraffit.md b/docs/models/postatscandidatescandidateidresultlinksrequestbodytraffit.md new file mode 100644 index 00000000..66cd2be9 --- /dev/null +++ b/docs/models/postatscandidatescandidateidresultlinksrequestbodytraffit.md @@ -0,0 +1,10 @@ +# PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit + +Fields specific to Traffit. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `candidate` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ "_Assessment_Score": "5" }`. The field must be available via integration in Traffit. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbody.md b/docs/models/postatscandidatesrequestbody.md index 6ee4c2d5..dc323aed 100644 --- a/docs/models/postatscandidatesrequestbody.md +++ b/docs/models/postatscandidatesrequestbody.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `candidate` | [models.PostAtsCandidatesRequestBodyCandidate](../models/postatscandidatesrequestbodycandidate.md) | :heavy_check_mark: | N/A | | -| `application` | [models.PostAtsCandidatesRequestBodyApplication](../models/postatscandidatesrequestbodyapplication.md) | :heavy_check_mark: | Currently, every candidate has one application. If you are interested in talent pools, please contact Kombo. | | -| `screening_question_answers` | List[[models.PostAtsCandidatesRequestBodyScreeningQuestionAnswer](../models/postatscandidatesrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | -| `attachments` | List[[models.PostAtsCandidatesRequestBodyAttachment](../models/postatscandidatesrequestbodyattachment.md)] | :heavy_minus_sign: | An array of the attachments you would like upload. | | -| ~~`source`~~ | [Optional[models.PostAtsCandidatesRequestBodySource]](../models/postatscandidatesrequestbodysource.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | -| `sourced_by` | [Optional[models.PostAtsCandidatesRequestBodySourcedBy]](../models/postatscandidatesrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | -| `gdpr_consent` | [Optional[models.PostAtsCandidatesRequestBodyGdprConsent]](../models/postatscandidatesrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | -| `remote_fields` | [Optional[models.PostAtsCandidatesRequestBodyRemoteFields]](../models/postatscandidatesrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `candidate` | [models.PostAtsCandidatesRequestBodyCandidate](../models/postatscandidatesrequestbodycandidate.md) | :heavy_check_mark: | N/A | | +| `application` | [models.PostAtsCandidatesRequestBodyApplication](../models/postatscandidatesrequestbodyapplication.md) | :heavy_check_mark: | Currently, every candidate has one application. If you are interested in talent pools, please contact Kombo. | | +| `screening_question_answers` | List[[models.PostAtsCandidatesRequestBodyScreeningQuestionAnswer](../models/postatscandidatesrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | +| `attachments` | List[[models.PostAtsCandidatesRequestBodyAttachment](../models/postatscandidatesrequestbodyattachment.md)] | :heavy_minus_sign: | An array of the attachments you would like upload. | | +| ~~`source`~~ | [Optional[models.PostAtsCandidatesRequestBodySource]](../models/postatscandidatesrequestbodysource.md) | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | +| `sourced_by` | [Optional[models.PostAtsCandidatesRequestBodySourcedBy]](../models/postatscandidatesrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | +| `gdpr_consent` | [Optional[models.PostAtsCandidatesRequestBodyGdprConsent]](../models/postatscandidatesrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | +| `remote_fields` | [Optional[models.PostAtsCandidatesRequestBodyRemoteFields]](../models/postatscandidatesrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodyemplypeople.md b/docs/models/postatscandidatesrequestbodyemplypeople.md new file mode 100644 index 00000000..2c280720 --- /dev/null +++ b/docs/models/postatscandidatesrequestbodyemplypeople.md @@ -0,0 +1,10 @@ +# PostAtsCandidatesRequestBodyEmplypeople + +Fields specific to Emply People. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `form_data` | Dict[str, *Any*] | :heavy_minus_sign: | Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodyfountain.md b/docs/models/postatscandidatesrequestbodyfountain.md new file mode 100644 index 00000000..bde8ebd5 --- /dev/null +++ b/docs/models/postatscandidatesrequestbodyfountain.md @@ -0,0 +1,13 @@ +# PostAtsCandidatesRequestBodyFountain + +Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `consent_sms_transactional` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026. | +| `consent_sms_marketing` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent. | +| `consent_calls_transactional` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026. | +| `consent_calls_marketing` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodyicims.md b/docs/models/postatscandidatesrequestbodyicims.md new file mode 100644 index 00000000..d4150e1c --- /dev/null +++ b/docs/models/postatscandidatesrequestbodyicims.md @@ -0,0 +1,10 @@ +# PostAtsCandidatesRequestBodyIcims + +Fields specific to iCIMS. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodyremotefields.md b/docs/models/postatscandidatesrequestbodyremotefields.md index 201aaa3a..55f5ae5c 100644 --- a/docs/models/postatscandidatesrequestbodyremotefields.md +++ b/docs/models/postatscandidatesrequestbodyremotefields.md @@ -32,4 +32,7 @@ Additional fields that we will pass through to specific ATS systems. | `pinpoint` | [Optional[models.PostAtsCandidatesRequestBodyPinpoint]](../models/postatscandidatesrequestbodypinpoint.md) | :heavy_minus_sign: | Fields specific to Pinpoint. | | `covetorest` | [Optional[models.PostAtsCandidatesRequestBodyCovetorest]](../models/postatscandidatesrequestbodycovetorest.md) | :heavy_minus_sign: | Fields specific to Coveto REST. | | `afas` | [Optional[models.PostAtsCandidatesRequestBodyAfas]](../models/postatscandidatesrequestbodyafas.md) | :heavy_minus_sign: | Fields specific to AFAS. | -| `recruitcrm` | [Optional[models.PostAtsCandidatesRequestBodyRecruitcrm]](../models/postatscandidatesrequestbodyrecruitcrm.md) | :heavy_minus_sign: | Fields specific to Recruit CRM. | \ No newline at end of file +| `fountain` | [Optional[models.PostAtsCandidatesRequestBodyFountain]](../models/postatscandidatesrequestbodyfountain.md) | :heavy_minus_sign: | Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants. | +| `recruitcrm` | [Optional[models.PostAtsCandidatesRequestBodyRecruitcrm]](../models/postatscandidatesrequestbodyrecruitcrm.md) | :heavy_minus_sign: | Fields specific to Recruit CRM. | +| `icims` | [Optional[models.PostAtsCandidatesRequestBodyIcims]](../models/postatscandidatesrequestbodyicims.md) | :heavy_minus_sign: | Fields specific to iCIMS. | +| `emplypeople` | [Optional[models.PostAtsCandidatesRequestBodyEmplypeople]](../models/postatscandidatesrequestbodyemplypeople.md) | :heavy_minus_sign: | Fields specific to Emply People. | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodysmartrecruiters.md b/docs/models/postatscandidatesrequestbodysmartrecruiters.md index 33b2447a..e909aed1 100644 --- a/docs/models/postatscandidatesrequestbodysmartrecruiters.md +++ b/docs/models/postatscandidatesrequestbodysmartrecruiters.md @@ -7,7 +7,7 @@ Fields specific to SmartRecruiters. | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`candidate_with_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | -| ~~`candidate_without_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/candidatesaddtojob-1 | +| ~~`candidate_with_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | +| ~~`candidate_without_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/candidatesaddtojob-1 | | `candidate` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to the SmartRecruiters's `Candidate` object. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | | `consent_decisions` | [Optional[models.PostAtsCandidatesRequestBodyConsentDecisions]](../models/postatscandidatesrequestbodyconsentdecisions.md) | :heavy_minus_sign: | The consent decisions for the candidate. SmartRecruiters supports two consent models: 'Single' (use the `SINGLE` key) and 'Separated' (use `SMART_RECRUIT`, `SMART_CRM`, `SMART_MESSAGE_SMS`, and/or `SMART_MESSAGE_WHATSAPP` keys). When this field is provided, it takes precedence over the `gdpr_consent` field for the `consentDecisions` property. See: https://developers.smartrecruiters.com/docs/partners-post-an-application | \ No newline at end of file diff --git a/docs/models/postatscandidatesrequestbodytalentsoft.md b/docs/models/postatscandidatesrequestbodytalentsoft.md index 46ca19e3..5d367838 100644 --- a/docs/models/postatscandidatesrequestbodytalentsoft.md +++ b/docs/models/postatscandidatesrequestbodytalentsoft.md @@ -5,7 +5,8 @@ Fields specific to TalentSoft. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `applicant` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `applicant` object. | -| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `application` object. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `applicant` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `applicant` object. | +| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `application` object. | +| `custom_fields` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbody.md b/docs/models/postatsjobsjobidapplicationsrequestbody.md index 7f50dc31..92fc74cf 100644 --- a/docs/models/postatsjobsjobidapplicationsrequestbody.md +++ b/docs/models/postatsjobsjobidapplicationsrequestbody.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `stage_id` | *Optional[str]* | :heavy_minus_sign: | Stage this candidate should be in. If left out, the default stage for this job will be used. You can obtain the possible `stage_id`s from the `get-jobs` endpoint. | | -| `candidate` | [models.PostAtsJobsJobIDApplicationsRequestBodyCandidate](../models/postatsjobsjobidapplicationsrequestbodycandidate.md) | :heavy_check_mark: | N/A | | -| `attachments` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyAttachment](../models/postatsjobsjobidapplicationsrequestbodyattachment.md)] | :heavy_minus_sign: | Array of the attachments you would like to upload. The first CV in the attachments will be treated as the resume of the candidate when the tool allows previewing a resume. | | -| ~~`source`~~ | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySource]](../models/postatsjobsjobidapplicationsrequestbodysource.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | -| `sourced_by` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySourcedBy]](../models/postatsjobsjobidapplicationsrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | -| `gdpr_consent` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyGdprConsent]](../models/postatsjobsjobidapplicationsrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | -| `remote_fields` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRemoteFields]](../models/postatsjobsjobidapplicationsrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | -| `screening_question_answers` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyScreeningQuestionAnswer](../models/postatsjobsjobidapplicationsrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `stage_id` | *Optional[str]* | :heavy_minus_sign: | Stage this candidate should be in. If left out, the default stage for this job will be used. You can obtain the possible `stage_id`s from the `get-jobs` endpoint. | | +| `candidate` | [models.PostAtsJobsJobIDApplicationsRequestBodyCandidate](../models/postatsjobsjobidapplicationsrequestbodycandidate.md) | :heavy_check_mark: | N/A | | +| `attachments` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyAttachment](../models/postatsjobsjobidapplicationsrequestbodyattachment.md)] | :heavy_minus_sign: | Array of the attachments you would like to upload. The first CV in the attachments will be treated as the resume of the candidate when the tool allows previewing a resume. | | +| ~~`source`~~ | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySource]](../models/postatsjobsjobidapplicationsrequestbodysource.md) | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | +| `sourced_by` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySourcedBy]](../models/postatsjobsjobidapplicationsrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | +| `gdpr_consent` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyGdprConsent]](../models/postatsjobsjobidapplicationsrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | +| `remote_fields` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRemoteFields]](../models/postatsjobsjobidapplicationsrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | +| `screening_question_answers` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyScreeningQuestionAnswer](../models/postatsjobsjobidapplicationsrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodyemplypeople.md b/docs/models/postatsjobsjobidapplicationsrequestbodyemplypeople.md new file mode 100644 index 00000000..0280f1f7 --- /dev/null +++ b/docs/models/postatsjobsjobidapplicationsrequestbodyemplypeople.md @@ -0,0 +1,10 @@ +# PostAtsJobsJobIDApplicationsRequestBodyEmplypeople + +Fields specific to Emply People. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `form_data` | Dict[str, *Any*] | :heavy_minus_sign: | Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodyfountain.md b/docs/models/postatsjobsjobidapplicationsrequestbodyfountain.md new file mode 100644 index 00000000..76d44c08 --- /dev/null +++ b/docs/models/postatsjobsjobidapplicationsrequestbodyfountain.md @@ -0,0 +1,13 @@ +# PostAtsJobsJobIDApplicationsRequestBodyFountain + +Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `consent_sms_transactional` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026. | +| `consent_sms_marketing` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent. | +| `consent_calls_transactional` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026. | +| `consent_calls_marketing` | *Optional[bool]* | :heavy_minus_sign: | Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodyicims.md b/docs/models/postatsjobsjobidapplicationsrequestbodyicims.md new file mode 100644 index 00000000..f8d3c5ee --- /dev/null +++ b/docs/models/postatsjobsjobidapplicationsrequestbodyicims.md @@ -0,0 +1,10 @@ +# PostAtsJobsJobIDApplicationsRequestBodyIcims + +Fields specific to iCIMS. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md b/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md index ae0c4841..12f71a22 100644 --- a/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md +++ b/docs/models/postatsjobsjobidapplicationsrequestbodyremotefields.md @@ -32,4 +32,7 @@ Additional fields that we will pass through to specific ATS systems. | `pinpoint` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyPinpoint]](../models/postatsjobsjobidapplicationsrequestbodypinpoint.md) | :heavy_minus_sign: | Fields specific to Pinpoint. | | `covetorest` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyCovetorest]](../models/postatsjobsjobidapplicationsrequestbodycovetorest.md) | :heavy_minus_sign: | Fields specific to Coveto REST. | | `afas` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyAfas]](../models/postatsjobsjobidapplicationsrequestbodyafas.md) | :heavy_minus_sign: | Fields specific to AFAS. | -| `recruitcrm` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRecruitcrm]](../models/postatsjobsjobidapplicationsrequestbodyrecruitcrm.md) | :heavy_minus_sign: | Fields specific to Recruit CRM. | \ No newline at end of file +| `fountain` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyFountain]](../models/postatsjobsjobidapplicationsrequestbodyfountain.md) | :heavy_minus_sign: | Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants. | +| `recruitcrm` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRecruitcrm]](../models/postatsjobsjobidapplicationsrequestbodyrecruitcrm.md) | :heavy_minus_sign: | Fields specific to Recruit CRM. | +| `icims` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyIcims]](../models/postatsjobsjobidapplicationsrequestbodyicims.md) | :heavy_minus_sign: | Fields specific to iCIMS. | +| `emplypeople` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyEmplypeople]](../models/postatsjobsjobidapplicationsrequestbodyemplypeople.md) | :heavy_minus_sign: | Fields specific to Emply People. | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodysmartrecruiters.md b/docs/models/postatsjobsjobidapplicationsrequestbodysmartrecruiters.md index 7b22d081..9f788835 100644 --- a/docs/models/postatsjobsjobidapplicationsrequestbodysmartrecruiters.md +++ b/docs/models/postatsjobsjobidapplicationsrequestbodysmartrecruiters.md @@ -7,7 +7,7 @@ Fields specific to SmartRecruiters. | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`candidate_with_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | -| ~~`candidate_without_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/candidatesaddtojob-1 | +| ~~`candidate_with_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | +| ~~`candidate_without_questions`~~ | Dict[str, *Any*] | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use the `candidate` field instead.)** Fields that we will pass through to the SmartRecruiters's `Candidate` object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/candidatesaddtojob-1 | | `candidate` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to the SmartRecruiters's `Candidate` object. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1 | | `consent_decisions` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyConsentDecisions]](../models/postatsjobsjobidapplicationsrequestbodyconsentdecisions.md) | :heavy_minus_sign: | The consent decisions for the candidate. SmartRecruiters supports two consent models: 'Single' (use the `SINGLE` key) and 'Separated' (use `SMART_RECRUIT`, `SMART_CRM`, `SMART_MESSAGE_SMS`, and/or `SMART_MESSAGE_WHATSAPP` keys). When this field is provided, it takes precedence over the `gdpr_consent` field for the `consentDecisions` property. See: https://developers.smartrecruiters.com/docs/partners-post-an-application | \ No newline at end of file diff --git a/docs/models/postatsjobsjobidapplicationsrequestbodytalentsoft.md b/docs/models/postatsjobsjobidapplicationsrequestbodytalentsoft.md index 92a617b0..eda13a9d 100644 --- a/docs/models/postatsjobsjobidapplicationsrequestbodytalentsoft.md +++ b/docs/models/postatsjobsjobidapplicationsrequestbodytalentsoft.md @@ -5,7 +5,8 @@ Fields specific to TalentSoft. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `applicant` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `applicant` object. | -| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `application` object. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `applicant` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `applicant` object. | +| `application` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's `application` object. | +| `custom_fields` | Dict[str, *Any*] | :heavy_minus_sign: | Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead. | \ No newline at end of file diff --git a/docs/models/putatsapplicationsapplicationidstagerequestbodylever.md b/docs/models/putatsapplicationsapplicationidstagerequestbodylever.md new file mode 100644 index 00000000..4b2dd9f4 --- /dev/null +++ b/docs/models/putatsapplicationsapplicationidstagerequestbodylever.md @@ -0,0 +1,10 @@ +# PutAtsApplicationsApplicationIDStageRequestBodyLever + +Fields specific to Lever. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `perform_as` | *Optional[str]* | :heavy_minus_sign: | ID of the Lever user that will show up as having moved the application. If not provided, Lever records the stage change without a user. | \ No newline at end of file diff --git a/docs/models/putatsapplicationsapplicationidstagerequestbodyremotefields.md b/docs/models/putatsapplicationsapplicationidstagerequestbodyremotefields.md index b59349b2..c85e46ab 100644 --- a/docs/models/putatsapplicationsapplicationidstagerequestbodyremotefields.md +++ b/docs/models/putatsapplicationsapplicationidstagerequestbodyremotefields.md @@ -9,5 +9,6 @@ Additional fields that we will pass through to specific ATS systems. | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `workday` | [Optional[models.PutAtsApplicationsApplicationIDStageRequestBodyWorkday]](../models/putatsapplicationsapplicationidstagerequestbodyworkday.md) | :heavy_minus_sign: | Fields specific to Workday. | | `successfactors` | [Optional[models.PutAtsApplicationsApplicationIDStageRequestBodySuccessfactors]](../models/putatsapplicationsapplicationidstagerequestbodysuccessfactors.md) | :heavy_minus_sign: | Fields specific to SAP SuccessFactors. | +| `lever` | [Optional[models.PutAtsApplicationsApplicationIDStageRequestBodyLever]](../models/putatsapplicationsapplicationidstagerequestbodylever.md) | :heavy_minus_sign: | Fields specific to Lever. | | `greenhouse` | [Optional[models.PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse]](../models/putatsapplicationsapplicationidstagerequestbodygreenhouse.md) | :heavy_minus_sign: | Fields specific to Greenhouse. | | `workable` | [Optional[models.PutAtsApplicationsApplicationIDStageRequestBodyWorkable]](../models/putatsapplicationsapplicationidstagerequestbodyworkable.md) | :heavy_minus_sign: | Workable specific remote fields for ATS actions. | \ No newline at end of file diff --git a/docs/models/worklocation.md b/docs/models/worklocation.md index 2e577270..88b266dc 100644 --- a/docs/models/worklocation.md +++ b/docs/models/worklocation.md @@ -11,4 +11,5 @@ | `address` | [OptionalNullable[models.WorkLocationAddress]](../models/worklocationaddress.md) | :heavy_minus_sign: | The work location’s address | | `type` | *Nullable[str]* | :heavy_check_mark: | The work location’s type. A freeform string. | | `changed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | -| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | \ No newline at end of file +| `remote_deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.

[](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) | +| `custom_fields` | Dict[str, *Any*] | :heavy_check_mark: | A key-value store of fields not covered by the schema. [Read more](/custom-fields) | \ No newline at end of file diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index a39991b1..5be91e3a 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -392,6 +392,7 @@ with Kombo( | `application_id` | *str* | :heavy_check_mark: | The Kombo ID of the application you want to create the note for. | | `content` | *str* | :heavy_check_mark: | UTF-8 content of the note. | | `content_type` | [models.ContentType](../../models/contenttype.md) | :heavy_check_mark: | Content type of the note. Currently only `PLAIN_TEXT` is supported. | +| `title` | *Optional[str]* | :heavy_minus_sign: | Title of the note, often called "subject" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead. | | `remote_fields` | [Optional[models.PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields]](../../models/postatsapplicationsapplicationidnotesrequestbodyremotefields.md) | :heavy_minus_sign: | Tool specific remote fields for the note. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | @@ -412,6 +413,8 @@ Get attachments from a candidate or application. Get attachments from an application. If the ATS stores the attachments on the candidate, it will get the attachments from the corresponding candidate instead. +This endpoint calls the ATS on every request. To get the files of all candidates without a request per application, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -923,17 +926,17 @@ with Kombo( ### Parameters -| Parameter | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `candidate` | [models.PostAtsCandidatesRequestBodyCandidate](../../models/postatscandidatesrequestbodycandidate.md) | :heavy_check_mark: | N/A | | -| `application` | [models.PostAtsCandidatesRequestBodyApplication](../../models/postatscandidatesrequestbodyapplication.md) | :heavy_check_mark: | Currently, every candidate has one application. If you are interested in talent pools, please contact Kombo. | | -| `screening_question_answers` | List[[models.PostAtsCandidatesRequestBodyScreeningQuestionAnswer](../../models/postatscandidatesrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | -| `attachments` | List[[models.PostAtsCandidatesRequestBodyAttachment](../../models/postatscandidatesrequestbodyattachment.md)] | :heavy_minus_sign: | An array of the attachments you would like upload. | | -| `source` | [Optional[models.PostAtsCandidatesRequestBodySource]](../../models/postatscandidatesrequestbodysource.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | -| `sourced_by` | [Optional[models.PostAtsCandidatesRequestBodySourcedBy]](../../models/postatscandidatesrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | -| `gdpr_consent` | [Optional[models.PostAtsCandidatesRequestBodyGdprConsent]](../../models/postatscandidatesrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | -| `remote_fields` | [Optional[models.PostAtsCandidatesRequestBodyRemoteFields]](../../models/postatscandidatesrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `candidate` | [models.PostAtsCandidatesRequestBodyCandidate](../../models/postatscandidatesrequestbodycandidate.md) | :heavy_check_mark: | N/A | | +| `application` | [models.PostAtsCandidatesRequestBodyApplication](../../models/postatscandidatesrequestbodyapplication.md) | :heavy_check_mark: | Currently, every candidate has one application. If you are interested in talent pools, please contact Kombo. | | +| `screening_question_answers` | List[[models.PostAtsCandidatesRequestBodyScreeningQuestionAnswer](../../models/postatscandidatesrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | +| `attachments` | List[[models.PostAtsCandidatesRequestBodyAttachment](../../models/postatscandidatesrequestbodyattachment.md)] | :heavy_minus_sign: | An array of the attachments you would like upload. | | +| `source` | [Optional[models.PostAtsCandidatesRequestBodySource]](../../models/postatscandidatesrequestbodysource.md) | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | +| `sourced_by` | [Optional[models.PostAtsCandidatesRequestBodySourcedBy]](../../models/postatscandidatesrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | +| `gdpr_consent` | [Optional[models.PostAtsCandidatesRequestBodyGdprConsent]](../../models/postatscandidatesrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | +| `remote_fields` | [Optional[models.PostAtsCandidatesRequestBodyRemoteFields]](../../models/postatscandidatesrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -950,6 +953,8 @@ with Kombo( Get attachments from a candidate, including all attachments of all of their applications. +This endpoint calls the ATS on every request. To get the files of all candidates without a request per candidate, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -1795,18 +1800,18 @@ with Kombo( ### Parameters -| Parameter | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `job_id` | *str* | :heavy_check_mark: | The Kombo ID or Remote ID of the Job this candidate should apply for. If you want to use the ID of the integrated system (remote_id) you need to prefix the id with "remote:". You can use the remote ID if you do not want to sync jobs. | | -| `candidate` | [models.PostAtsJobsJobIDApplicationsRequestBodyCandidate](../../models/postatsjobsjobidapplicationsrequestbodycandidate.md) | :heavy_check_mark: | N/A | | -| `stage_id` | *Optional[str]* | :heavy_minus_sign: | Stage this candidate should be in. If left out, the default stage for this job will be used. You can obtain the possible `stage_id`s from the `get-jobs` endpoint. | | -| `attachments` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyAttachment](../../models/postatsjobsjobidapplicationsrequestbodyattachment.md)] | :heavy_minus_sign: | Array of the attachments you would like to upload. The first CV in the attachments will be treated as the resume of the candidate when the tool allows previewing a resume. | | -| `source` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySource]](../../models/postatsjobsjobidapplicationsrequestbodysource.md) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | -| `sourced_by` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySourcedBy]](../../models/postatsjobsjobidapplicationsrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | -| `gdpr_consent` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyGdprConsent]](../../models/postatsjobsjobidapplicationsrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | -| `remote_fields` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRemoteFields]](../../models/postatsjobsjobidapplicationsrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | -| `screening_question_answers` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyScreeningQuestionAnswer](../../models/postatsjobsjobidapplicationsrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `job_id` | *str* | :heavy_check_mark: | The Kombo ID or Remote ID of the Job this candidate should apply for. If you want to use the ID of the integrated system (remote_id) you need to prefix the id with "remote:". You can use the remote ID if you do not want to sync jobs. | | +| `candidate` | [models.PostAtsJobsJobIDApplicationsRequestBodyCandidate](../../models/postatsjobsjobidapplicationsrequestbodycandidate.md) | :heavy_check_mark: | N/A | | +| `stage_id` | *Optional[str]* | :heavy_minus_sign: | Stage this candidate should be in. If left out, the default stage for this job will be used. You can obtain the possible `stage_id`s from the `get-jobs` endpoint. | | +| `attachments` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyAttachment](../../models/postatsjobsjobidapplicationsrequestbodyattachment.md)] | :heavy_minus_sign: | Array of the attachments you would like to upload. The first CV in the attachments will be treated as the resume of the candidate when the tool allows previewing a resume. | | +| `source` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySource]](../../models/postatsjobsjobidapplicationsrequestbodysource.md) | :heavy_minus_sign: | :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

**(⚠️ Deprecated - Use [automatic source writing](/ats/features/application-attribution#automatic-attribution) instead)** Optional source information that will be attached to the candidate. If
you're a job board or recruiting service, you can use this to make sure your
customers can see which candidates came from you.

This is deprecated because writing sources requires users to do some setup in most ATSs. | | +| `sourced_by` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodySourcedBy]](../../models/postatsjobsjobidapplicationsrequestbodysourcedby.md) | :heavy_minus_sign: | Credit the recruiter or team member who sourced this candidate.

While the `source` field tracks the channel/platform (e.g., "Awesome Jobboard"), the `sourced_by` field tracks the individual person responsible for finding the candidate. | | +| `gdpr_consent` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyGdprConsent]](../../models/postatsjobsjobidapplicationsrequestbodygdprconsent.md) | :heavy_minus_sign: | Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia). | | +| `remote_fields` | [Optional[models.PostAtsJobsJobIDApplicationsRequestBodyRemoteFields]](../../models/postatsjobsjobidapplicationsrequestbodyremotefields.md) | :heavy_minus_sign: | Additional fields that we will pass through to specific ATS systems. | | +| `screening_question_answers` | List[[models.PostAtsJobsJobIDApplicationsRequestBodyScreeningQuestionAnswer](../../models/postatsjobsjobidapplicationsrequestbodyscreeningquestionanswer.md)] | :heavy_minus_sign: | Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.

The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors. | [
{
"question_id": "D8yPrjXXvA2XeBksTmrVvKSn",
"answer": "Yes"
}
] | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -2191,9 +2196,9 @@ with Kombo( Retrieve all attachments. -These attachments are already synced, so this endpoint never calls the ATS and the files sit in the destination you configured. +Returns the attachments Kombo synced into your file destination. -The on-demand alternatives call the ATS and return a `data_url` we host: [get candidate attachments](/ats/v1/get-candidates-candidate-id-attachments) for every file of one candidate, [get application attachments](/ats/v1/get-applications-application-id-attachments) for the files of one application. +[Attachments](/ats/features/attachments) compares synced attachments with reading files on demand. Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)` diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 38a5f23e..592f1e06 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -122,7 +122,7 @@ with Kombo( | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `type` | [Optional[models.PostForceSyncRequestBodyType]](../../models/postforcesyncrequestbodytype.md) | :heavy_minus_sign: | The type of the triggered sync. | +| `type_` | [Optional[models.PostForceSyncRequestBodyType]](../../models/postforcesyncrequestbodytype.md) | :heavy_minus_sign: | The type of the triggered sync. | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -154,6 +154,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Abacus|`abacus/api`|Abacus [REST API](https://apihub.abacus.ch/). We automatically authenticate all requests and use `https://\{\{abacusUrl\}\}/api/entity/v1/mandants/\{\{mandantId\}\}` as the base URL.| |Absence.io|`absenceio/v2`|Absence.io [API](https://docs.absence.io/). We automatically authenticate all requests and use `https://app.absence.io/api/v2` as the base URL.| |ADP Decidium|`adpdecidium/default`|[ADP Decidium API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| +|ADP Link|`adplink/default`|[ADP Link API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| |ADP Workforce Now|`adpworkforcenow/default`|[ADP Workforce Now API v2](https://developers.adp.com/build/api-explorer/hcm-offrg-wfn). We automatically authenticate all requests and use the correct subdomain.| |AFAS Software|`afas/api`|AFAS' [API](https://connect.afas.nl/rest/get). We automatically authenticate all requests and use `https://\{domain\}/ProfitRestServices` as the base URL.| |AlexisHR|`alexishr/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -167,6 +168,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |BambooHR|`bamboohr/v1`|BambooHR's [API](https://documentation.bamboohr.com/reference/get-employee). We automatically authenticate all requests using the customer credentials `https://api.bamboohr.com/api/gateway.php/\{subdomain\}/v1` as the base URL.| |BITE|`bite/v1`|[Bite's v1 API](https://api.b-ite.io/docs/#/). We automatically authenticate all requests and use your configured API base URL with `/v1` appended (default `https://api.b-ite.io/v1`).| |BoondManager|`boondmanager/api`|BoondManager [REST API](https://ui.boondmanager.com/administrator/developer/apisandbox). We automatically authenticate all requests and use `https://ui.boondmanager.com/api` as the base URL.| +|Breathe HR|`breathehr/v1`|Breathe HR's [API](https://developer.breathehr.com/). We automatically authenticate all requests and use `https://api.breathehr.com/v1` as the base URL.| |Breezy HR|`breezyhr/v3`|[BreezyHR's v3 API](https://developer.breezy.hr/reference/overview). We automatically authenticate all requests and use "https://api.breezy.hr/v3/" as the base URL.| |Bullhorn for Salesforce|`bullhorn4salesforce/v66`|We use `https://\{subdomain\}.my.salesforce.com/services/data/v66.0` as the base URL. Find the official docs [here](https://kb.bullhorn.com/bh4sf/Content/BH4SF/Topics/bh4sfRestAPI.htm).| |Bullhorn|`bullhorn/default`|[Bullhorn's API](https://bullhorn.github.io/rest-api-docs/index.html). We automatically use the right `https://\{subdomain\}.bullhornstaffing.com/rest-services/\{corpToken\}` base URL.| @@ -174,7 +176,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Carerix|`carerix/api`|Carerix [REST API](https://docs.carerix.io/rest/introduction). We automatically authenticate all requests and use `https://api.carerix.com` as the base URL. Please note that Carerix uses XML for request and response bodies.| |Carerix|`carerixgraphql/graphql`|Carerix [GraphQL API](https://docs.carerix.io/graphql/welcome). We automatically authenticate all requests (OAuth2 client credentials) and use `https://api.carerix.io/graphql/v1` as the base URL. Send GraphQL requests as `POST /graphql` with a JSON body of `\{ "query": "...", "variables": \{ ... \} \}`.| |CEGID TalentSoft Customer|`talentsoftcustomer/v1`|Cegid Talentsoft Recruiting FrontOffice API: [API Documentation](https://developers.cegid.com/api-details#api=cegid-talentsoft-recruiting-frontoffice) We automatically authenticate all requests and use `https://\{customer_subdomain\}.talent-soft.com/api/v1` as the base URL.| -|CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://developers.cegid.com/api-details). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| +|CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://cegid-hr-developers.talentsoft.net/docs/Talentsoft%20Recrutement/frontoffice/). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| |Ceipal|`ceipal/v1`|We use `https://api.ceipal.com/v1` as the base URL. Find the official docs [here](https://developer.ceipal.com/ceipal-ats-version-one/ceipal-ats-v1-api-reference).| |Cezanne HR|`cezannehr/dataservice`|[CezanneHR's v7 dataservice API](https://api.cezannehr.com/).We automatically authenticate all requests and use the base URL `https://\{subdomain\}.cezanneondemand.com/cezanneondemand/v7/dataservice.svc`| |Compleet (Persy)|`compleetpersy/api`|Compleet Persy [REST API](https://persy-api.refined.site/space/PAPI/450166808/Requirements+Jobfeed+%2F+Anforderungen+f%C3%BCr+Jobfeeds). We automatically authenticate all requests and use `https://www.germanpersonnel.de/persy/api/v1` as the base URL.| @@ -202,7 +204,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Dayforce|`dayforce/V1`|[Dayforce's API](https://developers.dayforce.com/Build/Home.aspx). We automatically authenticate all requests and use `\{\{baseUrl\}\}/Api/\{\{clientNamespace\}\}/V1` as the base URL| |Deel|`deel/api`|Deel's [API](https://developer.deel.com/reference/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}/rest` as the base URL.| |Digital Recruiters|`digitalrecruiters/api`|Cegid Digital Recruiters [Talent Acquisition API](https://cegid-hr-developers.talentsoft.net/docs/tutorial-basics/Talent%20Acquisition/Getting%20Started). We automatically authenticate all requests by replacing `:token` in the request URL with your configured access token and use your configured Digital Recruiters domain as the base URL.| -|Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication and use `https://\{subdomain\}.docebosaas.com` as the base URL.| +|Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication via OAuth and use `https://\{subdomain\}.docebosaas.com` as the base URL.| |Eightfold|`eightfold/api`|Eightfold's [API](https://apidocs.eightfold.ai/). We automatically authenticate all requests and use `https://apiv2.\{region\}/api/v2/core/` as the base URL.| |Employment Hero|`employmenthero/default`|EmploymentHero [API](https://developer.employmenthero.com/api-references/#icon-book-open-introduction). We automatically authenticate all requests using the credentials supplied by the customer and use `https://api.employmenthero.com/api` as the base URL.| |Emply People|`emplypeople/v2`|We use `https://api.emply.com/v2` as the base URL. Find the official docs [here](https://api.emply.com/v2/index.html).| @@ -234,7 +236,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Heyrecruit|`heyrecruit/v2`|[Heyrecruit's v2 API](https://documenter.getpostman.com/view/23241256/2s9YysBLcf#47e271ac-47c8-4c75-9cc6-b8c506e9dad6). We automatically authenticate all requests using the client ID and secret and use `https://app.heyrecruit.de/api/v2` as the base URL.| |HiBob|`hibob/docs`|This passthrough is only used for fetching employee documents in HiBob. It is present as a workaround while we are working on a new endpoint for fetching documents in HRIS. It should not be used for any other purpose. We automatically authenticate all requests using the service user credentials and use `https://app.hibob.com/api/docs/employees/` as the base URL.| |HiBob|`hibob/hire`|[HiBob's Hire API](https://apidocs.hibob.com/docs/how-to-integrate-with-ats-hire-api). We automatically authenticate all requests using the hire service user credentials. The base URL is configured during the integration setup.| -|HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| +|HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people), including the [hiring endpoints](https://apidocs.hibob.com/docs/explore-hiring-api). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| |HoorayHR|`hoorayhr/api`|[HoorayHR API](https://api.hoorayhr.io/documentation/). We automatically authenticate all requests and use `https://api.hoorayhr.io` as the base URL.| |HR Office|`hroffice/soap`|[HROffice SOAP API](https://api.hroffice.nl/HROfficeCoreService.asmx). We automatically authenticate all requests and wrap them in a SOAP envelope. Build the request `Body` with the raw XML parameters for your operation (e.g., `\1\`). Use `/` as your `path`. Set your `method` to `POST`. You need to specify the `api_options` object and set `operation_name` to the SOAP operation you want to call (e.g., `GetAllJobByLanguage`).| |HR WORKS|`hrworks/v2`|HRWorks's v2 [API](https://developers.hrworks.de/2.0/endpoints). We automatically authenticate all requests using the customer credentials.| @@ -249,10 +251,11 @@ To get started, please pick the relevant API (some tools provide multiple to due |JobAdder|`jobadder/api`|We use `https://api.jobadder.com/v2` as the base URL. Find the official docs [here](https://api.jobadder.com/v2/docs).| |JobDiva|`jobdiva/api`|We automatically authenticate all requests and use `https://api.jobdiva.com` as the base URL.| |Jobvite|`jobvite/api`|We automatically authenticate all requests and use 'https://api.jobvite.com/api/v2' as the base URL.| -|Jobvite|`jobvite/v2`|We use `https://api.jobvite.com/api/v2` as the base URL. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| +|Jobvite|`jobvite/v2`|Production connections use `https://api.jobvite.com/api/v2` as the base URL. Staging connections (`remote_environment: STAGING`) use `https://api.jvistg2.com/api/v2`. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| |Jobylon|`jobylon/feed`|The [Jobylon Feed API](https://developer.jobylon.com/feed-api/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/feeds/\{job_hash\}` as the base URL.| |Jobylon|`jobylon/push`|The [Jobylon Push API](https://developer.jobylon.com/push-api-and-webhooks/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/p1` as the base URL.| |JOIN|`join/v2`|Join's [V2 API](https://docs.join.com/reference/getting-started). We automatically authenticate all requests and use `https://api.join.com/v2` as the base URL.| +|Kallidus (Sapling)|`sapling/v1`|Kallidus Sapling's [API](https://kallidus.readme.io/v1.9/reference/overview). We automatically authenticate all requests and use `https://\{subdomain\}.saplingapp.io/api/v1/beta` (US) or `https://\{subdomain\}.kallidus-suite.com/hr/api/v1/beta` (UK) as the base URL.| |Kenjo|`kenjo/api`|Kenjo's [API](https://kenjo.readme.io/reference/generate-the-api-key). We automatically authenticate all requests using the API key. The base URL is `https://api.kenjo.io/` (or `https://sandbox-api.kenjo.io/` for sandbox environments).| |Kula|`kula/v1`|Kula's [REST API](https://developers.kula.ai/docs/getting-started/overview). We automatically authenticate all requests with the provided credentials and use `https://api.kula.ai/v1` as the base URL.| |Lattice Talent|`latticetalent/talent`|Lattice's [Talent API](https://developers.lattice.com/reference/introduction). We automatically authenticate all requests using API key credentials with `https://api.latticehq.com` as the base URL.| @@ -264,7 +267,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Lever|`lever/v1`|[Lever's v1 API](https://hire.lever.co/developer/documentation). We automatically authenticate all requests using the partner credentials which have been configured in the Lever tool settings (this uses Kombo's partner credentials by default).| |LinkedIn Learning|`linkedinlearning/v2`|LinkedIn Learning [API v2](https://learn.microsoft.com/en-us/linkedin/learning/). We automatically handle authentication and use `https://api.linkedin.com/v2` as the base URL.| |Logic Melon|`logicmelon/json`|We use `https://api.logicmelon.co.uk` as the base URL. Find the official docs [here](https://api.logicmelon.com/JSON/Multiposter.asmx).| -|Loket|`loket/api`|[Loket's REST API](https://developers.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| +|Loket|`loket/api`|[Loket's REST API](https://developer.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| |Loxo|`loxo/v1`|[Loxo's API](https://loxo.readme.io/reference/loxo-api). We automatically authenticate all requests and use 'https://app.loxo.co/api/\{agency_slug\}' as base URL.| |Lucca|`lucca/api`|[Luccas's API](https://developers.lucca.fr/api-reference/legacy/introduction). We automatically authenticate all requests and use 'https://\{account\}.\{ilucca|ilucca-demo\}.\{region\}/' as the base URL.| |Manatal|`manatal/career-page`|Manatal's Career Page API. We use `https://api.manatal.com/open/v3/career-page/\{client_slug\}` as the base URL.| @@ -301,6 +304,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |PeopleXD|`peoplexd/b2b`|PeopleXD's [B2B API](https://documenter.getpostman.com/view/3101638/TzeTHUDu#intro). We automatically authenticate all requests and use `https://api.corehr.com/ws/\{tenant_id\}/corehr` or `https://uatapi.corehr.com/ws/\{tenant_id\}/corehr` as the base URL.| |Personio|`personio/jobboard`|API endpoints exposed on Personio's public job board pages ([currently just the XML feed](https://developer.personio.de/reference/get_xml)). We automatically use the right `https://\{company\}.jobs.personio.de` base URL.| |Personio|`personio/personnel`|Personio's [Personnel Data API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v1` as the base URL.| +|Personio|`personio/personnelv2`|Personio's [V2 Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/personnelv2`|Personio's [V2 Personnel Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/recruiting`|Personio's [Recruiting API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the Recruiting access token and use `https://api.personio.de/v1/recruiting` as the base URL.| |Personio|`personio/recruitingV2`|Personio's [V2 Recruiting API](https://developer.personio.de/reference/get_v2-recruiting-applications). We automatically authenticate all requests using the Recruiting access token, send the `Beta` header and use `https://api.personio.de/v2/recruiting` as the base URL.| @@ -317,6 +321,8 @@ To get started, please pick the relevant API (some tools provide multiple to due |Sage People|`sagepeople/salesforce-rest-api`|Sage People is built on Salesforce's [API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm). We automatically authenticate all requests and use `https://\{customer_name\}.my.salesforce.com/` as the base URL.| |SAP SuccessFactors|`successfactors/lms-odata-v4`|We use `https://\{api_domain\}/learning/odatav4` as the base URL. Find the official docs [here](https://help.sap.com/docs/successfactors-learning/sap-successfactors-learning-odata-apis).| |SAP SuccessFactors|`successfactors/odata-v2`|[SuccessFactors' OData V2 API](https://help.sap.com/doc/74597e67f54d4f448252bad4c2b601c9/2211/en-US/SF_HCM_OData_API_REF_en.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odata/v2` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| +|SAP SuccessFactors|`successfactors/odata-v4`|[SuccessFactors' OData V4 API](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odatav4` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| +|SAP SuccessFactors|`successfactors/rest`|[SuccessFactors' REST APIs](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/rest` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| |SD Worx|`sdworx/default`|SD Worx's [OData API](https://apistaging.cobra.sdworx.com/Resources). We automatically authenticate all requests using the client ID and secret and use `\{api_url\}` as the base URL.| |Silae|`silae/rest`|[Silae's REST API](https://silae-api.document360.io/docs). We automatically authenticate all requests and use 'https://payroll-api.silae.fr/payroll' as the base URL.| |Simployer|`simployer/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -329,6 +335,7 @@ To get started, please pick the relevant API (some tools provide multiple to due |Softgarden|`softgarden/frontend-v3`|[Softgarden's Frontend API v3](https://dev.softgarden.de/frontend-v3/. We automatically authenticate all requests and use 'https://api.softgarden.io/api/rest' as base URL.| |Spark Hire Recruit|`comeet/api`|[Spark Hire Recruit's API.](https://developers.comeet.com/reference/recruiting-api-overview)We automatically authenticate all requests and use `https://api.comeet.com` as the base URL.| |Spott|`spott/protected`|The [Spott API](https://docs.gospott.com). We automatically authenticate all requests and use `https://api.gospott.com` as the base URL.| +|Stardex|`stardex/v1`|We use `https://api.stardex.ai` as the base URL. Find the official docs [here](https://docs.stardex.com/api-reference/introduction-v1).| |Sympa|`sympa/api`|Sympa's [API](https://documenter.getpostman.com/view/33639379/2sA3kXG1vX#intro). We automatically authenticate all requests and use `https://api.sympahr.net/api/` as the base URL.| |Taleez|`taleez/0`|[Taleez's API](https://api.taleez.com/swagger-ui/index.html). We automatically authenticate all requests and use `https://api.taleez.com/0` as the base URL.| |Talent360|`talent360/v3`|We use `https://api.talent360.io/V3` as the base URL. Find the official docs [here](https://api-doc.talent360.io/).| @@ -347,10 +354,13 @@ To get started, please pick the relevant API (some tools provide multiple to due |UKG Pro|`ukgpro/default`|[UKG Pro's HRIS API](https://developer.ukg.com/hcm/reference/get_personnel-v1-person-details). We automatically authenticate all requests and use `https://\{hostname\}` as the base URL.| |UKG Pro|`ukgpro/recruting`|[UKG Pro's Recruiting API](https://developer.ukg.com/hcm/reference/retrieveapplications). We automatically authenticate all requests and use `https://\{hostname\}/talent/recruiting/v2/\{tenantalias\}/api` as the base URL.| |UKG Ready|`ukgready/api`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}` as the base URL.| +|UKG Ready|`ukgready/v2`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests and use `https://\{api_domain\}/ta/rest/v2/companies/!\{short_name\}` as the base URL.| +|VEDA HR Suite|`veda/api`|VEDA's [API](https://api.veda.net). We automatically authenticate all requests and use `https://\{domain\}/api` as the base URL.| |Visma Peple|`peple/hrm`|[Visma Payroll Reporting API](https://api.analytics1.hrm.visma.net/docs/openapi.html). We automatically authenticate all requests using the client credentials and use 'https://api.analytics1.hrm.visma.net' as the base URL.| |Visma Raet - Youforce|`youforce/v1.0`|[Youforce's basic v1.0 API](https://vr-api-integration.github.io/youforce-api-documentation/postman_collections.html). We automatically authenticate all requests and use 'https://api.youforce.com' as base URL.| |Visma YouServe|`youserve/learning`|Visma YouServe [Learning API](https://youserve-domain-api.github.io/SwaggerUI/learning.html). We automatically authenticate all requests using OAuth 2.0 with the provided credentials and use `https://api.youserve.nl/learning/v1.0` as the base URL.| |Workable|`workable/v1`|**Deprecated: Use `v3` instead.** Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| +|Workable|`workable/v3`|We use `https://\{subdomain\}.workable.com/spi/v3` as the base URL. Find the official docs [here](https://www.workable.com/docs/api/overview).| |Workable|`workable/v3`|Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| |Workday|`workday/custom-report`|[Workday's Custom Reports](https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html). We automatically authenticate all requests and use `https://\{domain\}/ccx/service/customreport2/\{tenant\}/` as the base URL. Set your `method` to `GET`. The `path` should be the report path after the tenant, e.g., `/\{report_owner\}/\{report_name\}`. You can include query parameters in the `params` object (e.g., `format=json`).| |Workday|`workday/rest`|[Workday's REST API](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html). We automatically authenticate all requests and use the correct Workday REST base URL for your tenant. The base URL follows the format: https://\{domain\}/api/\{service_name\}/\{version\}/\{tenant\}. You can specify any valid REST endpoint and method. See the Workday REST API documentation for available endpoints. You must specify the `api_options` object and set `service_name` to the name of the service you want to call. You can also specify the `version` (e.g., "v1", "v2"); if omitted, it defaults to "v1".| diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index d364d2d5..05b70f66 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -1053,8 +1053,6 @@ Get timesheets Retrieve attendance data and timesheets from HRIS tools. -**Open Beta Feature:** This endpoint is currently in beta. Please reach out to our support team if you need assistance with implementation. - For a detailed explanation of the data model, validation rules, time zones, payable hours, approvals, and break patterns, see the [Time & Attendance guide](/hris/features/time-and-attendance). diff --git a/pyproject.toml b/pyproject.toml index 61f65460..a07e127b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kombo" -version = "1.4.0" +version = "1.4.1" description = "The official Python SDK for the Kombo Unified API" authors = [{ name = "Kombo Technologies GmbH" },] readme = "README-PYPI.md" diff --git a/src/kombo/_version.py b/src/kombo/_version.py index 5ff814d9..cc5bdde6 100644 --- a/src/kombo/_version.py +++ b/src/kombo/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "kombo" -__version__: str = "1.4.0" +__version__: str = "1.4.1" __openapi_doc_version__: str = "1.0.0" -__gen_version__: str = "2.938.0" -__user_agent__: str = "speakeasy-sdk/python 1.4.0 2.938.0 1.0.0 kombo" +__gen_version__: str = "2.960.7" +__user_agent__: str = "speakeasy-sdk/python 1.4.1 2.960.7 1.0.0 kombo" try: if __package__ is not None: diff --git a/src/kombo/ats.py b/src/kombo/ats.py index 6350a413..58fe9985 100644 --- a/src/kombo/ats.py +++ b/src/kombo/ats.py @@ -970,6 +970,7 @@ def add_application_note( application_id: str, content: str, content_type: models.ContentType, + title: Optional[str] = None, remote_fields: Optional[ Union[ models.PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields, @@ -1004,6 +1005,7 @@ def add_application_note( :param application_id: The Kombo ID of the application you want to create the note for. :param content: UTF-8 content of the note. :param content_type: Content type of the note. Currently only `PLAIN_TEXT` is supported. + :param title: Title of the note, often called \"subject\" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead. :param remote_fields: Tool specific remote fields for the note. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1026,6 +1028,7 @@ def add_application_note( request = models.PostAtsApplicationsApplicationIDNotesRequest( application_id=application_id, body=models.PostAtsApplicationsApplicationIDNotesRequestBody( + title=title, content=content, content_type=content_type, remote_fields=utils.get_pydantic_model( @@ -1104,6 +1107,7 @@ async def add_application_note_async( application_id: str, content: str, content_type: models.ContentType, + title: Optional[str] = None, remote_fields: Optional[ Union[ models.PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields, @@ -1138,6 +1142,7 @@ async def add_application_note_async( :param application_id: The Kombo ID of the application you want to create the note for. :param content: UTF-8 content of the note. :param content_type: Content type of the note. Currently only `PLAIN_TEXT` is supported. + :param title: Title of the note, often called \"subject\" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead. :param remote_fields: Tool specific remote fields for the note. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1160,6 +1165,7 @@ async def add_application_note_async( request = models.PostAtsApplicationsApplicationIDNotesRequest( application_id=application_id, body=models.PostAtsApplicationsApplicationIDNotesRequestBody( + title=title, content=content, content_type=content_type, remote_fields=utils.get_pydantic_model( @@ -1247,6 +1253,8 @@ def get_application_attachments( Get attachments from an application. If the ATS stores the attachments on the candidate, it will get the attachments from the corresponding candidate instead. + This endpoint calls the ATS on every request. To get the files of all candidates without a request per application, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -1341,6 +1349,8 @@ async def get_application_attachments_async( Get attachments from an application. If the ATS stores the attachments on the candidate, it will get the attachments from the corresponding candidate instead. + This endpoint calls the ATS on every request. To get the files of all candidates without a request per application, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -2834,6 +2844,8 @@ def get_candidate_attachments( Get attachments from a candidate, including all attachments of all of their applications. + This endpoint calls the ATS on every request. To get the files of all candidates without a request per candidate, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -2925,6 +2937,8 @@ async def get_candidate_attachments_async( Get attachments from a candidate, including all attachments of all of their applications. + This endpoint calls the ATS on every request. To get the files of all candidates without a request per candidate, use [synced attachments](/ats/features/attachments). + This endpoint requires the permission **Read document attachments** to be enabled in [your scope config](/scopes). @@ -7856,9 +7870,9 @@ def get_ats_attachments( Retrieve all attachments. - These attachments are already synced, so this endpoint never calls the ATS and the files sit in the destination you configured. + Returns the attachments Kombo synced into your file destination. - The on-demand alternatives call the ATS and return a `data_url` we host: [get candidate attachments](/ats/v1/get-candidates-candidate-id-attachments) for every file of one candidate, [get application attachments](/ats/v1/get-applications-application-id-attachments) for the files of one application. + [Attachments](/ats/features/attachments) compares synced attachments with reading files on demand. Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)` @@ -8010,9 +8024,9 @@ async def get_ats_attachments_async( Retrieve all attachments. - These attachments are already synced, so this endpoint never calls the ATS and the files sit in the destination you configured. + Returns the attachments Kombo synced into your file destination. - The on-demand alternatives call the ATS and return a `data_url` we host: [get candidate attachments](/ats/v1/get-candidates-candidate-id-attachments) for every file of one candidate, [get application attachments](/ats/v1/get-applications-application-id-attachments) for the files of one application. + [Attachments](/ats/features/attachments) compares synced attachments with reading files on demand. Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)` diff --git a/src/kombo/general.py b/src/kombo/general.py index 7e85779a..e50fdfe8 100644 --- a/src/kombo/general.py +++ b/src/kombo/general.py @@ -183,7 +183,7 @@ def trigger_sync( Please note that it is **not** necessary nor recommended to call this endpoint periodically on your side. Kombo already performs periodic syncs for you and you should only trigger syncs yourself in special cases (like when a user clicks on a \"Sync\" button in your app). - :param type: The type of the triggered sync. + :param type_: The type of the triggered sync. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -280,7 +280,7 @@ async def trigger_sync_async( Please note that it is **not** necessary nor recommended to call this endpoint periodically on your side. Kombo already performs periodic syncs for you and you should only trigger syncs yourself in special cases (like when a user clicks on a \"Sync\" button in your app). - :param type: The type of the triggered sync. + :param type_: The type of the triggered sync. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -403,6 +403,7 @@ def send_passthrough_request( |Abacus|`abacus/api`|Abacus [REST API](https://apihub.abacus.ch/). We automatically authenticate all requests and use `https://\{\{abacusUrl\}\}/api/entity/v1/mandants/\{\{mandantId\}\}` as the base URL.| |Absence.io|`absenceio/v2`|Absence.io [API](https://docs.absence.io/). We automatically authenticate all requests and use `https://app.absence.io/api/v2` as the base URL.| |ADP Decidium|`adpdecidium/default`|[ADP Decidium API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| + |ADP Link|`adplink/default`|[ADP Link API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| |ADP Workforce Now|`adpworkforcenow/default`|[ADP Workforce Now API v2](https://developers.adp.com/build/api-explorer/hcm-offrg-wfn). We automatically authenticate all requests and use the correct subdomain.| |AFAS Software|`afas/api`|AFAS' [API](https://connect.afas.nl/rest/get). We automatically authenticate all requests and use `https://\{domain\}/ProfitRestServices` as the base URL.| |AlexisHR|`alexishr/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -416,6 +417,7 @@ def send_passthrough_request( |BambooHR|`bamboohr/v1`|BambooHR's [API](https://documentation.bamboohr.com/reference/get-employee). We automatically authenticate all requests using the customer credentials `https://api.bamboohr.com/api/gateway.php/\{subdomain\}/v1` as the base URL.| |BITE|`bite/v1`|[Bite's v1 API](https://api.b-ite.io/docs/#/). We automatically authenticate all requests and use your configured API base URL with `/v1` appended (default `https://api.b-ite.io/v1`).| |BoondManager|`boondmanager/api`|BoondManager [REST API](https://ui.boondmanager.com/administrator/developer/apisandbox). We automatically authenticate all requests and use `https://ui.boondmanager.com/api` as the base URL.| + |Breathe HR|`breathehr/v1`|Breathe HR's [API](https://developer.breathehr.com/). We automatically authenticate all requests and use `https://api.breathehr.com/v1` as the base URL.| |Breezy HR|`breezyhr/v3`|[BreezyHR's v3 API](https://developer.breezy.hr/reference/overview). We automatically authenticate all requests and use \"https://api.breezy.hr/v3/\" as the base URL.| |Bullhorn for Salesforce|`bullhorn4salesforce/v66`|We use `https://\{subdomain\}.my.salesforce.com/services/data/v66.0` as the base URL. Find the official docs [here](https://kb.bullhorn.com/bh4sf/Content/BH4SF/Topics/bh4sfRestAPI.htm).| |Bullhorn|`bullhorn/default`|[Bullhorn's API](https://bullhorn.github.io/rest-api-docs/index.html). We automatically use the right `https://\{subdomain\}.bullhornstaffing.com/rest-services/\{corpToken\}` base URL.| @@ -423,7 +425,7 @@ def send_passthrough_request( |Carerix|`carerix/api`|Carerix [REST API](https://docs.carerix.io/rest/introduction). We automatically authenticate all requests and use `https://api.carerix.com` as the base URL. Please note that Carerix uses XML for request and response bodies.| |Carerix|`carerixgraphql/graphql`|Carerix [GraphQL API](https://docs.carerix.io/graphql/welcome). We automatically authenticate all requests (OAuth2 client credentials) and use `https://api.carerix.io/graphql/v1` as the base URL. Send GraphQL requests as `POST /graphql` with a JSON body of `\{ \"query\": \"...\", \"variables\": \{ ... \} \}`.| |CEGID TalentSoft Customer|`talentsoftcustomer/v1`|Cegid Talentsoft Recruiting FrontOffice API: [API Documentation](https://developers.cegid.com/api-details#api=cegid-talentsoft-recruiting-frontoffice) We automatically authenticate all requests and use `https://\{customer_subdomain\}.talent-soft.com/api/v1` as the base URL.| - |CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://developers.cegid.com/api-details). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| + |CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://cegid-hr-developers.talentsoft.net/docs/Talentsoft%20Recrutement/frontoffice/). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| |Ceipal|`ceipal/v1`|We use `https://api.ceipal.com/v1` as the base URL. Find the official docs [here](https://developer.ceipal.com/ceipal-ats-version-one/ceipal-ats-v1-api-reference).| |Cezanne HR|`cezannehr/dataservice`|[CezanneHR's v7 dataservice API](https://api.cezannehr.com/).We automatically authenticate all requests and use the base URL `https://\{subdomain\}.cezanneondemand.com/cezanneondemand/v7/dataservice.svc`| |Compleet (Persy)|`compleetpersy/api`|Compleet Persy [REST API](https://persy-api.refined.site/space/PAPI/450166808/Requirements+Jobfeed+%2F+Anforderungen+f%C3%BCr+Jobfeeds). We automatically authenticate all requests and use `https://www.germanpersonnel.de/persy/api/v1` as the base URL.| @@ -451,7 +453,7 @@ def send_passthrough_request( |Dayforce|`dayforce/V1`|[Dayforce's API](https://developers.dayforce.com/Build/Home.aspx). We automatically authenticate all requests and use `\{\{baseUrl\}\}/Api/\{\{clientNamespace\}\}/V1` as the base URL| |Deel|`deel/api`|Deel's [API](https://developer.deel.com/reference/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}/rest` as the base URL.| |Digital Recruiters|`digitalrecruiters/api`|Cegid Digital Recruiters [Talent Acquisition API](https://cegid-hr-developers.talentsoft.net/docs/tutorial-basics/Talent%20Acquisition/Getting%20Started). We automatically authenticate all requests by replacing `:token` in the request URL with your configured access token and use your configured Digital Recruiters domain as the base URL.| - |Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication and use `https://\{subdomain\}.docebosaas.com` as the base URL.| + |Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication via OAuth and use `https://\{subdomain\}.docebosaas.com` as the base URL.| |Eightfold|`eightfold/api`|Eightfold's [API](https://apidocs.eightfold.ai/). We automatically authenticate all requests and use `https://apiv2.\{region\}/api/v2/core/` as the base URL.| |Employment Hero|`employmenthero/default`|EmploymentHero [API](https://developer.employmenthero.com/api-references/#icon-book-open-introduction). We automatically authenticate all requests using the credentials supplied by the customer and use `https://api.employmenthero.com/api` as the base URL.| |Emply People|`emplypeople/v2`|We use `https://api.emply.com/v2` as the base URL. Find the official docs [here](https://api.emply.com/v2/index.html).| @@ -483,7 +485,7 @@ def send_passthrough_request( |Heyrecruit|`heyrecruit/v2`|[Heyrecruit's v2 API](https://documenter.getpostman.com/view/23241256/2s9YysBLcf#47e271ac-47c8-4c75-9cc6-b8c506e9dad6). We automatically authenticate all requests using the client ID and secret and use `https://app.heyrecruit.de/api/v2` as the base URL.| |HiBob|`hibob/docs`|This passthrough is only used for fetching employee documents in HiBob. It is present as a workaround while we are working on a new endpoint for fetching documents in HRIS. It should not be used for any other purpose. We automatically authenticate all requests using the service user credentials and use `https://app.hibob.com/api/docs/employees/` as the base URL.| |HiBob|`hibob/hire`|[HiBob's Hire API](https://apidocs.hibob.com/docs/how-to-integrate-with-ats-hire-api). We automatically authenticate all requests using the hire service user credentials. The base URL is configured during the integration setup.| - |HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| + |HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people), including the [hiring endpoints](https://apidocs.hibob.com/docs/explore-hiring-api). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| |HoorayHR|`hoorayhr/api`|[HoorayHR API](https://api.hoorayhr.io/documentation/). We automatically authenticate all requests and use `https://api.hoorayhr.io` as the base URL.| |HR Office|`hroffice/soap`|[HROffice SOAP API](https://api.hroffice.nl/HROfficeCoreService.asmx). We automatically authenticate all requests and wrap them in a SOAP envelope. Build the request `Body` with the raw XML parameters for your operation (e.g., `\1\`). Use `/` as your `path`. Set your `method` to `POST`. You need to specify the `api_options` object and set `operation_name` to the SOAP operation you want to call (e.g., `GetAllJobByLanguage`).| |HR WORKS|`hrworks/v2`|HRWorks's v2 [API](https://developers.hrworks.de/2.0/endpoints). We automatically authenticate all requests using the customer credentials.| @@ -498,10 +500,11 @@ def send_passthrough_request( |JobAdder|`jobadder/api`|We use `https://api.jobadder.com/v2` as the base URL. Find the official docs [here](https://api.jobadder.com/v2/docs).| |JobDiva|`jobdiva/api`|We automatically authenticate all requests and use `https://api.jobdiva.com` as the base URL.| |Jobvite|`jobvite/api`|We automatically authenticate all requests and use 'https://api.jobvite.com/api/v2' as the base URL.| - |Jobvite|`jobvite/v2`|We use `https://api.jobvite.com/api/v2` as the base URL. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| + |Jobvite|`jobvite/v2`|Production connections use `https://api.jobvite.com/api/v2` as the base URL. Staging connections (`remote_environment: STAGING`) use `https://api.jvistg2.com/api/v2`. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| |Jobylon|`jobylon/feed`|The [Jobylon Feed API](https://developer.jobylon.com/feed-api/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/feeds/\{job_hash\}` as the base URL.| |Jobylon|`jobylon/push`|The [Jobylon Push API](https://developer.jobylon.com/push-api-and-webhooks/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/p1` as the base URL.| |JOIN|`join/v2`|Join's [V2 API](https://docs.join.com/reference/getting-started). We automatically authenticate all requests and use `https://api.join.com/v2` as the base URL.| + |Kallidus (Sapling)|`sapling/v1`|Kallidus Sapling's [API](https://kallidus.readme.io/v1.9/reference/overview). We automatically authenticate all requests and use `https://\{subdomain\}.saplingapp.io/api/v1/beta` (US) or `https://\{subdomain\}.kallidus-suite.com/hr/api/v1/beta` (UK) as the base URL.| |Kenjo|`kenjo/api`|Kenjo's [API](https://kenjo.readme.io/reference/generate-the-api-key). We automatically authenticate all requests using the API key. The base URL is `https://api.kenjo.io/` (or `https://sandbox-api.kenjo.io/` for sandbox environments).| |Kula|`kula/v1`|Kula's [REST API](https://developers.kula.ai/docs/getting-started/overview). We automatically authenticate all requests with the provided credentials and use `https://api.kula.ai/v1` as the base URL.| |Lattice Talent|`latticetalent/talent`|Lattice's [Talent API](https://developers.lattice.com/reference/introduction). We automatically authenticate all requests using API key credentials with `https://api.latticehq.com` as the base URL.| @@ -513,7 +516,7 @@ def send_passthrough_request( |Lever|`lever/v1`|[Lever's v1 API](https://hire.lever.co/developer/documentation). We automatically authenticate all requests using the partner credentials which have been configured in the Lever tool settings (this uses Kombo's partner credentials by default).| |LinkedIn Learning|`linkedinlearning/v2`|LinkedIn Learning [API v2](https://learn.microsoft.com/en-us/linkedin/learning/). We automatically handle authentication and use `https://api.linkedin.com/v2` as the base URL.| |Logic Melon|`logicmelon/json`|We use `https://api.logicmelon.co.uk` as the base URL. Find the official docs [here](https://api.logicmelon.com/JSON/Multiposter.asmx).| - |Loket|`loket/api`|[Loket's REST API](https://developers.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| + |Loket|`loket/api`|[Loket's REST API](https://developer.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| |Loxo|`loxo/v1`|[Loxo's API](https://loxo.readme.io/reference/loxo-api). We automatically authenticate all requests and use 'https://app.loxo.co/api/\{agency_slug\}' as base URL.| |Lucca|`lucca/api`|[Luccas's API](https://developers.lucca.fr/api-reference/legacy/introduction). We automatically authenticate all requests and use 'https://\{account\}.\{ilucca|ilucca-demo\}.\{region\}/' as the base URL.| |Manatal|`manatal/career-page`|Manatal's Career Page API. We use `https://api.manatal.com/open/v3/career-page/\{client_slug\}` as the base URL.| @@ -550,6 +553,7 @@ def send_passthrough_request( |PeopleXD|`peoplexd/b2b`|PeopleXD's [B2B API](https://documenter.getpostman.com/view/3101638/TzeTHUDu#intro). We automatically authenticate all requests and use `https://api.corehr.com/ws/\{tenant_id\}/corehr` or `https://uatapi.corehr.com/ws/\{tenant_id\}/corehr` as the base URL.| |Personio|`personio/jobboard`|API endpoints exposed on Personio's public job board pages ([currently just the XML feed](https://developer.personio.de/reference/get_xml)). We automatically use the right `https://\{company\}.jobs.personio.de` base URL.| |Personio|`personio/personnel`|Personio's [Personnel Data API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v1` as the base URL.| + |Personio|`personio/personnelv2`|Personio's [V2 Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/personnelv2`|Personio's [V2 Personnel Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/recruiting`|Personio's [Recruiting API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the Recruiting access token and use `https://api.personio.de/v1/recruiting` as the base URL.| |Personio|`personio/recruitingV2`|Personio's [V2 Recruiting API](https://developer.personio.de/reference/get_v2-recruiting-applications). We automatically authenticate all requests using the Recruiting access token, send the `Beta` header and use `https://api.personio.de/v2/recruiting` as the base URL.| @@ -566,6 +570,8 @@ def send_passthrough_request( |Sage People|`sagepeople/salesforce-rest-api`|Sage People is built on Salesforce's [API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm). We automatically authenticate all requests and use `https://\{customer_name\}.my.salesforce.com/` as the base URL.| |SAP SuccessFactors|`successfactors/lms-odata-v4`|We use `https://\{api_domain\}/learning/odatav4` as the base URL. Find the official docs [here](https://help.sap.com/docs/successfactors-learning/sap-successfactors-learning-odata-apis).| |SAP SuccessFactors|`successfactors/odata-v2`|[SuccessFactors' OData V2 API](https://help.sap.com/doc/74597e67f54d4f448252bad4c2b601c9/2211/en-US/SF_HCM_OData_API_REF_en.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odata/v2` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| + |SAP SuccessFactors|`successfactors/odata-v4`|[SuccessFactors' OData V4 API](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odatav4` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| + |SAP SuccessFactors|`successfactors/rest`|[SuccessFactors' REST APIs](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/rest` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| |SD Worx|`sdworx/default`|SD Worx's [OData API](https://apistaging.cobra.sdworx.com/Resources). We automatically authenticate all requests using the client ID and secret and use `\{api_url\}` as the base URL.| |Silae|`silae/rest`|[Silae's REST API](https://silae-api.document360.io/docs). We automatically authenticate all requests and use 'https://payroll-api.silae.fr/payroll' as the base URL.| |Simployer|`simployer/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -578,6 +584,7 @@ def send_passthrough_request( |Softgarden|`softgarden/frontend-v3`|[Softgarden's Frontend API v3](https://dev.softgarden.de/frontend-v3/. We automatically authenticate all requests and use 'https://api.softgarden.io/api/rest' as base URL.| |Spark Hire Recruit|`comeet/api`|[Spark Hire Recruit's API.](https://developers.comeet.com/reference/recruiting-api-overview)We automatically authenticate all requests and use `https://api.comeet.com` as the base URL.| |Spott|`spott/protected`|The [Spott API](https://docs.gospott.com). We automatically authenticate all requests and use `https://api.gospott.com` as the base URL.| + |Stardex|`stardex/v1`|We use `https://api.stardex.ai` as the base URL. Find the official docs [here](https://docs.stardex.com/api-reference/introduction-v1).| |Sympa|`sympa/api`|Sympa's [API](https://documenter.getpostman.com/view/33639379/2sA3kXG1vX#intro). We automatically authenticate all requests and use `https://api.sympahr.net/api/` as the base URL.| |Taleez|`taleez/0`|[Taleez's API](https://api.taleez.com/swagger-ui/index.html). We automatically authenticate all requests and use `https://api.taleez.com/0` as the base URL.| |Talent360|`talent360/v3`|We use `https://api.talent360.io/V3` as the base URL. Find the official docs [here](https://api-doc.talent360.io/).| @@ -596,10 +603,13 @@ def send_passthrough_request( |UKG Pro|`ukgpro/default`|[UKG Pro's HRIS API](https://developer.ukg.com/hcm/reference/get_personnel-v1-person-details). We automatically authenticate all requests and use `https://\{hostname\}` as the base URL.| |UKG Pro|`ukgpro/recruting`|[UKG Pro's Recruiting API](https://developer.ukg.com/hcm/reference/retrieveapplications). We automatically authenticate all requests and use `https://\{hostname\}/talent/recruiting/v2/\{tenantalias\}/api` as the base URL.| |UKG Ready|`ukgready/api`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}` as the base URL.| + |UKG Ready|`ukgready/v2`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests and use `https://\{api_domain\}/ta/rest/v2/companies/!\{short_name\}` as the base URL.| + |VEDA HR Suite|`veda/api`|VEDA's [API](https://api.veda.net). We automatically authenticate all requests and use `https://\{domain\}/api` as the base URL.| |Visma Peple|`peple/hrm`|[Visma Payroll Reporting API](https://api.analytics1.hrm.visma.net/docs/openapi.html). We automatically authenticate all requests using the client credentials and use 'https://api.analytics1.hrm.visma.net' as the base URL.| |Visma Raet - Youforce|`youforce/v1.0`|[Youforce's basic v1.0 API](https://vr-api-integration.github.io/youforce-api-documentation/postman_collections.html). We automatically authenticate all requests and use 'https://api.youforce.com' as base URL.| |Visma YouServe|`youserve/learning`|Visma YouServe [Learning API](https://youserve-domain-api.github.io/SwaggerUI/learning.html). We automatically authenticate all requests using OAuth 2.0 with the provided credentials and use `https://api.youserve.nl/learning/v1.0` as the base URL.| |Workable|`workable/v1`|**Deprecated: Use `v3` instead.** Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| + |Workable|`workable/v3`|We use `https://\{subdomain\}.workable.com/spi/v3` as the base URL. Find the official docs [here](https://www.workable.com/docs/api/overview).| |Workable|`workable/v3`|Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| |Workday|`workday/custom-report`|[Workday's Custom Reports](https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html). We automatically authenticate all requests and use `https://\{domain\}/ccx/service/customreport2/\{tenant\}/` as the base URL. Set your `method` to `GET`. The `path` should be the report path after the tenant, e.g., `/\{report_owner\}/\{report_name\}`. You can include query parameters in the `params` object (e.g., `format=json`).| |Workday|`workday/rest`|[Workday's REST API](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html). We automatically authenticate all requests and use the correct Workday REST base URL for your tenant. The base URL follows the format: https://\{domain\}/api/\{service_name\}/\{version\}/\{tenant\}. You can specify any valid REST endpoint and method. See the Workday REST API documentation for available endpoints. You must specify the `api_options` object and set `service_name` to the name of the service you want to call. You can also specify the `version` (e.g., \"v1\", \"v2\"); if omitted, it defaults to \"v1\".| @@ -762,6 +772,7 @@ async def send_passthrough_request_async( |Abacus|`abacus/api`|Abacus [REST API](https://apihub.abacus.ch/). We automatically authenticate all requests and use `https://\{\{abacusUrl\}\}/api/entity/v1/mandants/\{\{mandantId\}\}` as the base URL.| |Absence.io|`absenceio/v2`|Absence.io [API](https://docs.absence.io/). We automatically authenticate all requests and use `https://app.absence.io/api/v2` as the base URL.| |ADP Decidium|`adpdecidium/default`|[ADP Decidium API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| + |ADP Link|`adplink/default`|[ADP Link API](https://developers.adp.com/apis/api-explorer/hcm-offrg-dge). We automatically authenticate all requests and use `https://api.eu.adp.com` as the base URL.| |ADP Workforce Now|`adpworkforcenow/default`|[ADP Workforce Now API v2](https://developers.adp.com/build/api-explorer/hcm-offrg-wfn). We automatically authenticate all requests and use the correct subdomain.| |AFAS Software|`afas/api`|AFAS' [API](https://connect.afas.nl/rest/get). We automatically authenticate all requests and use `https://\{domain\}/ProfitRestServices` as the base URL.| |AlexisHR|`alexishr/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -775,6 +786,7 @@ async def send_passthrough_request_async( |BambooHR|`bamboohr/v1`|BambooHR's [API](https://documentation.bamboohr.com/reference/get-employee). We automatically authenticate all requests using the customer credentials `https://api.bamboohr.com/api/gateway.php/\{subdomain\}/v1` as the base URL.| |BITE|`bite/v1`|[Bite's v1 API](https://api.b-ite.io/docs/#/). We automatically authenticate all requests and use your configured API base URL with `/v1` appended (default `https://api.b-ite.io/v1`).| |BoondManager|`boondmanager/api`|BoondManager [REST API](https://ui.boondmanager.com/administrator/developer/apisandbox). We automatically authenticate all requests and use `https://ui.boondmanager.com/api` as the base URL.| + |Breathe HR|`breathehr/v1`|Breathe HR's [API](https://developer.breathehr.com/). We automatically authenticate all requests and use `https://api.breathehr.com/v1` as the base URL.| |Breezy HR|`breezyhr/v3`|[BreezyHR's v3 API](https://developer.breezy.hr/reference/overview). We automatically authenticate all requests and use \"https://api.breezy.hr/v3/\" as the base URL.| |Bullhorn for Salesforce|`bullhorn4salesforce/v66`|We use `https://\{subdomain\}.my.salesforce.com/services/data/v66.0` as the base URL. Find the official docs [here](https://kb.bullhorn.com/bh4sf/Content/BH4SF/Topics/bh4sfRestAPI.htm).| |Bullhorn|`bullhorn/default`|[Bullhorn's API](https://bullhorn.github.io/rest-api-docs/index.html). We automatically use the right `https://\{subdomain\}.bullhornstaffing.com/rest-services/\{corpToken\}` base URL.| @@ -782,7 +794,7 @@ async def send_passthrough_request_async( |Carerix|`carerix/api`|Carerix [REST API](https://docs.carerix.io/rest/introduction). We automatically authenticate all requests and use `https://api.carerix.com` as the base URL. Please note that Carerix uses XML for request and response bodies.| |Carerix|`carerixgraphql/graphql`|Carerix [GraphQL API](https://docs.carerix.io/graphql/welcome). We automatically authenticate all requests (OAuth2 client credentials) and use `https://api.carerix.io/graphql/v1` as the base URL. Send GraphQL requests as `POST /graphql` with a JSON body of `\{ \"query\": \"...\", \"variables\": \{ ... \} \}`.| |CEGID TalentSoft Customer|`talentsoftcustomer/v1`|Cegid Talentsoft Recruiting FrontOffice API: [API Documentation](https://developers.cegid.com/api-details#api=cegid-talentsoft-recruiting-frontoffice) We automatically authenticate all requests and use `https://\{customer_subdomain\}.talent-soft.com/api/v1` as the base URL.| - |CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://developers.cegid.com/api-details). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| + |CEGID TalentSoft FrontOffice|`talentsoft/v2`|Cegid Talentsoft Recruiting FrontOffice [API](https://cegid-hr-developers.talentsoft.net/docs/Talentsoft%20Recrutement/frontoffice/). We automatically authenticate all requests using the provided credentials and use `https://\{domain\}/api/v2` as the base URL.| |Ceipal|`ceipal/v1`|We use `https://api.ceipal.com/v1` as the base URL. Find the official docs [here](https://developer.ceipal.com/ceipal-ats-version-one/ceipal-ats-v1-api-reference).| |Cezanne HR|`cezannehr/dataservice`|[CezanneHR's v7 dataservice API](https://api.cezannehr.com/).We automatically authenticate all requests and use the base URL `https://\{subdomain\}.cezanneondemand.com/cezanneondemand/v7/dataservice.svc`| |Compleet (Persy)|`compleetpersy/api`|Compleet Persy [REST API](https://persy-api.refined.site/space/PAPI/450166808/Requirements+Jobfeed+%2F+Anforderungen+f%C3%BCr+Jobfeeds). We automatically authenticate all requests and use `https://www.germanpersonnel.de/persy/api/v1` as the base URL.| @@ -810,7 +822,7 @@ async def send_passthrough_request_async( |Dayforce|`dayforce/V1`|[Dayforce's API](https://developers.dayforce.com/Build/Home.aspx). We automatically authenticate all requests and use `\{\{baseUrl\}\}/Api/\{\{clientNamespace\}\}/V1` as the base URL| |Deel|`deel/api`|Deel's [API](https://developer.deel.com/reference/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}/rest` as the base URL.| |Digital Recruiters|`digitalrecruiters/api`|Cegid Digital Recruiters [Talent Acquisition API](https://cegid-hr-developers.talentsoft.net/docs/tutorial-basics/Talent%20Acquisition/Getting%20Started). We automatically authenticate all requests by replacing `:token` in the request URL with your configured access token and use your configured Digital Recruiters domain as the base URL.| - |Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication and use `https://\{subdomain\}.docebosaas.com` as the base URL.| + |Docebo|`docebo/api`|Docebo [API](https://developer.docebo.com). We automatically handle authentication via OAuth and use `https://\{subdomain\}.docebosaas.com` as the base URL.| |Eightfold|`eightfold/api`|Eightfold's [API](https://apidocs.eightfold.ai/). We automatically authenticate all requests and use `https://apiv2.\{region\}/api/v2/core/` as the base URL.| |Employment Hero|`employmenthero/default`|EmploymentHero [API](https://developer.employmenthero.com/api-references/#icon-book-open-introduction). We automatically authenticate all requests using the credentials supplied by the customer and use `https://api.employmenthero.com/api` as the base URL.| |Emply People|`emplypeople/v2`|We use `https://api.emply.com/v2` as the base URL. Find the official docs [here](https://api.emply.com/v2/index.html).| @@ -842,7 +854,7 @@ async def send_passthrough_request_async( |Heyrecruit|`heyrecruit/v2`|[Heyrecruit's v2 API](https://documenter.getpostman.com/view/23241256/2s9YysBLcf#47e271ac-47c8-4c75-9cc6-b8c506e9dad6). We automatically authenticate all requests using the client ID and secret and use `https://app.heyrecruit.de/api/v2` as the base URL.| |HiBob|`hibob/docs`|This passthrough is only used for fetching employee documents in HiBob. It is present as a workaround while we are working on a new endpoint for fetching documents in HRIS. It should not be used for any other purpose. We automatically authenticate all requests using the service user credentials and use `https://app.hibob.com/api/docs/employees/` as the base URL.| |HiBob|`hibob/hire`|[HiBob's Hire API](https://apidocs.hibob.com/docs/how-to-integrate-with-ats-hire-api). We automatically authenticate all requests using the hire service user credentials. The base URL is configured during the integration setup.| - |HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| + |HiBob|`hibob/v1`|[HiBob's v1 API](https://apidocs.hibob.com/reference/get_people), including the [hiring endpoints](https://apidocs.hibob.com/docs/explore-hiring-api). We automatically authenticate all requests using the service user credentials (or, for old integrations, the API key) and use `https://api.hibob.com/v1` as the base URL.| |HoorayHR|`hoorayhr/api`|[HoorayHR API](https://api.hoorayhr.io/documentation/). We automatically authenticate all requests and use `https://api.hoorayhr.io` as the base URL.| |HR Office|`hroffice/soap`|[HROffice SOAP API](https://api.hroffice.nl/HROfficeCoreService.asmx). We automatically authenticate all requests and wrap them in a SOAP envelope. Build the request `Body` with the raw XML parameters for your operation (e.g., `\1\`). Use `/` as your `path`. Set your `method` to `POST`. You need to specify the `api_options` object and set `operation_name` to the SOAP operation you want to call (e.g., `GetAllJobByLanguage`).| |HR WORKS|`hrworks/v2`|HRWorks's v2 [API](https://developers.hrworks.de/2.0/endpoints). We automatically authenticate all requests using the customer credentials.| @@ -857,10 +869,11 @@ async def send_passthrough_request_async( |JobAdder|`jobadder/api`|We use `https://api.jobadder.com/v2` as the base URL. Find the official docs [here](https://api.jobadder.com/v2/docs).| |JobDiva|`jobdiva/api`|We automatically authenticate all requests and use `https://api.jobdiva.com` as the base URL.| |Jobvite|`jobvite/api`|We automatically authenticate all requests and use 'https://api.jobvite.com/api/v2' as the base URL.| - |Jobvite|`jobvite/v2`|We use `https://api.jobvite.com/api/v2` as the base URL. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| + |Jobvite|`jobvite/v2`|Production connections use `https://api.jobvite.com/api/v2` as the base URL. Staging connections (`remote_environment: STAGING`) use `https://api.jvistg2.com/api/v2`. Find the official docs [here](https://help.jobvite.com/hc/en-us/articles/8870636608925-Jobvite-API).| |Jobylon|`jobylon/feed`|The [Jobylon Feed API](https://developer.jobylon.com/feed-api/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/feeds/\{job_hash\}` as the base URL.| |Jobylon|`jobylon/push`|The [Jobylon Push API](https://developer.jobylon.com/push-api-and-webhooks/). We automatically authenticate all requests and use `https://\{subdomain\}.jobylon.com/p1` as the base URL.| |JOIN|`join/v2`|Join's [V2 API](https://docs.join.com/reference/getting-started). We automatically authenticate all requests and use `https://api.join.com/v2` as the base URL.| + |Kallidus (Sapling)|`sapling/v1`|Kallidus Sapling's [API](https://kallidus.readme.io/v1.9/reference/overview). We automatically authenticate all requests and use `https://\{subdomain\}.saplingapp.io/api/v1/beta` (US) or `https://\{subdomain\}.kallidus-suite.com/hr/api/v1/beta` (UK) as the base URL.| |Kenjo|`kenjo/api`|Kenjo's [API](https://kenjo.readme.io/reference/generate-the-api-key). We automatically authenticate all requests using the API key. The base URL is `https://api.kenjo.io/` (or `https://sandbox-api.kenjo.io/` for sandbox environments).| |Kula|`kula/v1`|Kula's [REST API](https://developers.kula.ai/docs/getting-started/overview). We automatically authenticate all requests with the provided credentials and use `https://api.kula.ai/v1` as the base URL.| |Lattice Talent|`latticetalent/talent`|Lattice's [Talent API](https://developers.lattice.com/reference/introduction). We automatically authenticate all requests using API key credentials with `https://api.latticehq.com` as the base URL.| @@ -872,7 +885,7 @@ async def send_passthrough_request_async( |Lever|`lever/v1`|[Lever's v1 API](https://hire.lever.co/developer/documentation). We automatically authenticate all requests using the partner credentials which have been configured in the Lever tool settings (this uses Kombo's partner credentials by default).| |LinkedIn Learning|`linkedinlearning/v2`|LinkedIn Learning [API v2](https://learn.microsoft.com/en-us/linkedin/learning/). We automatically handle authentication and use `https://api.linkedin.com/v2` as the base URL.| |Logic Melon|`logicmelon/json`|We use `https://api.logicmelon.co.uk` as the base URL. Find the official docs [here](https://api.logicmelon.com/JSON/Multiposter.asmx).| - |Loket|`loket/api`|[Loket's REST API](https://developers.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| + |Loket|`loket/api`|[Loket's REST API](https://developer.loket.nl/). We automatically authenticate all requests and use `https://\{api_domain\}` as the base URL, where `api_domain` is the API domain configured during integration setup (e.g. `api.loket.nl`).| |Loxo|`loxo/v1`|[Loxo's API](https://loxo.readme.io/reference/loxo-api). We automatically authenticate all requests and use 'https://app.loxo.co/api/\{agency_slug\}' as base URL.| |Lucca|`lucca/api`|[Luccas's API](https://developers.lucca.fr/api-reference/legacy/introduction). We automatically authenticate all requests and use 'https://\{account\}.\{ilucca|ilucca-demo\}.\{region\}/' as the base URL.| |Manatal|`manatal/career-page`|Manatal's Career Page API. We use `https://api.manatal.com/open/v3/career-page/\{client_slug\}` as the base URL.| @@ -909,6 +922,7 @@ async def send_passthrough_request_async( |PeopleXD|`peoplexd/b2b`|PeopleXD's [B2B API](https://documenter.getpostman.com/view/3101638/TzeTHUDu#intro). We automatically authenticate all requests and use `https://api.corehr.com/ws/\{tenant_id\}/corehr` or `https://uatapi.corehr.com/ws/\{tenant_id\}/corehr` as the base URL.| |Personio|`personio/jobboard`|API endpoints exposed on Personio's public job board pages ([currently just the XML feed](https://developer.personio.de/reference/get_xml)). We automatically use the right `https://\{company\}.jobs.personio.de` base URL.| |Personio|`personio/personnel`|Personio's [Personnel Data API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v1` as the base URL.| + |Personio|`personio/personnelv2`|Personio's [V2 Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/personnelv2`|Personio's [V2 Personnel Data API](https://developer.personio.de/v2.0/reference/introduction). We automatically authenticate all requests using the client ID and secret and use `https://api.personio.de/v2` as the base URL.| |Personio|`personio/recruiting`|Personio's [Recruiting API](https://developer.personio.de/reference/get_company-employees). We automatically authenticate all requests using the Recruiting access token and use `https://api.personio.de/v1/recruiting` as the base URL.| |Personio|`personio/recruitingV2`|Personio's [V2 Recruiting API](https://developer.personio.de/reference/get_v2-recruiting-applications). We automatically authenticate all requests using the Recruiting access token, send the `Beta` header and use `https://api.personio.de/v2/recruiting` as the base URL.| @@ -925,6 +939,8 @@ async def send_passthrough_request_async( |Sage People|`sagepeople/salesforce-rest-api`|Sage People is built on Salesforce's [API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm). We automatically authenticate all requests and use `https://\{customer_name\}.my.salesforce.com/` as the base URL.| |SAP SuccessFactors|`successfactors/lms-odata-v4`|We use `https://\{api_domain\}/learning/odatav4` as the base URL. Find the official docs [here](https://help.sap.com/docs/successfactors-learning/sap-successfactors-learning-odata-apis).| |SAP SuccessFactors|`successfactors/odata-v2`|[SuccessFactors' OData V2 API](https://help.sap.com/doc/74597e67f54d4f448252bad4c2b601c9/2211/en-US/SF_HCM_OData_API_REF_en.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odata/v2` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| + |SAP SuccessFactors|`successfactors/odata-v4`|[SuccessFactors' OData V4 API](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/odatav4` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| + |SAP SuccessFactors|`successfactors/rest`|[SuccessFactors' REST APIs](https://help.sap.com/doc/a7c08a422cc14e1eaaffee83610a981d/2611/en-US/SF_HCM_OData_API_DEV.pdf). We automatically authenticate all requests and use `https://\{api_domain\}\{path?\}/rest` as the base URL (the optional `\{path\}` is used when connecting via proxied/gateway domains).| |SD Worx|`sdworx/default`|SD Worx's [OData API](https://apistaging.cobra.sdworx.com/Resources). We automatically authenticate all requests using the client ID and secret and use `\{api_url\}` as the base URL.| |Silae|`silae/rest`|[Silae's REST API](https://silae-api.document360.io/docs). We automatically authenticate all requests and use 'https://payroll-api.silae.fr/payroll' as the base URL.| |Simployer|`simployer/v1`|[AlexisHR's v1 API](https://docs.alexishr.com/) We automatically authenticate all requests and use `https://\{subdomain\}.alexishr.com` as base URL.| @@ -937,6 +953,7 @@ async def send_passthrough_request_async( |Softgarden|`softgarden/frontend-v3`|[Softgarden's Frontend API v3](https://dev.softgarden.de/frontend-v3/. We automatically authenticate all requests and use 'https://api.softgarden.io/api/rest' as base URL.| |Spark Hire Recruit|`comeet/api`|[Spark Hire Recruit's API.](https://developers.comeet.com/reference/recruiting-api-overview)We automatically authenticate all requests and use `https://api.comeet.com` as the base URL.| |Spott|`spott/protected`|The [Spott API](https://docs.gospott.com). We automatically authenticate all requests and use `https://api.gospott.com` as the base URL.| + |Stardex|`stardex/v1`|We use `https://api.stardex.ai` as the base URL. Find the official docs [here](https://docs.stardex.com/api-reference/introduction-v1).| |Sympa|`sympa/api`|Sympa's [API](https://documenter.getpostman.com/view/33639379/2sA3kXG1vX#intro). We automatically authenticate all requests and use `https://api.sympahr.net/api/` as the base URL.| |Taleez|`taleez/0`|[Taleez's API](https://api.taleez.com/swagger-ui/index.html). We automatically authenticate all requests and use `https://api.taleez.com/0` as the base URL.| |Talent360|`talent360/v3`|We use `https://api.talent360.io/V3` as the base URL. Find the official docs [here](https://api-doc.talent360.io/).| @@ -955,10 +972,13 @@ async def send_passthrough_request_async( |UKG Pro|`ukgpro/default`|[UKG Pro's HRIS API](https://developer.ukg.com/hcm/reference/get_personnel-v1-person-details). We automatically authenticate all requests and use `https://\{hostname\}` as the base URL.| |UKG Pro|`ukgpro/recruting`|[UKG Pro's Recruiting API](https://developer.ukg.com/hcm/reference/retrieveapplications). We automatically authenticate all requests and use `https://\{hostname\}/talent/recruiting/v2/\{tenantalias\}/api` as the base URL.| |UKG Ready|`ukgready/api`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests using the provided credentials and use `https://\{api_domain\}` as the base URL.| + |UKG Ready|`ukgready/v2`|UKG Ready [API](https://secure.saashr.com/ta/docs/rest/public/). We automatically authenticate all requests and use `https://\{api_domain\}/ta/rest/v2/companies/!\{short_name\}` as the base URL.| + |VEDA HR Suite|`veda/api`|VEDA's [API](https://api.veda.net). We automatically authenticate all requests and use `https://\{domain\}/api` as the base URL.| |Visma Peple|`peple/hrm`|[Visma Payroll Reporting API](https://api.analytics1.hrm.visma.net/docs/openapi.html). We automatically authenticate all requests using the client credentials and use 'https://api.analytics1.hrm.visma.net' as the base URL.| |Visma Raet - Youforce|`youforce/v1.0`|[Youforce's basic v1.0 API](https://vr-api-integration.github.io/youforce-api-documentation/postman_collections.html). We automatically authenticate all requests and use 'https://api.youforce.com' as base URL.| |Visma YouServe|`youserve/learning`|Visma YouServe [Learning API](https://youserve-domain-api.github.io/SwaggerUI/learning.html). We automatically authenticate all requests using OAuth 2.0 with the provided credentials and use `https://api.youserve.nl/learning/v1.0` as the base URL.| |Workable|`workable/v1`|**Deprecated: Use `v3` instead.** Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| + |Workable|`workable/v3`|We use `https://\{subdomain\}.workable.com/spi/v3` as the base URL. Find the official docs [here](https://www.workable.com/docs/api/overview).| |Workable|`workable/v3`|Workable's [API](https://workable.readme.io/reference/generate-an-access-token). We automatically authenticate all requests using the client ID and secret and use `https://\{subdomain\}.\{environment\}.com/spi/v3` as the base URL.| |Workday|`workday/custom-report`|[Workday's Custom Reports](https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html). We automatically authenticate all requests and use `https://\{domain\}/ccx/service/customreport2/\{tenant\}/` as the base URL. Set your `method` to `GET`. The `path` should be the report path after the tenant, e.g., `/\{report_owner\}/\{report_name\}`. You can include query parameters in the `params` object (e.g., `format=json`).| |Workday|`workday/rest`|[Workday's REST API](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html). We automatically authenticate all requests and use the correct Workday REST base URL for your tenant. The base URL follows the format: https://\{domain\}/api/\{service_name\}/\{version\}/\{tenant\}. You can specify any valid REST endpoint and method. See the Workday REST API documentation for available endpoints. You must specify the `api_options` object and set `service_name` to the name of the service you want to call. You can also specify the `version` (e.g., \"v1\", \"v2\"); if omitted, it defaults to \"v1\".| diff --git a/src/kombo/hris.py b/src/kombo/hris.py index fd59c773..ba22e2f2 100644 --- a/src/kombo/hris.py +++ b/src/kombo/hris.py @@ -4220,8 +4220,6 @@ def get_timesheets( Retrieve attendance data and timesheets from HRIS tools. - **Open Beta Feature:** This endpoint is currently in beta. Please reach out to our support team if you need assistance with implementation. - For a detailed explanation of the data model, validation rules, time zones, payable hours, approvals, and break patterns, see the [Time & Attendance guide](/hris/features/time-and-attendance). @@ -4392,8 +4390,6 @@ async def get_timesheets_async( Retrieve attendance data and timesheets from HRIS tools. - **Open Beta Feature:** This endpoint is currently in beta. Please reach out to our support team if you need assistance with implementation. - For a detailed explanation of the data model, validation rules, time zones, payable hours, approvals, and break patterns, see the [Time & Attendance guide](/hris/features/time-and-attendance). diff --git a/src/kombo/models/__init__.py b/src/kombo/models/__init__.py index be79094f..873b7b4c 100644 --- a/src/kombo/models/__init__.py +++ b/src/kombo/models/__init__.py @@ -989,6 +989,8 @@ from .gethrispayslipspositiveresponse import ( Amount, AmountTypedDict, + AmountYtd, + AmountYtdTypedDict, Employee, EmployeeTypedDict, GetHrisPayslipsPositiveResponse, @@ -1005,8 +1007,16 @@ GetHrisPayslipsPositiveResponseTotals, GetHrisPayslipsPositiveResponseTotalsTypedDict, GetHrisPayslipsPositiveResponseTypedDict, + GrossPayYtd, + GrossPayYtdTypedDict, LineItem, LineItemTypedDict, + NetPayYtd, + NetPayYtdTypedDict, + PaidAmountYtd, + PaidAmountYtdTypedDict, + PayCode, + PayCodeTypedDict, PayRun, PayRunTypedDict, ) @@ -1474,6 +1484,8 @@ PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFieldsTypedDict, PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360, PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360TypedDict, + PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit, + PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffitTypedDict, PostAtsApplicationsApplicationIDResultLinksRequestBodyTypedDict, PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkable, PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkableTypedDict, @@ -1540,6 +1552,8 @@ PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFieldsTypedDict, PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360, PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360TypedDict, + PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit, + PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffitTypedDict, PostAtsCandidatesCandidateIDResultLinksRequestBodyTypedDict, PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkable, PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkableTypedDict, @@ -1649,10 +1663,14 @@ PostAtsCandidatesRequestBodyDvinciTypedDict, PostAtsCandidatesRequestBodyEducationDatum, PostAtsCandidatesRequestBodyEducationDatumTypedDict, + PostAtsCandidatesRequestBodyEmplypeople, + PostAtsCandidatesRequestBodyEmplypeopleTypedDict, PostAtsCandidatesRequestBodyExperienceDatum, PostAtsCandidatesRequestBodyExperienceDatumTypedDict, PostAtsCandidatesRequestBodyFieldOfStudyReference, PostAtsCandidatesRequestBodyFieldOfStudyReferenceTypedDict, + PostAtsCandidatesRequestBodyFountain, + PostAtsCandidatesRequestBodyFountainTypedDict, PostAtsCandidatesRequestBodyGdprConsent, PostAtsCandidatesRequestBodyGdprConsentTypedDict, PostAtsCandidatesRequestBodyGender, @@ -1666,6 +1684,8 @@ PostAtsCandidatesRequestBodyGuidecomTypedDict, PostAtsCandidatesRequestBodyHrworks, PostAtsCandidatesRequestBodyHrworksTypedDict, + PostAtsCandidatesRequestBodyIcims, + PostAtsCandidatesRequestBodyIcimsTypedDict, PostAtsCandidatesRequestBodyJobApplicationData, PostAtsCandidatesRequestBodyJobApplicationDataTypedDict, PostAtsCandidatesRequestBodyJobAppliedToData, @@ -1962,10 +1982,14 @@ PostAtsJobsJobIDApplicationsRequestBodyDvinciTypedDict, PostAtsJobsJobIDApplicationsRequestBodyEducationDatum, PostAtsJobsJobIDApplicationsRequestBodyEducationDatumTypedDict, + PostAtsJobsJobIDApplicationsRequestBodyEmplypeople, + PostAtsJobsJobIDApplicationsRequestBodyEmplypeopleTypedDict, PostAtsJobsJobIDApplicationsRequestBodyExperienceDatum, PostAtsJobsJobIDApplicationsRequestBodyExperienceDatumTypedDict, PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReference, PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReferenceTypedDict, + PostAtsJobsJobIDApplicationsRequestBodyFountain, + PostAtsJobsJobIDApplicationsRequestBodyFountainTypedDict, PostAtsJobsJobIDApplicationsRequestBodyGdprConsent, PostAtsJobsJobIDApplicationsRequestBodyGdprConsentTypedDict, PostAtsJobsJobIDApplicationsRequestBodyGender, @@ -1979,6 +2003,8 @@ PostAtsJobsJobIDApplicationsRequestBodyGuidecomTypedDict, PostAtsJobsJobIDApplicationsRequestBodyHrworks, PostAtsJobsJobIDApplicationsRequestBodyHrworksTypedDict, + PostAtsJobsJobIDApplicationsRequestBodyIcims, + PostAtsJobsJobIDApplicationsRequestBodyIcimsTypedDict, PostAtsJobsJobIDApplicationsRequestBodyJobApplicationData, PostAtsJobsJobIDApplicationsRequestBodyJobApplicationDataTypedDict, PostAtsJobsJobIDApplicationsRequestBodyJobAppliedToData, @@ -2314,6 +2340,8 @@ PutAtsApplicationsApplicationIDStageRequestBody, PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse, PutAtsApplicationsApplicationIDStageRequestBodyGreenhouseTypedDict, + PutAtsApplicationsApplicationIDStageRequestBodyLever, + PutAtsApplicationsApplicationIDStageRequestBodyLeverTypedDict, PutAtsApplicationsApplicationIDStageRequestBodyPostHeaders, PutAtsApplicationsApplicationIDStageRequestBodyPostHeadersTypedDict, PutAtsApplicationsApplicationIDStageRequestBodyRemoteFields, @@ -2418,6 +2446,8 @@ "A3innuvanominaTypedDict", "Amount", "AmountTypedDict", + "AmountYtd", + "AmountYtdTypedDict", "AssessCandidateData", "AssessCandidateDataTypedDict", "AssessCandidateTestResultData", @@ -3281,6 +3311,8 @@ "GetToolsCategoryPositiveResponseWriteActionTypedDict", "GetToolsCategoryRequest", "GetToolsCategoryRequestTypedDict", + "GrossPayYtd", + "GrossPayYtdTypedDict", "Headers", "HeadersTypedDict", "HomeAddress", @@ -3376,11 +3408,15 @@ "MultipartFormDatum", "MultipartFormDatumTypedDict", "Name", + "NetPayYtd", + "NetPayYtdTypedDict", "Offer", "OfferStatus", "OfferTypedDict", "OrderedOption", "OrderedOptionTypedDict", + "PaidAmountYtd", + "PaidAmountYtdTypedDict", "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDPositiveResponse", "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDPositiveResponseData", "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDPositiveResponseDataTypedDict", @@ -3390,6 +3426,8 @@ "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDRequestBody", "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDRequestBodyTypedDict", "PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDRequestTypedDict", + "PayCode", + "PayCodeTypedDict", "PayRun", "PayRunTypedDict", "PostAtsApplicationsApplicationIDAttachmentsGlobals", @@ -3502,6 +3540,8 @@ "PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFieldsTypedDict", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360TypedDict", + "PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit", + "PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffitTypedDict", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTypedDict", "PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkable", "PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkableTypedDict", @@ -3556,6 +3596,8 @@ "PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFieldsTypedDict", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360TypedDict", + "PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit", + "PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffitTypedDict", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTypedDict", "PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkable", "PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkableTypedDict", @@ -3654,10 +3696,14 @@ "PostAtsCandidatesRequestBodyDvinciTypedDict", "PostAtsCandidatesRequestBodyEducationDatum", "PostAtsCandidatesRequestBodyEducationDatumTypedDict", + "PostAtsCandidatesRequestBodyEmplypeople", + "PostAtsCandidatesRequestBodyEmplypeopleTypedDict", "PostAtsCandidatesRequestBodyExperienceDatum", "PostAtsCandidatesRequestBodyExperienceDatumTypedDict", "PostAtsCandidatesRequestBodyFieldOfStudyReference", "PostAtsCandidatesRequestBodyFieldOfStudyReferenceTypedDict", + "PostAtsCandidatesRequestBodyFountain", + "PostAtsCandidatesRequestBodyFountainTypedDict", "PostAtsCandidatesRequestBodyGdprConsent", "PostAtsCandidatesRequestBodyGdprConsentTypedDict", "PostAtsCandidatesRequestBodyGender", @@ -3671,6 +3717,8 @@ "PostAtsCandidatesRequestBodyGuidecomTypedDict", "PostAtsCandidatesRequestBodyHrworks", "PostAtsCandidatesRequestBodyHrworksTypedDict", + "PostAtsCandidatesRequestBodyIcims", + "PostAtsCandidatesRequestBodyIcimsTypedDict", "PostAtsCandidatesRequestBodyJobApplicationData", "PostAtsCandidatesRequestBodyJobApplicationDataTypedDict", "PostAtsCandidatesRequestBodyJobAppliedToData", @@ -3952,10 +4000,14 @@ "PostAtsJobsJobIDApplicationsRequestBodyDvinciTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyEducationDatum", "PostAtsJobsJobIDApplicationsRequestBodyEducationDatumTypedDict", + "PostAtsJobsJobIDApplicationsRequestBodyEmplypeople", + "PostAtsJobsJobIDApplicationsRequestBodyEmplypeopleTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyExperienceDatum", "PostAtsJobsJobIDApplicationsRequestBodyExperienceDatumTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReference", "PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReferenceTypedDict", + "PostAtsJobsJobIDApplicationsRequestBodyFountain", + "PostAtsJobsJobIDApplicationsRequestBodyFountainTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyGdprConsent", "PostAtsJobsJobIDApplicationsRequestBodyGdprConsentTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyGender", @@ -3969,6 +4021,8 @@ "PostAtsJobsJobIDApplicationsRequestBodyGuidecomTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyHrworks", "PostAtsJobsJobIDApplicationsRequestBodyHrworksTypedDict", + "PostAtsJobsJobIDApplicationsRequestBodyIcims", + "PostAtsJobsJobIDApplicationsRequestBodyIcimsTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyJobApplicationData", "PostAtsJobsJobIDApplicationsRequestBodyJobApplicationDataTypedDict", "PostAtsJobsJobIDApplicationsRequestBodyJobAppliedToData", @@ -4239,6 +4293,8 @@ "PutAtsApplicationsApplicationIDStageRequestBody", "PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse", "PutAtsApplicationsApplicationIDStageRequestBodyGreenhouseTypedDict", + "PutAtsApplicationsApplicationIDStageRequestBodyLever", + "PutAtsApplicationsApplicationIDStageRequestBodyLeverTypedDict", "PutAtsApplicationsApplicationIDStageRequestBodyPostHeaders", "PutAtsApplicationsApplicationIDStageRequestBodyPostHeadersTypedDict", "PutAtsApplicationsApplicationIDStageRequestBodyRemoteFields", @@ -5202,6 +5258,8 @@ "GetHrisPayslipsResponseTypedDict": ".gethrispayslipsop", "Amount": ".gethrispayslipspositiveresponse", "AmountTypedDict": ".gethrispayslipspositiveresponse", + "AmountYtd": ".gethrispayslipspositiveresponse", + "AmountYtdTypedDict": ".gethrispayslipspositiveresponse", "Employee": ".gethrispayslipspositiveresponse", "EmployeeTypedDict": ".gethrispayslipspositiveresponse", "GetHrisPayslipsPositiveResponse": ".gethrispayslipspositiveresponse", @@ -5218,8 +5276,16 @@ "GetHrisPayslipsPositiveResponseTotals": ".gethrispayslipspositiveresponse", "GetHrisPayslipsPositiveResponseTotalsTypedDict": ".gethrispayslipspositiveresponse", "GetHrisPayslipsPositiveResponseTypedDict": ".gethrispayslipspositiveresponse", + "GrossPayYtd": ".gethrispayslipspositiveresponse", + "GrossPayYtdTypedDict": ".gethrispayslipspositiveresponse", "LineItem": ".gethrispayslipspositiveresponse", "LineItemTypedDict": ".gethrispayslipspositiveresponse", + "NetPayYtd": ".gethrispayslipspositiveresponse", + "NetPayYtdTypedDict": ".gethrispayslipspositiveresponse", + "PaidAmountYtd": ".gethrispayslipspositiveresponse", + "PaidAmountYtdTypedDict": ".gethrispayslipspositiveresponse", + "PayCode": ".gethrispayslipspositiveresponse", + "PayCodeTypedDict": ".gethrispayslipspositiveresponse", "PayRun": ".gethrispayslipspositiveresponse", "PayRunTypedDict": ".gethrispayslipspositiveresponse", "GetHrisPerformanceReviewCyclesGlobals": ".gethrisperformancereviewcyclesop", @@ -5605,6 +5671,8 @@ "PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFieldsTypedDict": ".postatsapplicationsapplicationidresultlinksrequestbody", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360": ".postatsapplicationsapplicationidresultlinksrequestbody", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360TypedDict": ".postatsapplicationsapplicationidresultlinksrequestbody", + "PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit": ".postatsapplicationsapplicationidresultlinksrequestbody", + "PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffitTypedDict": ".postatsapplicationsapplicationidresultlinksrequestbody", "PostAtsApplicationsApplicationIDResultLinksRequestBodyTypedDict": ".postatsapplicationsapplicationidresultlinksrequestbody", "PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkable": ".postatsapplicationsapplicationidresultlinksrequestbody", "PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkableTypedDict": ".postatsapplicationsapplicationidresultlinksrequestbody", @@ -5659,6 +5727,8 @@ "PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFieldsTypedDict": ".postatscandidatescandidateidresultlinksrequestbody", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360": ".postatscandidatescandidateidresultlinksrequestbody", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360TypedDict": ".postatscandidatescandidateidresultlinksrequestbody", + "PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit": ".postatscandidatescandidateidresultlinksrequestbody", + "PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffitTypedDict": ".postatscandidatescandidateidresultlinksrequestbody", "PostAtsCandidatesCandidateIDResultLinksRequestBodyTypedDict": ".postatscandidatescandidateidresultlinksrequestbody", "PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkable": ".postatscandidatescandidateidresultlinksrequestbody", "PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkableTypedDict": ".postatscandidatescandidateidresultlinksrequestbody", @@ -5756,10 +5826,14 @@ "PostAtsCandidatesRequestBodyDvinciTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyEducationDatum": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyEducationDatumTypedDict": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyEmplypeople": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyEmplypeopleTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyExperienceDatum": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyExperienceDatumTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyFieldOfStudyReference": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyFieldOfStudyReferenceTypedDict": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyFountain": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyFountainTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyGdprConsent": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyGdprConsentTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyGender": ".postatscandidatesrequestbody", @@ -5773,6 +5847,8 @@ "PostAtsCandidatesRequestBodyGuidecomTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyHrworks": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyHrworksTypedDict": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyIcims": ".postatscandidatesrequestbody", + "PostAtsCandidatesRequestBodyIcimsTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyJobApplicationData": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyJobApplicationDataTypedDict": ".postatscandidatesrequestbody", "PostAtsCandidatesRequestBodyJobAppliedToData": ".postatscandidatesrequestbody", @@ -6057,10 +6133,14 @@ "PostAtsJobsJobIDApplicationsRequestBodyDvinciTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyEducationDatum": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyEducationDatumTypedDict": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyEmplypeople": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyEmplypeopleTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyExperienceDatum": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyExperienceDatumTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReference": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyFieldOfStudyReferenceTypedDict": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyFountain": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyFountainTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyGdprConsent": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyGdprConsentTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyGender": ".postatsjobsjobidapplicationsrequestbody", @@ -6074,6 +6154,8 @@ "PostAtsJobsJobIDApplicationsRequestBodyGuidecomTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyHrworks": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyHrworksTypedDict": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyIcims": ".postatsjobsjobidapplicationsrequestbody", + "PostAtsJobsJobIDApplicationsRequestBodyIcimsTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyJobApplicationData": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyJobApplicationDataTypedDict": ".postatsjobsjobidapplicationsrequestbody", "PostAtsJobsJobIDApplicationsRequestBodyJobAppliedToData": ".postatsjobsjobidapplicationsrequestbody", @@ -6348,6 +6430,8 @@ "PutAtsApplicationsApplicationIDStageRequestBody": ".putatsapplicationsapplicationidstagerequestbody", "PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse": ".putatsapplicationsapplicationidstagerequestbody", "PutAtsApplicationsApplicationIDStageRequestBodyGreenhouseTypedDict": ".putatsapplicationsapplicationidstagerequestbody", + "PutAtsApplicationsApplicationIDStageRequestBodyLever": ".putatsapplicationsapplicationidstagerequestbody", + "PutAtsApplicationsApplicationIDStageRequestBodyLeverTypedDict": ".putatsapplicationsapplicationidstagerequestbody", "PutAtsApplicationsApplicationIDStageRequestBodyPostHeaders": ".putatsapplicationsapplicationidstagerequestbody", "PutAtsApplicationsApplicationIDStageRequestBodyPostHeadersTypedDict": ".putatsapplicationsapplicationidstagerequestbody", "PutAtsApplicationsApplicationIDStageRequestBodyRemoteFields": ".putatsapplicationsapplicationidstagerequestbody", diff --git a/src/kombo/models/assessmentorderreceivedwebhookpayload.py b/src/kombo/models/assessmentorderreceivedwebhookpayload.py index 1ccd60cb..e53fbe7d 100644 --- a/src/kombo/models/assessmentorderreceivedwebhookpayload.py +++ b/src/kombo/models/assessmentorderreceivedwebhookpayload.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import List, Literal from typing_extensions import NotRequired, TypedDict @@ -54,12 +63,19 @@ class AssessmentOrderReceivedWebhookPayloadCandidate(BaseModel): r"""The candidate's phone number.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -82,12 +98,19 @@ class AssessmentOrderReceivedWebhookPayloadApplication(BaseModel): r"""The application's identifier in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -132,6 +155,9 @@ class AssessmentOrderReceivedWebhookPayloadLocation(BaseModel): r"""If we have address data, this is filled with the raw address string.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] @@ -139,11 +165,15 @@ def serialize_model(self, handler): nullable_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -201,12 +231,19 @@ class AssessmentOrderReceivedWebhookPayloadHiringTeam(BaseModel): r"""Array of the roles of the user for this specific job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -254,12 +291,19 @@ class AssessmentOrderReceivedWebhookPayloadJob(BaseModel): r"""The hiring team allows you to provision users into your system who can access the job and its applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/connectionflowfailedwebhookpayload.py b/src/kombo/models/connectionflowfailedwebhookpayload.py index ab1a2592..afaa8c98 100644 --- a/src/kombo/models/connectionflowfailedwebhookpayload.py +++ b/src/kombo/models/connectionflowfailedwebhookpayload.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -44,12 +51,19 @@ class ConnectionFlowFailedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/deleteatscandidatescandidateidtagsop.py b/src/kombo/models/deleteatscandidatescandidateidtagsop.py index 263e2afb..61738a36 100644 --- a/src/kombo/models/deleteatscandidatescandidateidtagsop.py +++ b/src/kombo/models/deleteatscandidatescandidateidtagsop.py @@ -5,7 +5,13 @@ DeleteAtsCandidatesCandidateIDTagsRequestBody, DeleteAtsCandidatesCandidateIDTagsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class DeleteAtsCandidatesCandidateIDTagsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/deleteatscandidatescandidateidtagsrequestbody.py b/src/kombo/models/deleteatscandidatescandidateidtagsrequestbody.py index ac0544fb..128ab6d5 100644 --- a/src/kombo/models/deleteatscandidatescandidateidtagsrequestbody.py +++ b/src/kombo/models/deleteatscandidatescandidateidtagsrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Optional @@ -34,14 +43,21 @@ class DeleteAtsCandidatesCandidateIDTagsRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -77,13 +93,20 @@ class DeleteAtsCandidatesCandidateIDTagsRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -107,13 +130,20 @@ class DeleteAtsCandidatesCandidateIDTagsRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -146,13 +176,20 @@ class DeleteAtsCandidatesCandidateIDTagsRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["greenhouse", "workable"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -179,13 +216,20 @@ class DeleteAtsCandidatesCandidateIDTagsRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/deletehrisabsencesabsenceidop.py b/src/kombo/models/deletehrisabsencesabsenceidop.py index f945abad..6147ce63 100644 --- a/src/kombo/models/deletehrisabsencesabsenceidop.py +++ b/src/kombo/models/deletehrisabsencesabsenceidop.py @@ -5,7 +5,13 @@ DeleteHrisAbsencesAbsenceIDRequestBody, DeleteHrisAbsencesAbsenceIDRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class DeleteHrisAbsencesAbsenceIDGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/deletehrisabsencesabsenceidpositiveresponse.py b/src/kombo/models/deletehrisabsencesabsenceidpositiveresponse.py index 1b5f95b9..a0447588 100644 --- a/src/kombo/models/deletehrisabsencesabsenceidpositiveresponse.py +++ b/src/kombo/models/deletehrisabsencesabsenceidpositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -148,6 +151,9 @@ class DeleteHrisAbsencesAbsenceIDPositiveResponseData(BaseModel): r"""The absence’s current status. In rare cases where we can’t find a clear mapping, the original string is passed through.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["status"]) nullable_fields = set( @@ -169,11 +175,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/deletehrisabsencesabsenceidrequestbody.py b/src/kombo/models/deletehrisabsencesabsenceidrequestbody.py index a4181500..9405f007 100644 --- a/src/kombo/models/deletehrisabsencesabsenceidrequestbody.py +++ b/src/kombo/models/deletehrisabsencesabsenceidrequestbody.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Optional from typing_extensions import NotRequired, TypedDict @@ -21,13 +27,20 @@ class DeleteHrisAbsencesAbsenceIDRequestBodyAdpworkforcenow(BaseModel): r"""[Required] The employment ID of the employee that the absence will be deleted from.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["employment_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -55,13 +68,20 @@ class DeleteHrisAbsencesAbsenceIDRequestBodyRemoteFields(BaseModel): r"""Fields specific to ADP Workforce Now.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["adpworkforcenow"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -83,13 +103,20 @@ class DeleteHrisAbsencesAbsenceIDRequestBody(BaseModel): r"""Additional fields that we will pass through to specific HRIS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getassessmentordersop.py b/src/kombo/models/getassessmentordersop.py index e7d71de3..9e03dab5 100644 --- a/src/kombo/models/getassessmentordersop.py +++ b/src/kombo/models/getassessmentordersop.py @@ -6,7 +6,13 @@ GetAssessmentOrdersPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAssessmentOrdersGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -95,15 +108,22 @@ class GetAssessmentOrdersRequest(BaseModel): r"""Filter orders by their creation date-timestamp in the format: `YYYY-MM-DDTHH:mm:ss.sssZ`. Only orders created on or after this date-timestamp will be returned.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["cursor", "page_size", "ids", "statuses", "created_after"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getassessmentorderspositiveresponse.py b/src/kombo/models/getassessmentorderspositiveresponse.py index 30a1e19f..c087538e 100644 --- a/src/kombo/models/getassessmentorderspositiveresponse.py +++ b/src/kombo/models/getassessmentorderspositiveresponse.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -53,12 +62,19 @@ class GetAssessmentOrdersPositiveResponseCandidate(BaseModel): r"""The candidate's phone number.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -81,12 +97,19 @@ class GetAssessmentOrdersPositiveResponseApplication(BaseModel): r"""The application's identifier in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -131,6 +154,9 @@ class GetAssessmentOrdersPositiveResponseLocation(BaseModel): r"""If we have address data, this is filled with the raw address string.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] @@ -138,11 +164,15 @@ def serialize_model(self, handler): nullable_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -200,12 +230,19 @@ class GetAssessmentOrdersPositiveResponseHiringTeam(BaseModel): r"""Array of the roles of the user for this specific job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -253,12 +290,19 @@ class GetAssessmentOrdersPositiveResponseJob(BaseModel): r"""The hiring team allows you to provision users into your system who can access the job and its applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -313,12 +357,19 @@ class GetAssessmentOrdersPositiveResponseData(BaseModel): results: List[GetAssessmentOrdersPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getassessmentpackagesop.py b/src/kombo/models/getassessmentpackagesop.py index a87fdbbe..34c4ed3b 100644 --- a/src/kombo/models/getassessmentpackagesop.py +++ b/src/kombo/models/getassessmentpackagesop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class GetAssessmentPackagesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getassessmentpackagespositiveresponse.py b/src/kombo/models/getassessmentpackagespositiveresponse.py index f8dfd027..a0494b31 100644 --- a/src/kombo/models/getassessmentpackagespositiveresponse.py +++ b/src/kombo/models/getassessmentpackagespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -46,12 +53,19 @@ class GetAssessmentPackagesPositiveResponsePackage(BaseModel): type: Nullable[GetAssessmentPackagesPositiveResponseType] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationsapplicationidattachmentsop.py b/src/kombo/models/getatsapplicationsapplicationidattachmentsop.py index 1fcd645b..b2347e86 100644 --- a/src/kombo/models/getatsapplicationsapplicationidattachmentsop.py +++ b/src/kombo/models/getatsapplicationsapplicationidattachmentsop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, PathParamMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class GetAtsApplicationsApplicationIDAttachmentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py b/src/kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py index 78c6d9d0..bd73859c 100644 --- a/src/kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py +++ b/src/kombo/models/getatsapplicationsapplicationidattachmentspositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -61,12 +68,19 @@ class GetAtsApplicationsApplicationIDAttachmentsPositiveResponseResult(BaseModel """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationsop.py b/src/kombo/models/getatsapplicationsop.py index a480c10b..f6e0da41 100644 --- a/src/kombo/models/getatsapplicationsop.py +++ b/src/kombo/models/getatsapplicationsop.py @@ -6,7 +6,13 @@ GetAtsApplicationsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsApplicationsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -195,6 +208,9 @@ class GetAtsApplicationsRequest(BaseModel): r"""Filter applications by the day they were created in the remote system. This allows you to get applications that were created on or after a certain day.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -212,11 +228,15 @@ def serialize_model(self, handler): "remote_created_after", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationspositiveresponse.py b/src/kombo/models/getatsapplicationspositiveresponse.py index e06bae88..83dffaf0 100644 --- a/src/kombo/models/getatsapplicationspositiveresponse.py +++ b/src/kombo/models/getatsapplicationspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -31,14 +40,21 @@ class GetAtsApplicationsPositiveResponseAnswer7(BaseModel): r"""We pass the original question data along so you can handle it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["raw"]) nullable_fields = set(["raw"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -75,12 +91,19 @@ class GetAtsApplicationsPositiveResponseQuestionUnknown(BaseModel): r"""When we're not able to map a specific question type yet, we will return this type. Every `UNKNOWN` question will also be parsed and unified by us at some point.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -108,12 +131,19 @@ class GetAtsApplicationsPositiveResponseAnswer6(BaseModel): date_: Annotated[Nullable[datetime], pydantic.Field(alias="date")] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -139,12 +169,19 @@ class GetAtsApplicationsPositiveResponseQuestionDate(BaseModel): ] = "DATE" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -172,12 +209,19 @@ class GetAtsApplicationsPositiveResponseAnswer5(BaseModel): number: Nullable[float] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -203,12 +247,19 @@ class GetAtsApplicationsPositiveResponseQuestionNumber(BaseModel): ] = "NUMBER" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -236,12 +287,19 @@ class GetAtsApplicationsPositiveResponseAnswer4(BaseModel): checked: Nullable[bool] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -267,12 +325,19 @@ class GetAtsApplicationsPositiveResponseQuestionBoolean(BaseModel): ] = "BOOLEAN" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -300,13 +365,20 @@ class GetAtsApplicationsPositiveResponseAnswer3(BaseModel): choices: Optional[List[str]] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["choices"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -335,12 +407,19 @@ class GetAtsApplicationsPositiveResponseQuestionMultiSelect(BaseModel): ] = "MULTI_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -368,12 +447,19 @@ class GetAtsApplicationsPositiveResponseAnswer2(BaseModel): choice: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -401,12 +487,19 @@ class GetAtsApplicationsPositiveResponseQuestionSingleSelect(BaseModel): ] = "SINGLE_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -434,12 +527,19 @@ class GetAtsApplicationsPositiveResponseAnswer1(BaseModel): content: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -465,12 +565,19 @@ class GetAtsApplicationsPositiveResponseQuestionText(BaseModel): ] = "TEXT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -531,14 +638,21 @@ class GetAtsApplicationsPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -569,14 +683,21 @@ class GetAtsApplicationsPositiveResponsePhoneNumber(BaseModel): r"""Kombo exposes type information through this field. If we don't get any information from the tool, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["type"]) nullable_fields = set(["type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -608,14 +729,21 @@ class GetAtsApplicationsPositiveResponseSocialMedia(BaseModel): username: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["link", "type", "username"]) nullable_fields = set(["link", "type", "username"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -651,12 +779,19 @@ class GetAtsApplicationsPositiveResponseTag(BaseModel): name: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -730,6 +865,9 @@ class GetAtsApplicationsPositiveResponseCandidate(BaseModel): r"""List of social media accounts of the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_addresses", "phone_numbers", "social_media"]) nullable_fields = set( @@ -743,11 +881,15 @@ def serialize_model(self, handler): "remote_url", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -805,12 +947,19 @@ class GetAtsApplicationsPositiveResponseCurrentStage(BaseModel): index: Nullable[int] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -839,12 +988,19 @@ class GetAtsApplicationsPositiveResponseJob(BaseModel): r"""Title of the job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -889,6 +1045,9 @@ class GetAtsApplicationsPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -896,11 +1055,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -966,16 +1129,23 @@ class Interview(BaseModel): r"""Location of the interview.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["location"]) nullable_fields = set( ["remote_id", "title", "starting_at", "ending_at", "location", "canceled"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1060,12 +1230,19 @@ class Offer(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1201,6 +1378,9 @@ class GetAtsApplicationsPositiveResponseResult(BaseModel): r"""A list of answers to screening questions. The screening answer type `FILE` is currently unsupported.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["screening_question_answers"]) nullable_fields = set( @@ -1223,11 +1403,15 @@ def serialize_model(self, handler): "job", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1258,12 +1442,19 @@ class GetAtsApplicationsPositiveResponseData(BaseModel): results: List[GetAtsApplicationsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationstagesop.py b/src/kombo/models/getatsapplicationstagesop.py index 6daa6ec2..4417f2d5 100644 --- a/src/kombo/models/getatsapplicationstagesop.py +++ b/src/kombo/models/getatsapplicationstagesop.py @@ -6,7 +6,13 @@ GetAtsApplicationStagesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsApplicationStagesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetAtsApplicationStagesRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsapplicationstagespositiveresponse.py b/src/kombo/models/getatsapplicationstagespositiveresponse.py index f5d52f08..9be80fc7 100644 --- a/src/kombo/models/getatsapplicationstagespositiveresponse.py +++ b/src/kombo/models/getatsapplicationstagespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -66,12 +73,19 @@ class GetAtsApplicationStagesPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -93,12 +107,19 @@ class GetAtsApplicationStagesPositiveResponseData(BaseModel): results: List[GetAtsApplicationStagesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsattachmentsop.py b/src/kombo/models/getatsattachmentsop.py index d3583482..7c43fbac 100644 --- a/src/kombo/models/getatsattachmentsop.py +++ b/src/kombo/models/getatsattachmentsop.py @@ -6,7 +6,13 @@ GetAtsAttachmentsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsAttachmentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -135,6 +148,9 @@ class GetAtsAttachmentsRequest(BaseModel): r"""Filter by a comma-separated list of application IDs. We will only return attachments that the ATS filed under _any_ of these applications, which excludes the files that hang off the candidate directly.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -149,11 +165,15 @@ def serialize_model(self, handler): "application_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsattachmentspositiveresponse.py b/src/kombo/models/getatsattachmentspositiveresponse.py index 752cbcac..6fef5d91 100644 --- a/src/kombo/models/getatsattachmentspositiveresponse.py +++ b/src/kombo/models/getatsattachmentspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -116,6 +125,9 @@ class GetAtsAttachmentsPositiveResponseResult(BaseModel): r"""Where we stored the file in the bucket you configured. The file is written before the attachment shows up here, so this is set on every attachment you can read.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_ref"]) nullable_fields = set( @@ -129,11 +141,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -164,12 +180,19 @@ class GetAtsAttachmentsPositiveResponseData(BaseModel): results: List[GetAtsAttachmentsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatscandidatescandidateidattachmentsop.py b/src/kombo/models/getatscandidatescandidateidattachmentsop.py index 65fe7f05..3e1a25a8 100644 --- a/src/kombo/models/getatscandidatescandidateidattachmentsop.py +++ b/src/kombo/models/getatscandidatescandidateidattachmentsop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, PathParamMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class GetAtsCandidatesCandidateIDAttachmentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py b/src/kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py index 28106ce5..9fe5a76c 100644 --- a/src/kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py +++ b/src/kombo/models/getatscandidatescandidateidattachmentspositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -71,12 +78,19 @@ class GetAtsCandidatesCandidateIDAttachmentsPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatscandidatesop.py b/src/kombo/models/getatscandidatesop.py index 61bc6ad2..973b1da7 100644 --- a/src/kombo/models/getatscandidatesop.py +++ b/src/kombo/models/getatscandidatesop.py @@ -6,7 +6,13 @@ GetAtsCandidatesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsCandidatesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -169,6 +182,9 @@ class GetAtsCandidatesRequest(BaseModel): r"""Filter candidates by last name. This filter is case-insensitive and matches the exact last name. Fuzzy matching might be enabled in the future, so consider this for your implementation.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -185,11 +201,15 @@ def serialize_model(self, handler): "last_name", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatscandidatespositiveresponse.py b/src/kombo/models/getatscandidatespositiveresponse.py index a0f51765..c87ebcaf 100644 --- a/src/kombo/models/getatscandidatespositiveresponse.py +++ b/src/kombo/models/getatscandidatespositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -24,14 +33,21 @@ class GetAtsCandidatesPositiveResponsePhoneNumber(BaseModel): r"""Kombo exposes type information through this field. If we don't get any information from the tool, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["type"]) nullable_fields = set(["type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -62,14 +78,21 @@ class GetAtsCandidatesPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -101,14 +124,21 @@ class GetAtsCandidatesPositiveResponseSocialMedia(BaseModel): username: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["link", "type", "username"]) nullable_fields = set(["link", "type", "username"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -162,6 +192,9 @@ class GetAtsCandidatesPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -169,11 +202,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -224,12 +261,19 @@ class GetAtsCandidatesPositiveResponseCurrentStage(BaseModel): index: Nullable[int] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -258,12 +302,19 @@ class GetAtsCandidatesPositiveResponseJob(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -348,12 +399,19 @@ class GetAtsCandidatesPositiveResponseApplication(BaseModel): job: Nullable[GetAtsCandidatesPositiveResponseJob] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -380,12 +438,19 @@ class GetAtsCandidatesPositiveResponseTag(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -523,6 +588,9 @@ class GetAtsCandidatesPositiveResponseResult(BaseModel): r"""Location of the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["phone_numbers", "email_addresses", "social_media", "location"] @@ -546,11 +614,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -581,12 +653,19 @@ class GetAtsCandidatesPositiveResponseData(BaseModel): results: List[GetAtsCandidatesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsinterviewsop.py b/src/kombo/models/getatsinterviewsop.py index e802e5e1..d8b90d0e 100644 --- a/src/kombo/models/getatsinterviewsop.py +++ b/src/kombo/models/getatsinterviewsop.py @@ -6,7 +6,13 @@ GetAtsInterviewsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsInterviewsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -145,6 +158,9 @@ class GetAtsInterviewsRequest(BaseModel): r"""Filter by a comma-separated list of job IDs. We will only return interviews for applications associated with any of these jobs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -158,11 +174,15 @@ def serialize_model(self, handler): "job_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsinterviewspositiveresponse.py b/src/kombo/models/getatsinterviewspositiveresponse.py index 68c9845c..2c228cc7 100644 --- a/src/kombo/models/getatsinterviewspositiveresponse.py +++ b/src/kombo/models/getatsinterviewspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -47,6 +56,9 @@ class GetAtsInterviewsPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -54,11 +66,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -106,14 +122,21 @@ class User(BaseModel): r"""Email of the user. If the email address is invalid, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email"]) nullable_fields = set(["remote_id", "first_name", "last_name", "email"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -154,14 +177,21 @@ class GetAtsInterviewsPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -213,14 +243,21 @@ class GetAtsInterviewsPositiveResponseCandidate(BaseModel): r"""A list of email addresses of the candidate with an optional type. If an email address is invalid, it will be filtered out.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_addresses"]) nullable_fields = set(["first_name", "last_name", "email_addresses"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -258,12 +295,19 @@ class GetAtsInterviewsPositiveResponseJob(BaseModel): r"""Title of the job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -307,12 +351,19 @@ class GetAtsInterviewsPositiveResponseApplication(BaseModel): job: Nullable[GetAtsInterviewsPositiveResponseJob] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -426,6 +477,9 @@ class GetAtsInterviewsPositiveResponseResult(BaseModel): r"""Location of the interview.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["location"]) nullable_fields = set( @@ -445,11 +499,15 @@ def serialize_model(self, handler): "application", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -480,12 +538,19 @@ class GetAtsInterviewsPositiveResponseData(BaseModel): results: List[GetAtsInterviewsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsjobsop.py b/src/kombo/models/getatsjobsop.py index a2c306c0..c129f65b 100644 --- a/src/kombo/models/getatsjobsop.py +++ b/src/kombo/models/getatsjobsop.py @@ -6,7 +6,13 @@ GetAtsJobsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsJobsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -211,6 +224,9 @@ class GetAtsJobsRequest(BaseModel): r"""Filter by the `name` field. Can be used to find a job by keywords present in the job name.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -230,11 +246,15 @@ def serialize_model(self, handler): "name_contains", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsjobspositiveresponse.py b/src/kombo/models/getatsjobspositiveresponse.py index e65ec63e..b01bec90 100644 --- a/src/kombo/models/getatsjobspositiveresponse.py +++ b/src/kombo/models/getatsjobspositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, SerializeAsAny, model_serializer @@ -112,6 +115,9 @@ class GetAtsJobsPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -119,11 +125,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -183,14 +193,21 @@ class Stage(BaseModel): r"""Numeric index following the order of the stages if they are ordered in the underlying tool.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["index"]) nullable_fields = set(["remote_id", "name", "status", "custom_fields", "index"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -226,13 +243,20 @@ class FormatUnknown(BaseModel): r"""When we're not able to map a specific question type yet, we will return this type. Every `UNKNOWN` question will also be parsed and unified by us at some point.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["raw_question"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -277,14 +301,21 @@ class GetAtsJobsPositiveResponseOption2(BaseModel): r"""ID in the connected ATS. This might be null as some systems only use the name to identify the option.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_id"]) nullable_fields = set(["remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -366,14 +397,21 @@ class GetAtsJobsPositiveResponseOption1(BaseModel): r"""ID in the connected ATS. This might be null as some systems only use the name to identify the option.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_id"]) nullable_fields = set(["remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -410,14 +448,21 @@ class FormatSingleSelect(BaseModel): ] = "SINGLE_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["display_type"]) nullable_fields = set(["display_type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -452,14 +497,21 @@ class FormatFile(BaseModel): ] = "FILE" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["accepted_mime_types", "max_file_size_bytes"]) nullable_fields = set(["accepted_mime_types", "max_file_size_bytes"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -503,14 +555,21 @@ class FormatNumber(BaseModel): ] = "NUMBER" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["display_type", "max", "min"]) nullable_fields = set(["display_type", "max", "min"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -556,14 +615,21 @@ class FormatText(BaseModel): ] = "TEXT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["display_type", "max_length"]) nullable_fields = set(["display_type", "max_length"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -679,6 +745,9 @@ class ScreeningQuestion(BaseModel): r"""Where the screening question specified by `precondition_question_id` is of type `MULTI_SELECT` or `SINGLE_SELECT`, this is an array of Kombo IDs describing the valid options. If the question is of type `BOOLEAN`, this is an array containing either `true` or `false`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["format", "index", "precondition_question_id", "precondition_options"] @@ -696,11 +765,15 @@ def serialize_model(self, handler): "precondition_options", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -771,12 +844,19 @@ class JobPosting(BaseModel): r"""The public URL to the job posting on the ATS platform.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -834,12 +914,19 @@ class JobRole(BaseModel): r"""Roles that apply at the job level.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -903,14 +990,21 @@ class GetAtsJobsPositiveResponseHiringTeam(BaseModel): r"""Email of the user. If the email address is invalid, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email"]) nullable_fields = set(["remote_id", "first_name", "last_name", "email"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1167,6 +1261,9 @@ class GetAtsJobsPositiveResponseResult(BaseModel): r"""The location of the listed job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1209,11 +1306,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1244,12 +1345,19 @@ class GetAtsJobsPositiveResponseData(BaseModel): results: List[GetAtsJobsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsnotesop.py b/src/kombo/models/getatsnotesop.py index 64e4833f..d2dabe11 100644 --- a/src/kombo/models/getatsnotesop.py +++ b/src/kombo/models/getatsnotesop.py @@ -6,7 +6,13 @@ GetAtsNotesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsNotesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -151,6 +164,9 @@ class GetAtsNotesRequest(BaseModel): r"""Filter by a comma-separated list of application IDs. Use filtering by `application_ids` only if you want the context available for specific applications. Results do not include notes that only link to the candidate, but not the application.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -165,11 +181,15 @@ def serialize_model(self, handler): "application_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsnotespositiveresponse.py b/src/kombo/models/getatsnotespositiveresponse.py index dc9be60d..d901a35e 100644 --- a/src/kombo/models/getatsnotespositiveresponse.py +++ b/src/kombo/models/getatsnotespositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -41,14 +50,21 @@ class GetAtsNotesPositiveResponseAuthor(BaseModel): r"""Email of the user. If the email address is invalid, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email"]) nullable_fields = set(["remote_id", "first_name", "last_name", "email"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -150,12 +166,19 @@ class GetAtsNotesPositiveResponseResult(BaseModel): author: Nullable[GetAtsNotesPositiveResponseAuthor] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -177,12 +200,19 @@ class GetAtsNotesPositiveResponseData(BaseModel): results: List[GetAtsNotesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsoffersop.py b/src/kombo/models/getatsoffersop.py index 2189c193..45b9f444 100644 --- a/src/kombo/models/getatsoffersop.py +++ b/src/kombo/models/getatsoffersop.py @@ -6,7 +6,13 @@ GetAtsOffersPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsOffersGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -135,6 +148,9 @@ class GetAtsOffersRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -147,11 +163,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsofferspositiveresponse.py b/src/kombo/models/getatsofferspositiveresponse.py index 96ac759d..e93c29a5 100644 --- a/src/kombo/models/getatsofferspositiveresponse.py +++ b/src/kombo/models/getatsofferspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -47,14 +56,21 @@ class GetAtsOffersPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -106,14 +122,21 @@ class GetAtsOffersPositiveResponseCandidate(BaseModel): r"""A list of email addresses of the candidate with an optional type. If an email address is invalid, it will be filtered out.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_addresses"]) nullable_fields = set(["first_name", "last_name", "email_addresses"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -151,12 +174,19 @@ class GetAtsOffersPositiveResponseJob(BaseModel): r"""Title of the job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -176,12 +206,19 @@ class GetAtsOffersPositiveResponseApplication(BaseModel): job: Nullable[GetAtsOffersPositiveResponseJob] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -292,12 +329,19 @@ class GetAtsOffersPositiveResponseResult(BaseModel): application: Nullable[GetAtsOffersPositiveResponseApplication] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -319,12 +363,19 @@ class GetAtsOffersPositiveResponseData(BaseModel): results: List[GetAtsOffersPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsrejectionreasonsop.py b/src/kombo/models/getatsrejectionreasonsop.py index 4cbd0b88..8a05133c 100644 --- a/src/kombo/models/getatsrejectionreasonsop.py +++ b/src/kombo/models/getatsrejectionreasonsop.py @@ -6,7 +6,13 @@ GetAtsRejectionReasonsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsRejectionReasonsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetAtsRejectionReasonsRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsrejectionreasonspositiveresponse.py b/src/kombo/models/getatsrejectionreasonspositiveresponse.py index aedba34f..0316a673 100644 --- a/src/kombo/models/getatsrejectionreasonspositiveresponse.py +++ b/src/kombo/models/getatsrejectionreasonspositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -49,12 +56,19 @@ class GetAtsRejectionReasonsPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -76,12 +90,19 @@ class GetAtsRejectionReasonsPositiveResponseData(BaseModel): results: List[GetAtsRejectionReasonsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsrolesop.py b/src/kombo/models/getatsrolesop.py index ec555ae6..572b904d 100644 --- a/src/kombo/models/getatsrolesop.py +++ b/src/kombo/models/getatsrolesop.py @@ -6,7 +6,13 @@ GetAtsRolesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsRolesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -139,6 +152,9 @@ class GetAtsRolesRequest(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -152,11 +168,15 @@ def serialize_model(self, handler): "scopes", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsrolespositiveresponse.py b/src/kombo/models/getatsrolespositiveresponse.py index 95c8b337..18b2803e 100644 --- a/src/kombo/models/getatsrolespositiveresponse.py +++ b/src/kombo/models/getatsrolespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -77,12 +84,19 @@ class GetAtsRolesPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -104,12 +118,19 @@ class GetAtsRolesPositiveResponseData(BaseModel): results: List[GetAtsRolesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsscorecardsop.py b/src/kombo/models/getatsscorecardsop.py index 64f4f012..cc2818de 100644 --- a/src/kombo/models/getatsscorecardsop.py +++ b/src/kombo/models/getatsscorecardsop.py @@ -6,7 +6,13 @@ GetAtsScorecardsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsScorecardsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -153,6 +166,9 @@ class GetAtsScorecardsRequest(BaseModel): r"""Filter by a comma-separated list of application IDs. We will only return scorecards that belong to _any_ of these applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -167,11 +183,15 @@ def serialize_model(self, handler): "application_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsscorecardspositiveresponse.py b/src/kombo/models/getatsscorecardspositiveresponse.py index 199489cc..a103353c 100644 --- a/src/kombo/models/getatsscorecardspositiveresponse.py +++ b/src/kombo/models/getatsscorecardspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -47,12 +56,19 @@ class ResultDate(BaseModel): ] = "DATE" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -97,12 +113,19 @@ class ResultNumber(BaseModel): ] = "NUMBER" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -147,12 +170,19 @@ class ResultBoolean(BaseModel): ] = "BOOLEAN" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -176,12 +206,19 @@ class GetAtsScorecardsPositiveResponseOption2(BaseModel): r"""The option as the interviewer sees it, e.g. \"Strong Hire\".""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -205,12 +242,19 @@ class GetAtsScorecardsPositiveResponseAnswer2(BaseModel): r"""The option as the interviewer sees it, e.g. \"Strong Hire\".""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -262,12 +306,19 @@ class ResultMultiSelect(BaseModel): ] = "MULTI_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -291,12 +342,19 @@ class GetAtsScorecardsPositiveResponseOption1(BaseModel): r"""The option as the interviewer sees it, e.g. \"Strong Hire\".""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -324,12 +382,19 @@ class GetAtsScorecardsPositiveResponseAnswer1(BaseModel): r"""The option as the interviewer sees it, e.g. \"Strong Hire\".""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -381,12 +446,19 @@ class ResultSingleSelect(BaseModel): ] = "SINGLE_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -431,12 +503,19 @@ class ResultText(BaseModel): ] = "TEXT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -501,14 +580,21 @@ class GetAtsScorecardsPositiveResponseAuthor(BaseModel): r"""Email of the user. If the email address is invalid, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email"]) nullable_fields = set(["remote_id", "first_name", "last_name", "email"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -605,6 +691,9 @@ class GetAtsScorecardsPositiveResponseResult(BaseModel): r"""Every question on the scorecard, together with its definition and the answer submitted by the interviewer.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["responses"]) nullable_fields = set( @@ -620,11 +709,15 @@ def serialize_model(self, handler): "author", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -655,12 +748,19 @@ class GetAtsScorecardsPositiveResponseData(BaseModel): results: List[GetAtsScorecardsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatstagsop.py b/src/kombo/models/getatstagsop.py index e2141c89..c541bd75 100644 --- a/src/kombo/models/getatstagsop.py +++ b/src/kombo/models/getatstagsop.py @@ -6,7 +6,13 @@ GetAtsTagsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsTagsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetAtsTagsRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatstagspositiveresponse.py b/src/kombo/models/getatstagspositiveresponse.py index 9faf8279..ae9faf38 100644 --- a/src/kombo/models/getatstagspositiveresponse.py +++ b/src/kombo/models/getatstagspositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -47,12 +54,19 @@ class GetAtsTagsPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -74,12 +88,19 @@ class GetAtsTagsPositiveResponseData(BaseModel): results: List[GetAtsTagsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsusersop.py b/src/kombo/models/getatsusersop.py index 7b0819a0..19aa9a42 100644 --- a/src/kombo/models/getatsusersop.py +++ b/src/kombo/models/getatsusersop.py @@ -6,7 +6,13 @@ GetAtsUsersPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetAtsUsersGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -139,6 +152,9 @@ class GetAtsUsersRequest(BaseModel): r"""Filter by a comma-separated list of emails. We will only return users who have _any_ of the emails. The format of the emails is case-insensitive.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -152,11 +168,15 @@ def serialize_model(self, handler): "emails", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getatsuserspositiveresponse.py b/src/kombo/models/getatsuserspositiveresponse.py index c0648c69..4062aeb6 100644 --- a/src/kombo/models/getatsuserspositiveresponse.py +++ b/src/kombo/models/getatsuserspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -58,12 +67,19 @@ class SystemRole(BaseModel): r"""Roles that apply at the system level.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -140,6 +156,9 @@ class GetAtsUsersPositiveResponseResult(BaseModel): r"""Email of the user. If the email address is invalid, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email"]) nullable_fields = set( @@ -152,11 +171,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -187,12 +210,19 @@ class GetAtsUsersPositiveResponseData(BaseModel): results: List[GetAtsUsersPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getconnectintegrationbytokentokenpositiveresponse.py b/src/kombo/models/getconnectintegrationbytokentokenpositiveresponse.py index d92464f6..6f543158 100644 --- a/src/kombo/models/getconnectintegrationbytokentokenpositiveresponse.py +++ b/src/kombo/models/getconnectintegrationbytokentokenpositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -58,12 +65,19 @@ class GetConnectIntegrationByTokenTokenPositiveResponseData(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisabsencesop.py b/src/kombo/models/gethrisabsencesop.py index 9b894a60..4af7bd7a 100644 --- a/src/kombo/models/gethrisabsencesop.py +++ b/src/kombo/models/gethrisabsencesop.py @@ -6,7 +6,13 @@ GetHrisAbsencesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisAbsencesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -163,6 +176,9 @@ class GetHrisAbsencesRequest(BaseModel): r"""Filter by a specific employee using their ID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -179,11 +195,15 @@ def serialize_model(self, handler): "employee_id", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisabsencespositiveresponse.py b/src/kombo/models/gethrisabsencespositiveresponse.py index 14b82df9..6ccc1220 100644 --- a/src/kombo/models/gethrisabsencespositiveresponse.py +++ b/src/kombo/models/gethrisabsencespositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -102,12 +105,19 @@ class GetHrisAbsencesPositiveResponseType(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -230,6 +240,9 @@ class GetHrisAbsencesPositiveResponseResult(BaseModel): r"""The absence’s current status. In rare cases where we can’t find a clear mapping, the original string is passed through.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["status"]) nullable_fields = set( @@ -252,11 +265,15 @@ def serialize_model(self, handler): "type", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -287,12 +304,19 @@ class GetHrisAbsencesPositiveResponseData(BaseModel): results: List[GetHrisAbsencesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisabsencetypesop.py b/src/kombo/models/gethrisabsencetypesop.py index dd5a9366..2521af21 100644 --- a/src/kombo/models/gethrisabsencetypesop.py +++ b/src/kombo/models/gethrisabsencetypesop.py @@ -6,7 +6,13 @@ GetHrisAbsenceTypesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisAbsenceTypesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetHrisAbsenceTypesRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisabsencetypespositiveresponse.py b/src/kombo/models/gethrisabsencetypespositiveresponse.py index 68c16b87..f05e3b2b 100644 --- a/src/kombo/models/gethrisabsencetypespositiveresponse.py +++ b/src/kombo/models/gethrisabsencetypespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -76,12 +83,19 @@ class GetHrisAbsenceTypesPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -103,12 +117,19 @@ class GetHrisAbsenceTypesPositiveResponseData(BaseModel): results: List[GetHrisAbsenceTypesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemployeedocumentcategoriesop.py b/src/kombo/models/gethrisemployeedocumentcategoriesop.py index 1597b6e2..cb7f5bed 100644 --- a/src/kombo/models/gethrisemployeedocumentcategoriesop.py +++ b/src/kombo/models/gethrisemployeedocumentcategoriesop.py @@ -6,7 +6,13 @@ GetHrisEmployeeDocumentCategoriesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisEmployeeDocumentCategoriesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetHrisEmployeeDocumentCategoriesRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py b/src/kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py index 3c93ef1c..e81c5137 100644 --- a/src/kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py +++ b/src/kombo/models/gethrisemployeedocumentcategoriespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -49,12 +56,19 @@ class GetHrisEmployeeDocumentCategoriesPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -76,12 +90,19 @@ class GetHrisEmployeeDocumentCategoriesPositiveResponseData(BaseModel): results: List[GetHrisEmployeeDocumentCategoriesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemployeesformop.py b/src/kombo/models/gethrisemployeesformop.py index d77eadaa..7cf139e7 100644 --- a/src/kombo/models/gethrisemployeesformop.py +++ b/src/kombo/models/gethrisemployeesformop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class GetHrisEmployeesFormGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -52,13 +65,20 @@ class GetHrisEmployeesFormRequest(BaseModel): r"""GET /hris/employees/form Parameter""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["staffing_entity_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemployeesformpositiveresponse.py b/src/kombo/models/gethrisemployeesformpositiveresponse.py index b29b6f93..0741eeb8 100644 --- a/src/kombo/models/gethrisemployeesformpositiveresponse.py +++ b/src/kombo/models/gethrisemployeesformpositiveresponse.py @@ -3,7 +3,16 @@ from __future__ import annotations from .schema1_union_1 import Schema1Union1, Schema1Union1TypedDict from .schema2 import Schema2, Schema2TypedDict -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -47,14 +56,21 @@ class GetHrisEmployeesFormPositiveResponseFileRestrictions(BaseModel): max_file_size: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["max_file_size"]) nullable_fields = set(["max_file_size"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -100,14 +116,21 @@ class PropertiesFile(BaseModel): ] = "file" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -183,14 +206,21 @@ class PropertiesArray(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -260,14 +290,21 @@ class PropertiesObject(BaseModel): ] = "object" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -334,14 +371,21 @@ class PropertiesCheckbox(BaseModel): ] = "checkbox" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -400,13 +444,20 @@ class GetHrisEmployeesFormPositiveResponseEntry2(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -482,14 +533,21 @@ class PropertiesMultiSelect(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -572,13 +630,20 @@ class GetHrisEmployeesFormPositiveResponseEntry1(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -650,14 +715,21 @@ class PropertiesSingleSelect(BaseModel): ] = "single_select" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -724,14 +796,21 @@ class PropertiesDate(BaseModel): ] = "date" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -804,14 +883,21 @@ class PropertiesNumber(BaseModel): max: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min", "max"]) nullable_fields = set(["description", "unified_key", "min", "max"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -887,6 +973,9 @@ class PropertiesText(BaseModel): reg_exp: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] @@ -894,11 +983,15 @@ def serialize_model(self, handler): nullable_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/gethrisemployeesop.py b/src/kombo/models/gethrisemployeesop.py index 51ed169e..c772a654 100644 --- a/src/kombo/models/gethrisemployeesop.py +++ b/src/kombo/models/gethrisemployeesop.py @@ -6,7 +6,13 @@ GetHrisEmployeesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisEmployeesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -213,6 +226,9 @@ class GetHrisEmployeesRequest(BaseModel): r"""A JSON string with a single key-value pair like {\"fieldKey\":\"fieldValue\"} to filter employees by a specific custom field value. Note that the value must be a string, number, boolean or null and the key must be a valid custom field key. Custom fields with a value of type array or object are not supported.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -232,11 +248,15 @@ def serialize_model(self, handler): "custom_fields", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemployeespositiveresponse.py b/src/kombo/models/gethrisemployeespositiveresponse.py index eb9fcd29..feda259d 100644 --- a/src/kombo/models/gethrisemployeespositiveresponse.py +++ b/src/kombo/models/gethrisemployeespositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -120,6 +123,9 @@ class HomeAddress(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -127,11 +133,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -156,31 +166,39 @@ def serialize_model(self, handler): "CA_ROUTING_NUMBER", "AU_BSB_CODE", "FR_RIB", + "SG_BANK_BRANCH_CODE", ] r"""Enum of the routing type, prefixed with the iso-3166-1-alpha-2 banks origin country. If there is uncertainty about the type, it will be set to null.""" class DomesticBankRoutingTypedDict(TypedDict): number: str - r"""Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45).""" + r"""Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code, SG bank and branch code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45).""" type: Nullable[DomesticBankRoutingType] r"""Enum of the routing type, prefixed with the iso-3166-1-alpha-2 banks origin country. If there is uncertainty about the type, it will be set to null.""" class DomesticBankRouting(BaseModel): number: str - r"""Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45).""" + r"""Bank routing number (e.g. DE Bankleitzahl, GB Sort Code, US ABA routing number, AU BSB code, SG bank and branch code). This field is not formatted and therefore might contain delimiters (eg. 01-23-45).""" type: Nullable[DomesticBankRoutingType] r"""Enum of the routing type, prefixed with the iso-3166-1-alpha-2 banks origin country. If there is uncertainty about the type, it will be set to null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -222,6 +240,9 @@ class BankAccount(BaseModel): domestic_bank_routing: OptionalNullable[DomesticBankRouting] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -243,11 +264,15 @@ def serialize_model(self, handler): "domestic_bank_routing", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -433,6 +458,9 @@ class Employment(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["pay_period", "pay_frequency", "employment_type"]) nullable_fields = set( @@ -449,11 +477,15 @@ def serialize_model(self, handler): "custom_fields", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -546,12 +578,19 @@ class TimeOffBalance(BaseModel): r"""The time-unit of the used time.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -641,6 +680,9 @@ class Manager(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["work_email", "employment_status"]) nullable_fields = set( @@ -654,11 +696,15 @@ def serialize_model(self, handler): "termination_date", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -709,12 +755,19 @@ class GetHrisEmployeesPositiveResponseGroup(BaseModel): r"""Type of the group.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -759,6 +812,9 @@ class LegalEntityAddress(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -766,11 +822,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -813,14 +873,21 @@ class GetHrisEmployeesPositiveResponseLegalEntity(BaseModel): r"""The legal entity’s address.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["address"]) nullable_fields = set(["remote_id", "name", "address"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -874,6 +941,9 @@ class WorkLocationAddress(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -881,11 +951,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -920,6 +994,8 @@ class WorkLocationTypedDict(TypedDict): r"""The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" address: NotRequired[Nullable[WorkLocationAddressTypedDict]] r"""The work location’s address""" @@ -947,20 +1023,37 @@ class WorkLocation(BaseModel): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + address: OptionalNullable[WorkLocationAddress] = UNSET r"""The work location’s address""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["address"]) nullable_fields = set( - ["remote_id", "name", "address", "type", "remote_deleted_at"] + [ + "remote_id", + "name", + "address", + "type", + "remote_deleted_at", + "custom_fields", + ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1229,6 +1322,9 @@ class GetHrisEmployeesPositiveResponseResult(BaseModel): r"""The employee’s bank accounts.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1279,11 +1375,15 @@ def serialize_model(self, handler): "work_location", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1314,12 +1414,19 @@ class GetHrisEmployeesPositiveResponseData(BaseModel): results: List[GetHrisEmployeesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemploymentsop.py b/src/kombo/models/gethrisemploymentsop.py index 6981c301..5b9ffef8 100644 --- a/src/kombo/models/gethrisemploymentsop.py +++ b/src/kombo/models/gethrisemploymentsop.py @@ -6,7 +6,13 @@ GetHrisEmploymentsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisEmploymentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetHrisEmploymentsRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisemploymentspositiveresponse.py b/src/kombo/models/gethrisemploymentspositiveresponse.py index af3258a6..43c703a7 100644 --- a/src/kombo/models/gethrisemploymentspositiveresponse.py +++ b/src/kombo/models/gethrisemploymentspositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -190,6 +193,9 @@ class GetHrisEmploymentsPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["pay_period", "pay_frequency", "employment_type"]) nullable_fields = set( @@ -206,11 +212,15 @@ def serialize_model(self, handler): "custom_fields", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -241,12 +251,19 @@ class GetHrisEmploymentsPositiveResponseData(BaseModel): results: List[GetHrisEmploymentsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisgroupsop.py b/src/kombo/models/gethrisgroupsop.py index b7c29f17..354e8774 100644 --- a/src/kombo/models/gethrisgroupsop.py +++ b/src/kombo/models/gethrisgroupsop.py @@ -6,7 +6,13 @@ GetHrisGroupsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisGroupsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -141,6 +154,9 @@ class GetHrisGroupsRequest(BaseModel): r"""Filter by the `name` field. Can be used to find a group by keywords present in the group name.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -155,11 +171,15 @@ def serialize_model(self, handler): "name_contains", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisgroupspositiveresponse.py b/src/kombo/models/gethrisgroupspositiveresponse.py index 65b2e20d..7ad35020 100644 --- a/src/kombo/models/gethrisgroupspositiveresponse.py +++ b/src/kombo/models/gethrisgroupspositiveresponse.py @@ -2,12 +2,19 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import List, Literal +from typing import Any, Dict, List, Literal from typing_extensions import Annotated, TypedDict @@ -38,6 +45,8 @@ class GetHrisGroupsPositiveResponseResultTypedDict(TypedDict): r"""Type of the group.""" parent_id: Nullable[str] r"""The Kombo ID of the group’s parent group in the organizational structure. The ID can be used to retrieve the group from the `get groups` endpoint.""" + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" class GetHrisGroupsPositiveResponseResult(BaseModel): @@ -66,13 +75,23 @@ class GetHrisGroupsPositiveResponseResult(BaseModel): parent_id: Nullable[str] r"""The Kombo ID of the group’s parent group in the organizational structure. The ID can be used to retrieve the group from the `get groups` endpoint.""" + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -94,12 +113,19 @@ class GetHrisGroupsPositiveResponseData(BaseModel): results: List[GetHrisGroupsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrislegalentitiesop.py b/src/kombo/models/gethrislegalentitiesop.py index 7f7bd3a5..7ca70435 100644 --- a/src/kombo/models/gethrislegalentitiesop.py +++ b/src/kombo/models/gethrislegalentitiesop.py @@ -6,7 +6,13 @@ GetHrisLegalEntitiesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisLegalEntitiesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -127,6 +140,9 @@ class GetHrisLegalEntitiesRequest(BaseModel): r"""Filter by the `name` field. Can be used to find a legal entity by keywords present in the legal entity name.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -140,11 +156,15 @@ def serialize_model(self, handler): "name_contains", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrislegalentitiespositiveresponse.py b/src/kombo/models/gethrislegalentitiespositiveresponse.py index 78cb6b23..3ba55a96 100644 --- a/src/kombo/models/gethrislegalentitiespositiveresponse.py +++ b/src/kombo/models/gethrislegalentitiespositiveresponse.py @@ -2,12 +2,21 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import List, Literal +from typing import Any, Dict, List, Literal from typing_extensions import Annotated, NotRequired, TypedDict @@ -47,6 +56,9 @@ class GetHrisLegalEntitiesPositiveResponseAddress(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -54,11 +66,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -91,6 +107,8 @@ class GetHrisLegalEntitiesPositiveResponseResultTypedDict(TypedDict): r"""The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" address: NotRequired[Nullable[GetHrisLegalEntitiesPositiveResponseAddressTypedDict]] r"""The legal entity’s address.""" @@ -115,18 +133,30 @@ class GetHrisLegalEntitiesPositiveResponseResult(BaseModel): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + address: OptionalNullable[GetHrisLegalEntitiesPositiveResponseAddress] = UNSET r"""The legal entity’s address.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["address"]) - nullable_fields = set(["remote_id", "name", "address", "remote_deleted_at"]) + nullable_fields = set( + ["remote_id", "name", "address", "remote_deleted_at", "custom_fields"] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -157,12 +187,19 @@ class GetHrisLegalEntitiesPositiveResponseData(BaseModel): results: List[GetHrisLegalEntitiesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrislocationsop.py b/src/kombo/models/gethrislocationsop.py index 7c41c980..43380413 100644 --- a/src/kombo/models/gethrislocationsop.py +++ b/src/kombo/models/gethrislocationsop.py @@ -6,7 +6,13 @@ GetHrisLocationsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisLocationsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -127,6 +140,9 @@ class GetHrisLocationsRequest(BaseModel): r"""Filter by the `name` field. Can be used to find a location by keywords present in the location name.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -140,11 +156,15 @@ def serialize_model(self, handler): "name_contains", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrislocationspositiveresponse.py b/src/kombo/models/gethrislocationspositiveresponse.py index dd4d8bed..d835176e 100644 --- a/src/kombo/models/gethrislocationspositiveresponse.py +++ b/src/kombo/models/gethrislocationspositiveresponse.py @@ -2,12 +2,21 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import List, Literal +from typing import Any, Dict, List, Literal from typing_extensions import Annotated, NotRequired, TypedDict @@ -47,6 +56,9 @@ class GetHrisLocationsPositiveResponseAddress(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -54,11 +66,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -93,6 +109,8 @@ class GetHrisLocationsPositiveResponseResultTypedDict(TypedDict): r"""The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" address: NotRequired[Nullable[GetHrisLocationsPositiveResponseAddressTypedDict]] r"""The work location’s address""" @@ -120,20 +138,37 @@ class GetHrisLocationsPositiveResponseResult(BaseModel): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString """ + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + address: OptionalNullable[GetHrisLocationsPositiveResponseAddress] = UNSET r"""The work location’s address""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["address"]) nullable_fields = set( - ["remote_id", "name", "address", "type", "remote_deleted_at"] + [ + "remote_id", + "name", + "address", + "type", + "remote_deleted_at", + "custom_fields", + ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -164,12 +199,19 @@ class GetHrisLocationsPositiveResponseData(BaseModel): results: List[GetHrisLocationsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrispayrunsop.py b/src/kombo/models/gethrispayrunsop.py index 3a9cd72e..477234a8 100644 --- a/src/kombo/models/gethrispayrunsop.py +++ b/src/kombo/models/gethrispayrunsop.py @@ -6,7 +6,13 @@ GetHrisPayRunsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisPayRunsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -127,6 +140,9 @@ class GetHrisPayRunsRequest(BaseModel): r"""Filter by a comma-separated list of legal entity IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -140,11 +156,15 @@ def serialize_model(self, handler): "legal_entity_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrispayrunspositiveresponse.py b/src/kombo/models/gethrispayrunspositiveresponse.py index c26d99d7..3e263286 100644 --- a/src/kombo/models/gethrispayrunspositiveresponse.py +++ b/src/kombo/models/gethrispayrunspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import date, datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -17,7 +26,7 @@ class GetHrisPayRunsPositiveResponseGrossPayTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponseGrossPay(BaseModel): @@ -27,7 +36,7 @@ class GetHrisPayRunsPositiveResponseGrossPay(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponseNetPayTypedDict(TypedDict): @@ -36,7 +45,7 @@ class GetHrisPayRunsPositiveResponseNetPayTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponseNetPay(BaseModel): @@ -46,7 +55,7 @@ class GetHrisPayRunsPositiveResponseNetPay(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponsePaidAmountTypedDict(TypedDict): @@ -55,7 +64,7 @@ class GetHrisPayRunsPositiveResponsePaidAmountTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponsePaidAmount(BaseModel): @@ -65,7 +74,7 @@ class GetHrisPayRunsPositiveResponsePaidAmount(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayRunsPositiveResponseTotalsTypedDict(TypedDict): @@ -90,14 +99,21 @@ class GetHrisPayRunsPositiveResponseTotals(BaseModel): r"""The total amount paid out through the pay run. This value accounts for net earnings and deductions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["gross_pay", "net_pay", "paid_amount"]) nullable_fields = set(["gross_pay", "net_pay", "paid_amount"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -166,12 +182,19 @@ class GetHrisPayRunsPositiveResponseResult(BaseModel): totals: GetHrisPayRunsPositiveResponseTotals @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -193,12 +216,19 @@ class GetHrisPayRunsPositiveResponseData(BaseModel): results: List[GetHrisPayRunsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrispayslipsop.py b/src/kombo/models/gethrispayslipsop.py index aeea3ad6..8336dde3 100644 --- a/src/kombo/models/gethrispayslipsop.py +++ b/src/kombo/models/gethrispayslipsop.py @@ -6,7 +6,13 @@ GetHrisPayslipsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisPayslipsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -161,6 +174,9 @@ class GetHrisPayslipsRequest(BaseModel): r"""Filter by a comma-separated list of payrun IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -176,11 +192,15 @@ def serialize_model(self, handler): "payrun_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrispayslipspositiveresponse.py b/src/kombo/models/gethrispayslipspositiveresponse.py index 654a8394..84f320a8 100644 --- a/src/kombo/models/gethrispayslipspositiveresponse.py +++ b/src/kombo/models/gethrispayslipspositiveresponse.py @@ -2,12 +2,21 @@ from __future__ import annotations from datetime import date, datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import List, Literal +from typing import Any, Dict, List, Literal from typing_extensions import Annotated, NotRequired, TypedDict @@ -17,7 +26,7 @@ class GetHrisPayslipsPositiveResponseGrossPayTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponseGrossPay(BaseModel): @@ -27,7 +36,7 @@ class GetHrisPayslipsPositiveResponseGrossPay(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponseNetPayTypedDict(TypedDict): @@ -36,7 +45,7 @@ class GetHrisPayslipsPositiveResponseNetPayTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponseNetPay(BaseModel): @@ -46,7 +55,7 @@ class GetHrisPayslipsPositiveResponseNetPay(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponsePaidAmountTypedDict(TypedDict): @@ -55,7 +64,7 @@ class GetHrisPayslipsPositiveResponsePaidAmountTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponsePaidAmount(BaseModel): @@ -65,7 +74,64 @@ class GetHrisPayslipsPositiveResponsePaidAmount(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class GrossPayYtdTypedDict(TypedDict): + r"""The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class GrossPayYtd(BaseModel): + r"""The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class NetPayYtdTypedDict(TypedDict): + r"""The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class NetPayYtd(BaseModel): + r"""The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class PaidAmountYtdTypedDict(TypedDict): + r"""The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class PaidAmountYtd(BaseModel): + r"""The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class GetHrisPayslipsPositiveResponseTotalsTypedDict(TypedDict): @@ -77,6 +143,12 @@ class GetHrisPayslipsPositiveResponseTotalsTypedDict(TypedDict): Nullable[GetHrisPayslipsPositiveResponsePaidAmountTypedDict] ] r"""The amount of the payslip that was actually paid out to the employee. This value accounts for net earnings and deductions.""" + gross_pay_ytd: NotRequired[Nullable[GrossPayYtdTypedDict]] + r"""The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + net_pay_ytd: NotRequired[Nullable[NetPayYtdTypedDict]] + r"""The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + paid_amount_ytd: NotRequired[Nullable[PaidAmountYtdTypedDict]] + r"""The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" class GetHrisPayslipsPositiveResponseTotals(BaseModel): @@ -89,15 +161,49 @@ class GetHrisPayslipsPositiveResponseTotals(BaseModel): paid_amount: OptionalNullable[GetHrisPayslipsPositiveResponsePaidAmount] = UNSET r"""The amount of the payslip that was actually paid out to the employee. This value accounts for net earnings and deductions.""" + gross_pay_ytd: OptionalNullable[GrossPayYtd] = UNSET + r"""The year-to-date gross pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + net_pay_ytd: OptionalNullable[NetPayYtd] = UNSET + r"""The year-to-date net pay as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + paid_amount_ytd: OptionalNullable[PaidAmountYtd] = UNSET + r"""The year-to-date paid amount as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["gross_pay", "net_pay", "paid_amount"]) - nullable_fields = set(["gross_pay", "net_pay", "paid_amount"]) + optional_fields = set( + [ + "gross_pay", + "net_pay", + "paid_amount", + "gross_pay_ytd", + "net_pay_ytd", + "paid_amount_ytd", + ] + ) + nullable_fields = set( + [ + "gross_pay", + "net_pay", + "paid_amount", + "gross_pay_ytd", + "net_pay_ytd", + "paid_amount_ytd", + ] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -163,6 +269,9 @@ class Employee(BaseModel): r"""The employee’s work email address. If the email address is invalid, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["work_email"]) nullable_fields = set( @@ -174,11 +283,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -230,12 +343,59 @@ class PayRun(BaseModel): r"""The Kombo ID of the pay run’s legal entity. The ID can be used to retrieve the legal entity from the `get legal entities` endpoint.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + m[k] = val + + return m + + +class PayCodeTypedDict(TypedDict): + r"""The pay code (salary type) this line item belongs to in the remote system.""" + + remote_id: str + r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" + remote_label: Nullable[str] + r"""The name of the salary type as it appears in the remote system.""" + + +class PayCode(BaseModel): + r"""The pay code (salary type) this line item belongs to in the remote system.""" + + remote_id: str + r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" + + remote_label: Nullable[str] + r"""The name of the salary type as it appears in the remote system.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -250,7 +410,7 @@ class AmountTypedDict(TypedDict): currency: str r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class Amount(BaseModel): @@ -260,7 +420,26 @@ class Amount(BaseModel): r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" value: float - r"""The monetary value.""" + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class AmountYtdTypedDict(TypedDict): + r"""The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" + + +class AmountYtd(BaseModel): + r"""The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + + currency: str + r"""The [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) the value is denominated in.""" + + value: float + r"""The monetary value. See the integration’s limitations for whether this value is rounded. Rounded values use mathematical rounding (half away from zero).""" class LineItemTypedDict(TypedDict): @@ -270,8 +449,14 @@ class LineItemTypedDict(TypedDict): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key. This value may include the item's position on the payslip, which can change if the payslip is edited.""" name: Nullable[str] r"""The name of the salary type.""" + pay_code: PayCodeTypedDict + r"""The pay code (salary type) this line item belongs to in the remote system.""" + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" amount: NotRequired[Nullable[AmountTypedDict]] r"""The amount of the line item.""" + amount_ytd: NotRequired[Nullable[AmountYtdTypedDict]] + r"""The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" class LineItem(BaseModel): @@ -284,18 +469,34 @@ class LineItem(BaseModel): name: Nullable[str] r"""The name of the salary type.""" + pay_code: PayCode + r"""The pay code (salary type) this line item belongs to in the remote system.""" + + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + amount: OptionalNullable[Amount] = UNSET r"""The amount of the line item.""" + amount_ytd: OptionalNullable[AmountYtd] = UNSET + r"""The year-to-date amount of the line item as returned by the remote system. Kombo never calculates this value. `null` when the remote API does not provide a year-to-date amount.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["amount"]) - nullable_fields = set(["name", "amount"]) + optional_fields = set(["amount", "amount_ytd"]) + nullable_fields = set(["name", "amount", "amount_ytd", "custom_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -318,6 +519,8 @@ class GetHrisPayslipsPositiveResponseResultTypedDict(TypedDict): r"""The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.""" remote_id: str r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" changed_at: datetime r"""The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString @@ -342,6 +545,9 @@ class GetHrisPayslipsPositiveResponseResult(BaseModel): remote_id: str r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" + custom_fields: Nullable[Dict[str, Any]] + r"""A key-value store of fields not covered by the schema. [Read more](/custom-fields)""" + changed_at: datetime r"""The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString @@ -364,12 +570,19 @@ class GetHrisPayslipsPositiveResponseResult(BaseModel): r"""The individual earnings, deductions, and contributions that make up the payslip.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -391,12 +604,19 @@ class GetHrisPayslipsPositiveResponseData(BaseModel): results: List[GetHrisPayslipsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisperformancereviewcyclesop.py b/src/kombo/models/gethrisperformancereviewcyclesop.py index c80a4a1b..7af16034 100644 --- a/src/kombo/models/gethrisperformancereviewcyclesop.py +++ b/src/kombo/models/gethrisperformancereviewcyclesop.py @@ -6,7 +6,13 @@ GetHrisPerformanceReviewCyclesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisPerformanceReviewCyclesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,6 +132,9 @@ class GetHrisPerformanceReviewCyclesRequest(BaseModel): r"""Filter by a comma-separated list of remote IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -131,11 +147,15 @@ def serialize_model(self, handler): "remote_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisperformancereviewcyclespositiveresponse.py b/src/kombo/models/gethrisperformancereviewcyclespositiveresponse.py index 2674a8b2..69110a0c 100644 --- a/src/kombo/models/gethrisperformancereviewcyclespositiveresponse.py +++ b/src/kombo/models/gethrisperformancereviewcyclespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -58,12 +65,19 @@ class GetHrisPerformanceReviewCyclesPositiveResponseResult(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -85,12 +99,19 @@ class GetHrisPerformanceReviewCyclesPositiveResponseData(BaseModel): results: List[GetHrisPerformanceReviewCyclesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisperformancereviewsop.py b/src/kombo/models/gethrisperformancereviewsop.py index 7ea61446..d0f94a5c 100644 --- a/src/kombo/models/gethrisperformancereviewsop.py +++ b/src/kombo/models/gethrisperformancereviewsop.py @@ -6,7 +6,13 @@ GetHrisPerformanceReviewsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisPerformanceReviewsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -165,6 +178,9 @@ class GetHrisPerformanceReviewsRequest(BaseModel): r"""Filter by a comma-separated list of reviewee IDs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -180,11 +196,15 @@ def serialize_model(self, handler): "reviewee_ids", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisperformancereviewspositiveresponse.py b/src/kombo/models/gethrisperformancereviewspositiveresponse.py index 2e4d3bbc..f4e75fdf 100644 --- a/src/kombo/models/gethrisperformancereviewspositiveresponse.py +++ b/src/kombo/models/gethrisperformancereviewspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, SerializeAsAny, model_serializer @@ -43,12 +52,19 @@ class SummaryRatingSingleSelect(BaseModel): ] = "SINGLE_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -83,12 +99,19 @@ class SummaryRatingNumeric(BaseModel): ] = "NUMERIC" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -158,6 +181,9 @@ class Reviewee(BaseModel): r"""The employee’s work email address. If the email address is invalid, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["work_email"]) nullable_fields = set( @@ -169,11 +195,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -239,6 +269,9 @@ class Reviewer(BaseModel): r"""The employee’s work email address. If the email address is invalid, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["work_email"]) nullable_fields = set( @@ -250,11 +283,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -319,12 +356,19 @@ class ReviewCycle(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -394,6 +438,9 @@ class GetHrisPerformanceReviewsPositiveResponseResult(BaseModel): r"""The summary rating of the performance review.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["summary_rating"]) nullable_fields = set( @@ -406,11 +453,15 @@ def serialize_model(self, handler): "review_cycle", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -441,12 +492,19 @@ class GetHrisPerformanceReviewsPositiveResponseData(BaseModel): results: List[GetHrisPerformanceReviewsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisstaffingentitiesop.py b/src/kombo/models/gethrisstaffingentitiesop.py index ce93cb53..165eb65e 100644 --- a/src/kombo/models/gethrisstaffingentitiesop.py +++ b/src/kombo/models/gethrisstaffingentitiesop.py @@ -6,7 +6,13 @@ GetHrisStaffingEntitiesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisStaffingEntitiesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -165,6 +178,9 @@ class GetHrisStaffingEntitiesRequest(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -179,11 +195,15 @@ def serialize_model(self, handler): "statuses", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethrisstaffingentitiespositiveresponse.py b/src/kombo/models/gethrisstaffingentitiespositiveresponse.py index 579dc60d..a5ba5cab 100644 --- a/src/kombo/models/gethrisstaffingentitiespositiveresponse.py +++ b/src/kombo/models/gethrisstaffingentitiespositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, SerializeAsAny, model_serializer @@ -65,12 +74,19 @@ class GetHrisStaffingEntitiesPositiveResponseEmploymentType(BaseModel): r"""The unified type, how Kombo categorize this label.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -104,12 +120,19 @@ class GetHrisStaffingEntitiesPositiveResponseLocation(BaseModel): r"""The work location’s type. A freeform string.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -138,12 +161,19 @@ class GetHrisStaffingEntitiesPositiveResponseLegalEntity(BaseModel): r"""The legal entity’s name.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -185,12 +215,19 @@ class GetHrisStaffingEntitiesPositiveResponseGroup(BaseModel): r"""Type of the group.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -219,12 +256,19 @@ class OrderedOption(BaseModel): r"""The display name of this proficiency level.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -297,12 +341,19 @@ class ProficiencyScaleNumeric(BaseModel): ] = "NUMERIC" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -354,12 +405,19 @@ class SkillSkill(BaseModel): r"""The scale used to rate this skill, useful when writing a rating back. `null` when the skill has no scale.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -438,14 +496,21 @@ class Skill(BaseModel): r"""The expected proficiency for this role. `null` when the source system carries no proficiency on the role side.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["expected_proficiency"]) nullable_fields = set(["expected_proficiency"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -597,12 +662,19 @@ class GetHrisStaffingEntitiesPositiveResponseResult(BaseModel): r"""The skills expected on this staffing entity (role), with the expected proficiency level per skill.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -624,12 +696,19 @@ class GetHrisStaffingEntitiesPositiveResponseData(BaseModel): results: List[GetHrisStaffingEntitiesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethristimeoffbalancesop.py b/src/kombo/models/gethristimeoffbalancesop.py index 859e2d06..9af89120 100644 --- a/src/kombo/models/gethristimeoffbalancesop.py +++ b/src/kombo/models/gethristimeoffbalancesop.py @@ -6,7 +6,13 @@ GetHrisTimeOffBalancesPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisTimeOffBalancesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -139,6 +152,9 @@ class GetHrisTimeOffBalancesRequest(BaseModel): r"""Filter by a specific employee using their ID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -152,11 +168,15 @@ def serialize_model(self, handler): "employee_id", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethristimeoffbalancespositiveresponse.py b/src/kombo/models/gethristimeoffbalancespositiveresponse.py index 54688838..5749cfad 100644 --- a/src/kombo/models/gethristimeoffbalancespositiveresponse.py +++ b/src/kombo/models/gethristimeoffbalancespositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -90,12 +97,19 @@ class GetHrisTimeOffBalancesPositiveResponseType(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -168,12 +182,19 @@ class GetHrisTimeOffBalancesPositiveResponseResult(BaseModel): type: GetHrisTimeOffBalancesPositiveResponseType @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -195,12 +216,19 @@ class GetHrisTimeOffBalancesPositiveResponseData(BaseModel): results: List[GetHrisTimeOffBalancesPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethristimesheetsop.py b/src/kombo/models/gethristimesheetsop.py index ad162e4a..c60f9848 100644 --- a/src/kombo/models/gethristimesheetsop.py +++ b/src/kombo/models/gethristimesheetsop.py @@ -6,7 +6,13 @@ GetHrisTimesheetsPositiveResponseTypedDict, ) from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata import pydantic from pydantic import model_serializer @@ -28,13 +34,20 @@ class GetHrisTimesheetsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -159,6 +172,9 @@ class GetHrisTimesheetsRequest(BaseModel): r"""Return timesheets whose end time is on or after the given timestamp.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -176,11 +192,15 @@ def serialize_model(self, handler): "ended_after", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gethristimesheetspositiveresponse.py b/src/kombo/models/gethristimesheetspositiveresponse.py index 2bc9402f..cecf06d5 100644 --- a/src/kombo/models/gethristimesheetspositiveresponse.py +++ b/src/kombo/models/gethristimesheetspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -131,6 +140,9 @@ class GetHrisTimesheetsPositiveResponseResult(BaseModel): r"""Concrete times of the breaks.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["breaks"]) nullable_fields = set( @@ -149,11 +161,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -184,12 +200,19 @@ class GetHrisTimesheetsPositiveResponseData(BaseModel): results: List[GetHrisTimesheetsPositiveResponseResult] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getintegrationsintegrationidcustomfieldsop.py b/src/kombo/models/getintegrationsintegrationidcustomfieldsop.py index ce0954b3..b2d2bb28 100644 --- a/src/kombo/models/getintegrationsintegrationidcustomfieldsop.py +++ b/src/kombo/models/getintegrationsintegrationidcustomfieldsop.py @@ -5,7 +5,13 @@ GetIntegrationsIntegrationIDCustomFieldsPositiveResponse, GetIntegrationsIntegrationIDCustomFieldsPositiveResponseTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata from pydantic import model_serializer from typing import Awaitable, Callable, Optional, Union @@ -40,13 +46,20 @@ class GetIntegrationsIntegrationIDCustomFieldsRequest(BaseModel): r"""The number of results to return per page. Maximum is 250.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["cursor", "page_size"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py b/src/kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py index bb3772f3..ea85797d 100644 --- a/src/kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py +++ b/src/kombo/models/getintegrationsintegrationidcustomfieldspositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -50,12 +57,19 @@ class GetIntegrationsIntegrationIDCustomFieldsPositiveResponseIntegrationField( r"""The label of the integration field in the remote system""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -105,12 +119,19 @@ class GetIntegrationsIntegrationIDCustomFieldsPositiveResponseResult(BaseModel): r"""The description of the custom field""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -134,12 +155,19 @@ class GetIntegrationsIntegrationIDCustomFieldsPositiveResponseData(BaseModel): r"""Cursor string that can be passed to the `cursor` query parameter to get the next page. If this is `null`, then there are no more pages.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getintegrationsintegrationidintegrationfieldsop.py b/src/kombo/models/getintegrationsintegrationidintegrationfieldsop.py index f7ca488b..3c89cca5 100644 --- a/src/kombo/models/getintegrationsintegrationidintegrationfieldsop.py +++ b/src/kombo/models/getintegrationsintegrationidintegrationfieldsop.py @@ -5,7 +5,13 @@ GetIntegrationsIntegrationIDIntegrationFieldsPositiveResponse, GetIntegrationsIntegrationIDIntegrationFieldsPositiveResponseTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata from pydantic import model_serializer from typing import Awaitable, Callable, Optional, Union @@ -40,13 +46,20 @@ class GetIntegrationsIntegrationIDIntegrationFieldsRequest(BaseModel): r"""The number of results to return per page. Maximum is 2000.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["cursor", "page_size"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py b/src/kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py index db83c165..cbda5a36 100644 --- a/src/kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py +++ b/src/kombo/models/getintegrationsintegrationidintegrationfieldspositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -62,12 +69,19 @@ class GetIntegrationsIntegrationIDIntegrationFieldsPositiveResponseResult(BaseMo r"""This field is related to a deprecated feature and means nothing, but is kept for backwards compatibility.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -93,12 +107,19 @@ class GetIntegrationsIntegrationIDIntegrationFieldsPositiveResponseData(BaseMode r"""Cursor string that can be passed to the `cursor` query parameter to get the next page. If this is `null`, then there are no more pages.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/getintegrationsintegrationidpositiveresponse.py b/src/kombo/models/getintegrationsintegrationidpositiveresponse.py index 66a65e60..72b6016d 100644 --- a/src/kombo/models/getintegrationsintegrationidpositiveresponse.py +++ b/src/kombo/models/getintegrationsintegrationidpositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -39,12 +46,19 @@ class GetIntegrationsIntegrationIDPositiveResponseTool(BaseModel): r"""URL to a square SVG icon of the connected tool.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -103,12 +117,19 @@ class GetIntegrationsIntegrationIDPositiveResponseEndUser(BaseModel): r"""The ID you have passed initially to the connection flow to create this integration.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -128,12 +149,19 @@ class ScopeConfig(BaseModel): name: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -493,12 +521,19 @@ class GetIntegrationsIntegrationIDPositiveResponseData(BaseModel): write_actions: List[GetIntegrationsIntegrationIDPositiveResponseWriteAction] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/gettoolscategorypositiveresponse.py b/src/kombo/models/gettoolscategorypositiveresponse.py index a71cf28a..09064c6a 100644 --- a/src/kombo/models/gettoolscategorypositiveresponse.py +++ b/src/kombo/models/gettoolscategorypositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -317,12 +324,19 @@ class GetToolsCategoryPositiveResponseTool(BaseModel): r"""This describes the supported models and actions of this tool.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/inlineassessmentorderreceivedwebhookpayload.py b/src/kombo/models/inlineassessmentorderreceivedwebhookpayload.py index 403c9e55..fffd5289 100644 --- a/src/kombo/models/inlineassessmentorderreceivedwebhookpayload.py +++ b/src/kombo/models/inlineassessmentorderreceivedwebhookpayload.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import List, Literal from typing_extensions import NotRequired, TypedDict @@ -56,12 +65,19 @@ class InlineAssessmentOrderReceivedWebhookPayloadCandidate(BaseModel): r"""The candidate's phone number.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -84,12 +100,19 @@ class InlineAssessmentOrderReceivedWebhookPayloadApplication(BaseModel): r"""The application's identifier in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -134,6 +157,9 @@ class InlineAssessmentOrderReceivedWebhookPayloadLocation(BaseModel): r"""If we have address data, this is filled with the raw address string.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] @@ -141,11 +167,15 @@ def serialize_model(self, handler): nullable_fields = set( ["street_1", "street_2", "city", "state", "zip_code", "country", "raw"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -203,12 +233,19 @@ class InlineAssessmentOrderReceivedWebhookPayloadHiringTeam(BaseModel): r"""Array of the roles of the user for this specific job.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -256,12 +293,19 @@ class InlineAssessmentOrderReceivedWebhookPayloadJob(BaseModel): r"""The hiring team allows you to provision users into your system who can access the job and its applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/integrationcreatedwebhookpayload.py b/src/kombo/models/integrationcreatedwebhookpayload.py index 2c6b1677..859cf037 100644 --- a/src/kombo/models/integrationcreatedwebhookpayload.py +++ b/src/kombo/models/integrationcreatedwebhookpayload.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -44,12 +51,19 @@ class IntegrationCreatedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/integrationdeletedwebhookpayload.py b/src/kombo/models/integrationdeletedwebhookpayload.py index 3f56fb1d..3306990b 100644 --- a/src/kombo/models/integrationdeletedwebhookpayload.py +++ b/src/kombo/models/integrationdeletedwebhookpayload.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -45,12 +52,19 @@ class IntegrationDeletedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/integrationstatechangedwebhookpayload.py b/src/kombo/models/integrationstatechangedwebhookpayload.py index fc2479d3..c718ae63 100644 --- a/src/kombo/models/integrationstatechangedwebhookpayload.py +++ b/src/kombo/models/integrationstatechangedwebhookpayload.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -45,12 +52,19 @@ class IntegrationStateChangedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/internal/globals.py b/src/kombo/models/internal/globals.py index 01d246f0..87c38d48 100644 --- a/src/kombo/models/internal/globals.py +++ b/src/kombo/models/internal/globals.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class Globals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/issuestatuschangedwebhookpayload.py b/src/kombo/models/issuestatuschangedwebhookpayload.py index 4be9bca7..91f688f0 100644 --- a/src/kombo/models/issuestatuschangedwebhookpayload.py +++ b/src/kombo/models/issuestatuschangedwebhookpayload.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -66,12 +73,19 @@ class Issue(BaseModel): r"""ISO 8601 timestamp when the issue was resolved. `null` while it is open.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -113,12 +127,19 @@ class IssueStatusChangedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -174,12 +195,19 @@ class IssueStatusChangedWebhookPayloadData(BaseModel): r"""The integration this issue belongs to. `null` for environment-wide issues.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/komboatserror.py b/src/kombo/models/komboatserror.py index 0e7fa76a..b33766db 100644 --- a/src/kombo/models/komboatserror.py +++ b/src/kombo/models/komboatserror.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -68,12 +75,19 @@ class KomboAtsErrorError(BaseModel): r"""The log page in the Kombo UI lists every interaction with full details. If you need assistance, share that link with our support team.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/kombogeneralerror.py b/src/kombo/models/kombogeneralerror.py index 165038ac..ab2155ba 100644 --- a/src/kombo/models/kombogeneralerror.py +++ b/src/kombo/models/kombogeneralerror.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -52,12 +59,19 @@ class KomboGeneralErrorError(BaseModel): r"""The log page in the Kombo UI lists every interaction with full details. If you need assistance, share that link with our support team.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/kombohriserror.py b/src/kombo/models/kombohriserror.py index 8c0e6300..598f9aaf 100644 --- a/src/kombo/models/kombohriserror.py +++ b/src/kombo/models/kombohriserror.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -68,12 +75,19 @@ class KomboHrisErrorError(BaseModel): r"""The log page in the Kombo UI lists every interaction with full details. If you need assistance, share that link with our support team.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py b/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py index 69916e13..385fee4c 100644 --- a/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py +++ b/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidpositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -64,12 +71,19 @@ class PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDPositiveR r"""This field is related to a deprecated feature and means nothing, but is kept for backwards compatibility.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py b/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py index c0435bfe..60032571 100644 --- a/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py +++ b/src/kombo/models/patchintegrationsintegrationidintegrationfieldsintegrationfieldidrequestbody.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing_extensions import TypedDict @@ -18,12 +25,19 @@ class PatchIntegrationsIntegrationIDIntegrationFieldsIntegrationFieldIDRequestBo enable_passthrough: Nullable[bool] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidattachmentsop.py b/src/kombo/models/postatsapplicationsapplicationidattachmentsop.py index ce854ced..f7d0cd46 100644 --- a/src/kombo/models/postatsapplicationsapplicationidattachmentsop.py +++ b/src/kombo/models/postatsapplicationsapplicationidattachmentsop.py @@ -5,7 +5,13 @@ PostAtsApplicationsApplicationIDAttachmentsRequestBody, PostAtsApplicationsApplicationIDAttachmentsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsApplicationsApplicationIDAttachmentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py b/src/kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py index 07362a42..d6dbf839 100644 --- a/src/kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py +++ b/src/kombo/models/postatsapplicationsapplicationidattachmentsrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Literal, Optional @@ -74,13 +83,20 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyAttachment(BaseModel """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -124,15 +140,22 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyOracle(BaseModel): r"""If true, the attachment will be posted to all current applications for the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["override_document_category", "multi_post_to_all_current_applications"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -160,14 +183,21 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyPostHeaders(BaseMode r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -205,13 +235,20 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyGreenhouse(BaseModel r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -237,13 +274,20 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -291,13 +335,20 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBodyRemoteFields(BaseMod r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["oracle", "greenhouse", "workable"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -324,13 +375,20 @@ class PostAtsApplicationsApplicationIDAttachmentsRequestBody(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidnotesop.py b/src/kombo/models/postatsapplicationsapplicationidnotesop.py index c898b93e..276fc60f 100644 --- a/src/kombo/models/postatsapplicationsapplicationidnotesop.py +++ b/src/kombo/models/postatsapplicationsapplicationidnotesop.py @@ -5,7 +5,13 @@ PostAtsApplicationsApplicationIDNotesRequestBody, PostAtsApplicationsApplicationIDNotesRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsApplicationsApplicationIDNotesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidnotesrequestbody.py b/src/kombo/models/postatsapplicationsapplicationidnotesrequestbody.py index 3571cbdd..dd695068 100644 --- a/src/kombo/models/postatsapplicationsapplicationidnotesrequestbody.py +++ b/src/kombo/models/postatsapplicationsapplicationidnotesrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Literal, Optional @@ -26,13 +35,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyTeamtailor(BaseModel): r"""ID of the user that created the note. Defaults to the first admin user found.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["user_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -58,14 +74,21 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -101,13 +124,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -141,13 +171,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyGreenhousev3(BaseModel): r"""Visibility of the created note.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["visibility"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -176,13 +213,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyRecruitee(BaseModel): r"""Whether the note is in a stringified JSON format. If true, content should contain a valid JSON as per the [Recruitee API documentation](https://docs.recruitee.com/reference/candidatesidnotes) (body_json field). If false we add the note as a plain text.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["visibility", "is_json"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -206,13 +250,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyBullhorn(BaseModel): r"""The action (or type) associated with a Note. You can find all available note actions in a Bullhorn instance under System Settings > commentActionList. The default action is `Note`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["action"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -236,13 +287,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyLever(BaseModel): r"""ID of the Lever user that will show up as having created the note. If not provided, defaults to the user associated with the OAuth token.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["perform_as"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -280,13 +338,20 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -369,6 +434,9 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -382,11 +450,15 @@ def serialize_model(self, handler): "workable", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -401,6 +473,8 @@ class PostAtsApplicationsApplicationIDNotesRequestBodyTypedDict(TypedDict): r"""UTF-8 content of the note.""" content_type: ContentType r"""Content type of the note. Currently only `PLAIN_TEXT` is supported.""" + title: NotRequired[str] + r"""Title of the note, often called \"subject\" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead.""" remote_fields: NotRequired[ PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFieldsTypedDict ] @@ -414,19 +488,29 @@ class PostAtsApplicationsApplicationIDNotesRequestBody(BaseModel): content_type: ContentType r"""Content type of the note. Currently only `PLAIN_TEXT` is supported.""" + title: Optional[str] = None + r"""Title of the note, often called \"subject\" in the ATS. If the ATS has no note title, the title becomes the first line of the content instead.""" + remote_fields: Optional[ PostAtsApplicationsApplicationIDNotesRequestBodyRemoteFields ] = None r"""Tool specific remote fields for the note.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["remote_fields"]) + optional_fields = set(["title", "remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidrejectop.py b/src/kombo/models/postatsapplicationsapplicationidrejectop.py index c4051eaf..a24e72da 100644 --- a/src/kombo/models/postatsapplicationsapplicationidrejectop.py +++ b/src/kombo/models/postatsapplicationsapplicationidrejectop.py @@ -5,7 +5,13 @@ PostAtsApplicationsApplicationIDRejectRequestBody, PostAtsApplicationsApplicationIDRejectRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsApplicationsApplicationIDRejectGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidrejectrequestbody.py b/src/kombo/models/postatsapplicationsapplicationidrejectrequestbody.py index 51cecd96..3ff3ed4b 100644 --- a/src/kombo/models/postatsapplicationsapplicationidrejectrequestbody.py +++ b/src/kombo/models/postatsapplicationsapplicationidrejectrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Dict, Optional @@ -24,14 +33,21 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -67,13 +83,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -97,13 +120,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyGreenhousev3(BaseModel): r"""Additional data fields passed through to the `rejection_email` field of Greenhouse V3's reject-application endpoint.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["rejection_email"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -127,13 +157,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyTeamtailor(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action. If not provided, the first admin user will be used.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["user_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -157,13 +194,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -216,13 +260,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["greenhouse", "greenhousev3", "teamtailor", "workable"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -256,13 +307,20 @@ class PostAtsApplicationsApplicationIDRejectRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["note", "remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidresultlinksop.py b/src/kombo/models/postatsapplicationsapplicationidresultlinksop.py index afd2be14..29621161 100644 --- a/src/kombo/models/postatsapplicationsapplicationidresultlinksop.py +++ b/src/kombo/models/postatsapplicationsapplicationidresultlinksop.py @@ -5,7 +5,13 @@ PostAtsApplicationsApplicationIDResultLinksRequestBody, PostAtsApplicationsApplicationIDResultLinksRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsApplicationsApplicationIDResultLinksGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py b/src/kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py index 43d46424..426bda3a 100644 --- a/src/kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py +++ b/src/kombo/models/postatsapplicationsapplicationidresultlinksrequestbody.py @@ -1,10 +1,19 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer -from typing import List, Literal, Optional +from typing import Any, Dict, List, Literal, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -64,13 +73,20 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyIcims(BaseModel): r"""The package ID of the assessment that the result link will be added to.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["assessment_package_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -114,15 +130,22 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyOracle(BaseModel): r"""If true, the result link will be posted to all current applications for the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["override_document_category", "multi_post_to_all_current_applications"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -148,6 +171,43 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360(BaseModel) r"""Talent360 user ID the result-link note is attributed to. Required because every Talent360 communication must be attributed to a user.""" +class PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffitTypedDict(TypedDict): + r"""Fields specific to Traffit.""" + + candidate: NotRequired[Dict[str, Any]] + r"""Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ \"_Assessment_Score\": \"5\" }`. The field must be available via integration in Traffit.""" + + +class PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit(BaseModel): + r"""Fields specific to Traffit.""" + + candidate: Optional[Dict[str, Any]] = None + r"""Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ \"_Assessment_Score\": \"5\" }`. The field must be available via integration in Traffit.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + class PostAtsApplicationsApplicationIDResultLinksRequestBodyPostHeadersTypedDict( TypedDict ): @@ -166,14 +226,21 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyPostHeaders(BaseMode r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -211,13 +278,20 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyGreenhouse(BaseModel r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -243,13 +317,20 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -276,6 +357,10 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFieldsTypedDic PostAtsApplicationsApplicationIDResultLinksRequestBodyTalent360TypedDict ] r"""Talent360 specific remote fields for the result link.""" + traffit: NotRequired[ + PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffitTypedDict + ] + r"""Fields specific to Traffit.""" greenhouse: NotRequired[ PostAtsApplicationsApplicationIDResultLinksRequestBodyGreenhouseTypedDict ] @@ -302,6 +387,11 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFields(BaseMod ] = None r"""Talent360 specific remote fields for the result link.""" + traffit: Optional[PostAtsApplicationsApplicationIDResultLinksRequestBodyTraffit] = ( + None + ) + r"""Fields specific to Traffit.""" + greenhouse: Optional[ PostAtsApplicationsApplicationIDResultLinksRequestBodyGreenhouse ] = None @@ -313,15 +403,22 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBodyRemoteFields(BaseMod r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( - ["icims", "oracle", "talent360", "greenhouse", "workable"] + ["icims", "oracle", "talent360", "traffit", "greenhouse", "workable"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -370,13 +467,20 @@ class PostAtsApplicationsApplicationIDResultLinksRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["details", "remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidattachmentsop.py b/src/kombo/models/postatscandidatescandidateidattachmentsop.py index 0c7354cb..621e2746 100644 --- a/src/kombo/models/postatscandidatescandidateidattachmentsop.py +++ b/src/kombo/models/postatscandidatescandidateidattachmentsop.py @@ -5,7 +5,13 @@ PostAtsCandidatesCandidateIDAttachmentsRequestBody, PostAtsCandidatesCandidateIDAttachmentsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsCandidatesCandidateIDAttachmentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidattachmentsrequestbody.py b/src/kombo/models/postatscandidatescandidateidattachmentsrequestbody.py index 7d26f432..90f75c14 100644 --- a/src/kombo/models/postatscandidatescandidateidattachmentsrequestbody.py +++ b/src/kombo/models/postatscandidatescandidateidattachmentsrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Literal, Optional @@ -72,13 +81,20 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBodyAttachment(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -104,14 +120,21 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -147,13 +170,20 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -177,13 +207,20 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -222,13 +259,20 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["greenhouse", "workable"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -255,13 +299,20 @@ class PostAtsCandidatesCandidateIDAttachmentsRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidresultlinksop.py b/src/kombo/models/postatscandidatescandidateidresultlinksop.py index ea1134a9..7f3df20f 100644 --- a/src/kombo/models/postatscandidatescandidateidresultlinksop.py +++ b/src/kombo/models/postatscandidatescandidateidresultlinksop.py @@ -5,7 +5,13 @@ PostAtsCandidatesCandidateIDResultLinksRequestBody, PostAtsCandidatesCandidateIDResultLinksRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsCandidatesCandidateIDResultLinksGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidresultlinksrequestbody.py b/src/kombo/models/postatscandidatescandidateidresultlinksrequestbody.py index f803c99b..ad8045ca 100644 --- a/src/kombo/models/postatscandidatescandidateidresultlinksrequestbody.py +++ b/src/kombo/models/postatscandidatescandidateidresultlinksrequestbody.py @@ -1,10 +1,19 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer -from typing import List, Literal, Optional +from typing import Any, Dict, List, Literal, Optional from typing_extensions import Annotated, NotRequired, TypedDict @@ -62,13 +71,20 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyIcims(BaseModel): r"""The package ID of the assessment that the result link will be added to.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["assessment_package_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -110,15 +126,22 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyOracle(BaseModel): r"""If true, the result link will be posted to all current applications for the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["override_document_category", "multi_post_to_all_current_applications"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -142,6 +165,43 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360(BaseModel): r"""Talent360 user ID the result-link note is attributed to. Required because every Talent360 communication must be attributed to a user.""" +class PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffitTypedDict(TypedDict): + r"""Fields specific to Traffit.""" + + candidate: NotRequired[Dict[str, Any]] + r"""Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ \"_Assessment_Score\": \"5\" }`. The field must be available via integration in Traffit.""" + + +class PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit(BaseModel): + r"""Fields specific to Traffit.""" + + candidate: Optional[Dict[str, Any]] = None + r"""Fields that we will write to the Traffit candidate before adding the result note. Custom fields are keyed by their SID with a `_` prefix, for example `{ \"_Assessment_Score\": \"5\" }`. The field must be available via integration in Traffit.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + class PostAtsCandidatesCandidateIDResultLinksRequestBodyPostHeadersTypedDict(TypedDict): r"""Headers we will pass with `POST` requests to Greenhouse.""" @@ -158,14 +218,21 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -201,13 +268,20 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -231,13 +305,20 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -262,6 +343,10 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFieldsTypedDict( PostAtsCandidatesCandidateIDResultLinksRequestBodyTalent360TypedDict ] r"""Talent360 specific remote fields for the result link.""" + traffit: NotRequired[ + PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffitTypedDict + ] + r"""Fields specific to Traffit.""" greenhouse: NotRequired[ PostAtsCandidatesCandidateIDResultLinksRequestBodyGreenhouseTypedDict ] @@ -286,6 +371,9 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFields(BaseModel): ) r"""Talent360 specific remote fields for the result link.""" + traffit: Optional[PostAtsCandidatesCandidateIDResultLinksRequestBodyTraffit] = None + r"""Fields specific to Traffit.""" + greenhouse: Optional[ PostAtsCandidatesCandidateIDResultLinksRequestBodyGreenhouse ] = None @@ -297,15 +385,22 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( - ["icims", "oracle", "talent360", "greenhouse", "workable"] + ["icims", "oracle", "talent360", "traffit", "greenhouse", "workable"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -352,13 +447,20 @@ class PostAtsCandidatesCandidateIDResultLinksRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["details", "remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidtagsop.py b/src/kombo/models/postatscandidatescandidateidtagsop.py index e5b9eae7..8778191a 100644 --- a/src/kombo/models/postatscandidatescandidateidtagsop.py +++ b/src/kombo/models/postatscandidatescandidateidtagsop.py @@ -5,7 +5,13 @@ PostAtsCandidatesCandidateIDTagsRequestBody, PostAtsCandidatesCandidateIDTagsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsCandidatesCandidateIDTagsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatescandidateidtagsrequestbody.py b/src/kombo/models/postatscandidatescandidateidtagsrequestbody.py index eab32c5e..90ed57c8 100644 --- a/src/kombo/models/postatscandidatescandidateidtagsrequestbody.py +++ b/src/kombo/models/postatscandidatescandidateidtagsrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Optional @@ -34,14 +43,21 @@ class PostAtsCandidatesCandidateIDTagsRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -77,13 +93,20 @@ class PostAtsCandidatesCandidateIDTagsRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -107,13 +130,20 @@ class PostAtsCandidatesCandidateIDTagsRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -144,13 +174,20 @@ class PostAtsCandidatesCandidateIDTagsRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["greenhouse", "workable"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -177,13 +214,20 @@ class PostAtsCandidatesCandidateIDTagsRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatesop.py b/src/kombo/models/postatscandidatesop.py index 563e52d9..df2c653f 100644 --- a/src/kombo/models/postatscandidatesop.py +++ b/src/kombo/models/postatscandidatesop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostAtsCandidatesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatscandidatespositiveresponse.py b/src/kombo/models/postatscandidatespositiveresponse.py index 7a97ad39..b9b06284 100644 --- a/src/kombo/models/postatscandidatespositiveresponse.py +++ b/src/kombo/models/postatscandidatespositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -24,14 +33,21 @@ class PostAtsCandidatesPositiveResponsePhoneNumber(BaseModel): r"""Kombo exposes type information through this field. If we don't get any information from the tool, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["type"]) nullable_fields = set(["type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -62,14 +78,21 @@ class PostAtsCandidatesPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -101,14 +124,21 @@ class PostAtsCandidatesPositiveResponseSocialMedia(BaseModel): username: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["link", "type", "username"]) nullable_fields = set(["link", "type", "username"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -162,6 +192,9 @@ class PostAtsCandidatesPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -169,11 +202,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -224,12 +261,19 @@ class PostAtsCandidatesPositiveResponseCurrentStage(BaseModel): index: Nullable[int] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -258,12 +302,19 @@ class PostAtsCandidatesPositiveResponseJob(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -348,12 +399,19 @@ class PostAtsCandidatesPositiveResponseApplication(BaseModel): job: Nullable[PostAtsCandidatesPositiveResponseJob] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -380,12 +438,19 @@ class PostAtsCandidatesPositiveResponseTag(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -523,6 +588,9 @@ class PostAtsCandidatesPositiveResponseData(BaseModel): r"""Location of the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["phone_numbers", "email_addresses", "social_media", "location"] @@ -546,11 +614,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postatscandidatesrequestbody.py b/src/kombo/models/postatscandidatesrequestbody.py index 4c71b625..1de89e5e 100644 --- a/src/kombo/models/postatscandidatesrequestbody.py +++ b/src/kombo/models/postatscandidatesrequestbody.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Dict, List, Literal, Optional, Union @@ -77,13 +86,20 @@ class PostAtsCandidatesRequestBodyLocation(BaseModel): zip_code: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["city", "state", "street_1", "zip_code"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -215,6 +231,9 @@ class PostAtsCandidatesRequestBodyCandidate(BaseModel): r"""A list of social media links of the candidate. The links must be valid URLs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -230,11 +249,15 @@ def serialize_model(self, handler): "social_links", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -263,13 +286,20 @@ class PostAtsCandidatesRequestBodyApplication(BaseModel): r"""Stage this candidate should be in. If left out, the default stage for this job will be used.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["stage_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -334,13 +364,20 @@ class PostAtsCandidatesRequestBodyAnswer(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -510,13 +547,20 @@ class PostAtsCandidatesRequestBodyAttachment(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -562,13 +606,20 @@ class PostAtsCandidatesRequestBodySource(BaseModel): id: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["name", "unified_key", "id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -621,13 +672,20 @@ class PostAtsCandidatesRequestBodyGdprConsent(BaseModel): r"""Whether the candidate has given consent.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["expires_at", "given"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -672,6 +730,9 @@ class PostAtsCandidatesRequestBodySuccessfactors(BaseModel): r"""When the candidate already exists, whether to update the Candidate with the remote fields found under the Candidate entity.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -682,11 +743,15 @@ def serialize_model(self, handler): ] ) nullable_fields = set(["update_existing_candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -718,13 +783,20 @@ class PostAtsCandidatesRequestBodyPersonio(BaseModel): r"""Fields that we will pass through to Personio's `application` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -741,6 +813,8 @@ class PostAtsCandidatesRequestBodyTalentsoftTypedDict(TypedDict): r"""Fields that we will pass through to TalentSoft's `applicant` object.""" application: NotRequired[Dict[str, Any]] r"""Fields that we will pass through to TalentSoft's `application` object.""" + custom_fields: NotRequired[Dict[str, Any]] + r"""Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead.""" class PostAtsCandidatesRequestBodyTalentsoft(BaseModel): @@ -752,14 +826,26 @@ class PostAtsCandidatesRequestBodyTalentsoft(BaseModel): application: Optional[Dict[str, Any]] = None r"""Fields that we will pass through to TalentSoft's `application` object.""" + custom_fields: Annotated[ + Optional[Dict[str, Any]], pydantic.Field(alias="customFields") + ] = None + r"""Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["applicant", "application"]) + optional_fields = set(["applicant", "application", "customFields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -779,13 +865,20 @@ class PostAtsCandidatesRequestBodyTeamtailorApplication(BaseModel): r"""Fields that we will pass through to Teamtailor's attributes section `Job application` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["attributes"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -808,13 +901,20 @@ class PostAtsCandidatesRequestBodyTeamtailor(BaseModel): application: Optional[PostAtsCandidatesRequestBodyTeamtailorApplication] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -840,14 +940,21 @@ class PostAtsCandidatesRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -879,13 +986,20 @@ class PostAtsCandidatesRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -914,13 +1028,20 @@ class PostAtsCandidatesRequestBodyGreenhousev3(BaseModel): r"""Additional fields passed through to Greenhouse V3's `POST /v3/applications` request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -944,13 +1065,20 @@ class PostAtsCandidatesRequestBodyLever(BaseModel): r"""Fields that we will pass through to Lever's `Candidate` object. Note: make sure to submit the keys and values in the correct form data format.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -974,13 +1102,20 @@ class PostAtsCandidatesRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1024,13 +1159,20 @@ class PostAtsCandidatesRequestBodyNameDetailData(BaseModel): r"""The WID of the social suffix reference for the candidate""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Middle_Name", "Social_Suffix_Reference"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1062,13 +1204,20 @@ class PostAtsCandidatesRequestBodyGlobalPersonalInformationData(BaseModel): ) @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Date_of_Birth"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1091,13 +1240,20 @@ class PostAtsCandidatesRequestBodyJobAppliedToData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Global_Personal_Information_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1160,6 +1316,9 @@ class PostAtsCandidatesRequestBodyEducationDatum(BaseModel): ) @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1171,11 +1330,15 @@ def serialize_model(self, handler): "Grade_Average", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1193,13 +1356,20 @@ class PostAtsCandidatesRequestBodySkillDatum(BaseModel): skill_name: Annotated[Optional[str], pydantic.Field(alias="Skill_Name")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Skill_Name"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1217,13 +1387,20 @@ class PostAtsCandidatesRequestBodyLanguageDatumLanguageReference(BaseModel): wid: Annotated[Optional[str], pydantic.Field(alias="WID")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["WID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1270,15 +1447,22 @@ class PostAtsCandidatesRequestBodyLanguageAbilityData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Language_Proficiency_Reference", "Language_Ability_Type_Reference"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1301,13 +1485,20 @@ class PostAtsCandidatesRequestBodyLanguageAbility(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Language_Ability_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1331,13 +1522,20 @@ class PostAtsCandidatesRequestBodyLanguage(BaseModel): native: Annotated[Optional[bool], pydantic.Field(alias="Native")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Native"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1365,13 +1563,20 @@ class PostAtsCandidatesRequestBodyLanguageDatum(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Language_Reference", "Language"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1421,15 +1626,22 @@ class PostAtsCandidatesRequestBodyExperienceDatum(BaseModel): description: Annotated[Optional[str], pydantic.Field(alias="Description")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Location", "End_Date", "Currently_Work_Here", "Description"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1472,15 +1684,22 @@ class PostAtsCandidatesRequestBodyResumeData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Education_Data", "Skill_Data", "Language_Data", "Experience_Data"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1509,13 +1728,20 @@ class PostAtsCandidatesRequestBodyJobApplicationData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Job_Applied_To_Data", "Resume_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1580,6 +1806,9 @@ class PostAtsCandidatesRequestBodyLocationData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1591,11 +1820,15 @@ def serialize_model(self, handler): "Country_City_Reference", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1616,13 +1849,20 @@ class PostAtsCandidatesRequestBodyContactData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Location_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1647,13 +1887,20 @@ class PostAtsCandidatesRequestBodyWorkerReference(BaseModel): employee_id: Annotated[Optional[str], pydantic.Field(alias="Employee_ID")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["WID", "Employee_ID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1706,6 +1953,9 @@ class PostAtsCandidatesRequestBodyCandidateData(BaseModel): r"""Reference to the Worker (employee) to link the candidate to. Provide either WID or Employee_ID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1716,11 +1966,15 @@ def serialize_model(self, handler): "Worker_Reference", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1752,13 +2006,20 @@ class PostAtsCandidatesRequestBodyWorkday(BaseModel): r"""Used to override the automatic source WID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Candidate_Data", "Override_Source_Reference_WID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1782,13 +2043,20 @@ class PostAtsCandidatesRequestBodyZohorecruit(BaseModel): r"""Fields that we will pass through to Zoho Recruit's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1822,15 +2090,22 @@ class PostAtsCandidatesRequestBodyBullhorn(BaseModel): r"""The remote ID of the Bullhorn `Candidate` the application should be filed on. When set, we skip Bullhorn's duplicate detection and use exactly this candidate, which lets you pick the right record when several candidates share an email address or phone number. The request fails if the candidate does not exist (or was deleted) in Bullhorn.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["candidate", "job_submission", "existing_candidate_remote_id"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1870,6 +2145,9 @@ class PostAtsCandidatesRequestBodyConsentDecisions(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1880,11 +2158,15 @@ def serialize_model(self, handler): "SMART_MESSAGE_WHATSAPP", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1935,6 +2217,9 @@ class PostAtsCandidatesRequestBodySmartrecruiters(BaseModel): r"""The consent decisions for the candidate. SmartRecruiters supports two consent models: 'Single' (use the `SINGLE` key) and 'Separated' (use `SMART_RECRUIT`, `SMART_CRM`, `SMART_MESSAGE_SMS`, and/or `SMART_MESSAGE_WHATSAPP` keys). When this field is provided, it takes precedence over the `gdpr_consent` field for the `consentDecisions` property. See: https://developers.smartrecruiters.com/docs/partners-post-an-application""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1944,11 +2229,15 @@ def serialize_model(self, handler): "consent_decisions", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1972,13 +2261,20 @@ class PostAtsCandidatesRequestBodyTalentadore(BaseModel): r"""Fields that we will pass through to the Talentadore's when creating applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["applications"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2002,13 +2298,20 @@ class PostAtsCandidatesRequestBodyGuidecom(BaseModel): r"""Fields that we will pass through to GuideCom's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2037,13 +2340,20 @@ class PostAtsCandidatesRequestBodyDvinci(BaseModel): r"""Fields that we will pass through to d.vinci's candidate/application payload as top-level fields (e.g., dateOfBirth).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application", "candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2069,13 +2379,20 @@ class PostAtsCandidatesRequestBodyHrworks(BaseModel): r"""Fields that we will pass through to HRWorks's `Job Application` object. This API is used: https://developers.hrworks.de/docs/hrworks-api-v2/53021f035f62d-post-job-applications""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["jobApplication"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2099,13 +2416,20 @@ class PostAtsCandidatesRequestBodyJobylonApplication(BaseModel): r"""The `message` field of Jobylon's create application endpoint's request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["message"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2129,13 +2453,20 @@ class PostAtsCandidatesRequestBodyJobylon(BaseModel): r"""Fields that we will pass through to Jobylon's create application [endpoint](https://developer.jobylon.com/push-api-and-webhooks#-xL0v)'s request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2163,13 +2494,20 @@ class PostAtsCandidatesRequestBodyWorkflow(BaseModel): step: Optional[PostAtsCandidatesRequestBodyStep] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["step"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2196,13 +2534,20 @@ class PostAtsCandidatesRequestBodyAvature(BaseModel): workflow: Optional[PostAtsCandidatesRequestBodyWorkflow] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "workflow"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2222,13 +2567,20 @@ class PostAtsCandidatesRequestBodyRecruiteeCandidate(BaseModel): r"""The cover letter text as a string. This will be visible on the main candidate page. Can be provided together with the `cover_letter` attachment, which will end up in a separate `file` section.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["cover_letter_text"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2250,13 +2602,20 @@ class PostAtsCandidatesRequestBodyRecruitee(BaseModel): candidate: Optional[PostAtsCandidatesRequestBodyRecruiteeCandidate] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2280,13 +2639,20 @@ class PostAtsCandidatesRequestBodyRexx(BaseModel): r"""Fields that we will pass through to Rexx's application form fields.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2310,13 +2676,20 @@ class PostAtsCandidatesRequestBodyUmantis(BaseModel): r"""Fields that we will pass through to Abacus Umantis's \"Create a person\" endpoint's `attributes` when creating a candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["person"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2349,13 +2722,20 @@ class PostAtsCandidatesRequestBodyPilogaCandidate(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["street", "geburtsdatum"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2379,13 +2759,20 @@ class PostAtsCandidatesRequestBodyPiloga(BaseModel): r"""Additional candidate fields for P&I Loga that will be mapped to the application form.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2409,13 +2796,20 @@ class PostAtsCandidatesRequestBodyPinpoint(BaseModel): r"""Fields that we will pass through to Pinpoint's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2456,13 +2850,20 @@ class PostAtsCandidatesRequestBodyCovetorestCandidate(BaseModel): r"""Whether the candidate is created as active (`Ja`) or inactive (`Nein`) in Coveto. If omitted, Coveto applies its default (active).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["mandant", "status", "aktiv"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2486,13 +2887,20 @@ class PostAtsCandidatesRequestBodyCovetorest(BaseModel): r"""Additional candidate fields that will be passed to the Coveto candidate creation.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2516,13 +2924,79 @@ class PostAtsCandidatesRequestBodyAfas(BaseModel): r"""Additional fields passed through to AFAS `HrCreateApplicant.Element.Fields`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsCandidatesRequestBodyFountainTypedDict(TypedDict): + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + + consent_sms_transactional: NotRequired[bool] + r"""Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026.""" + consent_sms_marketing: NotRequired[bool] + r"""Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent.""" + consent_calls_transactional: NotRequired[bool] + r"""Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026.""" + consent_calls_marketing: NotRequired[bool] + r"""Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent.""" + + +class PostAtsCandidatesRequestBodyFountain(BaseModel): + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + + consent_sms_transactional: Optional[bool] = None + r"""Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026.""" + + consent_sms_marketing: Optional[bool] = None + r"""Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent.""" + + consent_calls_transactional: Optional[bool] = None + r"""Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026.""" + + consent_calls_marketing: Optional[bool] = None + r"""Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set( + [ + "consent_sms_transactional", + "consent_sms_marketing", + "consent_calls_transactional", + "consent_calls_marketing", + ] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2562,13 +3036,20 @@ class PostAtsCandidatesRequestBodyCustomField(BaseModel): r"""Custom field type, for example `text`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["entity_type", "field_name", "field_type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2592,13 +3073,94 @@ class PostAtsCandidatesRequestBodyRecruitcrm(BaseModel): r"""Candidate custom fields passed through to Recruit CRM's `custom_fields` array. A child field also needs its parent field in this array. See https://docs.recruitcrm.io/docs/rcrm-api-reference/ba451e2a3bd63-creates-a-new-candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["custom_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsCandidatesRequestBodyIcimsTypedDict(TypedDict): + r"""Fields specific to iCIMS.""" + + application: NotRequired[Dict[str, Any]] + r"""Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs.""" + + +class PostAtsCandidatesRequestBodyIcims(BaseModel): + r"""Fields specific to iCIMS.""" + + application: Optional[Dict[str, Any]] = None + r"""Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsCandidatesRequestBodyEmplypeopleTypedDict(TypedDict): + r"""Fields specific to Emply People.""" + + form_data: NotRequired[Dict[str, Any]] + r"""Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form.""" + + +class PostAtsCandidatesRequestBodyEmplypeople(BaseModel): + r"""Fields specific to Emply People.""" + + form_data: Optional[Dict[str, Any]] = None + r"""Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["form_data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2660,8 +3222,14 @@ class PostAtsCandidatesRequestBodyRemoteFieldsTypedDict(TypedDict): r"""Fields specific to Coveto REST.""" afas: NotRequired[PostAtsCandidatesRequestBodyAfasTypedDict] r"""Fields specific to AFAS.""" + fountain: NotRequired[PostAtsCandidatesRequestBodyFountainTypedDict] + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" recruitcrm: NotRequired[PostAtsCandidatesRequestBodyRecruitcrmTypedDict] r"""Fields specific to Recruit CRM.""" + icims: NotRequired[PostAtsCandidatesRequestBodyIcimsTypedDict] + r"""Fields specific to iCIMS.""" + emplypeople: NotRequired[PostAtsCandidatesRequestBodyEmplypeopleTypedDict] + r"""Fields specific to Emply People.""" class PostAtsCandidatesRequestBodyRemoteFields(BaseModel): @@ -2741,10 +3309,22 @@ class PostAtsCandidatesRequestBodyRemoteFields(BaseModel): afas: Optional[PostAtsCandidatesRequestBodyAfas] = None r"""Fields specific to AFAS.""" + fountain: Optional[PostAtsCandidatesRequestBodyFountain] = None + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + recruitcrm: Optional[PostAtsCandidatesRequestBodyRecruitcrm] = None r"""Fields specific to Recruit CRM.""" + icims: Optional[PostAtsCandidatesRequestBodyIcims] = None + r"""Fields specific to iCIMS.""" + + emplypeople: Optional[PostAtsCandidatesRequestBodyEmplypeople] = None + r"""Fields specific to Emply People.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -2773,14 +3353,21 @@ def serialize_model(self, handler): "pinpoint", "covetorest", "afas", + "fountain", "recruitcrm", + "icims", + "emplypeople", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2864,6 +3451,9 @@ class PostAtsCandidatesRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -2875,11 +3465,15 @@ def serialize_model(self, handler): "remote_fields", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2893,6 +3487,10 @@ def serialize_model(self, handler): PostAtsCandidatesRequestBodySuccessfactors.model_rebuild() except NameError: pass +try: + PostAtsCandidatesRequestBodyTalentsoft.model_rebuild() +except NameError: + pass try: PostAtsCandidatesRequestBodyPostHeaders.model_rebuild() except NameError: diff --git a/src/kombo/models/postatsimporttrackedapplicationop.py b/src/kombo/models/postatsimporttrackedapplicationop.py index 9c929ae5..b1444652 100644 --- a/src/kombo/models/postatsimporttrackedapplicationop.py +++ b/src/kombo/models/postatsimporttrackedapplicationop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostAtsImportTrackedApplicationGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsimporttrackedapplicationpositiveresponse.py b/src/kombo/models/postatsimporttrackedapplicationpositiveresponse.py index b322c0c2..bcefedb8 100644 --- a/src/kombo/models/postatsimporttrackedapplicationpositiveresponse.py +++ b/src/kombo/models/postatsimporttrackedapplicationpositiveresponse.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -318,6 +325,9 @@ class ImportedID(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -330,11 +340,15 @@ def serialize_model(self, handler): "smartrecruiters", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -364,12 +378,19 @@ class PostAtsImportTrackedApplicationPositiveResponseData(BaseModel): imported_id: ImportedID @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsimporttrackedapplicationrequestbody.py b/src/kombo/models/postatsimporttrackedapplicationrequestbody.py index 82578ced..aa39ac47 100644 --- a/src/kombo/models/postatsimporttrackedapplicationrequestbody.py +++ b/src/kombo/models/postatsimporttrackedapplicationrequestbody.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -323,6 +330,9 @@ class PostAtsImportTrackedApplicationRequestBody(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -336,11 +346,15 @@ def serialize_model(self, handler): ] ) nullable_fields = set(["tracked_at"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postatsjobsjobidapplicationsop.py b/src/kombo/models/postatsjobsjobidapplicationsop.py index de1399d4..db94dcc7 100644 --- a/src/kombo/models/postatsjobsjobidapplicationsop.py +++ b/src/kombo/models/postatsjobsjobidapplicationsop.py @@ -5,7 +5,13 @@ PostAtsJobsJobIDApplicationsRequestBody, PostAtsJobsJobIDApplicationsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostAtsJobsJobIDApplicationsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postatsjobsjobidapplicationspositiveresponse.py b/src/kombo/models/postatsjobsjobidapplicationspositiveresponse.py index 20ba1341..49d156d4 100644 --- a/src/kombo/models/postatsjobsjobidapplicationspositiveresponse.py +++ b/src/kombo/models/postatsjobsjobidapplicationspositiveresponse.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -31,14 +40,21 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer7(BaseModel): r"""We pass the original question data along so you can handle it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["raw"]) nullable_fields = set(["raw"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -75,12 +91,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionUnknown(BaseModel): r"""When we're not able to map a specific question type yet, we will return this type. Every `UNKNOWN` question will also be parsed and unified by us at some point.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -110,12 +133,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer6(BaseModel): date_: Annotated[Nullable[datetime], pydantic.Field(alias="date")] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -141,12 +171,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionDate(BaseModel): ] = "DATE" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -176,12 +213,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer5(BaseModel): number: Nullable[float] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -207,12 +251,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionNumber(BaseModel): ] = "NUMBER" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -242,12 +293,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer4(BaseModel): checked: Nullable[bool] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -273,12 +331,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionBoolean(BaseModel): ] = "BOOLEAN" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -308,13 +373,20 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer3(BaseModel): choices: Optional[List[str]] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["choices"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -345,12 +417,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionMultiSelect(BaseModel) ] = "MULTI_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -380,12 +459,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer2(BaseModel): choice: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -415,12 +501,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionSingleSelect(BaseModel ] = "SINGLE_SELECT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -450,12 +543,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseAnswer1(BaseModel): content: Nullable[str] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -481,12 +581,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseQuestionText(BaseModel): ] = "TEXT" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -561,12 +668,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseCurrentStage(BaseModel): index: Nullable[int] @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -595,12 +709,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseJob(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -622,14 +743,21 @@ class PostAtsJobsJobIDApplicationsPositiveResponsePhoneNumber(BaseModel): r"""Kombo exposes type information through this field. If we don't get any information from the tool, we will set this to `null`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["type"]) nullable_fields = set(["type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -660,14 +788,21 @@ class PostAtsJobsJobIDApplicationsPositiveResponseEmailAddress(BaseModel): email_address: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["email_address"]) nullable_fields = set(["email_address", "type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -699,14 +834,21 @@ class PostAtsJobsJobIDApplicationsPositiveResponseSocialMedia(BaseModel): username: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["link", "type", "username"]) nullable_fields = set(["link", "type", "username"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -760,6 +902,9 @@ class PostAtsJobsJobIDApplicationsPositiveResponseLocation(BaseModel): zip_code: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] @@ -767,11 +912,15 @@ def serialize_model(self, handler): nullable_fields = set( ["city", "country", "raw", "state", "street_1", "street_2", "zip_code"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -807,12 +956,19 @@ class PostAtsJobsJobIDApplicationsPositiveResponseTag(BaseModel): r"""The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -953,6 +1109,9 @@ class PostAtsJobsJobIDApplicationsPositiveResponseCandidate(BaseModel): r"""Location of the candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["phone_numbers", "email_addresses", "social_media", "location"] @@ -976,11 +1135,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -1121,6 +1284,9 @@ class PostAtsJobsJobIDApplicationsPositiveResponseData(BaseModel): r"""A list of answers to screening questions. The screening answer type `FILE` is currently unsupported.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["screening_question_answers"]) nullable_fields = set( @@ -1143,11 +1309,15 @@ def serialize_model(self, handler): "candidate", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postatsjobsjobidapplicationsrequestbody.py b/src/kombo/models/postatsjobsjobidapplicationsrequestbody.py index 6db3af0f..8f928fe4 100644 --- a/src/kombo/models/postatsjobsjobidapplicationsrequestbody.py +++ b/src/kombo/models/postatsjobsjobidapplicationsrequestbody.py @@ -2,7 +2,16 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Dict, List, Literal, Optional, Union @@ -77,13 +86,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLocation(BaseModel): zip_code: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["city", "state", "street_1", "zip_code"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -221,6 +237,9 @@ class PostAtsJobsJobIDApplicationsRequestBodyCandidate(BaseModel): r"""A list of social media links of the candidate. The links must be valid URLs.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -236,11 +255,15 @@ def serialize_model(self, handler): "social_links", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -314,13 +337,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyAttachment(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -366,13 +396,20 @@ class PostAtsJobsJobIDApplicationsRequestBodySource(BaseModel): id: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["name", "unified_key", "id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -425,13 +462,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyGdprConsent(BaseModel): r"""Whether the candidate has given consent.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["expires_at", "given"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -476,6 +520,9 @@ class PostAtsJobsJobIDApplicationsRequestBodySuccessfactors(BaseModel): r"""When the candidate already exists, whether to update the Candidate with the remote fields found under the Candidate entity.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -486,11 +533,15 @@ def serialize_model(self, handler): ] ) nullable_fields = set(["update_existing_candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -522,13 +573,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyPersonio(BaseModel): r"""Fields that we will pass through to Personio's `application` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -545,6 +603,8 @@ class PostAtsJobsJobIDApplicationsRequestBodyTalentsoftTypedDict(TypedDict): r"""Fields that we will pass through to TalentSoft's `applicant` object.""" application: NotRequired[Dict[str, Any]] r"""Fields that we will pass through to TalentSoft's `application` object.""" + custom_fields: NotRequired[Dict[str, Any]] + r"""Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead.""" class PostAtsJobsJobIDApplicationsRequestBodyTalentsoft(BaseModel): @@ -556,14 +616,26 @@ class PostAtsJobsJobIDApplicationsRequestBodyTalentsoft(BaseModel): application: Optional[Dict[str, Any]] = None r"""Fields that we will pass through to TalentSoft's `application` object.""" + custom_fields: Annotated[ + Optional[Dict[str, Any]], pydantic.Field(alias="customFields") + ] = None + r"""Fields that we will pass through to TalentSoft's top-level `customFields` object when creating applications without an account. For account-based application creation, pass custom fields in `applicant.customFields` instead.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["applicant", "application"]) + optional_fields = set(["applicant", "application", "customFields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -583,13 +655,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyTeamtailorApplication(BaseModel): r"""Fields that we will pass through to Teamtailor's attributes section `Job application` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["attributes"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -616,13 +695,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyTeamtailor(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -648,14 +734,21 @@ class PostAtsJobsJobIDApplicationsRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -689,13 +782,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -724,13 +824,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyGreenhousev3(BaseModel): r"""Additional fields passed through to Greenhouse V3's `POST /v3/applications` request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -754,13 +861,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLever(BaseModel): r"""Fields that we will pass through to Lever's `Candidate` object. Note: make sure to submit the keys and values in the correct form data format.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -784,13 +898,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -834,13 +955,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyNameDetailData(BaseModel): r"""The WID of the social suffix reference for the candidate""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Middle_Name", "Social_Suffix_Reference"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -874,13 +1002,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyGlobalPersonalInformationData(BaseM ) @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Date_of_Birth"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -903,13 +1038,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyJobAppliedToData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Global_Personal_Information_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -974,6 +1116,9 @@ class PostAtsJobsJobIDApplicationsRequestBodyEducationDatum(BaseModel): ) @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -985,11 +1130,15 @@ def serialize_model(self, handler): "Grade_Average", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1007,13 +1156,20 @@ class PostAtsJobsJobIDApplicationsRequestBodySkillDatum(BaseModel): skill_name: Annotated[Optional[str], pydantic.Field(alias="Skill_Name")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Skill_Name"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1033,13 +1189,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLanguageDatumLanguageReference(Base wid: Annotated[Optional[str], pydantic.Field(alias="WID")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["WID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1090,15 +1253,22 @@ class PostAtsJobsJobIDApplicationsRequestBodyLanguageAbilityData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Language_Proficiency_Reference", "Language_Ability_Type_Reference"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1121,13 +1291,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLanguageAbility(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Language_Ability_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1153,13 +1330,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLanguage(BaseModel): native: Annotated[Optional[bool], pydantic.Field(alias="Native")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Native"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1188,13 +1372,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyLanguageDatum(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Language_Reference", "Language"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1244,15 +1435,22 @@ class PostAtsJobsJobIDApplicationsRequestBodyExperienceDatum(BaseModel): description: Annotated[Optional[str], pydantic.Field(alias="Description")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Location", "End_Date", "Currently_Work_Here", "Description"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1299,15 +1497,22 @@ class PostAtsJobsJobIDApplicationsRequestBodyResumeData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["Education_Data", "Skill_Data", "Language_Data", "Experience_Data"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1336,13 +1541,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyJobApplicationData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Job_Applied_To_Data", "Resume_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1407,6 +1619,9 @@ class PostAtsJobsJobIDApplicationsRequestBodyLocationData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1418,11 +1633,15 @@ def serialize_model(self, handler): "Country_City_Reference", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1445,13 +1664,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyContactData(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Location_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1476,13 +1702,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyWorkerReference(BaseModel): employee_id: Annotated[Optional[str], pydantic.Field(alias="Employee_ID")] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["WID", "Employee_ID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1541,6 +1774,9 @@ class PostAtsJobsJobIDApplicationsRequestBodyCandidateData(BaseModel): r"""Reference to the Worker (employee) to link the candidate to. Provide either WID or Employee_ID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1551,11 +1787,15 @@ def serialize_model(self, handler): "Worker_Reference", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1589,13 +1829,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyWorkday(BaseModel): r"""Used to override the automatic source WID.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Candidate_Data", "Override_Source_Reference_WID"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1619,13 +1866,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyZohorecruit(BaseModel): r"""Fields that we will pass through to Zoho Recruit's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1659,15 +1913,22 @@ class PostAtsJobsJobIDApplicationsRequestBodyBullhorn(BaseModel): r"""The remote ID of the Bullhorn `Candidate` the application should be filed on. When set, we skip Bullhorn's duplicate detection and use exactly this candidate, which lets you pick the right record when several candidates share an email address or phone number. The request fails if the candidate does not exist (or was deleted) in Bullhorn.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["candidate", "job_submission", "existing_candidate_remote_id"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1707,6 +1968,9 @@ class PostAtsJobsJobIDApplicationsRequestBodyConsentDecisions(BaseModel): ] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1717,11 +1981,15 @@ def serialize_model(self, handler): "SMART_MESSAGE_WHATSAPP", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1774,6 +2042,9 @@ class PostAtsJobsJobIDApplicationsRequestBodySmartrecruiters(BaseModel): r"""The consent decisions for the candidate. SmartRecruiters supports two consent models: 'Single' (use the `SINGLE` key) and 'Separated' (use `SMART_RECRUIT`, `SMART_CRM`, `SMART_MESSAGE_SMS`, and/or `SMART_MESSAGE_WHATSAPP` keys). When this field is provided, it takes precedence over the `gdpr_consent` field for the `consentDecisions` property. See: https://developers.smartrecruiters.com/docs/partners-post-an-application""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -1783,11 +2054,15 @@ def serialize_model(self, handler): "consent_decisions", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1811,13 +2086,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyTalentadore(BaseModel): r"""Fields that we will pass through to the Talentadore's when creating applications.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["applications"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1841,13 +2123,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyGuidecom(BaseModel): r"""Fields that we will pass through to GuideCom's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1876,13 +2165,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyDvinci(BaseModel): r"""Fields that we will pass through to d.vinci's candidate/application payload as top-level fields (e.g., dateOfBirth).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application", "candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1908,13 +2204,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyHrworks(BaseModel): r"""Fields that we will pass through to HRWorks's `Job Application` object. This API is used: https://developers.hrworks.de/docs/hrworks-api-v2/53021f035f62d-post-job-applications""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["jobApplication"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1938,13 +2241,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyJobylonApplication(BaseModel): r"""The `message` field of Jobylon's create application endpoint's request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["message"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -1972,13 +2282,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyJobylon(BaseModel): r"""Fields that we will pass through to Jobylon's create application [endpoint](https://developer.jobylon.com/push-api-and-webhooks#-xL0v)'s request body.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2006,13 +2323,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyWorkflow(BaseModel): step: Optional[PostAtsJobsJobIDApplicationsRequestBodyStep] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["step"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2039,13 +2363,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyAvature(BaseModel): workflow: Optional[PostAtsJobsJobIDApplicationsRequestBodyWorkflow] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate", "workflow"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2065,13 +2396,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyRecruiteeCandidate(BaseModel): r"""The cover letter text as a string. This will be visible on the main candidate page. Can be provided together with the `cover_letter` attachment, which will end up in a separate `file` section.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["cover_letter_text"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2097,13 +2435,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyRecruitee(BaseModel): ) @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2127,13 +2472,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyRexx(BaseModel): r"""Fields that we will pass through to Rexx's application form fields.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2157,13 +2509,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyUmantis(BaseModel): r"""Fields that we will pass through to Abacus Umantis's \"Create a person\" endpoint's `attributes` when creating a candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["person"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2196,13 +2555,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyPilogaCandidate(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["street", "geburtsdatum"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2228,13 +2594,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyPiloga(BaseModel): r"""Additional candidate fields for P&I Loga that will be mapped to the application form.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2258,13 +2631,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyPinpoint(BaseModel): r"""Fields that we will pass through to Pinpoint's `Candidate` object.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2305,13 +2685,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyCovetorestCandidate(BaseModel): r"""Whether the candidate is created as active (`Ja`) or inactive (`Nein`) in Coveto. If omitted, Coveto applies its default (active).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["mandant", "status", "aktiv"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2339,13 +2726,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyCovetorest(BaseModel): r"""Additional candidate fields that will be passed to the Coveto candidate creation.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["candidate"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2369,13 +2763,79 @@ class PostAtsJobsJobIDApplicationsRequestBodyAfas(BaseModel): r"""Additional fields passed through to AFAS `HrCreateApplicant.Element.Fields`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsJobsJobIDApplicationsRequestBodyFountainTypedDict(TypedDict): + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + + consent_sms_transactional: NotRequired[bool] + r"""Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026.""" + consent_sms_marketing: NotRequired[bool] + r"""Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent.""" + consent_calls_transactional: NotRequired[bool] + r"""Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026.""" + consent_calls_marketing: NotRequired[bool] + r"""Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent.""" + + +class PostAtsJobsJobIDApplicationsRequestBodyFountain(BaseModel): + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + + consent_sms_transactional: Optional[bool] = None + r"""Whether the applicant consented to transactional SMS about their current application. Fountain requires this on create from November 17, 2026.""" + + consent_sms_marketing: Optional[bool] = None + r"""Whether the applicant consented to marketing SMS about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional SMS consent.""" + + consent_calls_transactional: Optional[bool] = None + r"""Whether the applicant consented to transactional calls about their current application. Fountain requires this on create from November 17, 2026.""" + + consent_calls_marketing: Optional[bool] = None + r"""Whether the applicant consented to marketing calls about future job opportunities. Fountain requires this on create from November 17, 2026. This is separate from transactional call consent.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set( + [ + "consent_sms_transactional", + "consent_sms_marketing", + "consent_calls_transactional", + "consent_calls_marketing", + ] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2415,13 +2875,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyCustomField(BaseModel): r"""Custom field type, for example `text`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["entity_type", "field_name", "field_type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2449,13 +2916,94 @@ class PostAtsJobsJobIDApplicationsRequestBodyRecruitcrm(BaseModel): r"""Candidate custom fields passed through to Recruit CRM's `custom_fields` array. A child field also needs its parent field in this array. See https://docs.recruitcrm.io/docs/rcrm-api-reference/ba451e2a3bd63-creates-a-new-candidate.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["custom_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsJobsJobIDApplicationsRequestBodyIcimsTypedDict(TypedDict): + r"""Fields specific to iCIMS.""" + + application: NotRequired[Dict[str, Any]] + r"""Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs.""" + + +class PostAtsJobsJobIDApplicationsRequestBodyIcims(BaseModel): + r"""Fields specific to iCIMS.""" + + application: Optional[Dict[str, Any]] = None + r"""Fields that we will pass through to the iCIMS applicant workflow when it is created. For example `sourcechannel` or custom `fieldNNNN` IDs.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["application"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PostAtsJobsJobIDApplicationsRequestBodyEmplypeopleTypedDict(TypedDict): + r"""Fields specific to Emply People.""" + + form_data: NotRequired[Dict[str, Any]] + r"""Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form.""" + + +class PostAtsJobsJobIDApplicationsRequestBodyEmplypeople(BaseModel): + r"""Fields specific to Emply People.""" + + form_data: Optional[Dict[str, Any]] = None + r"""Form data written to the application right after it is created, keyed by Emply People form ID. Each value is sent as-is as the `formData` of `PUT /v2/applications/{id}/form-data/{formId}`. Use it for questions that are not on the job's application form.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["form_data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2527,8 +3075,16 @@ class PostAtsJobsJobIDApplicationsRequestBodyRemoteFieldsTypedDict(TypedDict): r"""Fields specific to Coveto REST.""" afas: NotRequired[PostAtsJobsJobIDApplicationsRequestBodyAfasTypedDict] r"""Fields specific to AFAS.""" + fountain: NotRequired[PostAtsJobsJobIDApplicationsRequestBodyFountainTypedDict] + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" recruitcrm: NotRequired[PostAtsJobsJobIDApplicationsRequestBodyRecruitcrmTypedDict] r"""Fields specific to Recruit CRM.""" + icims: NotRequired[PostAtsJobsJobIDApplicationsRequestBodyIcimsTypedDict] + r"""Fields specific to iCIMS.""" + emplypeople: NotRequired[ + PostAtsJobsJobIDApplicationsRequestBodyEmplypeopleTypedDict + ] + r"""Fields specific to Emply People.""" class PostAtsJobsJobIDApplicationsRequestBodyRemoteFields(BaseModel): @@ -2612,10 +3168,22 @@ class PostAtsJobsJobIDApplicationsRequestBodyRemoteFields(BaseModel): afas: Optional[PostAtsJobsJobIDApplicationsRequestBodyAfas] = None r"""Fields specific to AFAS.""" + fountain: Optional[PostAtsJobsJobIDApplicationsRequestBodyFountain] = None + r"""Consent fields passed through to Fountain when creating an applicant. See https://developer.fountain.com/reference/post_v2-applicants.""" + recruitcrm: Optional[PostAtsJobsJobIDApplicationsRequestBodyRecruitcrm] = None r"""Fields specific to Recruit CRM.""" + icims: Optional[PostAtsJobsJobIDApplicationsRequestBodyIcims] = None + r"""Fields specific to iCIMS.""" + + emplypeople: Optional[PostAtsJobsJobIDApplicationsRequestBodyEmplypeople] = None + r"""Fields specific to Emply People.""" + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -2644,14 +3212,21 @@ def serialize_model(self, handler): "pinpoint", "covetorest", "afas", + "fountain", "recruitcrm", + "icims", + "emplypeople", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2716,13 +3291,20 @@ class PostAtsJobsJobIDApplicationsRequestBodyAnswer(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2919,6 +3501,9 @@ class PostAtsJobsJobIDApplicationsRequestBody(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -2931,11 +3516,15 @@ def serialize_model(self, handler): "screening_question_answers", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -2949,6 +3538,10 @@ def serialize_model(self, handler): PostAtsJobsJobIDApplicationsRequestBodySuccessfactors.model_rebuild() except NameError: pass +try: + PostAtsJobsJobIDApplicationsRequestBodyTalentsoft.model_rebuild() +except NameError: + pass try: PostAtsJobsJobIDApplicationsRequestBodyPostHeaders.model_rebuild() except NameError: diff --git a/src/kombo/models/postconnectcreatelinkpositiveresponse.py b/src/kombo/models/postconnectcreatelinkpositiveresponse.py index e682c8af..f2446c94 100644 --- a/src/kombo/models/postconnectcreatelinkpositiveresponse.py +++ b/src/kombo/models/postconnectcreatelinkpositiveresponse.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostConnectCreateLinkPositiveResponseData(BaseModel): r"""The allowlist IPs for this integration. Present when `enable_static_ips` is `true`.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["static_ips"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postconnectcreatelinkrequestbody.py b/src/kombo/models/postconnectcreatelinkrequestbody.py index 3e409965..59b1ba0f 100644 --- a/src/kombo/models/postconnectcreatelinkrequestbody.py +++ b/src/kombo/models/postconnectcreatelinkrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal, Optional from typing_extensions import NotRequired, TypedDict @@ -98,6 +107,7 @@ "talentclue", "inrecruiting", "jobadder", + "jobadderjobboard", "ubeeo", "connexys", "hr4you", @@ -128,6 +138,7 @@ "sandbox", "guidecom", "spott", + "stardex", "logicmelon", "loxo", "kula", @@ -136,10 +147,12 @@ "pageup", "talent360", "emplypeople", + "hibob", "workdaycustomreport", "workdaycustomreportsftp", "ukgprowfm", "adpdecidium", + "adplink", "payfitcustomer", "payfitpartner", "payfit", @@ -147,7 +160,6 @@ "fourth", "kenjo", "heavenhr", - "hibob", "cezannehr", "entraid", "azuread", @@ -215,6 +227,7 @@ "nibelis", "peoplexd", "zellis", + "veda", "sftp", "sftpfetch", "360learning", @@ -323,6 +336,9 @@ class PostConnectCreateLinkRequestBody(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -347,11 +363,15 @@ def serialize_model(self, handler): "scope_config_id", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postforcesyncop.py b/src/kombo/models/postforcesyncop.py index d52d42e6..e88d7082 100644 --- a/src/kombo/models/postforcesyncop.py +++ b/src/kombo/models/postforcesyncop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostForceSyncGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postforcesyncrequestbody.py b/src/kombo/models/postforcesyncrequestbody.py index c8721961..03dcf5dd 100644 --- a/src/kombo/models/postforcesyncrequestbody.py +++ b/src/kombo/models/postforcesyncrequestbody.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal, Optional from typing_extensions import NotRequired, TypedDict @@ -24,13 +30,20 @@ class PostForceSyncRequestBody(BaseModel): r"""The type of the triggered sync.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisabsencesop.py b/src/kombo/models/posthrisabsencesop.py index 3b3f68f9..09636b8f 100644 --- a/src/kombo/models/posthrisabsencesop.py +++ b/src/kombo/models/posthrisabsencesop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostHrisAbsencesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisabsencespositiveresponse.py b/src/kombo/models/posthrisabsencespositiveresponse.py index 3071c664..b96487d3 100644 --- a/src/kombo/models/posthrisabsencespositiveresponse.py +++ b/src/kombo/models/posthrisabsencespositiveresponse.py @@ -9,7 +9,10 @@ UNSET, UNSET_SENTINEL, UnrecognizedStr, + current_exclude_none, + serialize_with_info, ) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -148,6 +151,9 @@ class PostHrisAbsencesPositiveResponseData(BaseModel): r"""The absence’s current status. In rare cases where we can’t find a clear mapping, the original string is passed through.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["status"]) nullable_fields = set( @@ -169,11 +175,15 @@ def serialize_model(self, handler): "remote_deleted_at", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/posthrisabsencesrequestbody.py b/src/kombo/models/posthrisabsencesrequestbody.py index 94a41e51..a0362e9b 100644 --- a/src/kombo/models/posthrisabsencesrequestbody.py +++ b/src/kombo/models/posthrisabsencesrequestbody.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal, Optional from typing_extensions import NotRequired, TypedDict @@ -44,13 +51,20 @@ class A3innuvanomina(BaseModel): r"""Required for illness absences. Benefit type: Delegated Payment, No Right to Benefit, or Direct payment.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["benefit_type_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -79,13 +93,20 @@ class PostHrisAbsencesRequestBodyAdpworkforcenow(BaseModel): r"""Whether the absence is paid or not.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["employment_id", "paid_leave"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -114,13 +135,20 @@ class PostHrisAbsencesRequestBodyRemoteFields(BaseModel): r"""Fields specific to ADP Workforce Now.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["a3innuvanomina", "adpworkforcenow"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -208,6 +236,9 @@ class PostHrisAbsencesRequestBody(BaseModel): r"""Additional fields that we will pass through to specific HRIS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -222,11 +253,15 @@ def serialize_model(self, handler): ] ) nullable_fields = set(["employee_note"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/posthrisemployeesemployeeiddocumentsop.py b/src/kombo/models/posthrisemployeesemployeeiddocumentsop.py index 7929690e..432f649e 100644 --- a/src/kombo/models/posthrisemployeesemployeeiddocumentsop.py +++ b/src/kombo/models/posthrisemployeesemployeeiddocumentsop.py @@ -5,7 +5,13 @@ PostHrisEmployeesEmployeeIDDocumentsRequestBody, PostHrisEmployeesEmployeeIDDocumentsRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostHrisEmployeesEmployeeIDDocumentsGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py b/src/kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py index 1875f403..dd2382d6 100644 --- a/src/kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py +++ b/src/kombo/models/posthrisemployeesemployeeiddocumentsrequestbody.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Dict, Optional @@ -59,13 +65,20 @@ class Document(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -89,13 +102,20 @@ class PostHrisEmployeesEmployeeIDDocumentsRequestBodyAfas(BaseModel): r"""Additional fields that we will pass through to the AFAS `KnSubject` `Fields` object. These are merged on top of the default fields (`StId`, `Ds`, and `FvF1`).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -119,13 +139,20 @@ class PostHrisEmployeesEmployeeIDDocumentsRequestBodyRemoteFields(BaseModel): r"""Fields specific to AFAS.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["afas"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -155,13 +182,20 @@ class PostHrisEmployeesEmployeeIDDocumentsRequestBody(BaseModel): r"""Additional fields that we will pass through to specific HRIS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisemployeesformop.py b/src/kombo/models/posthrisemployeesformop.py index 250b61fe..83c2002c 100644 --- a/src/kombo/models/posthrisemployeesformop.py +++ b/src/kombo/models/posthrisemployeesformop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PostHrisEmployeesFormGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisemployeesformpositiveresponse.py b/src/kombo/models/posthrisemployeesformpositiveresponse.py index 57a43ed9..623d309b 100644 --- a/src/kombo/models/posthrisemployeesformpositiveresponse.py +++ b/src/kombo/models/posthrisemployeesformpositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -24,12 +31,19 @@ class Prehire(BaseModel): r"""The temporary ID returned by the remote system when creating a pre-hire.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -58,12 +72,19 @@ class PostHrisEmployeesFormPositiveResponseData(BaseModel): r"""An object containing the temporary pre-hire information from the remote system. This ID may change or become invalid when the pre-hire becomes a full employee. Only populated when `id` is null.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/posthrisemployeesformrequestbody.py b/src/kombo/models/posthrisemployeesformrequestbody.py index f76e7b7b..4de96050 100644 --- a/src/kombo/models/posthrisemployeesformrequestbody.py +++ b/src/kombo/models/posthrisemployeesformrequestbody.py @@ -2,7 +2,13 @@ from __future__ import annotations from .schema4 import Schema4, Schema4TypedDict -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict @@ -19,13 +25,20 @@ class PostHrisEmployeesFormRequestBody(BaseModel): staffing_entity_id: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["staffing_entity_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postintegrationsintegrationidrelinkrequestbody.py b/src/kombo/models/postintegrationsintegrationidrelinkrequestbody.py index 3b3fb28f..39e6def2 100644 --- a/src/kombo/models/postintegrationsintegrationidrelinkrequestbody.py +++ b/src/kombo/models/postintegrationsintegrationidrelinkrequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal, Optional from typing_extensions import NotRequired, TypedDict @@ -65,14 +74,21 @@ class PostIntegrationsIntegrationIDRelinkRequestBody(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["language", "scope_config_id", "link_type"]) nullable_fields = set(["language", "scope_config_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postintegrationsintegrationidsetuplinkrequestbody.py b/src/kombo/models/postintegrationsintegrationidsetuplinkrequestbody.py index 0145bb44..13dd9c1b 100644 --- a/src/kombo/models/postintegrationsintegrationidsetuplinkrequestbody.py +++ b/src/kombo/models/postintegrationsintegrationidsetuplinkrequestbody.py @@ -1,7 +1,15 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import NotRequired, TypedDict @@ -43,14 +51,21 @@ class PostIntegrationsIntegrationIDSetupLinkRequestBody(BaseModel): r"""Language of the setup flow UI.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["language"]) nullable_fields = set(["language"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/postpassthroughtoolapiop.py b/src/kombo/models/postpassthroughtoolapiop.py index 809eb586..6b2c5f2b 100644 --- a/src/kombo/models/postpassthroughtoolapiop.py +++ b/src/kombo/models/postpassthroughtoolapiop.py @@ -5,7 +5,13 @@ PostPassthroughToolAPIRequestBody, PostPassthroughToolAPIRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PostPassthroughToolAPIGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postpassthroughtoolapipositiveresponse.py b/src/kombo/models/postpassthroughtoolapipositiveresponse.py index 49d41165..663f9fda 100644 --- a/src/kombo/models/postpassthroughtoolapipositiveresponse.py +++ b/src/kombo/models/postpassthroughtoolapipositiveresponse.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -41,13 +47,20 @@ class PostPassthroughToolAPIPositiveResponseData(BaseModel): r"""The HTTP body returned from the remote system. This will either be an array or object (in the case that JSON was returned) or a string (in any other case).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/postpassthroughtoolapirequestbody.py b/src/kombo/models/postpassthroughtoolapirequestbody.py index d7306785..61b77111 100644 --- a/src/kombo/models/postpassthroughtoolapirequestbody.py +++ b/src/kombo/models/postpassthroughtoolapirequestbody.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Any, Dict, List, Literal, Optional, Union from typing_extensions import NotRequired, TypeAliasType, TypedDict @@ -68,13 +74,20 @@ class Value(BaseModel): """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -150,6 +163,9 @@ class PostPassthroughToolAPIRequestBody(BaseModel): r"""Custom options interpreted by the passthrough API adapter you've selected. These options are not documented right now as they're only for very advanced use cases.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -161,11 +177,15 @@ def serialize_model(self, handler): "api_options", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putassessmentordersassessmentorderidresultop.py b/src/kombo/models/putassessmentordersassessmentorderidresultop.py index ed121dab..fca3ee80 100644 --- a/src/kombo/models/putassessmentordersassessmentorderidresultop.py +++ b/src/kombo/models/putassessmentordersassessmentorderidresultop.py @@ -5,7 +5,13 @@ PutAssessmentOrdersAssessmentOrderIDResultRequestBody, PutAssessmentOrdersAssessmentOrderIDResultRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putassessmentordersassessmentorderidresultrequestbody.py b/src/kombo/models/putassessmentordersassessmentorderidresultrequestbody.py index 66ee80af..6a9413c5 100644 --- a/src/kombo/models/putassessmentordersassessmentorderidresultrequestbody.py +++ b/src/kombo/models/putassessmentordersassessmentorderidresultrequestbody.py @@ -2,7 +2,13 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -142,13 +148,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBodyAttachment(BaseModel) """ @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["content_type", "data_url", "data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -170,13 +183,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBodySmartrecruiters(BaseM r"""Value that we will pass through to SmartRecruiters' `scoreLabel` field.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["scoreLabel"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -198,13 +218,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBodyRecruitee(BaseModel): r"""Value that we will pass through to Recruitee's `subtitle` field on the assessment report.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["subtitle"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -245,13 +272,20 @@ class AssessCandidateTestResultData(BaseModel): r"""A reference to the tenant supplied status for this Assessment Test Result. For example, if the test outcome was satisfactory or not.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Assessment_Test_Status_Reference"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -280,13 +314,20 @@ class CandidateAssessmentData(BaseModel): r"""Information on a set of Assessment Test Results used in concert with the Candidate Assessment.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Assess_Candidate_Test_Result_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -313,13 +354,20 @@ class AssessCandidateData(BaseModel): r"""The data used to create or modify a Candidate Assessment.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Candidate_Assessment_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -345,13 +393,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBodyWorkday(BaseModel): r"""References to the Candidate Assessment to be created or modified along with the data to be used in the creation or modification.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Assess_Candidate_Data"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -395,13 +450,20 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBodyRemoteFields(BaseMode r"""Fields specific to Workday's `Assess_Candidate` [operation](https://community.workday.com/sites/default/files/file-hosting/productionapi/Recruiting/v46.0/Assess_Candidate.html).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["smartrecruiters", "recruitee", "workday"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -478,6 +540,9 @@ class PutAssessmentOrdersAssessmentOrderIDResultRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( [ @@ -489,11 +554,15 @@ def serialize_model(self, handler): "remote_fields", ] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putassessmentpackagesop.py b/src/kombo/models/putassessmentpackagesop.py index d795ea9a..b553e412 100644 --- a/src/kombo/models/putassessmentpackagesop.py +++ b/src/kombo/models/putassessmentpackagesop.py @@ -1,7 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import FieldMetadata, HeaderMetadata import pydantic from pydantic import model_serializer @@ -23,13 +29,20 @@ class PutAssessmentPackagesGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putatsapplicationsapplicationidstageop.py b/src/kombo/models/putatsapplicationsapplicationidstageop.py index 5be91c27..1d446f6c 100644 --- a/src/kombo/models/putatsapplicationsapplicationidstageop.py +++ b/src/kombo/models/putatsapplicationsapplicationidstageop.py @@ -5,7 +5,13 @@ PutAtsApplicationsApplicationIDStageRequestBody, PutAtsApplicationsApplicationIDStageRequestBodyTypedDict, ) -from kombo.types import BaseModel, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import ( FieldMetadata, HeaderMetadata, @@ -32,13 +38,20 @@ class PutAtsApplicationsApplicationIDStageGlobals(BaseModel): r"""ID of the integration you want to interact with.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["integration_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putatsapplicationsapplicationidstagerequestbody.py b/src/kombo/models/putatsapplicationsapplicationidstagerequestbody.py index d655d159..d68a193b 100644 --- a/src/kombo/models/putatsapplicationsapplicationidstagerequestbody.py +++ b/src/kombo/models/putatsapplicationsapplicationidstagerequestbody.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump import pydantic from pydantic import model_serializer from typing import Any, Dict, Literal, Optional @@ -36,13 +45,20 @@ class PutAtsApplicationsApplicationIDStageRequestBodyWorkday(BaseModel): r"""The type of step reference to use. Use \"Next_Step_Reference\" for regular stage moves and \"Disposition_Step_Reference\" for conclusion/disposition stages (e.g., rejected, declined). Defaults to \"Next_Step_Reference\".""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["Workflow_Step_ID", "Step_Type"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -68,13 +84,57 @@ class PutAtsApplicationsApplicationIDStageRequestBodySuccessfactors(BaseModel): r"""Fields that we will pass through to SuccessFactor's `JobApplication` object when moving the application to a new stage. Useful for instance-specific fields that SAP requires on certain status transitions (e.g. `custEventReason`).""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["JobApplication"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class PutAtsApplicationsApplicationIDStageRequestBodyLeverTypedDict(TypedDict): + r"""Fields specific to Lever.""" + + perform_as: NotRequired[str] + r"""ID of the Lever user that will show up as having moved the application. If not provided, Lever records the stage change without a user.""" + + +class PutAtsApplicationsApplicationIDStageRequestBodyLever(BaseModel): + r"""Fields specific to Lever.""" + + perform_as: Optional[str] = None + r"""ID of the Lever user that will show up as having moved the application. If not provided, Lever records the stage change without a user.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["perform_as"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -100,14 +160,21 @@ class PutAtsApplicationsApplicationIDStageRequestBodyPostHeaders(BaseModel): r"""ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["On-Behalf-Of"]) nullable_fields = set(["On-Behalf-Of"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -143,13 +210,20 @@ class PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse(BaseModel): r"""Headers we will pass with `POST` requests to Greenhouse.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["post_headers"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -173,13 +247,20 @@ class PutAtsApplicationsApplicationIDStageRequestBodyWorkable(BaseModel): r"""The remote ID of the user that will be displayed in the UI as the one that performed the action.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["on_behalf_of_user_remote_id"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -200,6 +281,8 @@ class PutAtsApplicationsApplicationIDStageRequestBodyRemoteFieldsTypedDict(Typed PutAtsApplicationsApplicationIDStageRequestBodySuccessfactorsTypedDict ] r"""Fields specific to SAP SuccessFactors.""" + lever: NotRequired[PutAtsApplicationsApplicationIDStageRequestBodyLeverTypedDict] + r"""Fields specific to Lever.""" greenhouse: NotRequired[ PutAtsApplicationsApplicationIDStageRequestBodyGreenhouseTypedDict ] @@ -221,6 +304,9 @@ class PutAtsApplicationsApplicationIDStageRequestBodyRemoteFields(BaseModel): ] = None r"""Fields specific to SAP SuccessFactors.""" + lever: Optional[PutAtsApplicationsApplicationIDStageRequestBodyLever] = None + r"""Fields specific to Lever.""" + greenhouse: Optional[PutAtsApplicationsApplicationIDStageRequestBodyGreenhouse] = ( None ) @@ -230,13 +316,22 @@ class PutAtsApplicationsApplicationIDStageRequestBodyRemoteFields(BaseModel): r"""Workable specific remote fields for ATS actions.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): - optional_fields = set(["workday", "successfactors", "greenhouse", "workable"]) + optional_fields = set( + ["workday", "successfactors", "lever", "greenhouse", "workable"] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -265,13 +360,20 @@ class PutAtsApplicationsApplicationIDStageRequestBody(BaseModel): r"""Additional fields that we will pass through to specific ATS systems.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["remote_fields"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py b/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py index c6dff1f5..2bb69023 100644 --- a/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py +++ b/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidpositiveresponse.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import model_serializer @@ -50,12 +57,19 @@ class PutIntegrationsIntegrationIDCustomFieldsCustomFieldIDPositiveResponseInteg r"""The label of the integration field in the remote system""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -107,12 +121,19 @@ class PutIntegrationsIntegrationIDCustomFieldsCustomFieldIDPositiveResponseData( r"""The description of the custom field""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py b/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py index 72b22b33..748940fe 100644 --- a/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py +++ b/src/kombo/models/putintegrationsintegrationidcustomfieldscustomfieldidrequestbody.py @@ -1,7 +1,14 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing_extensions import TypedDict @@ -18,12 +25,19 @@ class PutIntegrationsIntegrationIDCustomFieldsCustomFieldIDRequestBody(BaseModel r"""The integration field's unique ID which the custom field should be mapped to. Null to remove a mapping.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/models/schema1_union_1.py b/src/kombo/models/schema1_union_1.py index 6c7d00cc..1bc1599c 100644 --- a/src/kombo/models/schema1_union_1.py +++ b/src/kombo/models/schema1_union_1.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -48,14 +57,21 @@ class Schema1FileRestrictions(BaseModel): max_file_size: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["max_file_size"]) nullable_fields = set(["max_file_size"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -99,14 +115,21 @@ class Schema1File(BaseModel): ] = "file" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -204,6 +227,9 @@ class Schema1Text(BaseModel): reg_exp: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] @@ -211,11 +237,15 @@ def serialize_model(self, handler): nullable_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -286,14 +316,21 @@ class Schema1Number(BaseModel): max: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min", "max"]) nullable_fields = set(["description", "unified_key", "min", "max"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -358,14 +395,21 @@ class Schema1Date(BaseModel): ] = "date" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -432,13 +476,20 @@ class Schema1Entry1(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -515,14 +566,21 @@ class Schema1SingleSelect(BaseModel): ] = "single_select" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -565,13 +623,20 @@ class Schema1Entry2(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -654,14 +719,21 @@ class Schema1MultiSelect(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -726,14 +798,21 @@ class Schema1Checkbox(BaseModel): ] = "checkbox" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -801,14 +880,21 @@ class Schema1Object1(BaseModel): ] = "object" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -858,14 +944,21 @@ class Schema1Array1(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/schema2.py b/src/kombo/models/schema2.py index b1a1c68e..dcd2892d 100644 --- a/src/kombo/models/schema2.py +++ b/src/kombo/models/schema2.py @@ -1,7 +1,16 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from kombo.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from kombo.utils import validate_const import pydantic from pydantic import Field, model_serializer @@ -48,14 +57,21 @@ class Schema2FileRestrictions(BaseModel): max_file_size: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["max_file_size"]) nullable_fields = set(["max_file_size"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -99,14 +115,21 @@ class Schema2File(BaseModel): ] = "file" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -204,6 +227,9 @@ class Schema2Text(BaseModel): reg_exp: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] @@ -211,11 +237,15 @@ def serialize_model(self, handler): nullable_fields = set( ["description", "unified_key", "min_length", "max_length", "reg_exp"] ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -286,14 +316,21 @@ class Schema2Number(BaseModel): max: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min", "max"]) nullable_fields = set(["description", "unified_key", "min", "max"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -358,14 +395,21 @@ class Schema2Date(BaseModel): ] = "date" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -432,13 +476,20 @@ class Schema2Entry1(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -515,14 +566,21 @@ class Schema2SingleSelect(BaseModel): ] = "single_select" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -565,13 +623,20 @@ class Schema2Entry2(BaseModel): unified_value: Optional[str] = None @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["unified_value"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: @@ -654,14 +719,21 @@ class Schema2MultiSelect(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -726,14 +798,21 @@ class Schema2Checkbox(BaseModel): ] = "checkbox" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -801,14 +880,21 @@ class Schema2Object1(BaseModel): ] = "object" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key"]) nullable_fields = set(["description", "unified_key"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields @@ -858,14 +944,21 @@ class Schema2Array1(BaseModel): max_items: OptionalNullable[float] = UNSET @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): optional_fields = set(["description", "unified_key", "min_items", "max_items"]) nullable_fields = set(["description", "unified_key", "min_items", "max_items"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) is_nullable_and_explicitly_set = ( k in nullable_fields diff --git a/src/kombo/models/syncfinishedwebhookpayload.py b/src/kombo/models/syncfinishedwebhookpayload.py index 9d24fb03..1870e49c 100644 --- a/src/kombo/models/syncfinishedwebhookpayload.py +++ b/src/kombo/models/syncfinishedwebhookpayload.py @@ -2,7 +2,14 @@ from __future__ import annotations from datetime import datetime -from kombo.types import BaseModel, Nullable, UNSET_SENTINEL +from kombo.types import ( + BaseModel, + Nullable, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from kombo.types.basemodel import current_filtered_dump from pydantic import model_serializer from typing import Literal from typing_extensions import TypedDict @@ -45,12 +52,19 @@ class SyncFinishedWebhookPayloadEndUser(BaseModel): r"""The unique identifier of the organization in the integrated system.""" @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + def serialize_model(self, handler): + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): - k = f.alias or n + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue val = serialized.get(k, serialized.get(n)) if val != UNSET_SENTINEL: diff --git a/src/kombo/types/__init__.py b/src/kombo/types/__init__.py index faa26813..3a43a78a 100644 --- a/src/kombo/types/__init__.py +++ b/src/kombo/types/__init__.py @@ -3,22 +3,26 @@ from .base64fileinput import Base64EncodedString, Base64FileInput from .basemodel import ( BaseModel, + current_exclude_none, Nullable, OptionalNullable, UnrecognizedInt, UnrecognizedStr, UNSET, UNSET_SENTINEL, + serialize_with_info, ) __all__ = [ "Base64EncodedString", "Base64FileInput", "BaseModel", + "current_exclude_none", "Nullable", "OptionalNullable", "UnrecognizedInt", "UnrecognizedStr", "UNSET", "UNSET_SENTINEL", + "serialize_with_info", ] diff --git a/src/kombo/types/basemodel.py b/src/kombo/types/basemodel.py index a9a640a1..5ca5fdd5 100644 --- a/src/kombo/types/basemodel.py +++ b/src/kombo/types/basemodel.py @@ -1,9 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +from contextvars import ContextVar from pydantic import ConfigDict, model_serializer from pydantic import BaseModel as PydanticBaseModel -from pydantic_core import core_schema -from typing import TYPE_CHECKING, Any, Literal, Optional, TypeVar, Union +from pydantic_core import PydanticSerializationUnexpectedValue, core_schema +from typing import TYPE_CHECKING, Any, Callable, Literal, Optional, Type, TypeVar, Union from typing_extensions import TypeAliasType, TypeAlias @@ -37,6 +38,49 @@ def __bool__(self) -> Literal[False]: ) +_exclude_none: ContextVar[Optional[bool]] = ContextVar("exclude_none", default=None) +_filtered_dump: ContextVar[bool] = ContextVar("filtered_dump", default=False) + + +def serialize_with_info( + serialize: Callable[[Any], Any], handler: Any, info: core_schema.SerializationInfo +) -> Any: + token = _exclude_none.set(info.exclude_none) + filtered_dump_token = _filtered_dump.set( + info.include is not None + or bool(info.exclude) + or info.exclude_unset + or info.exclude_defaults + ) + try: + return serialize(handler) + finally: + _filtered_dump.reset(filtered_dump_token) + _exclude_none.reset(token) + + +def current_exclude_none() -> Optional[bool]: + """Return the exclude_none option of the enclosing serialize_with_info call, or None outside of one.""" + return _exclude_none.get() + + +def current_filtered_dump() -> bool: + """Return whether the enclosing serialize_with_info call applies include, exclude, exclude_unset or exclude_defaults.""" + return _filtered_dump.get() + + +def _unrecognized_serialization(cls: Type[Union[str, int]]) -> core_schema.PlainSerializerFunctionSerSchema: + def serialize(value: Any, info: core_schema.SerializationInfo) -> Any: + # Decline other values so union serialization tries the remaining members + if not isinstance(value, cls): + raise PydanticSerializationUnexpectedValue(f"Expected {cls.__name__}") + if not info.mode_is_json(): + return value + return str(value) if isinstance(value, str) else int(value) + + return core_schema.plain_serializer_function_ser_schema(serialize, info_arg=True) + + class UnrecognizedStr(str): @classmethod def __get_pydantic_core_schema__(cls, _source_type: Any, _handler: Any) -> core_schema.CoreSchema: @@ -56,6 +100,7 @@ def validate_lax(v: Any) -> 'UnrecognizedStr': core_schema.no_info_plain_validator_function(validate_lax) ]), strict_schema=core_schema.none_schema(), # Always fails in strict mode + serialization=_unrecognized_serialization(cls), ) @@ -74,4 +119,5 @@ def validate_lax(v: Any) -> 'UnrecognizedInt': core_schema.no_info_plain_validator_function(validate_lax) ]), strict_schema=core_schema.none_schema(), # Always fails in strict mode + serialization=_unrecognized_serialization(cls), ) diff --git a/src/kombo/utils/annotations.py b/src/kombo/utils/annotations.py index 12e0aa4f..3af322f2 100644 --- a/src/kombo/utils/annotations.py +++ b/src/kombo/utils/annotations.py @@ -21,24 +21,24 @@ def get_discriminator(model: Any, fieldname: str, key: str) -> str: """ upper_fieldname = fieldname.upper() + def to_discriminator(value: Any) -> str: + """Convert a discriminator value to a string, using the value of enum members.""" + if isinstance(value, Enum): + return f"{value.value}" + return f"{value}" + def get_field_discriminator(field: Any) -> Optional[str]: """Search for the discriminator attribute in a given field.""" if isinstance(field, dict): if key in field: - return f"{field[key]}" + return to_discriminator(field[key]) if hasattr(field, fieldname): - attr = getattr(field, fieldname) - if isinstance(attr, Enum): - return f"{attr.value}" - return f"{attr}" + return to_discriminator(getattr(field, fieldname)) if hasattr(field, upper_fieldname): - attr = getattr(field, upper_fieldname) - if isinstance(attr, Enum): - return f"{attr.value}" - return f"{attr}" + return to_discriminator(getattr(field, upper_fieldname)) return None diff --git a/src/kombo/utils/datetimes.py b/src/kombo/utils/datetimes.py index adad2476..ad634bfe 100644 --- a/src/kombo/utils/datetimes.py +++ b/src/kombo/utils/datetimes.py @@ -25,7 +25,7 @@ def parse_datetime(datetime_string: str) -> datetime: return datetime.fromisoformat(datetime_string) -_DURATION_ADAPTER = TypeAdapter(timedelta) +_DURATION_ADAPTER: TypeAdapter[timedelta] = TypeAdapter(timedelta) def parse_duration(duration_string: str) -> timedelta: @@ -35,3 +35,7 @@ def parse_duration(duration_string: str) -> timedelta: pydantic, which is already a runtime dependency of the SDK. """ return _DURATION_ADAPTER.validate_python(duration_string) + + +def format_duration(duration: timedelta) -> str: + return _DURATION_ADAPTER.dump_python(duration, mode="json") diff --git a/src/kombo/utils/security.py b/src/kombo/utils/security.py index 42d8d78e..74c020cf 100644 --- a/src/kombo/utils/security.py +++ b/src/kombo/utils/security.py @@ -140,6 +140,9 @@ def _parse_security_scheme_value( scheme_type = scheme_metadata.scheme_type sub_type = scheme_metadata.sub_type + if value == "": + return + header_name = security_metadata.get_field_name(field_name) if scheme_type == "apiKey": diff --git a/src/kombo/utils/url.py b/src/kombo/utils/url.py index c78ccbae..8eeaa7b0 100644 --- a/src/kombo/utils/url.py +++ b/src/kombo/utils/url.py @@ -1,6 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from decimal import Decimal from typing import ( Any, Dict, @@ -105,7 +104,7 @@ def _populate_path_params( else: pp_vals.append(f"{pp_key},{_val_to_string(param[pp_key])}") path_param_values[f_name] = ",".join(pp_vals) - elif not isinstance(param, (str, int, float, complex, bool, Decimal)): + elif isinstance(param, BaseModel): param_fields: Dict[str, FieldInfo] = param.__class__.model_fields for name in param_fields: param_field = param_fields[name] @@ -132,7 +131,7 @@ def _populate_path_params( f"{param_name},{_val_to_string(param_field_val)}" ) path_param_values[f_name] = ",".join(pp_vals) - elif _is_set(param): + else: path_param_values[f_name] = _val_to_string(param) return globals_already_populated diff --git a/src/kombo/utils/values.py b/src/kombo/utils/values.py index ac217f47..094755b7 100644 --- a/src/kombo/utils/values.py +++ b/src/kombo/utils/values.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from datetime import datetime +from datetime import datetime, timedelta from enum import Enum from email.message import Message from functools import partial @@ -13,6 +13,7 @@ from ..types.basemodel import Unset +from .datetimes import format_duration from .serializers import marshal_json from .metadata import ParamMetadata, find_field_metadata @@ -117,6 +118,8 @@ def _val_to_string(val) -> str: return str(val).lower() if isinstance(val, datetime): return str(val.isoformat().replace("+00:00", "Z")) + if isinstance(val, timedelta): + return format_duration(val) if isinstance(val, Enum): return str(val.value) diff --git a/uv.lock b/uv.lock index e9adea79..dc4a88b3 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 3 +revision = 5 requires-python = ">=3.10" resolution-markers = [ "python_full_version >= '3.12'", @@ -191,7 +191,7 @@ wheels = [ [[package]] name = "kombo" -version = "1.4.0" +version = "1.4.1" source = { editable = "." } dependencies = [ { name = "httpcore" },