@truvity/sdk 0.0.1 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (642) hide show
  1. package/Client.d.ts +5 -7
  2. package/Client.js +4 -9
  3. package/api/resources/credentials/client/Client.d.ts +151 -0
  4. package/api/resources/{pets → credentials}/client/Client.js +152 -135
  5. package/{dist/api/resources/pets/client/requests/PetCreateRequest.d.ts → api/resources/credentials/client/requests/CredentialCreateRequest.d.ts} +2 -2
  6. package/api/resources/{pets/client/requests/PetDeleteRequest.d.ts → credentials/client/requests/CredentialDeleteRequest.d.ts} +1 -1
  7. package/api/resources/{pets/client/requests/PetDownloadRequest.d.ts → credentials/client/requests/CredentialDownloadRequest.d.ts} +1 -1
  8. package/api/resources/{owners/client/requests/OwnerHistoryRequest.d.ts → credentials/client/requests/CredentialHistoryRequest.d.ts} +1 -1
  9. package/api/resources/{owners/client/requests/OwnerRevisionRequest.d.ts → credentials/client/requests/CredentialLatestRequest.d.ts} +1 -1
  10. package/{dist/api/resources/owners/client/requests/OwnerDeleteRequest.d.ts → api/resources/credentials/client/requests/CredentialRestoreRequest.d.ts} +1 -1
  11. package/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +27 -0
  12. package/api/resources/credentials/client/requests/CredentialSearch.d.ts +14 -0
  13. package/api/resources/{pets/client/requests/PetUpdateRequest.d.ts → credentials/client/requests/CredentialUpdateRequest.d.ts} +2 -2
  14. package/api/resources/{pets/client/requests/UploadRequest.d.ts → credentials/client/requests/CredentialUploadRequest.d.ts} +1 -3
  15. package/api/resources/credentials/client/requests/index.d.ts +10 -0
  16. package/api/resources/index.d.ts +2 -4
  17. package/api/resources/index.js +3 -5
  18. package/api/types/Credential.d.ts +17 -0
  19. package/api/types/Credential11.d.ts +16 -0
  20. package/api/types/Credential20.d.ts +16 -0
  21. package/api/types/CredentialField.d.ts +21 -0
  22. package/api/types/{OwnerField.js → CredentialField.js} +7 -5
  23. package/{dist/api/types/OwnerFilter.d.ts → api/types/CredentialFilter.d.ts} +6 -5
  24. package/api/types/CredentialFilterData.d.ts +11 -0
  25. package/api/types/{PetList.d.ts → CredentialFilterKind.d.ts} +2 -5
  26. package/{dist/api/types/HashSha1.d.ts → api/types/CredentialId.d.ts} +2 -2
  27. package/api/types/{PetInput.d.ts → CredentialInput.d.ts} +2 -2
  28. package/api/types/CredentialIssuer.d.ts +7 -0
  29. package/api/types/{ChecksumCrc32.d.ts → CredentialList.d.ts} +3 -3
  30. package/api/types/{PetResource.d.ts → CredentialResource.d.ts} +3 -3
  31. package/api/types/{OwnerSort.d.ts → CredentialSort.d.ts} +3 -3
  32. package/api/types/CredentialSubject.d.ts +8 -0
  33. package/api/types/CredentialType.d.ts +7 -0
  34. package/api/types/CredentialValidFrom.d.ts +7 -0
  35. package/api/types/CredentialValidUntil.d.ts +7 -0
  36. package/api/types/{HashCrc32.d.ts → CredentilHolder.d.ts} +2 -2
  37. package/api/types/DataModelCredential.d.ts +16 -0
  38. package/api/types/FilterUriEqual.d.ts +10 -0
  39. package/api/types/FilterUriIsNotNull.d.ts +8 -0
  40. package/api/types/{HashSha1.d.ts → FilterUriIsNull.d.ts} +3 -2
  41. package/api/types/FilterUriNotEqual.d.ts +10 -0
  42. package/api/types/FilterUriOptional.d.ts +23 -0
  43. package/api/types/{ProblemResourceConflict.d.ts → ProblemConflictResource.d.ts} +4 -4
  44. package/api/types/{ProblemResourceMethodNotAllowed.d.ts → ProblemMethodNotAllowedResourceAlive.d.ts} +4 -6
  45. package/{dist/api/types/ProblemResourceMethodNotAllowed.d.ts → api/types/ProblemMethodNotAllowedResourceDeleted.d.ts} +4 -6
  46. package/api/types/ProblemNotFoundRevision.d.ts +2 -2
  47. package/api/types/Subject.d.ts +10 -0
  48. package/api/types/UploadResponse.d.ts +2 -2
  49. package/api/types/index.d.ts +28 -32
  50. package/api/types/index.js +28 -32
  51. package/core/schemas/builders/object/object.js +11 -15
  52. package/dist/Client.d.ts +5 -7
  53. package/dist/Client.js +4 -9
  54. package/dist/api/resources/credentials/client/Client.d.ts +151 -0
  55. package/dist/api/resources/{pets → credentials}/client/Client.js +152 -135
  56. package/{api/resources/pets/client/requests/PetCreateRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialCreateRequest.d.ts} +2 -2
  57. package/{api/resources/owners/client/requests/OwnerDeleteRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialDeleteRequest.d.ts} +1 -1
  58. package/dist/api/resources/{pets/client/requests/PetDownloadRequest.d.ts → credentials/client/requests/CredentialDownloadRequest.d.ts} +1 -1
  59. package/{api/resources/owners/client/requests/OwnerLatestRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialHistoryRequest.d.ts} +1 -1
  60. package/{api/resources/pets/client/requests/PetHistoryRequest.d.ts → dist/api/resources/credentials/client/requests/CredentialLatestRequest.d.ts} +1 -1
  61. package/dist/api/resources/{pets/client/requests/PetDeleteRequest.d.ts → credentials/client/requests/CredentialRestoreRequest.d.ts} +1 -1
  62. package/dist/api/resources/credentials/client/requests/CredentialRevisionRequest.d.ts +27 -0
  63. package/dist/api/resources/credentials/client/requests/CredentialSearch.d.ts +14 -0
  64. package/dist/api/resources/{pets/client/requests/PetUpdateRequest.d.ts → credentials/client/requests/CredentialUpdateRequest.d.ts} +2 -2
  65. package/dist/api/resources/{pets/client/requests/UploadRequest.d.ts → credentials/client/requests/CredentialUploadRequest.d.ts} +1 -3
  66. package/dist/api/resources/credentials/client/requests/index.d.ts +10 -0
  67. package/dist/api/resources/index.d.ts +2 -4
  68. package/dist/api/resources/index.js +3 -5
  69. package/dist/api/types/Credential.d.ts +17 -0
  70. package/dist/api/types/Credential11.d.ts +16 -0
  71. package/dist/api/types/Credential20.d.ts +16 -0
  72. package/dist/api/types/CredentialField.d.ts +21 -0
  73. package/dist/api/types/{OwnerField.js → CredentialField.js} +7 -5
  74. package/{api/types/PetFilter.d.ts → dist/api/types/CredentialFilter.d.ts} +6 -5
  75. package/dist/api/types/CredentialFilterData.d.ts +11 -0
  76. package/dist/api/types/{PetList.d.ts → CredentialFilterKind.d.ts} +2 -5
  77. package/dist/api/types/{HashCrc32.d.ts → CredentialId.d.ts} +2 -2
  78. package/dist/api/types/{PetInput.d.ts → CredentialInput.d.ts} +2 -2
  79. package/dist/api/types/CredentialIssuer.d.ts +7 -0
  80. package/{api/types/ChecksumCrc32C.d.ts → dist/api/types/CredentialList.d.ts} +3 -3
  81. package/{api/types/OwnerResource.d.ts → dist/api/types/CredentialResource.d.ts} +3 -3
  82. package/{api/types/PetSort.d.ts → dist/api/types/CredentialSort.d.ts} +3 -3
  83. package/dist/api/types/CredentialSubject.d.ts +8 -0
  84. package/dist/api/types/CredentialType.d.ts +7 -0
  85. package/dist/api/types/CredentialValidFrom.d.ts +7 -0
  86. package/dist/api/types/CredentialValidUntil.d.ts +7 -0
  87. package/dist/api/types/CredentilHolder.d.ts +7 -0
  88. package/dist/api/types/DataModelCredential.d.ts +16 -0
  89. package/dist/api/types/FilterUriEqual.d.ts +10 -0
  90. package/dist/api/types/FilterUriIsNotNull.d.ts +8 -0
  91. package/dist/api/types/FilterUriIsNull.d.ts +8 -0
  92. package/dist/api/types/FilterUriNotEqual.d.ts +10 -0
  93. package/dist/api/types/FilterUriOptional.d.ts +23 -0
  94. package/dist/api/types/{ProblemResourceConflict.d.ts → ProblemConflictResource.d.ts} +4 -4
  95. package/dist/api/types/ProblemMethodNotAllowedResourceAlive.d.ts +24 -0
  96. package/dist/api/types/ProblemMethodNotAllowedResourceDeleted.d.ts +24 -0
  97. package/dist/api/types/ProblemNotFoundRevision.d.ts +2 -2
  98. package/dist/api/types/Subject.d.ts +10 -0
  99. package/dist/api/types/UploadResponse.d.ts +2 -2
  100. package/dist/api/types/index.d.ts +28 -32
  101. package/dist/api/types/index.js +28 -32
  102. package/dist/core/schemas/builders/object/object.js +11 -15
  103. package/dist/serialization/resources/credentials/client/requests/CredentialSearch.d.ts +15 -0
  104. package/dist/serialization/resources/credentials/client/requests/CredentialSearch.js +36 -0
  105. package/dist/serialization/resources/credentials/client/requests/index.d.ts +1 -0
  106. package/dist/serialization/resources/credentials/client/requests/index.js +5 -0
  107. package/dist/serialization/resources/index.d.ts +2 -4
  108. package/dist/serialization/resources/index.js +3 -5
  109. package/dist/serialization/types/Annotations.d.ts +2 -1
  110. package/dist/serialization/types/Annotations.js +2 -10
  111. package/dist/serialization/types/BadRequestErrorBody.d.ts +6 -3
  112. package/dist/serialization/types/BadRequestErrorBody.js +6 -12
  113. package/dist/serialization/types/Credential.d.ts +27 -0
  114. package/dist/serialization/types/{ChecksumCrc32C.js → Credential.js} +18 -12
  115. package/dist/serialization/types/Credential11.d.ts +25 -0
  116. package/{serialization/types/ChecksumSha1.js → dist/serialization/types/Credential11.js} +16 -12
  117. package/dist/serialization/types/Credential20.d.ts +25 -0
  118. package/dist/serialization/types/{ChecksumSha1.js → Credential20.js} +16 -12
  119. package/dist/serialization/types/CredentialField.d.ts +10 -0
  120. package/dist/serialization/types/{OwnerField.js → CredentialField.js} +7 -5
  121. package/dist/serialization/types/CredentialFilter.d.ts +30 -0
  122. package/dist/serialization/types/CredentialFilter.js +51 -0
  123. package/dist/serialization/types/CredentialFilterData.d.ts +18 -0
  124. package/dist/serialization/types/CredentialFilterData.js +39 -0
  125. package/dist/serialization/types/CredentialFilterKind.d.ts +13 -0
  126. package/dist/serialization/types/CredentialFilterKind.js +34 -0
  127. package/dist/serialization/types/{HashSha1.d.ts → CredentialId.d.ts} +2 -2
  128. package/dist/serialization/types/{HashCrc32C.js → CredentialId.js} +2 -2
  129. package/dist/serialization/types/CredentialInput.d.ts +15 -0
  130. package/dist/serialization/types/{Owner.js → CredentialInput.js} +6 -4
  131. package/dist/serialization/types/CredentialIssuer.d.ts +10 -0
  132. package/dist/serialization/types/CredentialIssuer.js +31 -0
  133. package/dist/serialization/types/CredentialList.d.ts +13 -0
  134. package/dist/serialization/types/CredentialList.js +34 -0
  135. package/dist/serialization/types/CredentialResource.d.ts +29 -0
  136. package/dist/serialization/types/CredentialResource.js +50 -0
  137. package/dist/serialization/types/CredentialSort.d.ts +15 -0
  138. package/dist/serialization/types/CredentialSort.js +36 -0
  139. package/dist/serialization/types/CredentialSubject.d.ts +11 -0
  140. package/dist/serialization/types/CredentialSubject.js +32 -0
  141. package/dist/serialization/types/CredentialType.d.ts +10 -0
  142. package/dist/serialization/types/CredentialType.js +31 -0
  143. package/dist/serialization/types/CredentialValidFrom.d.ts +10 -0
  144. package/dist/serialization/types/CredentialValidFrom.js +31 -0
  145. package/dist/serialization/types/CredentialValidUntil.d.ts +10 -0
  146. package/dist/serialization/types/CredentialValidUntil.js +31 -0
  147. package/dist/serialization/types/{HashCrc32.d.ts → CredentilHolder.d.ts} +2 -2
  148. package/dist/serialization/types/{HashSha1.js → CredentilHolder.js} +2 -2
  149. package/dist/serialization/types/DataModelCredential.d.ts +18 -0
  150. package/dist/serialization/types/DataModelCredential.js +41 -0
  151. package/dist/serialization/types/FilterId.d.ts +8 -4
  152. package/dist/serialization/types/FilterId.js +8 -13
  153. package/dist/serialization/types/FilterInteger.d.ts +14 -7
  154. package/dist/serialization/types/FilterInteger.js +14 -16
  155. package/dist/serialization/types/FilterString.d.ts +4 -2
  156. package/dist/serialization/types/FilterString.js +4 -11
  157. package/dist/serialization/types/FilterTimestamp.d.ts +14 -7
  158. package/dist/serialization/types/FilterTimestamp.js +14 -16
  159. package/dist/serialization/types/FilterTimestampOptional.d.ts +18 -9
  160. package/dist/serialization/types/FilterTimestampOptional.js +18 -18
  161. package/dist/serialization/types/FilterUriEqual.d.ts +12 -0
  162. package/dist/serialization/types/{ChecksumAlgorithm.js → FilterUriEqual.js} +4 -2
  163. package/dist/serialization/types/{PetList.d.ts → FilterUriIsNotNull.d.ts} +2 -3
  164. package/dist/serialization/types/FilterUriIsNotNull.js +31 -0
  165. package/{serialization/types/PetList.d.ts → dist/serialization/types/FilterUriIsNull.d.ts} +2 -3
  166. package/dist/serialization/types/FilterUriIsNull.js +31 -0
  167. package/dist/serialization/types/{OwnerList.d.ts → FilterUriNotEqual.d.ts} +3 -3
  168. package/dist/serialization/types/FilterUriNotEqual.js +33 -0
  169. package/dist/serialization/types/FilterUriOptional.d.ts +26 -0
  170. package/dist/serialization/types/FilterUriOptional.js +45 -0
  171. package/dist/serialization/types/Labels.d.ts +2 -1
  172. package/dist/serialization/types/Labels.js +2 -10
  173. package/dist/serialization/types/ProblemBodyContent.d.ts +2 -1
  174. package/dist/serialization/types/ProblemBodyContent.js +2 -10
  175. package/dist/serialization/types/ProblemConflictResource.d.ts +21 -0
  176. package/dist/serialization/types/ProblemConflictResource.js +42 -0
  177. package/dist/serialization/types/ProblemForbidden.d.ts +2 -1
  178. package/dist/serialization/types/ProblemForbidden.js +2 -10
  179. package/dist/serialization/types/ProblemInternalServerError.d.ts +2 -1
  180. package/dist/serialization/types/ProblemInternalServerError.js +2 -10
  181. package/dist/serialization/types/ProblemMethodNotAllowedResourceAlive.d.ts +19 -0
  182. package/dist/serialization/types/ProblemMethodNotAllowedResourceAlive.js +40 -0
  183. package/dist/serialization/types/ProblemMethodNotAllowedResourceDeleted.d.ts +19 -0
  184. package/dist/serialization/types/ProblemMethodNotAllowedResourceDeleted.js +40 -0
  185. package/dist/serialization/types/ProblemNotFoundBlob.d.ts +4 -2
  186. package/dist/serialization/types/ProblemNotFoundBlob.js +4 -11
  187. package/dist/serialization/types/ProblemNotFoundResource.d.ts +4 -2
  188. package/dist/serialization/types/ProblemNotFoundResource.js +4 -11
  189. package/dist/serialization/types/ProblemNotFoundRevision.d.ts +4 -2
  190. package/dist/serialization/types/ProblemNotFoundRevision.js +4 -11
  191. package/dist/serialization/types/ProblemNullUnicode.d.ts +2 -1
  192. package/dist/serialization/types/ProblemNullUnicode.js +2 -10
  193. package/dist/serialization/types/ProblemUnauthorized.d.ts +2 -1
  194. package/dist/serialization/types/ProblemUnauthorized.js +2 -10
  195. package/dist/serialization/types/ProblemUnsupportedMediaType.d.ts +4 -2
  196. package/dist/serialization/types/ProblemUnsupportedMediaType.js +4 -11
  197. package/dist/serialization/types/ProblemValidation.d.ts +4 -2
  198. package/dist/serialization/types/ProblemValidation.js +4 -2
  199. package/dist/serialization/types/Resource.d.ts +16 -9
  200. package/dist/serialization/types/Resource.js +16 -18
  201. package/dist/serialization/types/ResourceKind.d.ts +4 -2
  202. package/dist/serialization/types/ResourceKind.js +4 -11
  203. package/dist/serialization/types/{Owner.d.ts → Subject.d.ts} +3 -4
  204. package/dist/serialization/types/Subject.js +33 -0
  205. package/dist/serialization/types/UploadResponse.d.ts +5 -4
  206. package/dist/serialization/types/UploadResponse.js +5 -13
  207. package/dist/serialization/types/index.d.ts +28 -32
  208. package/dist/serialization/types/index.js +28 -32
  209. package/package.json +2 -7
  210. package/serialization/resources/credentials/client/requests/CredentialSearch.d.ts +15 -0
  211. package/serialization/resources/credentials/client/requests/CredentialSearch.js +36 -0
  212. package/serialization/resources/credentials/client/requests/index.d.ts +1 -0
  213. package/serialization/resources/credentials/client/requests/index.js +5 -0
  214. package/serialization/resources/index.d.ts +2 -4
  215. package/serialization/resources/index.js +3 -5
  216. package/serialization/types/Annotations.d.ts +2 -1
  217. package/serialization/types/Annotations.js +2 -10
  218. package/serialization/types/BadRequestErrorBody.d.ts +6 -3
  219. package/serialization/types/BadRequestErrorBody.js +6 -12
  220. package/serialization/types/Credential.d.ts +27 -0
  221. package/{dist/serialization/types/ChecksumSha256.js → serialization/types/Credential.js} +18 -12
  222. package/serialization/types/Credential11.d.ts +25 -0
  223. package/serialization/types/Credential11.js +46 -0
  224. package/serialization/types/Credential20.d.ts +25 -0
  225. package/serialization/types/Credential20.js +46 -0
  226. package/serialization/types/CredentialField.d.ts +10 -0
  227. package/{dist/serialization/types/PetField.js → serialization/types/CredentialField.js} +7 -6
  228. package/serialization/types/CredentialFilter.d.ts +30 -0
  229. package/serialization/types/CredentialFilter.js +51 -0
  230. package/serialization/types/CredentialFilterData.d.ts +18 -0
  231. package/serialization/types/CredentialFilterData.js +39 -0
  232. package/serialization/types/CredentialFilterKind.d.ts +13 -0
  233. package/serialization/types/CredentialFilterKind.js +34 -0
  234. package/{dist/serialization/types/HashCrc32C.d.ts → serialization/types/CredentialId.d.ts} +2 -2
  235. package/{dist/serialization/types/HashCrc32.js → serialization/types/CredentialId.js} +2 -2
  236. package/serialization/types/CredentialInput.d.ts +15 -0
  237. package/serialization/types/{Owner.js → CredentialInput.js} +6 -4
  238. package/serialization/types/CredentialIssuer.d.ts +10 -0
  239. package/serialization/types/CredentialIssuer.js +31 -0
  240. package/serialization/types/CredentialList.d.ts +13 -0
  241. package/serialization/types/CredentialList.js +34 -0
  242. package/serialization/types/CredentialResource.d.ts +29 -0
  243. package/serialization/types/CredentialResource.js +50 -0
  244. package/serialization/types/CredentialSort.d.ts +15 -0
  245. package/serialization/types/CredentialSort.js +36 -0
  246. package/serialization/types/CredentialSubject.d.ts +11 -0
  247. package/serialization/types/CredentialSubject.js +32 -0
  248. package/serialization/types/CredentialType.d.ts +10 -0
  249. package/serialization/types/CredentialType.js +31 -0
  250. package/serialization/types/CredentialValidFrom.d.ts +10 -0
  251. package/serialization/types/CredentialValidFrom.js +31 -0
  252. package/serialization/types/CredentialValidUntil.d.ts +10 -0
  253. package/serialization/types/CredentialValidUntil.js +31 -0
  254. package/{dist/serialization/types/HashSha256.d.ts → serialization/types/CredentilHolder.d.ts} +2 -2
  255. package/{dist/serialization/types/HashSha256.js → serialization/types/CredentilHolder.js} +2 -2
  256. package/serialization/types/DataModelCredential.d.ts +18 -0
  257. package/serialization/types/DataModelCredential.js +41 -0
  258. package/serialization/types/FilterId.d.ts +8 -4
  259. package/serialization/types/FilterId.js +8 -13
  260. package/serialization/types/FilterInteger.d.ts +14 -7
  261. package/serialization/types/FilterInteger.js +14 -16
  262. package/serialization/types/FilterString.d.ts +4 -2
  263. package/serialization/types/FilterString.js +4 -11
  264. package/serialization/types/FilterTimestamp.d.ts +14 -7
  265. package/serialization/types/FilterTimestamp.js +14 -16
  266. package/serialization/types/FilterTimestampOptional.d.ts +18 -9
  267. package/serialization/types/FilterTimestampOptional.js +18 -18
  268. package/serialization/types/FilterUriEqual.d.ts +12 -0
  269. package/serialization/types/FilterUriEqual.js +33 -0
  270. package/serialization/types/{Owner.d.ts → FilterUriIsNotNull.d.ts} +2 -4
  271. package/serialization/types/FilterUriIsNotNull.js +31 -0
  272. package/serialization/types/FilterUriIsNull.d.ts +11 -0
  273. package/serialization/types/FilterUriIsNull.js +31 -0
  274. package/{dist/serialization/types/ChecksumSha1.d.ts → serialization/types/FilterUriNotEqual.d.ts} +3 -3
  275. package/serialization/types/FilterUriNotEqual.js +33 -0
  276. package/serialization/types/FilterUriOptional.d.ts +26 -0
  277. package/serialization/types/FilterUriOptional.js +45 -0
  278. package/serialization/types/Labels.d.ts +2 -1
  279. package/serialization/types/Labels.js +2 -10
  280. package/serialization/types/ProblemBodyContent.d.ts +2 -1
  281. package/serialization/types/ProblemBodyContent.js +2 -10
  282. package/serialization/types/ProblemConflictResource.d.ts +21 -0
  283. package/serialization/types/ProblemConflictResource.js +42 -0
  284. package/serialization/types/ProblemForbidden.d.ts +2 -1
  285. package/serialization/types/ProblemForbidden.js +2 -10
  286. package/serialization/types/ProblemInternalServerError.d.ts +2 -1
  287. package/serialization/types/ProblemInternalServerError.js +2 -10
  288. package/serialization/types/ProblemMethodNotAllowedResourceAlive.d.ts +19 -0
  289. package/serialization/types/ProblemMethodNotAllowedResourceAlive.js +40 -0
  290. package/serialization/types/ProblemMethodNotAllowedResourceDeleted.d.ts +19 -0
  291. package/serialization/types/ProblemMethodNotAllowedResourceDeleted.js +40 -0
  292. package/serialization/types/ProblemNotFoundBlob.d.ts +4 -2
  293. package/serialization/types/ProblemNotFoundBlob.js +4 -11
  294. package/serialization/types/ProblemNotFoundResource.d.ts +4 -2
  295. package/serialization/types/ProblemNotFoundResource.js +4 -11
  296. package/serialization/types/ProblemNotFoundRevision.d.ts +4 -2
  297. package/serialization/types/ProblemNotFoundRevision.js +4 -11
  298. package/serialization/types/ProblemNullUnicode.d.ts +2 -1
  299. package/serialization/types/ProblemNullUnicode.js +2 -10
  300. package/serialization/types/ProblemUnauthorized.d.ts +2 -1
  301. package/serialization/types/ProblemUnauthorized.js +2 -10
  302. package/serialization/types/ProblemUnsupportedMediaType.d.ts +4 -2
  303. package/serialization/types/ProblemUnsupportedMediaType.js +4 -11
  304. package/serialization/types/ProblemValidation.d.ts +4 -2
  305. package/serialization/types/ProblemValidation.js +4 -2
  306. package/serialization/types/Resource.d.ts +16 -9
  307. package/serialization/types/Resource.js +16 -18
  308. package/serialization/types/ResourceKind.d.ts +4 -2
  309. package/serialization/types/ResourceKind.js +4 -11
  310. package/serialization/types/Subject.d.ts +12 -0
  311. package/serialization/types/Subject.js +33 -0
  312. package/serialization/types/UploadResponse.d.ts +5 -4
  313. package/serialization/types/UploadResponse.js +5 -13
  314. package/serialization/types/index.d.ts +28 -32
  315. package/serialization/types/index.js +28 -32
  316. package/api/resources/owners/client/Client.d.ts +0 -124
  317. package/api/resources/owners/client/Client.js +0 -711
  318. package/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +0 -38
  319. package/api/resources/owners/client/requests/OwnerSearch.d.ts +0 -14
  320. package/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +0 -57
  321. package/api/resources/owners/client/requests/index.d.ts +0 -7
  322. package/api/resources/pets/client/Client.d.ts +0 -133
  323. package/api/resources/pets/client/requests/PetLatestRequest.d.ts +0 -27
  324. package/api/resources/pets/client/requests/PetRevisionRequest.d.ts +0 -27
  325. package/api/resources/pets/client/requests/PetSearch.d.ts +0 -14
  326. package/api/resources/pets/client/requests/index.d.ts +0 -9
  327. package/api/types/Checksum.d.ts +0 -22
  328. package/api/types/ChecksumAlgorithm.d.ts +0 -13
  329. package/api/types/ChecksumAlgorithm.js +0 -12
  330. package/api/types/ChecksumSha1.d.ts +0 -10
  331. package/api/types/ChecksumSha256.d.ts +0 -10
  332. package/api/types/HashCrc32C.d.ts +0 -7
  333. package/api/types/HashSha256.d.ts +0 -7
  334. package/api/types/HttpMethod.d.ts +0 -18
  335. package/api/types/HttpMethod.js +0 -17
  336. package/api/types/Owner.d.ts +0 -12
  337. package/api/types/OwnerField.d.ts +0 -19
  338. package/api/types/OwnerFilter.d.ts +0 -18
  339. package/api/types/OwnerFilterData.d.ts +0 -8
  340. package/api/types/OwnerInput.d.ts +0 -14
  341. package/api/types/OwnerList.d.ts +0 -10
  342. package/api/types/Pet.d.ts +0 -14
  343. package/api/types/PetField.d.ts +0 -20
  344. package/api/types/PetField.js +0 -19
  345. package/api/types/PetFilterData.d.ts +0 -9
  346. package/api/types/RequestedETag.d.ts +0 -12
  347. package/api/types/RequestedRevision.d.ts +0 -12
  348. package/api/types/Species.d.ts +0 -13
  349. package/api/types/Species.js +0 -11
  350. package/dist/api/resources/owners/client/Client.d.ts +0 -124
  351. package/dist/api/resources/owners/client/Client.js +0 -711
  352. package/dist/api/resources/owners/client/requests/OwnerCreateRequest.d.ts +0 -38
  353. package/dist/api/resources/owners/client/requests/OwnerHistoryRequest.d.ts +0 -27
  354. package/dist/api/resources/owners/client/requests/OwnerLatestRequest.d.ts +0 -27
  355. package/dist/api/resources/owners/client/requests/OwnerRevisionRequest.d.ts +0 -27
  356. package/dist/api/resources/owners/client/requests/OwnerSearch.d.ts +0 -14
  357. package/dist/api/resources/owners/client/requests/OwnerUpdateRequest.d.ts +0 -57
  358. package/dist/api/resources/owners/client/requests/index.d.ts +0 -7
  359. package/dist/api/resources/owners/client/requests/index.js +0 -2
  360. package/dist/api/resources/pets/client/Client.d.ts +0 -133
  361. package/dist/api/resources/pets/client/requests/PetHistoryRequest.d.ts +0 -27
  362. package/dist/api/resources/pets/client/requests/PetLatestRequest.d.ts +0 -27
  363. package/dist/api/resources/pets/client/requests/PetRevisionRequest.d.ts +0 -27
  364. package/dist/api/resources/pets/client/requests/PetSearch.d.ts +0 -14
  365. package/dist/api/resources/pets/client/requests/index.d.ts +0 -9
  366. package/dist/api/resources/pets/client/requests/index.js +0 -2
  367. package/dist/api/types/Checksum.d.ts +0 -22
  368. package/dist/api/types/ChecksumAlgorithm.d.ts +0 -13
  369. package/dist/api/types/ChecksumAlgorithm.js +0 -12
  370. package/dist/api/types/ChecksumCrc32.d.ts +0 -10
  371. package/dist/api/types/ChecksumCrc32C.d.ts +0 -10
  372. package/dist/api/types/ChecksumSha1.d.ts +0 -10
  373. package/dist/api/types/ChecksumSha256.d.ts +0 -10
  374. package/dist/api/types/HashCrc32C.d.ts +0 -7
  375. package/dist/api/types/HashSha256.d.ts +0 -7
  376. package/dist/api/types/HttpMethod.d.ts +0 -18
  377. package/dist/api/types/HttpMethod.js +0 -17
  378. package/dist/api/types/Owner.d.ts +0 -12
  379. package/dist/api/types/OwnerField.d.ts +0 -19
  380. package/dist/api/types/OwnerFilterData.d.ts +0 -8
  381. package/dist/api/types/OwnerInput.d.ts +0 -14
  382. package/dist/api/types/OwnerList.d.ts +0 -10
  383. package/dist/api/types/OwnerResource.d.ts +0 -19
  384. package/dist/api/types/OwnerSort.d.ts +0 -11
  385. package/dist/api/types/OwnerSort.js +0 -5
  386. package/dist/api/types/Pet.d.ts +0 -14
  387. package/dist/api/types/Pet.js +0 -5
  388. package/dist/api/types/PetField.d.ts +0 -20
  389. package/dist/api/types/PetField.js +0 -19
  390. package/dist/api/types/PetFilter.d.ts +0 -18
  391. package/dist/api/types/PetFilter.js +0 -5
  392. package/dist/api/types/PetFilterData.d.ts +0 -9
  393. package/dist/api/types/PetFilterData.js +0 -5
  394. package/dist/api/types/PetInput.js +0 -5
  395. package/dist/api/types/PetList.js +0 -5
  396. package/dist/api/types/PetResource.d.ts +0 -19
  397. package/dist/api/types/PetResource.js +0 -5
  398. package/dist/api/types/PetSort.d.ts +0 -11
  399. package/dist/api/types/PetSort.js +0 -5
  400. package/dist/api/types/ProblemResourceConflict.js +0 -5
  401. package/dist/api/types/ProblemResourceMethodNotAllowed.js +0 -5
  402. package/dist/api/types/RequestedETag.d.ts +0 -12
  403. package/dist/api/types/RequestedETag.js +0 -5
  404. package/dist/api/types/RequestedRevision.d.ts +0 -12
  405. package/dist/api/types/RequestedRevision.js +0 -5
  406. package/dist/api/types/Species.d.ts +0 -13
  407. package/dist/api/types/Species.js +0 -11
  408. package/dist/serialization/resources/owners/client/index.d.ts +0 -1
  409. package/dist/serialization/resources/owners/client/index.js +0 -17
  410. package/dist/serialization/resources/owners/client/requests/OwnerSearch.d.ts +0 -13
  411. package/dist/serialization/resources/owners/client/requests/OwnerSearch.js +0 -47
  412. package/dist/serialization/resources/owners/client/requests/index.d.ts +0 -1
  413. package/dist/serialization/resources/owners/client/requests/index.js +0 -5
  414. package/dist/serialization/resources/owners/index.d.ts +0 -1
  415. package/dist/serialization/resources/owners/index.js +0 -17
  416. package/dist/serialization/resources/pets/client/index.d.ts +0 -1
  417. package/dist/serialization/resources/pets/client/index.js +0 -17
  418. package/dist/serialization/resources/pets/client/requests/PetSearch.d.ts +0 -13
  419. package/dist/serialization/resources/pets/client/requests/PetSearch.js +0 -47
  420. package/dist/serialization/resources/pets/client/requests/UploadRequest.d.ts +0 -12
  421. package/dist/serialization/resources/pets/client/requests/UploadRequest.js +0 -42
  422. package/dist/serialization/resources/pets/client/requests/index.d.ts +0 -2
  423. package/dist/serialization/resources/pets/client/requests/index.js +0 -7
  424. package/dist/serialization/resources/pets/index.d.ts +0 -1
  425. package/dist/serialization/resources/pets/index.js +0 -17
  426. package/dist/serialization/types/Checksum.d.ts +0 -22
  427. package/dist/serialization/types/Checksum.js +0 -50
  428. package/dist/serialization/types/ChecksumAlgorithm.d.ts +0 -10
  429. package/dist/serialization/types/ChecksumCrc32.d.ts +0 -12
  430. package/dist/serialization/types/ChecksumCrc32.js +0 -42
  431. package/dist/serialization/types/ChecksumCrc32C.d.ts +0 -12
  432. package/dist/serialization/types/ChecksumSha256.d.ts +0 -12
  433. package/dist/serialization/types/HttpMethod.d.ts +0 -10
  434. package/dist/serialization/types/HttpMethod.js +0 -31
  435. package/dist/serialization/types/OwnerField.d.ts +0 -10
  436. package/dist/serialization/types/OwnerFilter.d.ts +0 -20
  437. package/dist/serialization/types/OwnerFilter.js +0 -50
  438. package/dist/serialization/types/OwnerFilterData.d.ts +0 -13
  439. package/dist/serialization/types/OwnerFilterData.js +0 -43
  440. package/dist/serialization/types/OwnerInput.d.ts +0 -14
  441. package/dist/serialization/types/OwnerInput.js +0 -44
  442. package/dist/serialization/types/OwnerList.js +0 -42
  443. package/dist/serialization/types/OwnerResource.d.ts +0 -21
  444. package/dist/serialization/types/OwnerResource.js +0 -51
  445. package/dist/serialization/types/OwnerSort.d.ts +0 -13
  446. package/dist/serialization/types/OwnerSort.js +0 -43
  447. package/dist/serialization/types/Pet.d.ts +0 -14
  448. package/dist/serialization/types/Pet.js +0 -44
  449. package/dist/serialization/types/PetField.d.ts +0 -10
  450. package/dist/serialization/types/PetFilter.d.ts +0 -20
  451. package/dist/serialization/types/PetFilter.js +0 -50
  452. package/dist/serialization/types/PetFilterData.d.ts +0 -14
  453. package/dist/serialization/types/PetFilterData.js +0 -44
  454. package/dist/serialization/types/PetInput.d.ts +0 -13
  455. package/dist/serialization/types/PetInput.js +0 -43
  456. package/dist/serialization/types/PetList.js +0 -42
  457. package/dist/serialization/types/PetResource.d.ts +0 -21
  458. package/dist/serialization/types/PetResource.js +0 -51
  459. package/dist/serialization/types/PetSort.d.ts +0 -13
  460. package/dist/serialization/types/PetSort.js +0 -43
  461. package/dist/serialization/types/ProblemResourceConflict.d.ts +0 -18
  462. package/dist/serialization/types/ProblemResourceConflict.js +0 -48
  463. package/dist/serialization/types/ProblemResourceMethodNotAllowed.d.ts +0 -19
  464. package/dist/serialization/types/ProblemResourceMethodNotAllowed.js +0 -49
  465. package/dist/serialization/types/RequestedETag.d.ts +0 -14
  466. package/dist/serialization/types/RequestedETag.js +0 -44
  467. package/dist/serialization/types/RequestedRevision.d.ts +0 -14
  468. package/dist/serialization/types/RequestedRevision.js +0 -44
  469. package/dist/serialization/types/Species.d.ts +0 -10
  470. package/dist/serialization/types/Species.js +0 -35
  471. package/jest.config.js +0 -5
  472. package/serialization/resources/owners/client/index.d.ts +0 -1
  473. package/serialization/resources/owners/client/index.js +0 -17
  474. package/serialization/resources/owners/client/requests/OwnerSearch.d.ts +0 -13
  475. package/serialization/resources/owners/client/requests/OwnerSearch.js +0 -47
  476. package/serialization/resources/owners/client/requests/index.d.ts +0 -1
  477. package/serialization/resources/owners/client/requests/index.js +0 -5
  478. package/serialization/resources/owners/index.d.ts +0 -1
  479. package/serialization/resources/owners/index.js +0 -17
  480. package/serialization/resources/pets/client/index.d.ts +0 -1
  481. package/serialization/resources/pets/client/index.js +0 -17
  482. package/serialization/resources/pets/client/requests/PetSearch.d.ts +0 -13
  483. package/serialization/resources/pets/client/requests/PetSearch.js +0 -47
  484. package/serialization/resources/pets/client/requests/UploadRequest.d.ts +0 -12
  485. package/serialization/resources/pets/client/requests/UploadRequest.js +0 -42
  486. package/serialization/resources/pets/client/requests/index.d.ts +0 -2
  487. package/serialization/resources/pets/client/requests/index.js +0 -7
  488. package/serialization/resources/pets/index.d.ts +0 -1
  489. package/serialization/resources/pets/index.js +0 -17
  490. package/serialization/types/Checksum.d.ts +0 -22
  491. package/serialization/types/Checksum.js +0 -50
  492. package/serialization/types/ChecksumAlgorithm.d.ts +0 -10
  493. package/serialization/types/ChecksumAlgorithm.js +0 -31
  494. package/serialization/types/ChecksumCrc32.d.ts +0 -12
  495. package/serialization/types/ChecksumCrc32.js +0 -42
  496. package/serialization/types/ChecksumCrc32C.d.ts +0 -12
  497. package/serialization/types/ChecksumCrc32C.js +0 -42
  498. package/serialization/types/ChecksumSha1.d.ts +0 -12
  499. package/serialization/types/ChecksumSha256.d.ts +0 -12
  500. package/serialization/types/ChecksumSha256.js +0 -42
  501. package/serialization/types/HashCrc32.d.ts +0 -10
  502. package/serialization/types/HashCrc32.js +0 -31
  503. package/serialization/types/HashCrc32C.d.ts +0 -10
  504. package/serialization/types/HashCrc32C.js +0 -31
  505. package/serialization/types/HashSha1.d.ts +0 -10
  506. package/serialization/types/HashSha1.js +0 -31
  507. package/serialization/types/HashSha256.d.ts +0 -10
  508. package/serialization/types/HashSha256.js +0 -31
  509. package/serialization/types/HttpMethod.d.ts +0 -10
  510. package/serialization/types/HttpMethod.js +0 -31
  511. package/serialization/types/OwnerField.d.ts +0 -10
  512. package/serialization/types/OwnerField.js +0 -42
  513. package/serialization/types/OwnerFilter.d.ts +0 -20
  514. package/serialization/types/OwnerFilter.js +0 -50
  515. package/serialization/types/OwnerFilterData.d.ts +0 -13
  516. package/serialization/types/OwnerFilterData.js +0 -43
  517. package/serialization/types/OwnerInput.d.ts +0 -14
  518. package/serialization/types/OwnerInput.js +0 -44
  519. package/serialization/types/OwnerList.d.ts +0 -12
  520. package/serialization/types/OwnerList.js +0 -42
  521. package/serialization/types/OwnerResource.d.ts +0 -21
  522. package/serialization/types/OwnerResource.js +0 -51
  523. package/serialization/types/OwnerSort.d.ts +0 -13
  524. package/serialization/types/OwnerSort.js +0 -43
  525. package/serialization/types/Pet.d.ts +0 -14
  526. package/serialization/types/Pet.js +0 -44
  527. package/serialization/types/PetField.d.ts +0 -10
  528. package/serialization/types/PetField.js +0 -43
  529. package/serialization/types/PetFilter.d.ts +0 -20
  530. package/serialization/types/PetFilter.js +0 -50
  531. package/serialization/types/PetFilterData.d.ts +0 -14
  532. package/serialization/types/PetFilterData.js +0 -44
  533. package/serialization/types/PetInput.d.ts +0 -13
  534. package/serialization/types/PetInput.js +0 -43
  535. package/serialization/types/PetList.js +0 -42
  536. package/serialization/types/PetResource.d.ts +0 -21
  537. package/serialization/types/PetResource.js +0 -51
  538. package/serialization/types/PetSort.d.ts +0 -13
  539. package/serialization/types/PetSort.js +0 -43
  540. package/serialization/types/ProblemResourceConflict.d.ts +0 -18
  541. package/serialization/types/ProblemResourceConflict.js +0 -48
  542. package/serialization/types/ProblemResourceMethodNotAllowed.d.ts +0 -19
  543. package/serialization/types/ProblemResourceMethodNotAllowed.js +0 -49
  544. package/serialization/types/RequestedETag.d.ts +0 -14
  545. package/serialization/types/RequestedETag.js +0 -44
  546. package/serialization/types/RequestedRevision.d.ts +0 -14
  547. package/serialization/types/RequestedRevision.js +0 -44
  548. package/serialization/types/Species.d.ts +0 -10
  549. package/serialization/types/Species.js +0 -35
  550. package/tests/client.test.ts +0 -11
  551. /package/api/resources/{owners → credentials}/client/index.d.ts +0 -0
  552. /package/api/resources/{owners → credentials}/client/index.js +0 -0
  553. /package/api/resources/{owners/client/requests/OwnerCreateRequest.js → credentials/client/requests/CredentialCreateRequest.js} +0 -0
  554. /package/api/resources/{owners/client/requests/OwnerDeleteRequest.js → credentials/client/requests/CredentialDeleteRequest.js} +0 -0
  555. /package/api/resources/{owners/client/requests/OwnerHistoryRequest.js → credentials/client/requests/CredentialDownloadRequest.js} +0 -0
  556. /package/api/resources/{owners/client/requests/OwnerLatestRequest.js → credentials/client/requests/CredentialHistoryRequest.js} +0 -0
  557. /package/api/resources/{owners/client/requests/OwnerRevisionRequest.js → credentials/client/requests/CredentialLatestRequest.js} +0 -0
  558. /package/api/resources/{owners/client/requests/OwnerSearch.js → credentials/client/requests/CredentialRestoreRequest.js} +0 -0
  559. /package/api/resources/{owners/client/requests/OwnerUpdateRequest.js → credentials/client/requests/CredentialRevisionRequest.js} +0 -0
  560. /package/api/resources/{pets/client/requests/PetCreateRequest.js → credentials/client/requests/CredentialSearch.js} +0 -0
  561. /package/api/resources/{pets/client/requests/PetDeleteRequest.js → credentials/client/requests/CredentialUpdateRequest.js} +0 -0
  562. /package/api/resources/{pets/client/requests/PetDownloadRequest.js → credentials/client/requests/CredentialUploadRequest.js} +0 -0
  563. /package/api/resources/{owners → credentials}/client/requests/index.js +0 -0
  564. /package/api/resources/{owners → credentials}/index.d.ts +0 -0
  565. /package/api/resources/{owners → credentials}/index.js +0 -0
  566. /package/api/{resources/pets/client/requests/PetHistoryRequest.js → types/Credential.js} +0 -0
  567. /package/api/{resources/pets/client/requests/PetLatestRequest.js → types/Credential11.js} +0 -0
  568. /package/api/{resources/pets/client/requests/PetRevisionRequest.js → types/Credential20.js} +0 -0
  569. /package/api/{resources/pets/client/requests/PetSearch.js → types/CredentialFilter.js} +0 -0
  570. /package/api/{resources/pets/client/requests/PetUpdateRequest.js → types/CredentialFilterData.js} +0 -0
  571. /package/api/{resources/pets/client/requests/UploadRequest.js → types/CredentialFilterKind.js} +0 -0
  572. /package/api/types/{Checksum.js → CredentialId.js} +0 -0
  573. /package/api/types/{ChecksumCrc32.js → CredentialInput.js} +0 -0
  574. /package/api/types/{ChecksumCrc32C.js → CredentialIssuer.js} +0 -0
  575. /package/api/types/{ChecksumSha1.js → CredentialList.js} +0 -0
  576. /package/api/types/{ChecksumSha256.js → CredentialResource.js} +0 -0
  577. /package/api/types/{HashCrc32.js → CredentialSort.js} +0 -0
  578. /package/api/types/{HashCrc32C.js → CredentialSubject.js} +0 -0
  579. /package/api/types/{HashSha1.js → CredentialType.js} +0 -0
  580. /package/api/types/{HashSha256.js → CredentialValidFrom.js} +0 -0
  581. /package/api/types/{Owner.js → CredentialValidUntil.js} +0 -0
  582. /package/api/types/{OwnerFilter.js → CredentilHolder.js} +0 -0
  583. /package/api/types/{OwnerFilterData.js → DataModelCredential.js} +0 -0
  584. /package/api/types/{OwnerInput.js → FilterUriEqual.js} +0 -0
  585. /package/api/types/{OwnerList.js → FilterUriIsNotNull.js} +0 -0
  586. /package/api/types/{OwnerResource.js → FilterUriIsNull.js} +0 -0
  587. /package/api/types/{OwnerSort.js → FilterUriNotEqual.js} +0 -0
  588. /package/api/types/{Pet.js → FilterUriOptional.js} +0 -0
  589. /package/api/types/{PetFilter.js → ProblemConflictResource.js} +0 -0
  590. /package/api/types/{PetFilterData.js → ProblemMethodNotAllowedResourceAlive.js} +0 -0
  591. /package/api/types/{PetInput.js → ProblemMethodNotAllowedResourceDeleted.js} +0 -0
  592. /package/api/types/{PetList.js → Subject.js} +0 -0
  593. /package/{api/resources/pets → dist/api/resources/credentials}/client/index.d.ts +0 -0
  594. /package/{api/resources/pets → dist/api/resources/credentials}/client/index.js +0 -0
  595. /package/{api/types/PetResource.js → dist/api/resources/credentials/client/requests/CredentialCreateRequest.js} +0 -0
  596. /package/{api/types/PetSort.js → dist/api/resources/credentials/client/requests/CredentialDeleteRequest.js} +0 -0
  597. /package/{api/types/ProblemResourceConflict.js → dist/api/resources/credentials/client/requests/CredentialDownloadRequest.js} +0 -0
  598. /package/{api/types/ProblemResourceMethodNotAllowed.js → dist/api/resources/credentials/client/requests/CredentialHistoryRequest.js} +0 -0
  599. /package/{api/types/RequestedETag.js → dist/api/resources/credentials/client/requests/CredentialLatestRequest.js} +0 -0
  600. /package/{api/types/RequestedRevision.js → dist/api/resources/credentials/client/requests/CredentialRestoreRequest.js} +0 -0
  601. /package/dist/api/resources/{owners/client/requests/OwnerCreateRequest.js → credentials/client/requests/CredentialRevisionRequest.js} +0 -0
  602. /package/dist/api/resources/{owners/client/requests/OwnerDeleteRequest.js → credentials/client/requests/CredentialSearch.js} +0 -0
  603. /package/dist/api/resources/{owners/client/requests/OwnerHistoryRequest.js → credentials/client/requests/CredentialUpdateRequest.js} +0 -0
  604. /package/dist/api/resources/{owners/client/requests/OwnerLatestRequest.js → credentials/client/requests/CredentialUploadRequest.js} +0 -0
  605. /package/{api/resources/pets → dist/api/resources/credentials}/client/requests/index.js +0 -0
  606. /package/{api/resources/pets → dist/api/resources/credentials}/index.d.ts +0 -0
  607. /package/{api/resources/pets → dist/api/resources/credentials}/index.js +0 -0
  608. /package/dist/api/{resources/owners/client/requests/OwnerRevisionRequest.js → types/Credential.js} +0 -0
  609. /package/dist/api/{resources/owners/client/requests/OwnerSearch.js → types/Credential11.js} +0 -0
  610. /package/dist/api/{resources/owners/client/requests/OwnerUpdateRequest.js → types/Credential20.js} +0 -0
  611. /package/dist/api/{resources/pets/client/requests/PetCreateRequest.js → types/CredentialFilter.js} +0 -0
  612. /package/dist/api/{resources/pets/client/requests/PetDeleteRequest.js → types/CredentialFilterData.js} +0 -0
  613. /package/dist/api/{resources/pets/client/requests/PetDownloadRequest.js → types/CredentialFilterKind.js} +0 -0
  614. /package/dist/api/{resources/pets/client/requests/PetHistoryRequest.js → types/CredentialId.js} +0 -0
  615. /package/dist/api/{resources/pets/client/requests/PetLatestRequest.js → types/CredentialInput.js} +0 -0
  616. /package/dist/api/{resources/pets/client/requests/PetRevisionRequest.js → types/CredentialIssuer.js} +0 -0
  617. /package/dist/api/{resources/pets/client/requests/PetSearch.js → types/CredentialList.js} +0 -0
  618. /package/dist/api/{resources/pets/client/requests/PetUpdateRequest.js → types/CredentialResource.js} +0 -0
  619. /package/dist/api/{resources/pets/client/requests/UploadRequest.js → types/CredentialSort.js} +0 -0
  620. /package/dist/api/types/{Checksum.js → CredentialSubject.js} +0 -0
  621. /package/dist/api/types/{ChecksumCrc32.js → CredentialType.js} +0 -0
  622. /package/dist/api/types/{ChecksumCrc32C.js → CredentialValidFrom.js} +0 -0
  623. /package/dist/api/types/{ChecksumSha1.js → CredentialValidUntil.js} +0 -0
  624. /package/dist/api/types/{ChecksumSha256.js → CredentilHolder.js} +0 -0
  625. /package/dist/api/types/{HashCrc32.js → DataModelCredential.js} +0 -0
  626. /package/dist/api/types/{HashCrc32C.js → FilterUriEqual.js} +0 -0
  627. /package/dist/api/types/{HashSha1.js → FilterUriIsNotNull.js} +0 -0
  628. /package/dist/api/types/{HashSha256.js → FilterUriIsNull.js} +0 -0
  629. /package/dist/api/types/{Owner.js → FilterUriNotEqual.js} +0 -0
  630. /package/dist/api/types/{OwnerFilter.js → FilterUriOptional.js} +0 -0
  631. /package/dist/api/types/{OwnerFilterData.js → ProblemConflictResource.js} +0 -0
  632. /package/dist/api/types/{OwnerInput.js → ProblemMethodNotAllowedResourceAlive.js} +0 -0
  633. /package/dist/api/types/{OwnerList.js → ProblemMethodNotAllowedResourceDeleted.js} +0 -0
  634. /package/dist/api/types/{OwnerResource.js → Subject.js} +0 -0
  635. /package/dist/{api/resources/owners → serialization/resources/credentials}/client/index.d.ts +0 -0
  636. /package/dist/{api/resources/owners → serialization/resources/credentials}/client/index.js +0 -0
  637. /package/dist/{api/resources/owners → serialization/resources/credentials}/index.d.ts +0 -0
  638. /package/dist/{api/resources/owners → serialization/resources/credentials}/index.js +0 -0
  639. /package/{dist/api/resources/pets → serialization/resources/credentials}/client/index.d.ts +0 -0
  640. /package/{dist/api/resources/pets → serialization/resources/credentials}/client/index.js +0 -0
  641. /package/{dist/api/resources/pets → serialization/resources/credentials}/index.d.ts +0 -0
  642. /package/{dist/api/resources/pets → serialization/resources/credentials}/index.js +0 -0
