stackone_client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/lib/{stackone → stack_one}/accounts.rb +32 -26
  3. data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
  4. data/lib/{stackone → stack_one}/connectors.rb +15 -12
  5. data/lib/{stackone → stack_one}/hris.rb +109 -89
  6. data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
  7. data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
  8. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
  9. data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
  10. data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
  11. data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
  12. data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
  13. data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
  14. data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
  15. data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
  16. data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
  17. data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
  18. data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
  19. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
  20. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
  21. data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
  22. data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
  23. data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
  24. data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
  25. data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
  26. data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
  27. data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
  28. data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
  29. data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
  30. data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
  31. data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
  32. data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
  33. data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
  34. data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
  35. data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
  36. data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
  37. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
  38. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
  39. data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
  40. data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
  41. data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
  42. data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
  43. data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
  44. data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
  45. data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
  46. data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
  47. data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
  48. data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
  49. data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
  50. data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
  51. data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
  52. data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
  53. data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
  54. data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
  55. data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
  56. data/lib/stack_one/models/operations/proxy.rb +20 -0
  57. data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
  58. data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
  59. data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
  60. data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
  61. data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
  62. data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
  63. data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
  64. data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
  65. data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
  66. data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
  67. data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
  68. data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
  69. data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
  70. data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
  71. data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
  72. data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
  73. data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
  74. data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
  75. data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
  76. data/lib/stack_one/models/operations.rb +79 -0
  77. data/lib/stack_one/models/shared/avatar.rb +27 -0
  78. data/lib/stack_one/models/shared/body.rb +20 -0
  79. data/lib/stack_one/models/shared/categories.rb +23 -0
  80. data/lib/stack_one/models/shared/category.rb +23 -0
  81. data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
  82. data/lib/stack_one/models/shared/company.rb +36 -0
  83. data/lib/stack_one/models/shared/companyresult.rb +27 -0
  84. data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
  85. data/lib/stack_one/models/shared/connectsession.rb +54 -0
  86. data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
  87. data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
  88. data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
  89. data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
  90. data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
  91. data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
  92. data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
  93. data/lib/stack_one/models/shared/country.rb +27 -0
  94. data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
  95. data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
  96. data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
  97. data/lib/stack_one/models/shared/credentials.rb +20 -0
  98. data/lib/stack_one/models/shared/document.rb +39 -0
  99. data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
  100. data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
  101. data/lib/stack_one/models/shared/documentresult.rb +27 -0
  102. data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
  103. data/lib/stack_one/models/shared/employee.rb +135 -0
  104. data/lib/stack_one/models/shared/employee_country.rb +27 -0
  105. data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
  106. data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
  107. data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
  108. data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
  109. data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
  110. data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
  111. data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
  112. data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
  113. data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
  114. data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
  115. data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
  116. data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
  117. data/lib/stack_one/models/shared/employee_value.rb +21 -0
  118. data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
  119. data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
  120. data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
  121. data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
  122. data/lib/stack_one/models/shared/employeeresult.rb +27 -0
  123. data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
  124. data/lib/stack_one/models/shared/employment.rb +57 -0
  125. data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
  126. data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
  127. data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
  128. data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
  129. data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
  130. data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
  131. data/lib/stack_one/models/shared/employment_status.rb +27 -0
  132. data/lib/stack_one/models/shared/employment_type.rb +27 -0
  133. data/lib/stack_one/models/shared/employment_value.rb +21 -0
  134. data/lib/stack_one/models/shared/employmentresult.rb +27 -0
  135. data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
  136. data/lib/stack_one/models/shared/ethnicity.rb +27 -0
  137. data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
  138. data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
  139. data/lib/stack_one/models/shared/gender.rb +27 -0
  140. data/lib/stack_one/models/shared/headers.rb +20 -0
  141. data/lib/stack_one/models/shared/home_location.rb +60 -0
  142. data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
  143. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
  144. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
  145. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
  146. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
  147. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
  148. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
  149. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
  150. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
  151. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
  152. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
  153. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
  154. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
  155. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
  156. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
  157. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
  158. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
  159. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
  160. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
  161. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
  162. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
  163. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
  164. data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
  165. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
  166. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
  167. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
  168. data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
  169. data/lib/stack_one/models/shared/hrislocation.rb +60 -0
  170. data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
  171. data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
  172. data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
  173. data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
  174. data/lib/stack_one/models/shared/images.rb +27 -0
  175. data/lib/stack_one/models/shared/job_description.rb +24 -0
  176. data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
  177. data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
  178. data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
  179. data/lib/stack_one/models/shared/location_type.rb +27 -0
  180. data/lib/stack_one/models/shared/marital_status.rb +27 -0
  181. data/lib/stack_one/models/shared/metadata.rb +20 -0
  182. data/lib/stack_one/models/shared/method.rb +22 -0
  183. data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
  184. data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
  185. data/lib/stack_one/models/shared/pay_period.rb +27 -0
  186. data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
  187. data/lib/stack_one/models/shared/rawresponse.rb +33 -0
  188. data/lib/stack_one/models/shared/resources.rb +24 -0
  189. data/lib/stack_one/models/shared/response.rb +20 -0
  190. data/lib/stack_one/models/shared/security.rb +27 -0
  191. data/lib/stack_one/models/shared/setup_information.rb +20 -0
  192. data/lib/stack_one/models/shared/state.rb +27 -0
  193. data/lib/stack_one/models/shared/status.rb +27 -0
  194. data/lib/stack_one/models/shared/timeoff.rb +48 -0
  195. data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
  196. data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
  197. data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
  198. data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
  199. data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
  200. data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
  201. data/lib/stack_one/models/shared/type.rb +27 -0
  202. data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
  203. data/lib/stack_one/models/shared/work_location.rb +60 -0
  204. data/lib/stack_one/models/shared/workeligibility.rb +42 -0
  205. data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
  206. data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
  207. data/lib/stack_one/models/shared.rb +139 -0
  208. data/lib/{stackone → stack_one}/proxy.rb +6 -4
  209. data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
  210. data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
  211. data/lib/stackone_client.rb +11 -79
  212. metadata +213 -80
  213. data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
  214. data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
  215. data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
  216. data/lib/stackone/models/operations/hris_get_company.rb +0 -88
  217. data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
  218. data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
  219. data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
  220. data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
  221. data/lib/stackone/models/operations/hris_get_location.rb +0 -88
  222. data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
  223. data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
  224. data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
  225. data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
  226. data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
  227. data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
  228. data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
  229. data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
  230. data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
  231. data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
  232. data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
  233. data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
  234. data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
  235. data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
  236. data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
  237. data/lib/stackone/models/shared/companiespaginated.rb +0 -34
  238. data/lib/stackone/models/shared/company.rb +0 -37
  239. data/lib/stackone/models/shared/companyresult.rb +0 -29
  240. data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
  241. data/lib/stackone/models/shared/connectsession.rb +0 -68
  242. data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
  243. data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
  244. data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
  245. data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
  246. data/lib/stackone/models/shared/documentapimodel.rb +0 -44
  247. data/lib/stackone/models/shared/documentresult.rb +0 -29
  248. data/lib/stackone/models/shared/documentspaginated.rb +0 -34
  249. data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
  250. data/lib/stackone/models/shared/employee.rb +0 -1065
  251. data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
  252. data/lib/stackone/models/shared/employeeresult.rb +0 -29
  253. data/lib/stackone/models/shared/employeespaginated.rb +0 -34
  254. data/lib/stackone/models/shared/employment.rb +0 -199
  255. data/lib/stackone/models/shared/employmentresult.rb +0 -29
  256. data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
  257. data/lib/stackone/models/shared/fileformatenum.rb +0 -52
  258. data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
  259. data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
  260. data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
  261. data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
  262. data/lib/stackone/models/shared/linkedaccount.rb +0 -75
  263. data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
  264. data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
  265. data/lib/stackone/models/shared/rawresponse.rb +0 -44
  266. data/lib/stackone/models/shared/security.rb +0 -28
  267. data/lib/stackone/models/shared/timeoff.rb +0 -102
  268. data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
  269. data/lib/stackone/models/shared/timeoffresult.rb +0 -29
  270. data/lib/stackone/models/shared/workeligibility.rb +0 -101
  271. /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
  272. /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class CompaniesPaginated < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, T::Array[::StackOne::Shared::Company], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
