@truvity/sdk 0.27.9-rc.1 → 0.27.22

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 (304) hide show
  1. package/.dockerignore +5 -0
  2. package/.idea/aws.xml +17 -0
  3. package/.idea/codeStyles/Project.xml +47 -0
  4. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  5. package/.idea/misc.xml +6 -0
  6. package/.idea/modules.xml +8 -0
  7. package/.idea/sdk-typescript-internal.iml +9 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/Client.d.ts +6 -0
  10. package/Client.js +24 -14
  11. package/Dockerfile +11 -0
  12. package/Makefile +40 -4
  13. package/README.md +87 -0
  14. package/api/errors/index.d.ts +1 -1
  15. package/api/errors/index.js +1 -1
  16. package/api/resources/apiKeys/client/Client.d.ts +181 -0
  17. package/api/resources/apiKeys/client/Client.js +841 -0
  18. package/api/resources/apiKeys/client/index.d.ts +1 -0
  19. package/api/resources/apiKeys/client/index.js +17 -0
  20. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
  21. package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
  22. package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
  23. package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
  24. package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
  25. package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
  26. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
  27. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
  28. package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
  29. package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
  30. package/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
  31. package/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
  32. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
  33. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
  34. package/api/resources/apiKeys/client/requests/index.d.ts +8 -0
  35. package/api/resources/apiKeys/client/requests/index.js +2 -0
  36. package/api/resources/apiKeys/index.d.ts +1 -0
  37. package/api/resources/apiKeys/index.js +17 -0
  38. package/api/resources/gdpr/client/Client.d.ts +41 -0
  39. package/api/resources/gdpr/client/Client.js +142 -0
  40. package/api/resources/gdpr/client/index.d.ts +1 -0
  41. package/api/resources/gdpr/client/index.js +17 -0
  42. package/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
  43. package/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
  44. package/api/resources/gdpr/client/requests/index.d.ts +1 -0
  45. package/api/resources/gdpr/client/requests/index.js +2 -0
  46. package/api/resources/gdpr/index.d.ts +1 -0
  47. package/api/resources/gdpr/index.js +17 -0
  48. package/api/resources/index.d.ts +4 -0
  49. package/api/resources/index.js +5 -1
  50. package/api/resources/keys/client/Client.d.ts +9 -0
  51. package/api/resources/keys/client/Client.js +86 -0
  52. package/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
  53. package/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
  54. package/api/resources/keys/client/requests/index.d.ts +1 -0
  55. package/api/types/ApiKey.d.ts +11 -0
  56. package/api/types/ApiKey.js +5 -0
  57. package/api/types/ApiKeyCreateOutput.d.ts +10 -0
  58. package/api/types/ApiKeyCreateOutput.js +5 -0
  59. package/api/types/ApiKeyField.d.ts +17 -0
  60. package/api/types/ApiKeyField.js +16 -0
  61. package/api/types/ApiKeyFilter.d.ts +18 -0
  62. package/api/types/ApiKeyFilter.js +5 -0
  63. package/api/types/ApiKeyFilterData.d.ts +8 -0
  64. package/api/types/ApiKeyFilterData.js +5 -0
  65. package/api/types/ApiKeyFull.d.ts +9 -0
  66. package/api/types/ApiKeyFull.js +5 -0
  67. package/api/types/ApiKeyInput.d.ts +13 -0
  68. package/api/types/ApiKeyInput.js +5 -0
  69. package/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
  70. package/api/types/ApiKeyList.js +5 -0
  71. package/api/types/ApiKeyResource.d.ts +10 -0
  72. package/api/types/ApiKeyResource.js +5 -0
  73. package/api/types/ApiKeySecret.d.ts +10 -0
  74. package/api/types/ApiKeySecret.js +5 -0
  75. package/api/types/ApiKeySort.d.ts +11 -0
  76. package/api/types/ApiKeySort.js +5 -0
  77. package/api/types/Draft.d.ts +10 -0
  78. package/api/types/Draft.js +5 -0
  79. package/api/types/DraftFilterData.d.ts +2 -0
  80. package/api/types/DraftFind.d.ts +4 -0
  81. package/api/types/DraftInput.d.ts +1 -1
  82. package/api/types/SubjectId.d.ts +7 -0
  83. package/api/types/SubjectId.js +5 -0
  84. package/api/types/SupportRequestType.d.ts +13 -0
  85. package/api/types/SupportRequestType.js +12 -0
  86. package/api/types/index.d.ts +14 -1
  87. package/api/types/index.js +14 -1
  88. package/dist/Client.d.ts +6 -0
  89. package/dist/Client.js +24 -14
  90. package/dist/api/errors/index.d.ts +1 -1
  91. package/dist/api/errors/index.js +1 -1
  92. package/dist/api/resources/apiKeys/client/Client.d.ts +181 -0
  93. package/dist/api/resources/apiKeys/client/Client.js +841 -0
  94. package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
  95. package/dist/api/resources/apiKeys/client/index.js +17 -0
  96. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
  97. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js +5 -0
  98. package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
  99. package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js +5 -0
  100. package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
  101. package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
  102. package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
  103. package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
  104. package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
  105. package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
  106. package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
  107. package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
  108. package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
  109. package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
  110. package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
  111. package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
  112. package/dist/api/resources/apiKeys/client/requests/index.d.ts +8 -0
  113. package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
  114. package/dist/api/resources/apiKeys/index.d.ts +1 -0
  115. package/dist/api/resources/apiKeys/index.js +17 -0
  116. package/dist/api/resources/gdpr/client/Client.d.ts +41 -0
  117. package/dist/api/resources/gdpr/client/Client.js +142 -0
  118. package/dist/api/resources/gdpr/client/index.d.ts +1 -0
  119. package/dist/api/resources/gdpr/client/index.js +17 -0
  120. package/dist/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
  121. package/dist/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
  122. package/dist/api/resources/gdpr/client/requests/index.d.ts +1 -0
  123. package/dist/api/resources/gdpr/client/requests/index.js +2 -0
  124. package/dist/api/resources/gdpr/index.d.ts +1 -0
  125. package/dist/api/resources/gdpr/index.js +17 -0
  126. package/dist/api/resources/index.d.ts +4 -0
  127. package/dist/api/resources/index.js +5 -1
  128. package/dist/api/resources/keys/client/Client.d.ts +9 -0
  129. package/dist/api/resources/keys/client/Client.js +86 -0
  130. package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
  131. package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
  132. package/dist/api/resources/keys/client/requests/index.d.ts +1 -0
  133. package/dist/api/types/ApiKey.d.ts +11 -0
  134. package/dist/api/types/ApiKey.js +5 -0
  135. package/dist/api/types/ApiKeyCreateOutput.d.ts +10 -0
  136. package/dist/api/types/ApiKeyCreateOutput.js +5 -0
  137. package/dist/api/types/ApiKeyField.d.ts +17 -0
  138. package/dist/api/types/ApiKeyField.js +16 -0
  139. package/dist/api/types/ApiKeyFilter.d.ts +18 -0
  140. package/dist/api/types/ApiKeyFilter.js +5 -0
  141. package/dist/api/types/ApiKeyFilterData.d.ts +8 -0
  142. package/dist/api/types/ApiKeyFilterData.js +5 -0
  143. package/dist/api/types/ApiKeyFull.d.ts +9 -0
  144. package/dist/api/types/ApiKeyFull.js +5 -0
  145. package/dist/api/types/ApiKeyInput.d.ts +13 -0
  146. package/dist/api/types/ApiKeyInput.js +5 -0
  147. package/dist/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
  148. package/dist/api/types/ApiKeyList.js +5 -0
  149. package/dist/api/types/ApiKeyResource.d.ts +10 -0
  150. package/dist/api/types/ApiKeyResource.js +5 -0
  151. package/dist/api/types/ApiKeySecret.d.ts +10 -0
  152. package/dist/api/types/ApiKeySecret.js +5 -0
  153. package/dist/api/types/ApiKeySort.d.ts +11 -0
  154. package/dist/api/types/ApiKeySort.js +5 -0
  155. package/dist/api/types/Draft.d.ts +10 -0
  156. package/dist/api/types/Draft.js +5 -0
  157. package/dist/api/types/DraftFilterData.d.ts +2 -0
  158. package/dist/api/types/DraftFind.d.ts +4 -0
  159. package/dist/api/types/DraftInput.d.ts +1 -1
  160. package/dist/api/types/SubjectId.d.ts +7 -0
  161. package/dist/api/types/SubjectId.js +5 -0
  162. package/dist/api/types/SupportRequestType.d.ts +13 -0
  163. package/dist/api/types/SupportRequestType.js +12 -0
  164. package/dist/api/types/index.d.ts +14 -1
  165. package/dist/api/types/index.js +14 -1
  166. package/dist/documents/credential/draft.d.ts +3 -3
  167. package/dist/documents/credential/flavor.js +9 -0
  168. package/dist/documents/credential/flavor.spec.js +6 -0
  169. package/dist/documents/credential.d.ts +9 -2
  170. package/dist/documents/credential.js +81 -25
  171. package/dist/documents/types.d.ts +6 -1
  172. package/dist/serialization/resources/apiKeys/client/index.d.ts +1 -0
  173. package/dist/serialization/resources/apiKeys/client/index.js +17 -0
  174. package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
  175. package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
  176. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  177. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  178. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  179. package/dist/serialization/resources/apiKeys/index.js +17 -0
  180. package/dist/serialization/resources/gdpr/client/index.d.ts +1 -0
  181. package/dist/serialization/resources/gdpr/client/index.js +17 -0
  182. package/dist/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
  183. package/dist/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
  184. package/dist/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
  185. package/dist/serialization/resources/gdpr/client/requests/index.js +5 -0
  186. package/dist/serialization/resources/gdpr/index.d.ts +1 -0
  187. package/dist/serialization/resources/gdpr/index.js +17 -0
  188. package/dist/serialization/resources/index.d.ts +5 -1
  189. package/dist/serialization/resources/index.js +6 -2
  190. package/dist/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
  191. package/dist/serialization/resources/keys/client/didcommMessageSign.js +31 -0
  192. package/dist/serialization/resources/keys/client/index.d.ts +1 -0
  193. package/dist/serialization/resources/keys/client/index.js +14 -0
  194. package/dist/serialization/types/ApiKey.d.ts +15 -0
  195. package/dist/serialization/types/ApiKey.js +36 -0
  196. package/dist/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
  197. package/dist/serialization/types/ApiKeyCreateOutput.js +37 -0
  198. package/dist/serialization/types/ApiKeyField.d.ts +10 -0
  199. package/dist/serialization/types/ApiKeyField.js +40 -0
  200. package/dist/serialization/types/ApiKeyFilter.d.ts +28 -0
  201. package/dist/serialization/types/ApiKeyFilter.js +49 -0
  202. package/dist/serialization/types/ApiKeyFilterData.d.ts +15 -0
  203. package/dist/serialization/types/ApiKeyFilterData.js +36 -0
  204. package/dist/serialization/types/ApiKeyFull.d.ts +13 -0
  205. package/dist/serialization/types/ApiKeyFull.js +33 -0
  206. package/dist/serialization/types/ApiKeyInput.d.ts +15 -0
  207. package/dist/serialization/types/ApiKeyInput.js +36 -0
  208. package/dist/serialization/types/ApiKeyList.d.ts +13 -0
  209. package/dist/serialization/types/ApiKeyList.js +34 -0
  210. package/dist/serialization/types/ApiKeyResource.d.ts +14 -0
  211. package/dist/serialization/types/ApiKeyResource.js +37 -0
  212. package/dist/serialization/types/ApiKeySecret.d.ts +12 -0
  213. package/dist/serialization/types/ApiKeySecret.js +33 -0
  214. package/dist/serialization/types/ApiKeySort.d.ts +15 -0
  215. package/dist/serialization/types/ApiKeySort.js +36 -0
  216. package/dist/serialization/types/Draft.d.ts +14 -0
  217. package/dist/serialization/types/{DraftInputData.js → Draft.js} +7 -3
  218. package/dist/serialization/types/DraftFilterData.d.ts +3 -0
  219. package/dist/serialization/types/DraftFilterData.js +3 -0
  220. package/dist/serialization/types/DraftFind.d.ts +3 -0
  221. package/dist/serialization/types/DraftFind.js +3 -0
  222. package/dist/serialization/types/DraftInput.d.ts +2 -2
  223. package/dist/serialization/types/DraftInput.js +2 -2
  224. package/dist/serialization/types/SubjectId.d.ts +10 -0
  225. package/dist/serialization/types/SubjectId.js +31 -0
  226. package/dist/serialization/types/SupportRequestType.d.ts +10 -0
  227. package/dist/serialization/types/SupportRequestType.js +31 -0
  228. package/dist/serialization/types/index.d.ts +14 -1
  229. package/dist/serialization/types/index.js +14 -1
  230. package/documents/credential/draft.d.ts +3 -3
  231. package/documents/credential/flavor.js +9 -0
  232. package/documents/credential/flavor.spec.js +6 -0
  233. package/documents/credential.d.ts +9 -2
  234. package/documents/credential.js +81 -25
  235. package/documents/types.d.ts +6 -1
  236. package/jest.config.js +25 -0
  237. package/package.json +9 -3
  238. package/publish.sh +11 -2
  239. package/sdk.yaml +689 -14
  240. package/serialization/resources/apiKeys/client/index.d.ts +1 -0
  241. package/serialization/resources/apiKeys/client/index.js +17 -0
  242. package/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
  243. package/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
  244. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  245. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  246. package/serialization/resources/apiKeys/index.d.ts +1 -0
  247. package/serialization/resources/apiKeys/index.js +17 -0
  248. package/serialization/resources/gdpr/client/index.d.ts +1 -0
  249. package/serialization/resources/gdpr/client/index.js +17 -0
  250. package/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
  251. package/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
  252. package/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
  253. package/serialization/resources/gdpr/client/requests/index.js +5 -0
  254. package/serialization/resources/gdpr/index.d.ts +1 -0
  255. package/serialization/resources/gdpr/index.js +17 -0
  256. package/serialization/resources/index.d.ts +5 -1
  257. package/serialization/resources/index.js +6 -2
  258. package/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
  259. package/serialization/resources/keys/client/didcommMessageSign.js +31 -0
  260. package/serialization/resources/keys/client/index.d.ts +1 -0
  261. package/serialization/resources/keys/client/index.js +14 -0
  262. package/serialization/types/ApiKey.d.ts +15 -0
  263. package/serialization/types/ApiKey.js +36 -0
  264. package/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
  265. package/serialization/types/ApiKeyCreateOutput.js +37 -0
  266. package/serialization/types/ApiKeyField.d.ts +10 -0
  267. package/serialization/types/ApiKeyField.js +40 -0
  268. package/serialization/types/ApiKeyFilter.d.ts +28 -0
  269. package/serialization/types/ApiKeyFilter.js +49 -0
  270. package/serialization/types/ApiKeyFilterData.d.ts +15 -0
  271. package/serialization/types/ApiKeyFilterData.js +36 -0
  272. package/serialization/types/ApiKeyFull.d.ts +13 -0
  273. package/serialization/types/ApiKeyFull.js +33 -0
  274. package/serialization/types/ApiKeyInput.d.ts +15 -0
  275. package/serialization/types/ApiKeyInput.js +36 -0
  276. package/serialization/types/ApiKeyList.d.ts +13 -0
  277. package/serialization/types/ApiKeyList.js +34 -0
  278. package/serialization/types/ApiKeyResource.d.ts +14 -0
  279. package/serialization/types/ApiKeyResource.js +37 -0
  280. package/serialization/types/ApiKeySecret.d.ts +12 -0
  281. package/serialization/types/ApiKeySecret.js +33 -0
  282. package/serialization/types/ApiKeySort.d.ts +15 -0
  283. package/serialization/types/ApiKeySort.js +36 -0
  284. package/serialization/types/Draft.d.ts +14 -0
  285. package/serialization/types/{DraftInputData.js → Draft.js} +7 -3
  286. package/serialization/types/DraftFilterData.d.ts +3 -0
  287. package/serialization/types/DraftFilterData.js +3 -0
  288. package/serialization/types/DraftFind.d.ts +3 -0
  289. package/serialization/types/DraftFind.js +3 -0
  290. package/serialization/types/DraftInput.d.ts +2 -2
  291. package/serialization/types/DraftInput.js +2 -2
  292. package/serialization/types/SubjectId.d.ts +10 -0
  293. package/serialization/types/SubjectId.js +31 -0
  294. package/serialization/types/SupportRequestType.d.ts +10 -0
  295. package/serialization/types/SupportRequestType.js +31 -0
  296. package/serialization/types/index.d.ts +14 -1
  297. package/serialization/types/index.js +14 -1
  298. package/tsconfig.base.json +11 -0
  299. package/tsconfig.sdk.json +15 -0
  300. package/variables.mk +5 -0
  301. package/dist/serialization/types/DraftInputData.d.ts +0 -13
  302. package/serialization/types/DraftInputData.d.ts +0 -13
  303. /package/api/{types/DraftInputData.js → resources/apiKeys/client/requests/ApiKeyCreateRequest.js} +0 -0
  304. /package/{dist/api/types/DraftInputData.js → api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js} +0 -0
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * Create or update api-key's resource.
7
+ * If `labels` or `annotations` are omitted in an create request, the default empty object (`{}`) will be used.
8
+ * If `labels` or `annotations` are omitted in an update request, the current values remain untouched. Providing specific values updates the resoruce accordingly, while an empty object (`{}`) for either field clears its stored data.
9
+ */
10
+ export interface ApiKeyInput {
11
+ annotations?: Truvity.Annotations;
12
+ labels?: Truvity.Labels;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,5 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Truvity from "../index";
5
- export interface DraftInputData extends Truvity.DraftFind, Truvity.DraftShow {
5
+ export interface ApiKeyList {
6
+ items: Truvity.ApiKeyResource[];
6
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * The api-key's resource (with general for all resources' fields).
7
+ */
8
+ export interface ApiKeyResource extends Truvity.Resource {
9
+ data: Truvity.ApiKey;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * API Key - secret part.
6
+ */
7
+ export interface ApiKeySecret {
8
+ /** Secret part of the API Key. */
9
+ secret: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * Sort of the api-keys' resources.
7
+ */
8
+ export interface ApiKeySort {
9
+ field: Truvity.ApiKeyField;
10
+ order?: Truvity.SortOrder;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * The Draft resource representation that used for Create/Update operations.
7
+ */
8
+ export interface Draft extends Truvity.DraftShow {
9
+ meta?: Truvity.DraftMeta;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,5 +3,7 @@
3
3
  */
4
4
  import * as Truvity from "../index";
5
5
  export interface DraftFilterData {
6
+ linkedCredentials?: Truvity.FilterArrayOptional;
7
+ linkedDrafts?: Truvity.FilterArrayOptional;
6
8
  meta?: Truvity.DraftFilterDataMeta;
7
9
  }
@@ -6,5 +6,9 @@ import * as Truvity from "../index";
6
6
  * The fields that will be used only in the Filter request.
7
7
  */
8
8
  export interface DraftFind {
9
+ /** A list of linked credentials. */
10
+ linkedCredentials?: Truvity.Uri[];
11
+ /** A list of linked drafts. */
12
+ linkedDrafts?: Truvity.Uri[];
9
13
  meta?: Truvity.DraftMeta;
10
14
  }
@@ -8,7 +8,7 @@ import * as Truvity from "../index";
8
8
  * If `labels` or `annotations` are omitted in an update request, the current values remain untouched. Providing specific values updates the resoruce accordingly, while an empty object (`{}`) for either field clears its stored data.
9
9
  */
10
10
  export interface DraftInput {
11
- data: Truvity.DraftInputData;
11
+ data: Truvity.Draft;
12
12
  annotations?: Truvity.Annotations;
13
13
  labels?: Truvity.Labels;
14
14
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * SubjectID of API Key.
6
+ */
7
+ export declare type SubjectId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Support request type.
6
+ */
7
+ export declare type SupportRequestType = "DATA_DUMP" | "DELETION" | "OTHER" | "RECTIFICATION";
8
+ export declare const SupportRequestType: {
9
+ readonly DataDump: "DATA_DUMP";
10
+ readonly Deletion: "DELETION";
11
+ readonly Other: "OTHER";
12
+ readonly Rectification: "RECTIFICATION";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SupportRequestType = void 0;
7
+ exports.SupportRequestType = {
8
+ DataDump: "DATA_DUMP",
9
+ Deletion: "DELETION",
10
+ Other: "OTHER",
11
+ Rectification: "RECTIFICATION",
12
+ };
@@ -3,6 +3,17 @@ export * from "./NotFoundErrorBody";
3
3
  export * from "./AnnotationKey";
4
4
  export * from "./AnnotationValue";
5
5
  export * from "./Annotations";
6
+ export * from "./ApiKey";
7
+ export * from "./ApiKeyCreateOutput";
8
+ export * from "./ApiKeyField";
9
+ export * from "./ApiKeyFilterData";
10
+ export * from "./ApiKeyFilter";
11
+ export * from "./ApiKeyFull";
12
+ export * from "./ApiKeyInput";
13
+ export * from "./ApiKeyList";
14
+ export * from "./ApiKeyResource";
15
+ export * from "./ApiKeySecret";
16
+ export * from "./ApiKeySort";
6
17
  export * from "./BlobId";
7
18
  export * from "./ContentType";
8
19
  export * from "./Credential";
@@ -43,6 +54,7 @@ export * from "./DidcommMessageSend";
43
54
  export * from "./DidcommMessageShow";
44
55
  export * from "./DidcommMessageSort";
45
56
  export * from "./Download";
57
+ export * from "./Draft";
46
58
  export * from "./DraftBaseFieldValue";
47
59
  export * from "./DraftEnumValue";
48
60
  export * from "./DraftField";
@@ -70,7 +82,6 @@ export * from "./DraftFilterDataMeta";
70
82
  export * from "./DraftFilterData";
71
83
  export * from "./DraftFilter";
72
84
  export * from "./DraftFind";
73
- export * from "./DraftInputData";
74
85
  export * from "./DraftInput";
75
86
  export * from "./DraftIssueAndExport";
76
87
  export * from "./DraftList";
@@ -203,6 +214,8 @@ export * from "./ResourceVersion";
203
214
  export * from "./Revision";
204
215
  export * from "./Service";
205
216
  export * from "./SortOrder";
217
+ export * from "./SubjectId";
218
+ export * from "./SupportRequestType";
206
219
  export * from "./Timestamp";
207
220
  export * from "./Uri";
208
221
  export * from "./UriReference";
@@ -19,6 +19,17 @@ __exportStar(require("./NotFoundErrorBody"), exports);
19
19
  __exportStar(require("./AnnotationKey"), exports);
20
20
  __exportStar(require("./AnnotationValue"), exports);
21
21
  __exportStar(require("./Annotations"), exports);
22
+ __exportStar(require("./ApiKey"), exports);
23
+ __exportStar(require("./ApiKeyCreateOutput"), exports);
24
+ __exportStar(require("./ApiKeyField"), exports);
25
+ __exportStar(require("./ApiKeyFilterData"), exports);
26
+ __exportStar(require("./ApiKeyFilter"), exports);
27
+ __exportStar(require("./ApiKeyFull"), exports);
28
+ __exportStar(require("./ApiKeyInput"), exports);
29
+ __exportStar(require("./ApiKeyList"), exports);
30
+ __exportStar(require("./ApiKeyResource"), exports);
31
+ __exportStar(require("./ApiKeySecret"), exports);
32
+ __exportStar(require("./ApiKeySort"), exports);
22
33
  __exportStar(require("./BlobId"), exports);
23
34
  __exportStar(require("./ContentType"), exports);
24
35
  __exportStar(require("./Credential"), exports);
@@ -59,6 +70,7 @@ __exportStar(require("./DidcommMessageSend"), exports);
59
70
  __exportStar(require("./DidcommMessageShow"), exports);
60
71
  __exportStar(require("./DidcommMessageSort"), exports);
61
72
  __exportStar(require("./Download"), exports);
73
+ __exportStar(require("./Draft"), exports);
62
74
  __exportStar(require("./DraftBaseFieldValue"), exports);
63
75
  __exportStar(require("./DraftEnumValue"), exports);
64
76
  __exportStar(require("./DraftField"), exports);
@@ -86,7 +98,6 @@ __exportStar(require("./DraftFilterDataMeta"), exports);
86
98
  __exportStar(require("./DraftFilterData"), exports);
87
99
  __exportStar(require("./DraftFilter"), exports);
88
100
  __exportStar(require("./DraftFind"), exports);
89
- __exportStar(require("./DraftInputData"), exports);
90
101
  __exportStar(require("./DraftInput"), exports);
91
102
  __exportStar(require("./DraftIssueAndExport"), exports);
92
103
  __exportStar(require("./DraftList"), exports);
@@ -219,6 +230,8 @@ __exportStar(require("./ResourceVersion"), exports);
219
230
  __exportStar(require("./Revision"), exports);
220
231
  __exportStar(require("./Service"), exports);
221
232
  __exportStar(require("./SortOrder"), exports);
233
+ __exportStar(require("./SubjectId"), exports);
234
+ __exportStar(require("./SupportRequestType"), exports);
222
235
  __exportStar(require("./Timestamp"), exports);
223
236
  __exportStar(require("./Uri"), exports);
224
237
  __exportStar(require("./UriReference"), exports);
@@ -1,17 +1,17 @@
1
- import type { ApiClient, Claims, UpdatePayload, ReadDraftClaims, CredentialMetadata, CredentialDescriptor, UserUpdateClaims, DraftDataDescriptor } from "../types";
1
+ import type { ApiClient, Claims, UpdatePayload, ReadDraftClaims, CredentialDescriptor, UserUpdateClaims, DraftDataDescriptor, DraftMetadata } from "../types";
2
2
  import { CredentialFlavor } from "./flavor";
3
3
  import { CredentialDocument } from "./document";
4
4
  import { VerifiableCredential } from "./issued";
5
5
  export declare type UpdatePayloadWithClaims<T extends Claims> = UpdatePayload & {
6
6
  claims?: UserUpdateClaims<T>;
7
- metadata?: CredentialMetadata;
7
+ metadata?: DraftMetadata;
8
8
  };
9
9
  export declare class DraftCredential<T extends Claims> extends CredentialDocument<T> {
10
10
  private draftData;
11
11
  descriptor: CredentialDescriptor;
12
12
  constructor(client: ApiClient, flavor: CredentialFlavor<T>, draftData: DraftDataDescriptor, descriptor: CredentialDescriptor);
13
13
  getClaims(): Promise<ReadDraftClaims<T>>;
14
- getMetaData(): Promise<CredentialMetadata>;
14
+ getMetaData(): Promise<DraftMetadata>;
15
15
  update(request: UpdatePayloadWithClaims<T>): Promise<DraftCredential<T>>;
16
16
  issue(privateKeyId: string): Promise<VerifiableCredential<T>>;
17
17
  }
@@ -57,7 +57,16 @@ class CredentialFlavor {
57
57
  getMetadata(blob) {
58
58
  return __awaiter(this, void 0, void 0, function* () {
59
59
  const credential = this.blobToJson(blob);
60
+ if (!credential.id)
61
+ throw new Error(`Issued credential is missing the 'id' information`);
62
+ if (!credential.issuer)
63
+ throw new Error(`Issued credential is missing the 'issuer' information`);
64
+ if (!credential.issuanceDate)
65
+ throw new Error(`Issued credential is missing the 'issuanceDate' information`);
60
66
  return {
67
+ id: credential.id,
68
+ issuer: credential.issuer,
69
+ issuanceDate: new Date(credential.issuanceDate),
61
70
  subject: credential.credentialSubject.id,
62
71
  expirationDate: credential.expirationDate ? new Date(credential.expirationDate) : undefined,
63
72
  };
@@ -62,6 +62,9 @@ TestCredentialSubject = __decorate([
62
62
  const jsonToBlob = (input) => Buffer.from(JSON.stringify(input), "utf8");
63
63
  const testBlobJson = {
64
64
  credentialSubject: { type: "TestCredentialSubject" },
65
+ id: "id",
66
+ issuer: "issuer",
67
+ issuanceDate: new Date().toISOString(),
65
68
  };
66
69
  const testBlob = jsonToBlob(testBlobJson);
67
70
  describe("CredentialFlavor", () => {
@@ -77,6 +80,9 @@ describe("CredentialFlavor", () => {
77
80
  expect(metadata).toEqual({
78
81
  subject: undefined,
79
82
  expirationDate: undefined,
83
+ id: testBlobJson.id,
84
+ issuanceDate: new Date(testBlobJson.issuanceDate),
85
+ issuer: testBlobJson.issuer,
80
86
  });
81
87
  }));
82
88
  });
@@ -2,7 +2,7 @@ import type { ApiClient, Claims, Ctor, UpdatePayload, CredentialBlob } from "./t
2
2
  import { CredentialFlavor } from "./credential/flavor";
3
3
  import { DraftCredential } from "./credential/draft";
4
4
  import { VerifiableCredential } from "./credential/issued";
5
- import { DraftShowSchema } from "../api";
5
+ import { DraftResource, DraftShowSchema, CredentialResource } from "../api";
6
6
  export declare type CredentialEnvelope<T extends Claims> = {
7
7
  isVerifiable: false;
8
8
  credential: DraftCredential<T>;
@@ -18,11 +18,18 @@ export declare class VcDecorator<T extends Claims> {
18
18
  readonly flavor: CredentialFlavor<T>;
19
19
  constructor(client: ApiClient, claimsModel: Ctor<T>);
20
20
  protected createCredentialFlavor(claimsModel: Ctor<T>): CredentialFlavor<T>;
21
+ getIri(): string;
22
+ getCredentialTerm(): string;
23
+ canMap(input: DraftResource | CredentialResource): boolean;
24
+ map(input: CredentialResource): Promise<VerifiableCredential<T>>;
25
+ map(input: DraftResource): Promise<DraftCredential<T>>;
21
26
  private importBlob;
22
27
  private convertClaimDescriptorToDraftBaseFieldValue;
23
28
  private mapClaimToApi;
24
29
  protected getDraftSchema(): DraftShowSchema | undefined;
25
30
  create(request?: UpdatePayload): Promise<DraftCredential<T>>;
31
+ loadAsDraft(id: string, revision?: number): Promise<DraftCredential<T>>;
32
+ loadAsCredential(id: string, revision?: number): Promise<VerifiableCredential<T>>;
26
33
  load(id: string, revision?: number): Promise<LoadedCredential<T>>;
27
- import(blob: CredentialBlob, request?: UpdatePayload): Promise<LoadedCredential<T>>;
34
+ import(blob: CredentialBlob, request?: UpdatePayload): Promise<VerifiableCredential<T>>;
28
35
  }
@@ -29,6 +29,58 @@ class VcDecorator {
29
29
  createCredentialFlavor(claimsModel) {
30
30
  return new flavor_1.CredentialFlavor(claimsModel);
31
31
  }
32
+ getIri() {
33
+ const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
34
+ if (!vcContextMetadata)
35
+ throw new Error(`Can't find IRI information. Make sure you have defined the claims model with the @VcContext decorator`);
36
+ return `${vcContextMetadata.namespace}#${vcContextMetadata.name}`;
37
+ }
38
+ getCredentialTerm() {
39
+ const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
40
+ if (!vcContextMetadata)
41
+ throw new Error(`Can't find credential term information. Make sure you have defined the claims model with the @VcContext decorator`);
42
+ return `${vcContextMetadata.name}Credential`;
43
+ }
44
+ canMap(input) {
45
+ var _a;
46
+ if ("type" in input.data) {
47
+ // CredentialResource
48
+ if (input.data.type.includes(this.getCredentialTerm())) {
49
+ return true;
50
+ }
51
+ }
52
+ else {
53
+ // DraftResource
54
+ const vcContextMetadata = (0, decorators_1.getContextJsonLdMetadata)(this.claimsModel);
55
+ if (!vcContextMetadata)
56
+ throw new Error(`Can't find IRI information. Make sure you have defined the claims model with the @VcContext decorator`);
57
+ if (((_a = input.data.schema) === null || _a === void 0 ? void 0 : _a.vocabName) === vcContextMetadata.name &&
58
+ input.data.schema.vocabNamespace === vcContextMetadata.namespace) {
59
+ return true;
60
+ }
61
+ }
62
+ return false;
63
+ }
64
+ map(input) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ if ("type" in input.data) {
67
+ // CredentialResource
68
+ if (!this.canMap(input)) {
69
+ throw new Error(`The received CredentialResource is incompatible with the current VcDecorator instance claims model`);
70
+ }
71
+ const response = yield this.client.credentials.credentialDownload(input.id, input.revision);
72
+ const blob = yield (0, streamUtils_1.buffer)(response);
73
+ return new issued_1.VerifiableCredential(this.client, this.flavor, blob, input);
74
+ }
75
+ else {
76
+ // DraftResource
77
+ if (!this.canMap(input)) {
78
+ throw new Error(`The received DraftResource is incompatible with the current VcDecorator instance claims model`);
79
+ }
80
+ return new draft_1.DraftCredential(this.client, this.flavor, input.data, input);
81
+ }
82
+ });
83
+ }
32
84
  importBlob(blob, request) {
33
85
  return __awaiter(this, void 0, void 0, function* () {
34
86
  const { blobId, uploadUri } = yield this.client.credentials.credentialUpload();
@@ -136,54 +188,58 @@ class VcDecorator {
136
188
  return new draft_1.DraftCredential(this.client, this.flavor, data, { id, etag, revision });
137
189
  });
138
190
  }
191
+ loadAsDraft(id, revision) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ const draftResource = revision
194
+ ? yield this.client.drafts.draftRevision(id, revision)
195
+ : yield this.client.drafts.draftLatest(id);
196
+ const draftCredential = yield this.map(draftResource);
197
+ return draftCredential;
198
+ });
199
+ }
200
+ loadAsCredential(id, revision) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ const credentialResource = revision
203
+ ? yield this.client.credentials.credentialRevision(id, revision)
204
+ : yield this.client.credentials.credentialLatest(id);
205
+ const verifiableCredential = yield this.map(credentialResource);
206
+ return verifiableCredential;
207
+ });
208
+ }
139
209
  load(id, revision) {
140
210
  return __awaiter(this, void 0, void 0, function* () {
141
- let credential;
142
- let draftResource;
211
+ let verifiableCredential;
212
+ let draftCredential;
143
213
  try {
144
- const credentialResource = revision
145
- ? yield this.client.credentials.credentialRevision(id, revision)
146
- : yield this.client.credentials.credentialLatest(id);
147
- credential = {
148
- id: credentialResource.id,
149
- etag: credentialResource.etag,
150
- revision: credentialResource.revision,
151
- };
214
+ verifiableCredential = yield this.loadAsCredential(id, revision);
152
215
  }
153
216
  catch (error) {
154
217
  if (error instanceof api_1.NotFoundError) {
155
- draftResource = revision
156
- ? yield this.client.drafts.draftRevision(id, revision)
157
- : yield this.client.drafts.draftLatest(id);
158
- credential = {
159
- id: draftResource.id,
160
- etag: draftResource.etag,
161
- revision: draftResource.revision,
162
- };
218
+ draftCredential = yield this.loadAsDraft(id, revision);
163
219
  }
164
220
  else
165
221
  throw error;
166
222
  }
167
- if (!draftResource) {
168
- const response = yield this.client.credentials.credentialDownload(id, credential.revision);
169
- const blob = yield (0, streamUtils_1.buffer)(response);
223
+ if (!draftCredential) {
224
+ if (!verifiableCredential)
225
+ throw new Error(`Resource with id '${id}' could not be found.`);
170
226
  return {
171
227
  isVerifiable: true,
172
- credential: new issued_1.VerifiableCredential(this.client, this.flavor, blob, credential),
228
+ credential: verifiableCredential,
173
229
  };
174
230
  }
175
231
  else {
176
232
  return {
177
233
  isVerifiable: false,
178
- credential: new draft_1.DraftCredential(this.client, this.flavor, draftResource.data, draftResource),
234
+ credential: draftCredential,
179
235
  };
180
236
  }
181
237
  });
182
238
  }
183
239
  import(blob, request) {
184
240
  return __awaiter(this, void 0, void 0, function* () {
185
- const { id, revision } = yield this.importBlob(blob, request);
186
- return this.load(id, revision);
241
+ const credential = yield this.importBlob(blob, request);
242
+ return new issued_1.VerifiableCredential(this.client, this.flavor, blob, credential);
187
243
  });
188
244
  }
189
245
  }
@@ -6,10 +6,15 @@ export declare type CredentialBlob = Buffer;
6
6
  export declare type FileBlob = Buffer;
7
7
  export declare type Did = string;
8
8
  export declare type Claims = Record<string, any>;
9
- export declare type CredentialMetadata = {
9
+ export declare type DraftMetadata = {
10
10
  subject?: string;
11
11
  expirationDate?: Date;
12
12
  };
13
+ export declare type CredentialMetadata = DraftMetadata & {
14
+ id: string;
15
+ issuer: string;
16
+ issuanceDate: Date;
17
+ };
13
18
  export declare type ValueWithId = {
14
19
  id: string;
15
20
  };
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Truvity from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { ApiKeyFilter } from "../../../../types/ApiKeyFilter";
8
+ import { ApiKeySort } from "../../../../types/ApiKeySort";
9
+ export declare const ApiKeySearch: core.serialization.Schema<serializers.ApiKeySearch.Raw, Truvity.ApiKeySearch>;
10
+ export declare namespace ApiKeySearch {
11
+ interface Raw {
12
+ filter?: ApiKeyFilter.Raw[] | null;
13
+ sort?: ApiKeySort.Raw[] | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ApiKeySearch = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const ApiKeyFilter_1 = require("../../../../types/ApiKeyFilter");
32
+ const ApiKeySort_1 = require("../../../../types/ApiKeySort");
33
+ exports.ApiKeySearch = core.serialization.object({
34
+ filter: core.serialization.list(ApiKeyFilter_1.ApiKeyFilter).optional(),
35
+ sort: core.serialization.list(ApiKeySort_1.ApiKeySort).optional(),
36
+ });
@@ -0,0 +1 @@
1
+ export { ApiKeySearch } from "./ApiKeySearch";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiKeySearch = void 0;
4
+ var ApiKeySearch_1 = require("./ApiKeySearch");
5
+ Object.defineProperty(exports, "ApiKeySearch", { enumerable: true, get: function () { return ApiKeySearch_1.ApiKeySearch; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";