@@ -1,711 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.Owners = void 0;
42
- const environments = __importStar(require("../../../../environments"));
43
- const core = __importStar(require("../../../../core"));
44
- const Truvity = __importStar(require("../../.."));
45
- const serializers = __importStar(require("../../../../serialization"));
46
- const url_join_1 = __importDefault(require("url-join"));
47
- const errors = __importStar(require("../../../../errors"));
48
- /**
49
- * Owners API for RESTful PetStore.
50
- */
51
- class Owners {
52
- constructor(_options = {}) {
53
- this._options = _options;
54
- }
55
- /**
56
- * Create owner's resource.
57
- * @throws {@link Truvity.BadRequestError}
58
- * @throws {@link Truvity.UnauthorizedError}
59
- * @throws {@link Truvity.ForbiddenError}
60
- * @throws {@link Truvity.InternalServerError}
61
- *
62
- * @example
63
- * await truvity.owners.ownerCreate({
64
- * body: {
65
- * data: {
66
- * firstName: "first_name",
67
- * lastName: "last_name"
68
- * }
69
- * }
70
- * })
71
- */
72
- ownerCreate(request, requestOptions) {
73
- var _a, _b;
74
- return __awaiter(this, void 0, void 0, function* () {
75
- const { idempotencyKey, body: _body } = request;
76
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners"),
78
- method: "POST",
79
- headers: {
80
- "X-Fern-Language": "JavaScript",
81
- "X-Fern-SDK-Name": "@truvity/sdk",
82
- "X-Fern-SDK-Version": "0.0.1",
83
- "X-Fern-Runtime": core.RUNTIME.type,
84
- "X-Fern-Runtime-Version": core.RUNTIME.version,
85
- "Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
86
- },
87
- contentType: "application/json",
88
- body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
89
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
- });
92
- if (_response.ok) {
93
- return yield serializers.OwnerResource.parseOrThrow(_response.body, {
94
- unrecognizedObjectKeys: "passthrough",
95
- allowUnrecognizedUnionMembers: true,
96
- allowUnrecognizedEnumValues: true,
97
- breadcrumbsPrefix: ["response"],
98
- });
99
- }
100
- if (_response.error.reason === "status-code") {
101
- switch (_response.error.statusCode) {
102
- case 400:
103
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
104
- unrecognizedObjectKeys: "passthrough",
105
- allowUnrecognizedUnionMembers: true,
106
- allowUnrecognizedEnumValues: true,
107
- breadcrumbsPrefix: ["response"],
108
- }));
109
- case 401:
110
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
111
- unrecognizedObjectKeys: "passthrough",
112
- allowUnrecognizedUnionMembers: true,
113
- allowUnrecognizedEnumValues: true,
114
- breadcrumbsPrefix: ["response"],
115
- }));
116
- case 403:
117
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
118
- unrecognizedObjectKeys: "passthrough",
119
- allowUnrecognizedUnionMembers: true,
120
- allowUnrecognizedEnumValues: true,
121
- breadcrumbsPrefix: ["response"],
122
- }));
123
- case 500:
124
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
125
- unrecognizedObjectKeys: "passthrough",
126
- allowUnrecognizedUnionMembers: true,
127
- allowUnrecognizedEnumValues: true,
128
- breadcrumbsPrefix: ["response"],
129
- }));
130
- default:
131
- throw new errors.TruvityError({
132
- statusCode: _response.error.statusCode,
133
- body: _response.error.body,
134
- });
135
- }
136
- }
137
- switch (_response.error.reason) {
138
- case "non-json":
139
- throw new errors.TruvityError({
140
- statusCode: _response.error.statusCode,
141
- body: _response.error.rawBody,
142
- });
143
- case "timeout":
144
- throw new errors.TruvityTimeoutError();
145
- case "unknown":
146
- throw new errors.TruvityError({
147
- message: _response.error.errorMessage,
148
- });
149
- }
150
- });
151
- }
152
- /**
153
- * Take a look at [GET with body payload](https://opensource.zalando.com/restful-api-guidelines/#get-with-body)
154
- *
155
- * - no resources created: Returns all owners matching the query passed as request input payload.
156
- * @throws {@link Truvity.BadRequestError}
157
- * @throws {@link Truvity.UnauthorizedError}
158
- * @throws {@link Truvity.ForbiddenError}
159
- * @throws {@link Truvity.InternalServerError}
160
- *
161
- * @example
162
- * await truvity.owners.ownerSearch()
163
- */
164
- ownerSearch(request = {}, requestOptions) {
165
- var _a, _b;
166
- return __awaiter(this, void 0, void 0, function* () {
167
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
168
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "owners/search"),
169
- method: "POST",
170
- headers: {
171
- "X-Fern-Language": "JavaScript",
172
- "X-Fern-SDK-Name": "@truvity/sdk",
173
- "X-Fern-SDK-Version": "0.0.1",
174
- "X-Fern-Runtime": core.RUNTIME.type,
175
- "X-Fern-Runtime-Version": core.RUNTIME.version,
176
- },
177
- contentType: "application/json",
178
- body: yield serializers.OwnerSearch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
179
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
180
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
181
- });
182
- if (_response.ok) {
183
- return yield serializers.OwnerList.parseOrThrow(_response.body, {
184
- unrecognizedObjectKeys: "passthrough",
185
- allowUnrecognizedUnionMembers: true,
186
- allowUnrecognizedEnumValues: true,
187
- breadcrumbsPrefix: ["response"],
188
- });
189
- }
190
- if (_response.error.reason === "status-code") {
191
- switch (_response.error.statusCode) {
192
- case 400:
193
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
194
- unrecognizedObjectKeys: "passthrough",
195
- allowUnrecognizedUnionMembers: true,
196
- allowUnrecognizedEnumValues: true,
197
- breadcrumbsPrefix: ["response"],
198
- }));
199
- case 401:
200
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
201
- unrecognizedObjectKeys: "passthrough",
202
- allowUnrecognizedUnionMembers: true,
203
- allowUnrecognizedEnumValues: true,
204
- breadcrumbsPrefix: ["response"],
205
- }));
206
- case 403:
207
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
208
- unrecognizedObjectKeys: "passthrough",
209
- allowUnrecognizedUnionMembers: true,
210
- allowUnrecognizedEnumValues: true,
211
- breadcrumbsPrefix: ["response"],
212
- }));
213
- case 500:
214
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
215
- unrecognizedObjectKeys: "passthrough",
216
- allowUnrecognizedUnionMembers: true,
217
- allowUnrecognizedEnumValues: true,
218
- breadcrumbsPrefix: ["response"],
219
- }));
220
- default:
221
- throw new errors.TruvityError({
222
- statusCode: _response.error.statusCode,
223
- body: _response.error.body,
224
- });
225
- }
226
- }
227
- switch (_response.error.reason) {
228
- case "non-json":
229
- throw new errors.TruvityError({
230
- statusCode: _response.error.statusCode,
231
- body: _response.error.rawBody,
232
- });
233
- case "timeout":
234
- throw new errors.TruvityTimeoutError();
235
- case "unknown":
236
- throw new errors.TruvityError({
237
- message: _response.error.errorMessage,
238
- });
239
- }
240
- });
241
- }
242
- /**
243
- * Read the latest revision of the owner's resource.
244
- * @throws {@link Truvity.BadRequestError}
245
- * @throws {@link Truvity.UnauthorizedError}
246
- * @throws {@link Truvity.ForbiddenError}
247
- * @throws {@link Truvity.NotFoundError}
248
- * @throws {@link Truvity.InternalServerError}
249
- *
250
- * @example
251
- * await truvity.owners.ownerLatest("id")
252
- */
253
- ownerLatest(id, request = {}, requestOptions) {
254
- var _a, _b;
255
- return __awaiter(this, void 0, void 0, function* () {
256
- const { ifNoneMatch } = request;
257
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
258
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
259
- method: "GET",
260
- headers: {
261
- "X-Fern-Language": "JavaScript",
262
- "X-Fern-SDK-Name": "@truvity/sdk",
263
- "X-Fern-SDK-Version": "0.0.1",
264
- "X-Fern-Runtime": core.RUNTIME.type,
265
- "X-Fern-Runtime-Version": core.RUNTIME.version,
266
- "If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
267
- },
268
- contentType: "application/json",
269
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
270
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
271
- });
272
- if (_response.ok) {
273
- return yield serializers.OwnerResource.parseOrThrow(_response.body, {
274
- unrecognizedObjectKeys: "passthrough",
275
- allowUnrecognizedUnionMembers: true,
276
- allowUnrecognizedEnumValues: true,
277
- breadcrumbsPrefix: ["response"],
278
- });
279
- }
280
- if (_response.error.reason === "status-code") {
281
- switch (_response.error.statusCode) {
282
- case 400:
283
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
284
- unrecognizedObjectKeys: "passthrough",
285
- allowUnrecognizedUnionMembers: true,
286
- allowUnrecognizedEnumValues: true,
287
- breadcrumbsPrefix: ["response"],
288
- }));
289
- case 401:
290
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
291
- unrecognizedObjectKeys: "passthrough",
292
- allowUnrecognizedUnionMembers: true,
293
- allowUnrecognizedEnumValues: true,
294
- breadcrumbsPrefix: ["response"],
295
- }));
296
- case 403:
297
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
298
- unrecognizedObjectKeys: "passthrough",
299
- allowUnrecognizedUnionMembers: true,
300
- allowUnrecognizedEnumValues: true,
301
- breadcrumbsPrefix: ["response"],
302
- }));
303
- case 404:
304
- throw new Truvity.NotFoundError(_response.error.body);
305
- case 500:
306
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
307
- unrecognizedObjectKeys: "passthrough",
308
- allowUnrecognizedUnionMembers: true,
309
- allowUnrecognizedEnumValues: true,
310
- breadcrumbsPrefix: ["response"],
311
- }));
312
- default:
313
- throw new errors.TruvityError({
314
- statusCode: _response.error.statusCode,
315
- body: _response.error.body,
316
- });
317
- }
318
- }
319
- switch (_response.error.reason) {
320
- case "non-json":
321
- throw new errors.TruvityError({
322
- statusCode: _response.error.statusCode,
323
- body: _response.error.rawBody,
324
- });
325
- case "timeout":
326
- throw new errors.TruvityTimeoutError();
327
- case "unknown":
328
- throw new errors.TruvityError({
329
- message: _response.error.errorMessage,
330
- });
331
- }
332
- });
333
- }
334
- /**
335
- * Update owner's resource.
336
- * @throws {@link Truvity.BadRequestError}
337
- * @throws {@link Truvity.UnauthorizedError}
338
- * @throws {@link Truvity.ForbiddenError}
339
- * @throws {@link Truvity.NotFoundError}
340
- * @throws {@link Truvity.InternalServerError}
341
- *
342
- * @example
343
- * await truvity.owners.ownerUpdate("id", {
344
- * ifMatch: "If-Match",
345
- * body: {
346
- * data: {
347
- * firstName: "first_name",
348
- * lastName: "last_name"
349
- * }
350
- * }
351
- * })
352
- */
353
- ownerUpdate(id, request, requestOptions) {
354
- var _a, _b;
355
- return __awaiter(this, void 0, void 0, function* () {
356
- const { idempotencyKey, ifMatch, body: _body } = request;
357
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
358
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
359
- method: "PUT",
360
- headers: {
361
- "X-Fern-Language": "JavaScript",
362
- "X-Fern-SDK-Name": "@truvity/sdk",
363
- "X-Fern-SDK-Version": "0.0.1",
364
- "X-Fern-Runtime": core.RUNTIME.type,
365
- "X-Fern-Runtime-Version": core.RUNTIME.version,
366
- "Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
367
- "If-Match": ifMatch,
368
- },
369
- contentType: "application/json",
370
- body: yield serializers.OwnerInput.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
371
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
372
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
373
- });
374
- if (_response.ok) {
375
- return yield serializers.OwnerResource.parseOrThrow(_response.body, {
376
- unrecognizedObjectKeys: "passthrough",
377
- allowUnrecognizedUnionMembers: true,
378
- allowUnrecognizedEnumValues: true,
379
- breadcrumbsPrefix: ["response"],
380
- });
381
- }
382
- if (_response.error.reason === "status-code") {
383
- switch (_response.error.statusCode) {
384
- case 400:
385
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
386
- unrecognizedObjectKeys: "passthrough",
387
- allowUnrecognizedUnionMembers: true,
388
- allowUnrecognizedEnumValues: true,
389
- breadcrumbsPrefix: ["response"],
390
- }));
391
- case 401:
392
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
393
- unrecognizedObjectKeys: "passthrough",
394
- allowUnrecognizedUnionMembers: true,
395
- allowUnrecognizedEnumValues: true,
396
- breadcrumbsPrefix: ["response"],
397
- }));
398
- case 403:
399
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
400
- unrecognizedObjectKeys: "passthrough",
401
- allowUnrecognizedUnionMembers: true,
402
- allowUnrecognizedEnumValues: true,
403
- breadcrumbsPrefix: ["response"],
404
- }));
405
- case 404:
406
- throw new Truvity.NotFoundError(_response.error.body);
407
- case 500:
408
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
409
- unrecognizedObjectKeys: "passthrough",
410
- allowUnrecognizedUnionMembers: true,
411
- allowUnrecognizedEnumValues: true,
412
- breadcrumbsPrefix: ["response"],
413
- }));
414
- default:
415
- throw new errors.TruvityError({
416
- statusCode: _response.error.statusCode,
417
- body: _response.error.body,
418
- });
419
- }
420
- }
421
- switch (_response.error.reason) {
422
- case "non-json":
423
- throw new errors.TruvityError({
424
- statusCode: _response.error.statusCode,
425
- body: _response.error.rawBody,
426
- });
427
- case "timeout":
428
- throw new errors.TruvityTimeoutError();
429
- case "unknown":
430
- throw new errors.TruvityError({
431
- message: _response.error.errorMessage,
432
- });
433
- }
434
- });
435
- }
436
- /**
437
- * Delete owner's resource.
438
- * @throws {@link Truvity.BadRequestError}
439
- * @throws {@link Truvity.UnauthorizedError}
440
- * @throws {@link Truvity.ForbiddenError}
441
- * @throws {@link Truvity.NotFoundError}
442
- * @throws {@link Truvity.InternalServerError}
443
- *
444
- * @example
445
- * await truvity.owners.ownerDelete("id", {
446
- * ifMatch: "If-Match"
447
- * })
448
- */
449
- ownerDelete(id, request, requestOptions) {
450
- var _a, _b;
451
- return __awaiter(this, void 0, void 0, function* () {
452
- const { idempotencyKey, ifMatch } = request;
453
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
454
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}`),
455
- method: "DELETE",
456
- headers: {
457
- "X-Fern-Language": "JavaScript",
458
- "X-Fern-SDK-Name": "@truvity/sdk",
459
- "X-Fern-SDK-Version": "0.0.1",
460
- "X-Fern-Runtime": core.RUNTIME.type,
461
- "X-Fern-Runtime-Version": core.RUNTIME.version,
462
- "Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined,
463
- "If-Match": ifMatch,
464
- },
465
- contentType: "application/json",
466
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
467
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
468
- });
469
- if (_response.ok) {
470
- return;
471
- }
472
- if (_response.error.reason === "status-code") {
473
- switch (_response.error.statusCode) {
474
- case 400:
475
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
476
- unrecognizedObjectKeys: "passthrough",
477
- allowUnrecognizedUnionMembers: true,
478
- allowUnrecognizedEnumValues: true,
479
- breadcrumbsPrefix: ["response"],
480
- }));
481
- case 401:
482
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
483
- unrecognizedObjectKeys: "passthrough",
484
- allowUnrecognizedUnionMembers: true,
485
- allowUnrecognizedEnumValues: true,
486
- breadcrumbsPrefix: ["response"],
487
- }));
488
- case 403:
489
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
490
- unrecognizedObjectKeys: "passthrough",
491
- allowUnrecognizedUnionMembers: true,
492
- allowUnrecognizedEnumValues: true,
493
- breadcrumbsPrefix: ["response"],
494
- }));
495
- case 404:
496
- throw new Truvity.NotFoundError(_response.error.body);
497
- case 500:
498
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
499
- unrecognizedObjectKeys: "passthrough",
500
- allowUnrecognizedUnionMembers: true,
501
- allowUnrecognizedEnumValues: true,
502
- breadcrumbsPrefix: ["response"],
503
- }));
504
- default:
505
- throw new errors.TruvityError({
506
- statusCode: _response.error.statusCode,
507
- body: _response.error.body,
508
- });
509
- }
510
- }
511
- switch (_response.error.reason) {
512
- case "non-json":
513
- throw new errors.TruvityError({
514
- statusCode: _response.error.statusCode,
515
- body: _response.error.rawBody,
516
- });
517
- case "timeout":
518
- throw new errors.TruvityTimeoutError();
519
- case "unknown":
520
- throw new errors.TruvityError({
521
- message: _response.error.errorMessage,
522
- });
523
- }
524
- });
525
- }
526
- /**
527
- * History of the owners' resources.
528
- * @throws {@link Truvity.BadRequestError}
529
- * @throws {@link Truvity.UnauthorizedError}
530
- * @throws {@link Truvity.ForbiddenError}
531
- * @throws {@link Truvity.NotFoundError}
532
- * @throws {@link Truvity.InternalServerError}
533
- *
534
- * @example
535
- * await truvity.owners.ownerHistory("id")
536
- */
537
- ownerHistory(id, request = {}, requestOptions) {
538
- var _a, _b;
539
- return __awaiter(this, void 0, void 0, function* () {
540
- const { ifNoneMatch } = request;
541
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
542
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions`),
543
- method: "GET",
544
- headers: {
545
- "X-Fern-Language": "JavaScript",
546
- "X-Fern-SDK-Name": "@truvity/sdk",
547
- "X-Fern-SDK-Version": "0.0.1",
548
- "X-Fern-Runtime": core.RUNTIME.type,
549
- "X-Fern-Runtime-Version": core.RUNTIME.version,
550
- "If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
551
- },
552
- contentType: "application/json",
553
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
554
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
555
- });
556
- if (_response.ok) {
557
- return yield serializers.OwnerList.parseOrThrow(_response.body, {
558
- unrecognizedObjectKeys: "passthrough",
559
- allowUnrecognizedUnionMembers: true,
560
- allowUnrecognizedEnumValues: true,
561
- breadcrumbsPrefix: ["response"],
562
- });
563
- }
564
- if (_response.error.reason === "status-code") {
565
- switch (_response.error.statusCode) {
566
- case 400:
567
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
568
- unrecognizedObjectKeys: "passthrough",
569
- allowUnrecognizedUnionMembers: true,
570
- allowUnrecognizedEnumValues: true,
571
- breadcrumbsPrefix: ["response"],
572
- }));
573
- case 401:
574
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
575
- unrecognizedObjectKeys: "passthrough",
576
- allowUnrecognizedUnionMembers: true,
577
- allowUnrecognizedEnumValues: true,
578
- breadcrumbsPrefix: ["response"],
579
- }));
580
- case 403:
581
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
582
- unrecognizedObjectKeys: "passthrough",
583
- allowUnrecognizedUnionMembers: true,
584
- allowUnrecognizedEnumValues: true,
585
- breadcrumbsPrefix: ["response"],
586
- }));
587
- case 404:
588
- throw new Truvity.NotFoundError(_response.error.body);
589
- case 500:
590
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
591
- unrecognizedObjectKeys: "passthrough",
592
- allowUnrecognizedUnionMembers: true,
593
- allowUnrecognizedEnumValues: true,
594
- breadcrumbsPrefix: ["response"],
595
- }));
596
- default:
597
- throw new errors.TruvityError({
598
- statusCode: _response.error.statusCode,
599
- body: _response.error.body,
600
- });
601
- }
602
- }
603
- switch (_response.error.reason) {
604
- case "non-json":
605
- throw new errors.TruvityError({
606
- statusCode: _response.error.statusCode,
607
- body: _response.error.rawBody,
608
- });
609
- case "timeout":
610
- throw new errors.TruvityTimeoutError();
611
- case "unknown":
612
- throw new errors.TruvityError({
613
- message: _response.error.errorMessage,
614
- });
615
- }
616
- });
617
- }
618
- /**
619
- * Read the specific version of the owner's resource.
620
- * @throws {@link Truvity.BadRequestError}
621
- * @throws {@link Truvity.UnauthorizedError}
622
- * @throws {@link Truvity.ForbiddenError}
623
- * @throws {@link Truvity.NotFoundError}
624
- * @throws {@link Truvity.InternalServerError}
625
- *
626
- * @example
627
- * await truvity.owners.ownerRevision("id", 1)
628
- */
629
- ownerRevision(id, revision, request = {}, requestOptions) {
630
- var _a, _b;
631
- return __awaiter(this, void 0, void 0, function* () {
632
- const { ifNoneMatch } = request;
633
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
634
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `owners/${yield serializers.ResourceId.jsonOrThrow(id)}/revisions/${yield serializers.Revision.jsonOrThrow(revision)}`),
635
- method: "GET",
636
- headers: {
637
- "X-Fern-Language": "JavaScript",
638
- "X-Fern-SDK-Name": "@truvity/sdk",
639
- "X-Fern-SDK-Version": "0.0.1",
640
- "X-Fern-Runtime": core.RUNTIME.type,
641
- "X-Fern-Runtime-Version": core.RUNTIME.version,
642
- "If-None-Match": ifNoneMatch != null ? ifNoneMatch : undefined,
643
- },
644
- contentType: "application/json",
645
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
646
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
647
- });
648
- if (_response.ok) {
649
- return yield serializers.OwnerResource.parseOrThrow(_response.body, {
650
- unrecognizedObjectKeys: "passthrough",
651
- allowUnrecognizedUnionMembers: true,
652
- allowUnrecognizedEnumValues: true,
653
- breadcrumbsPrefix: ["response"],
654
- });
655
- }
656
- if (_response.error.reason === "status-code") {
657
- switch (_response.error.statusCode) {
658
- case 400:
659
- throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
660
- unrecognizedObjectKeys: "passthrough",
661
- allowUnrecognizedUnionMembers: true,
662
- allowUnrecognizedEnumValues: true,
663
- breadcrumbsPrefix: ["response"],
664
- }));
665
- case 401:
666
- throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
667
- unrecognizedObjectKeys: "passthrough",
668
- allowUnrecognizedUnionMembers: true,
669
- allowUnrecognizedEnumValues: true,
670
- breadcrumbsPrefix: ["response"],
671
- }));
672
- case 403:
673
- throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
674
- unrecognizedObjectKeys: "passthrough",
675
- allowUnrecognizedUnionMembers: true,
676
- allowUnrecognizedEnumValues: true,
677
- breadcrumbsPrefix: ["response"],
678
- }));
679
- case 404:
680
- throw new Truvity.NotFoundError(_response.error.body);
681
- case 500:
682
- throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
683
- unrecognizedObjectKeys: "passthrough",
684
- allowUnrecognizedUnionMembers: true,
685
- allowUnrecognizedEnumValues: true,
686
- breadcrumbsPrefix: ["response"],
687
- }));
688
- default:
689
- throw new errors.TruvityError({
690
- statusCode: _response.error.statusCode,
691
- body: _response.error.body,
692
- });
693
- }
694
- }
695
- switch (_response.error.reason) {
696
- case "non-json":
697
- throw new errors.TruvityError({
698
- statusCode: _response.error.statusCode,
699
- body: _response.error.rawBody,
700
- });
701
- case "timeout":
702
- throw new errors.TruvityTimeoutError();
703
- case "unknown":
704
- throw new errors.TruvityError({
705
- message: _response.error.errorMessage,
706
- });
707
- }
708
- });
709
- }
710
- }
711
- exports.Owners = Owners;