16
+
17
+ field :next_, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
18
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
19
+ field :next_page, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next_page') } }
20
+
21
+ field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
22
+
23
+
24
+ sig { params(data: T::Array[::StackOne::Shared::Company], next_: T.nilable(::String), next_page: T.nilable(::String), raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
25
+ def initialize(data: nil, next_: nil, next_page: nil, raw: nil)
26
+ @data = data
27
+ @next_ = next_
28
+ @next_page = next_page
29
+ @raw = raw
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class Company < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The created_at date
15
+ field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
16
+
17
+ field :display_name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('display_name') } }
18
+
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
20
+
21
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
22
+ # The updated_at date
23
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
24
+
25
+
26
+ sig { params(created_at: T.nilable(::DateTime), display_name: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
27
+ def initialize(created_at: nil, display_name: nil, id: nil, name: nil, updated_at: nil)
28
+ @created_at = created_at
29
+ @display_name = display_name
30
+ @id = id
31
+ @name = name
32
+ @updated_at = updated_at
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class CompanyResult < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, ::StackOne::Shared::Company, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
16
+
17
+ field :raw, T.nilable(T::Array[::StackOne::Shared::RawResponse]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('raw') } }
18
+
19
+
20
+ sig { params(data: ::StackOne::Shared::Company, raw: T.nilable(T::Array[::StackOne::Shared::RawResponse])).void }
21
+ def initialize(data: nil, raw: nil)
22
+ @data = data
23
+ @raw = raw
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectorsMeta < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The provider service category
15
+ field :category, ::StackOne::Shared::Category, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Category, false) } }
16
+
17
+ field :models, T::Hash[Symbol, ::Object], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('models') } }
18
+ # The provider key
19
+ field :provider, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
20
+ # The provider human-readable label
21
+ field :provider_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_name') } }
22
+ # Whether this provider has been enabled on the integrations page for the current project
23
+ field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('active') } }
24
+ # Resources for this provider, such as image assets
25
+ field :resources, T.nilable(::StackOne::Shared::Resources), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resources') } }
26
+
27
+
28
+ sig { params(category: ::StackOne::Shared::Category, models: T::Hash[Symbol, ::Object], provider: ::String, provider_name: ::String, active: T.nilable(T::Boolean), resources: T.nilable(::StackOne::Shared::Resources)).void }
29
+ def initialize(category: nil, models: nil, provider: nil, provider_name: nil, active: nil, resources: nil)
30
+ @category = category
31
+ @models = models
32
+ @provider = provider
33
+ @provider_name = provider_name
34
+ @active = active
35
+ @resources = resources
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,54 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectSession < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+
17
+ field :id, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
+
19
+ field :organization_id, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } }
20
+
21
+ field :origin_owner_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
22
+
23
+ field :origin_owner_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
24
+
25
+ field :project_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
26
+
27
+ field :account_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
28
+
29
+ field :categories, T.nilable(T::Array[::StackOne::Shared::Categories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
30
+
31
+ field :label, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
32
+
33
+ field :origin_username, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
34
+
35
+ field :provider, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
36
+
37
+
38
+ sig { params(created_at: ::DateTime, id: ::Float, organization_id: ::Float, origin_owner_id: ::String, origin_owner_name: ::String, project_id: ::String, account_id: T.nilable(::String), categories: T.nilable(T::Array[::StackOne::Shared::Categories]), label: T.nilable(::String), origin_username: T.nilable(::String), provider: T.nilable(::String)).void }
39
+ def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, account_id: nil, categories: nil, label: nil, origin_username: nil, provider: nil)
40
+ @created_at = created_at
41
+ @id = id
42
+ @organization_id = organization_id
43
+ @origin_owner_id = origin_owner_id
44
+ @origin_owner_name = origin_owner_name
45
+ @project_id = project_id
46
+ @account_id = account_id
47
+ @categories = categories
48
+ @label = label
49
+ @origin_username = origin_username
50
+ @provider = provider
51
+ end
52
+ end
53
+ end
54
+ end
@@ -3,20 +3,19 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module StackOne
10
8
  module Shared
9
+
11
10
 
12
11
  class ConnectSessionAuthenticate < ::StackOne::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
  # The token to authenticate with
16
- field :token, String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } }
15
+ field :token, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } }
17
16
 
18
17
 
19
- sig { params(token: String).void }
18
+ sig { params(token: ::String).void }
20
19
  def initialize(token: nil)
21
20
  @token = token
22
21
  end
@@ -0,0 +1,51 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectSessionCreate < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The origin owner identifier
15
+ field :origin_owner_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
16
+ # The origin owner name
17
+ field :origin_owner_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
18
+ # The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token.
19
+ field :account_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
20
+ # The categories of the provider to connect to
21
+ field :categories, T.nilable(T::Array[::StackOne::Shared::ConnectSessionCreateCategories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
22
+ # How long the session should be valid for in seconds
23
+ field :expires_in, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('expires_in') } }
24
+ # The label to be applied to the account associated with this connect session.
25
+ field :label, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
26
+ # The metadata for the connection
27
+ field :metadata, T.nilable(::StackOne::Shared::Metadata), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('metadata') } }
28
+ # If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set.
29
+ field :multiple, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('multiple') } }
30
+ # The origin username
31
+ field :origin_username, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
32
+ # The provider to connect to
33
+ field :provider, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
34
+
35
+
36
+ sig { params(origin_owner_id: ::String, origin_owner_name: ::String, account_id: T.nilable(::String), categories: T.nilable(T::Array[::StackOne::Shared::ConnectSessionCreateCategories]), expires_in: T.nilable(::Float), label: T.nilable(::String), metadata: T.nilable(::StackOne::Shared::Metadata), multiple: T.nilable(T::Boolean), origin_username: T.nilable(::String), provider: T.nilable(::String)).void }
37
+ def initialize(origin_owner_id: nil, origin_owner_name: nil, account_id: nil, categories: nil, expires_in: nil, label: nil, metadata: nil, multiple: nil, origin_username: nil, provider: nil)
38
+ @origin_owner_id = origin_owner_id
39
+ @origin_owner_name = origin_owner_name
40
+ @account_id = account_id
41
+ @categories = categories
42
+ @expires_in = expires_in
43
+ @label = label
44
+ @metadata = metadata
45
+ @multiple = multiple
46
+ @origin_username = origin_username
47
+ @provider = provider
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectSessionCreateCategories < T::Enum
12
+ enums do
13
+ ATS = new('ats')
14
+ HRIS = new('hris')
15
+ HRIS_LEGACY = new('hris-legacy')
16
+ CRM = new('crm')
17
+ MARKETING = new('marketing')
18
+ STACKONE = new('stackone')
19
+ end
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,57 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectSessionToken < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
+
17
+ field :id, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
18
+
19
+ field :organization_id, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('organization_id') } }
20
+
21
+ field :origin_owner_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } }
22
+
23
+ field :origin_owner_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } }
24
+
25
+ field :project_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } }
26
+
27
+ field :token, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('token') } }
28
+
29
+ field :account_id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } }
30
+
31
+ field :categories, T.nilable(T::Array[::StackOne::Shared::ConnectSessionTokenCategories]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } }
32
+
33
+ field :label, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } }
34
+
35
+ field :origin_username, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } }
36
+
37
+ field :provider, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } }
38
+
39
+
40
+ sig { params(created_at: ::DateTime, id: ::Float, organization_id: ::Float, origin_owner_id: ::String, origin_owner_name: ::String, project_id: ::String, token: ::String, account_id: T.nilable(::String), categories: T.nilable(T::Array[::StackOne::Shared::ConnectSessionTokenCategories]), label: T.nilable(::String), origin_username: T.nilable(::String), provider: T.nilable(::String)).void }
41
+ def initialize(created_at: nil, id: nil, organization_id: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, token: nil, account_id: nil, categories: nil, label: nil, origin_username: nil, provider: nil)
42
+ @created_at = created_at
43
+ @id = id
44
+ @organization_id = organization_id
45
+ @origin_owner_id = origin_owner_id
46
+ @origin_owner_name = origin_owner_name
47
+ @project_id = project_id
48
+ @token = token
49
+ @account_id = account_id
50
+ @categories = categories
51
+ @label = label
52
+ @origin_username = origin_username
53
+ @provider = provider
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class ConnectSessionTokenCategories < T::Enum
12
+ enums do
13
+ ATS = new('ats')
14
+ HRIS = new('hris')
15
+ HRIS_LEGACY = new('hris-legacy')
16
+ CRM = new('crm')
17
+ MARKETING = new('marketing')
18
+ STACKONE = new('stackone')
19
+ end
20
+ end
21
+
22
+ end
23
+ end
@@ -3,23 +3,21 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
- require_relative '../shared/fileformatenum'
9
6
 
10
7
  module StackOne
11
8
  module Shared
9
+
12
10
 
13
11
  class Content < ::StackOne::Utils::FieldAugmented
14
12
  extend T::Sig
15
13
 
16
14
  # The file format of the file
17
- field :file_format, T.nilable(Shared::FileFormatEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
15
+ field :file_format, T.nilable(::StackOne::Shared::FileFormatEnum), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } }
18
16
  # URL where the file content is located
19
- field :url, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
17
+ field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } }
20
18
 
21
19
 
22
- sig { params(file_format: T.nilable(Shared::FileFormatEnum), url: T.nilable(String)).void }
20
+ sig { params(file_format: T.nilable(::StackOne::Shared::FileFormatEnum), url: T.nilable(::String)).void }
23
21
  def initialize(file_format: nil, url: nil)
24
22
  @file_format = file_format
25
23
  @url = url
@@ -3,22 +3,21 @@
3
3
  # typed: true
4
4
  # frozen_string_literal: true
5
5
 
6
- require 'sorbet-runtime'
7
- require 'faraday'
8
6
 
9
7
  module StackOne
10
8
  module Shared
9
+
11
10
 
12
11
  class CostCenters < ::StackOne::Utils::FieldAugmented
13
12
  extend T::Sig
14
13
 
15
14
 
16
- field :distribution_percentage, T.nilable(Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('distribution_percentage') } }
15
+ field :distribution_percentage, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('distribution_percentage') } }
17
16
 
18
- field :name, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
17
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
19
18
 
20
19
 
21
- sig { params(distribution_percentage: T.nilable(Float), name: T.nilable(String)).void }
20
+ sig { params(distribution_percentage: T.nilable(::Float), name: T.nilable(::String)).void }
22
21
  def initialize(distribution_percentage: nil, name: nil)
23
22
  @distribution_percentage = distribution_percentage
24
23
  @name = name
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+ # The country code
11
+ class Country < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The ISO3166-1 Alpha2 Code of the Country
17
+ field :value, T.nilable(::StackOne::Shared::HRISLocationValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::HRISLocationValue, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::HRISLocationValue)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class CountryCodeEnum < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :source_value, T.nilable(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
16
+ # The ISO3166-1 Alpha2 Code of the Country
17
+ field :value, T.nilable(::StackOne::Shared::Value), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(::StackOne::Shared::Value, true) } }
18
+
19
+
20
+ sig { params(source_value: T.nilable(::Object), value: T.nilable(::StackOne::Shared::Value)).void }
21
+ def initialize(source_value: nil, value: nil)
22
+ @source_value = source_value
23
+ @value = value
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,30 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class CreateEmployeeResult < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :status_code, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
16
+
17
+ field :timestamp, ::DateTime, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(false) } }
18
+
19
+ field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
20
+
21
+
22
+ sig { params(status_code: ::Float, timestamp: ::DateTime, message: T.nilable(::String)).void }
23
+ def initialize(status_code: nil, timestamp: nil, message: nil)
24
+ @status_code = status_code
25
+ @timestamp = timestamp
26
+ @message = message
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class CreateTimeOffResult < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :message, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } }
16
+
17
+ field :status_code, T.nilable(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('statusCode') } }
18
+
19
+ field :timestamp, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('timestamp'), 'decoder': Utils.datetime_from_iso_format(true) } }
20
+
21
+
22
+ sig { params(message: T.nilable(::String), status_code: T.nilable(::Float), timestamp: T.nilable(::DateTime)).void }
23
+ def initialize(message: nil, status_code: nil, timestamp: nil)
24
+ @message = message
25
+ @status_code = status_code
26
+ @timestamp = timestamp
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,20 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class Credentials < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+
16
+
17
+ def initialize; end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,39 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class Document < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The content of the file
15
+ field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
+ # The creation date of the file
17
+ field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+ # The unique ID of the file
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
20
+ # The name of the file
21
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
22
+ # The path where the file is stored
23
+ field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
24
+ # The update date of the file
25
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
26
+
27
+
28
+ sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
29
+ def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, updated_at: nil)
30
+ @contents = contents
31
+ @created_at = created_at
32
+ @id = id
33
+ @name = name
34
+ @path = path
35
+ @updated_at = updated_at
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,42 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module StackOne
8
+ module Shared
9
+
10
+
11
+ class DocumentApiModel < ::StackOne::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The content of the file
15
+ field :contents, T.nilable(T::Array[::StackOne::Shared::Content]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('contents') } }
16
+ # The creation date of the file
17
+ field :created_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
18
+ # The unique ID of the file
19
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
20
+ # The name of the file
21
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } }
22
+ # The path where the file is stored
23
+ field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
24
+ # The content type of the document
25
+ field :type, T.nilable(::StackOne::Shared::Type), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
26
+ # The update date of the file
27
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
28
+
29
+
30
+ sig { params(contents: T.nilable(T::Array[::StackOne::Shared::Content]), created_at: T.nilable(::DateTime), id: T.nilable(::String), name: T.nilable(::String), path: T.nilable(::String), type: T.nilable(::StackOne::Shared::Type), updated_at: T.nilable(::DateTime)).void }
31
+ def initialize(contents: nil, created_at: nil, id: nil, name: nil, path: nil, type: nil, updated_at: nil)
32
+ @contents = contents
33
+ @created_at = created_at
34
+ @id = id
35
+ @name = name
36
+ @path = path
37
+ @type = type
38
+ @updated_at = updated_at
39
+ end
40
+ end
41
+ end
42
+ end