@truvity/sdk 0.27.9-rc.1 → 0.27.16

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 (298) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +47 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/sdk-typescript-internal.iml +9 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/Client.d.ts +6 -0
  9. package/Client.js +24 -14
  10. package/Makefile +8 -1
  11. package/api/errors/index.d.ts +1 -1
  12. package/api/errors/index.js +1 -1
  13. package/api/resources/apiKeys/client/Client.d.ts +181 -0
  14. package/api/resources/apiKeys/client/Client.js +841 -0
  15. package/api/resources/apiKeys/client/index.d.ts +1 -0
  16. package/api/resources/apiKeys/client/index.js +17 -0
  17. package/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
  18. package/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
  19. package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
  20. package/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
  21. package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
  22. package/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
  23. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
  24. package/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
  25. package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
  26. package/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
  27. package/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
  28. package/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
  29. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
  30. package/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
  31. package/api/resources/apiKeys/client/requests/index.d.ts +8 -0
  32. package/api/resources/apiKeys/client/requests/index.js +2 -0
  33. package/api/resources/apiKeys/index.d.ts +1 -0
  34. package/api/resources/apiKeys/index.js +17 -0
  35. package/api/resources/gdpr/client/Client.d.ts +41 -0
  36. package/api/resources/gdpr/client/Client.js +142 -0
  37. package/api/resources/gdpr/client/index.d.ts +1 -0
  38. package/api/resources/gdpr/client/index.js +17 -0
  39. package/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
  40. package/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
  41. package/api/resources/gdpr/client/requests/index.d.ts +1 -0
  42. package/api/resources/gdpr/client/requests/index.js +2 -0
  43. package/api/resources/gdpr/index.d.ts +1 -0
  44. package/api/resources/gdpr/index.js +17 -0
  45. package/api/resources/index.d.ts +4 -0
  46. package/api/resources/index.js +5 -1
  47. package/api/resources/keys/client/Client.d.ts +9 -0
  48. package/api/resources/keys/client/Client.js +86 -0
  49. package/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
  50. package/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
  51. package/api/resources/keys/client/requests/index.d.ts +1 -0
  52. package/api/types/ApiKey.d.ts +11 -0
  53. package/api/types/ApiKey.js +5 -0
  54. package/api/types/ApiKeyCreateOutput.d.ts +10 -0
  55. package/api/types/ApiKeyCreateOutput.js +5 -0
  56. package/api/types/ApiKeyField.d.ts +17 -0
  57. package/api/types/ApiKeyField.js +16 -0
  58. package/api/types/ApiKeyFilter.d.ts +18 -0
  59. package/api/types/ApiKeyFilter.js +5 -0
  60. package/api/types/ApiKeyFilterData.d.ts +8 -0
  61. package/api/types/ApiKeyFilterData.js +5 -0
  62. package/api/types/ApiKeyFull.d.ts +9 -0
  63. package/api/types/ApiKeyFull.js +5 -0
  64. package/api/types/ApiKeyInput.d.ts +13 -0
  65. package/api/types/ApiKeyInput.js +5 -0
  66. package/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
  67. package/api/types/ApiKeyList.js +5 -0
  68. package/api/types/ApiKeyResource.d.ts +10 -0
  69. package/api/types/ApiKeyResource.js +5 -0
  70. package/api/types/ApiKeySecret.d.ts +10 -0
  71. package/api/types/ApiKeySecret.js +5 -0
  72. package/api/types/ApiKeySort.d.ts +11 -0
  73. package/api/types/ApiKeySort.js +5 -0
  74. package/api/types/Draft.d.ts +10 -0
  75. package/api/types/Draft.js +5 -0
  76. package/api/types/DraftFilterData.d.ts +2 -0
  77. package/api/types/DraftFind.d.ts +4 -0
  78. package/api/types/DraftInput.d.ts +1 -1
  79. package/api/types/SubjectId.d.ts +7 -0
  80. package/api/types/SubjectId.js +5 -0
  81. package/api/types/SupportRequestType.d.ts +13 -0
  82. package/api/types/SupportRequestType.js +12 -0
  83. package/api/types/index.d.ts +14 -1
  84. package/api/types/index.js +14 -1
  85. package/dist/Client.d.ts +6 -0
  86. package/dist/Client.js +24 -14
  87. package/dist/api/errors/index.d.ts +1 -1
  88. package/dist/api/errors/index.js +1 -1
  89. package/dist/api/resources/apiKeys/client/Client.d.ts +181 -0
  90. package/dist/api/resources/apiKeys/client/Client.js +841 -0
  91. package/dist/api/resources/apiKeys/client/index.d.ts +1 -0
  92. package/dist/api/resources/apiKeys/client/index.js +17 -0
  93. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.d.ts +69 -0
  94. package/dist/api/resources/apiKeys/client/requests/ApiKeyCreateRequest.js +5 -0
  95. package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.d.ts +97 -0
  96. package/dist/api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js +5 -0
  97. package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.d.ts +57 -0
  98. package/dist/api/resources/apiKeys/client/requests/ApiKeyHistoryRequest.js +5 -0
  99. package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.d.ts +57 -0
  100. package/dist/api/resources/apiKeys/client/requests/ApiKeyLatestRequest.js +5 -0
  101. package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.d.ts +97 -0
  102. package/dist/api/resources/apiKeys/client/requests/ApiKeyRestoreRequest.js +5 -0
  103. package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.d.ts +57 -0
  104. package/dist/api/resources/apiKeys/client/requests/ApiKeyRevisionRequest.js +5 -0
  105. package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.d.ts +32 -0
  106. package/dist/api/resources/apiKeys/client/requests/ApiKeySearch.js +5 -0
  107. package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.d.ts +115 -0
  108. package/dist/api/resources/apiKeys/client/requests/ApiKeyUpdateRequest.js +5 -0
  109. package/dist/api/resources/apiKeys/client/requests/index.d.ts +8 -0
  110. package/dist/api/resources/apiKeys/client/requests/index.js +2 -0
  111. package/dist/api/resources/apiKeys/index.d.ts +1 -0
  112. package/dist/api/resources/apiKeys/index.js +17 -0
  113. package/dist/api/resources/gdpr/client/Client.d.ts +41 -0
  114. package/dist/api/resources/gdpr/client/Client.js +142 -0
  115. package/dist/api/resources/gdpr/client/index.d.ts +1 -0
  116. package/dist/api/resources/gdpr/client/index.js +17 -0
  117. package/dist/api/resources/gdpr/client/requests/SupportRequest.d.ts +45 -0
  118. package/dist/api/resources/gdpr/client/requests/SupportRequest.js +5 -0
  119. package/dist/api/resources/gdpr/client/requests/index.d.ts +1 -0
  120. package/dist/api/resources/gdpr/client/requests/index.js +2 -0
  121. package/dist/api/resources/gdpr/index.d.ts +1 -0
  122. package/dist/api/resources/gdpr/index.js +17 -0
  123. package/dist/api/resources/index.d.ts +4 -0
  124. package/dist/api/resources/index.js +5 -1
  125. package/dist/api/resources/keys/client/Client.d.ts +9 -0
  126. package/dist/api/resources/keys/client/Client.js +86 -0
  127. package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.d.ts +48 -0
  128. package/dist/api/resources/keys/client/requests/DidcommMessageSignRequest.js +5 -0
  129. package/dist/api/resources/keys/client/requests/index.d.ts +1 -0
  130. package/dist/api/types/ApiKey.d.ts +11 -0
  131. package/dist/api/types/ApiKey.js +5 -0
  132. package/dist/api/types/ApiKeyCreateOutput.d.ts +10 -0
  133. package/dist/api/types/ApiKeyCreateOutput.js +5 -0
  134. package/dist/api/types/ApiKeyField.d.ts +17 -0
  135. package/dist/api/types/ApiKeyField.js +16 -0
  136. package/dist/api/types/ApiKeyFilter.d.ts +18 -0
  137. package/dist/api/types/ApiKeyFilter.js +5 -0
  138. package/dist/api/types/ApiKeyFilterData.d.ts +8 -0
  139. package/dist/api/types/ApiKeyFilterData.js +5 -0
  140. package/dist/api/types/ApiKeyFull.d.ts +9 -0
  141. package/dist/api/types/ApiKeyFull.js +5 -0
  142. package/dist/api/types/ApiKeyInput.d.ts +13 -0
  143. package/dist/api/types/ApiKeyInput.js +5 -0
  144. package/dist/api/types/{DraftInputData.d.ts → ApiKeyList.d.ts} +2 -1
  145. package/dist/api/types/ApiKeyList.js +5 -0
  146. package/dist/api/types/ApiKeyResource.d.ts +10 -0
  147. package/dist/api/types/ApiKeyResource.js +5 -0
  148. package/dist/api/types/ApiKeySecret.d.ts +10 -0
  149. package/dist/api/types/ApiKeySecret.js +5 -0
  150. package/dist/api/types/ApiKeySort.d.ts +11 -0
  151. package/dist/api/types/ApiKeySort.js +5 -0
  152. package/dist/api/types/Draft.d.ts +10 -0
  153. package/dist/api/types/Draft.js +5 -0
  154. package/dist/api/types/DraftFilterData.d.ts +2 -0
  155. package/dist/api/types/DraftFind.d.ts +4 -0
  156. package/dist/api/types/DraftInput.d.ts +1 -1
  157. package/dist/api/types/SubjectId.d.ts +7 -0
  158. package/dist/api/types/SubjectId.js +5 -0
  159. package/dist/api/types/SupportRequestType.d.ts +13 -0
  160. package/dist/api/types/SupportRequestType.js +12 -0
  161. package/dist/api/types/index.d.ts +14 -1
  162. package/dist/api/types/index.js +14 -1
  163. package/dist/documents/credential/draft.d.ts +3 -3
  164. package/dist/documents/credential/flavor.js +9 -0
  165. package/dist/documents/credential/flavor.spec.js +6 -0
  166. package/dist/documents/credential.d.ts +9 -2
  167. package/dist/documents/credential.js +81 -25
  168. package/dist/documents/types.d.ts +6 -1
  169. package/dist/serialization/resources/apiKeys/client/index.d.ts +1 -0
  170. package/dist/serialization/resources/apiKeys/client/index.js +17 -0
  171. package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
  172. package/dist/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
  173. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  174. package/dist/serialization/resources/apiKeys/client/requests/index.js +5 -0
  175. package/dist/serialization/resources/apiKeys/index.d.ts +1 -0
  176. package/dist/serialization/resources/apiKeys/index.js +17 -0
  177. package/dist/serialization/resources/gdpr/client/index.d.ts +1 -0
  178. package/dist/serialization/resources/gdpr/client/index.js +17 -0
  179. package/dist/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
  180. package/dist/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
  181. package/dist/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
  182. package/dist/serialization/resources/gdpr/client/requests/index.js +5 -0
  183. package/dist/serialization/resources/gdpr/index.d.ts +1 -0
  184. package/dist/serialization/resources/gdpr/index.js +17 -0
  185. package/dist/serialization/resources/index.d.ts +5 -1
  186. package/dist/serialization/resources/index.js +6 -2
  187. package/dist/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
  188. package/dist/serialization/resources/keys/client/didcommMessageSign.js +31 -0
  189. package/dist/serialization/resources/keys/client/index.d.ts +1 -0
  190. package/dist/serialization/resources/keys/client/index.js +14 -0
  191. package/dist/serialization/types/ApiKey.d.ts +15 -0
  192. package/dist/serialization/types/ApiKey.js +36 -0
  193. package/dist/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
  194. package/dist/serialization/types/ApiKeyCreateOutput.js +37 -0
  195. package/dist/serialization/types/ApiKeyField.d.ts +10 -0
  196. package/dist/serialization/types/ApiKeyField.js +40 -0
  197. package/dist/serialization/types/ApiKeyFilter.d.ts +28 -0
  198. package/dist/serialization/types/ApiKeyFilter.js +49 -0
  199. package/dist/serialization/types/ApiKeyFilterData.d.ts +15 -0
  200. package/dist/serialization/types/ApiKeyFilterData.js +36 -0
  201. package/dist/serialization/types/ApiKeyFull.d.ts +13 -0
  202. package/dist/serialization/types/ApiKeyFull.js +33 -0
  203. package/dist/serialization/types/ApiKeyInput.d.ts +15 -0
  204. package/dist/serialization/types/ApiKeyInput.js +36 -0
  205. package/dist/serialization/types/ApiKeyList.d.ts +13 -0
  206. package/dist/serialization/types/ApiKeyList.js +34 -0
  207. package/dist/serialization/types/ApiKeyResource.d.ts +14 -0
  208. package/dist/serialization/types/ApiKeyResource.js +37 -0
  209. package/dist/serialization/types/ApiKeySecret.d.ts +12 -0
  210. package/dist/serialization/types/ApiKeySecret.js +33 -0
  211. package/dist/serialization/types/ApiKeySort.d.ts +15 -0
  212. package/dist/serialization/types/ApiKeySort.js +36 -0
  213. package/dist/serialization/types/Draft.d.ts +14 -0
  214. package/dist/serialization/types/{DraftInputData.js → Draft.js} +7 -3
  215. package/dist/serialization/types/DraftFilterData.d.ts +3 -0
  216. package/dist/serialization/types/DraftFilterData.js +3 -0
  217. package/dist/serialization/types/DraftFind.d.ts +3 -0
  218. package/dist/serialization/types/DraftFind.js +3 -0
  219. package/dist/serialization/types/DraftInput.d.ts +2 -2
  220. package/dist/serialization/types/DraftInput.js +2 -2
  221. package/dist/serialization/types/SubjectId.d.ts +10 -0
  222. package/dist/serialization/types/SubjectId.js +31 -0
  223. package/dist/serialization/types/SupportRequestType.d.ts +10 -0
  224. package/dist/serialization/types/SupportRequestType.js +31 -0
  225. package/dist/serialization/types/index.d.ts +14 -1
  226. package/dist/serialization/types/index.js +14 -1
  227. package/documents/credential/draft.d.ts +3 -3
  228. package/documents/credential/flavor.js +9 -0
  229. package/documents/credential/flavor.spec.js +6 -0
  230. package/documents/credential.d.ts +9 -2
  231. package/documents/credential.js +81 -25
  232. package/documents/types.d.ts +6 -1
  233. package/jest.config.js +25 -0
  234. package/package.json +8 -2
  235. package/publish.sh +11 -2
  236. package/sdk.yaml +648 -9
  237. package/serialization/resources/apiKeys/client/index.d.ts +1 -0
  238. package/serialization/resources/apiKeys/client/index.js +17 -0
  239. package/serialization/resources/apiKeys/client/requests/ApiKeySearch.d.ts +15 -0
  240. package/serialization/resources/apiKeys/client/requests/ApiKeySearch.js +36 -0
  241. package/serialization/resources/apiKeys/client/requests/index.d.ts +1 -0
  242. package/serialization/resources/apiKeys/client/requests/index.js +5 -0
  243. package/serialization/resources/apiKeys/index.d.ts +1 -0
  244. package/serialization/resources/apiKeys/index.js +17 -0
  245. package/serialization/resources/gdpr/client/index.d.ts +1 -0
  246. package/serialization/resources/gdpr/client/index.js +17 -0
  247. package/serialization/resources/gdpr/client/requests/SupportRequest.d.ts +14 -0
  248. package/serialization/resources/gdpr/client/requests/SupportRequest.js +35 -0
  249. package/serialization/resources/gdpr/client/requests/index.d.ts +1 -0
  250. package/serialization/resources/gdpr/client/requests/index.js +5 -0
  251. package/serialization/resources/gdpr/index.d.ts +1 -0
  252. package/serialization/resources/gdpr/index.js +17 -0
  253. package/serialization/resources/index.d.ts +5 -1
  254. package/serialization/resources/index.js +6 -2
  255. package/serialization/resources/keys/client/didcommMessageSign.d.ts +9 -0
  256. package/serialization/resources/keys/client/didcommMessageSign.js +31 -0
  257. package/serialization/resources/keys/client/index.d.ts +1 -0
  258. package/serialization/resources/keys/client/index.js +14 -0
  259. package/serialization/types/ApiKey.d.ts +15 -0
  260. package/serialization/types/ApiKey.js +36 -0
  261. package/serialization/types/ApiKeyCreateOutput.d.ts +14 -0
  262. package/serialization/types/ApiKeyCreateOutput.js +37 -0
  263. package/serialization/types/ApiKeyField.d.ts +10 -0
  264. package/serialization/types/ApiKeyField.js +40 -0
  265. package/serialization/types/ApiKeyFilter.d.ts +28 -0
  266. package/serialization/types/ApiKeyFilter.js +49 -0
  267. package/serialization/types/ApiKeyFilterData.d.ts +15 -0
  268. package/serialization/types/ApiKeyFilterData.js +36 -0
  269. package/serialization/types/ApiKeyFull.d.ts +13 -0
  270. package/serialization/types/ApiKeyFull.js +33 -0
  271. package/serialization/types/ApiKeyInput.d.ts +15 -0
  272. package/serialization/types/ApiKeyInput.js +36 -0
  273. package/serialization/types/ApiKeyList.d.ts +13 -0
  274. package/serialization/types/ApiKeyList.js +34 -0
  275. package/serialization/types/ApiKeyResource.d.ts +14 -0
  276. package/serialization/types/ApiKeyResource.js +37 -0
  277. package/serialization/types/ApiKeySecret.d.ts +12 -0
  278. package/serialization/types/ApiKeySecret.js +33 -0
  279. package/serialization/types/ApiKeySort.d.ts +15 -0
  280. package/serialization/types/ApiKeySort.js +36 -0
  281. package/serialization/types/Draft.d.ts +14 -0
  282. package/serialization/types/{DraftInputData.js → Draft.js} +7 -3
  283. package/serialization/types/DraftFilterData.d.ts +3 -0
  284. package/serialization/types/DraftFilterData.js +3 -0
  285. package/serialization/types/DraftFind.d.ts +3 -0
  286. package/serialization/types/DraftFind.js +3 -0
  287. package/serialization/types/DraftInput.d.ts +2 -2
  288. package/serialization/types/DraftInput.js +2 -2
  289. package/serialization/types/SubjectId.d.ts +10 -0
  290. package/serialization/types/SubjectId.js +31 -0
  291. package/serialization/types/SupportRequestType.d.ts +10 -0
  292. package/serialization/types/SupportRequestType.js +31 -0
  293. package/serialization/types/index.d.ts +14 -1
  294. package/serialization/types/index.js +14 -1
  295. package/dist/serialization/types/DraftInputData.d.ts +0 -13
  296. package/serialization/types/DraftInputData.d.ts +0 -13
  297. /package/api/{types/DraftInputData.js → resources/apiKeys/client/requests/ApiKeyCreateRequest.js} +0 -0
  298. /package/{dist/api/types/DraftInputData.js → api/resources/apiKeys/client/requests/ApiKeyDeleteRequest.js} +0 -0
@@ -0,0 +1,41 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Truvity from "../../../index";
7
+ export declare namespace Gdpr {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.TruvityEnvironment | string>;
10
+ apiKey: core.Supplier<string>;
11
+ fetcher?: core.FetchFunction;
12
+ }
13
+ interface RequestOptions {
14
+ timeoutInSeconds?: number;
15
+ maxRetries?: number;
16
+ }
17
+ }
18
+ /**
19
+ * The Truvity's Admin Panel API.
20
+ */
21
+ export declare class Gdpr {
22
+ protected readonly _options: Gdpr.Options;
23
+ constructor(_options: Gdpr.Options);
24
+ /**
25
+ * Creates request to support.
26
+ * @throws {@link Truvity.BadRequestError}
27
+ * @throws {@link Truvity.UnauthorizedError}
28
+ * @throws {@link Truvity.ForbiddenError}
29
+ * @throws {@link Truvity.InternalServerError}
30
+ *
31
+ * @example
32
+ * await truvity.gdpr.supportRequestCreate({
33
+ * type: Truvity.SupportRequestType.DataDump,
34
+ * message: "message"
35
+ * })
36
+ */
37
+ supportRequestCreate(request: Truvity.SupportRequest, requestOptions?: Gdpr.RequestOptions): Promise<void>;
38
+ protected _getCustomAuthorizationHeaders(): Promise<{
39
+ "X-API-KEY": string;
40
+ }>;
41
+ }
@@ -0,0 +1,142 @@
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.Gdpr = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const Truvity = __importStar(require("../../../index"));
45
+ const serializers = __importStar(require("../../../../serialization/index"));
46
+ const url_join_1 = __importDefault(require("url-join"));
47
+ const errors = __importStar(require("../../../../errors/index"));
48
+ /**
49
+ * The Truvity's Admin Panel API.
50
+ */
51
+ class Gdpr {
52
+ constructor(_options) {
53
+ this._options = _options;
54
+ }
55
+ /**
56
+ * Creates request to support.
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.gdpr.supportRequestCreate({
64
+ * type: Truvity.SupportRequestType.DataDump,
65
+ * message: "message"
66
+ * })
67
+ */
68
+ supportRequestCreate(request, requestOptions) {
69
+ var _a, _b;
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, "support-requests"),
73
+ method: "POST",
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@truvity/sdk", "X-Fern-SDK-Version": "0.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ contentType: "application/json",
76
+ body: yield serializers.SupportRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
77
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
78
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
79
+ });
80
+ if (_response.ok) {
81
+ return;
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ switch (_response.error.statusCode) {
85
+ case 400:
86
+ throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ breadcrumbsPrefix: ["response"],
91
+ }));
92
+ case 401:
93
+ throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ breadcrumbsPrefix: ["response"],
98
+ }));
99
+ case 403:
100
+ throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
101
+ unrecognizedObjectKeys: "passthrough",
102
+ allowUnrecognizedUnionMembers: true,
103
+ allowUnrecognizedEnumValues: true,
104
+ breadcrumbsPrefix: ["response"],
105
+ }));
106
+ case 500:
107
+ throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
108
+ unrecognizedObjectKeys: "passthrough",
109
+ allowUnrecognizedUnionMembers: true,
110
+ allowUnrecognizedEnumValues: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }));
113
+ default:
114
+ throw new errors.TruvityError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.body,
117
+ });
118
+ }
119
+ }
120
+ switch (_response.error.reason) {
121
+ case "non-json":
122
+ throw new errors.TruvityError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.rawBody,
125
+ });
126
+ case "timeout":
127
+ throw new errors.TruvityTimeoutError();
128
+ case "unknown":
129
+ throw new errors.TruvityError({
130
+ message: _response.error.errorMessage,
131
+ });
132
+ }
133
+ });
134
+ }
135
+ _getCustomAuthorizationHeaders() {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
138
+ return { "X-API-KEY": apiKeyValue };
139
+ });
140
+ }
141
+ }
142
+ exports.Gdpr = Gdpr;
@@ -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,45 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * type: Truvity.SupportRequestType.DataDump,
9
+ * message: "message"
10
+ * }
11
+ *
12
+ * @example
13
+ * {
14
+ * type: Truvity.SupportRequestType.DataDump,
15
+ * message: "message"
16
+ * }
17
+ *
18
+ * @example
19
+ * {
20
+ * type: Truvity.SupportRequestType.DataDump,
21
+ * message: "message"
22
+ * }
23
+ *
24
+ * @example
25
+ * {
26
+ * type: Truvity.SupportRequestType.DataDump,
27
+ * message: "message"
28
+ * }
29
+ *
30
+ * @example
31
+ * {
32
+ * type: Truvity.SupportRequestType.DataDump,
33
+ * message: "message"
34
+ * }
35
+ *
36
+ * @example
37
+ * {
38
+ * type: Truvity.SupportRequestType.DataDump,
39
+ * message: "message"
40
+ * }
41
+ */
42
+ export interface SupportRequest {
43
+ type: Truvity.SupportRequestType;
44
+ message: string;
45
+ }
@@ -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 @@
1
+ export { type SupportRequest } from "./SupportRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -1,13 +1,17 @@
1
+ export * as apiKeys from "./apiKeys";
1
2
  export * as credentials from "./credentials";
2
3
  export * as didcommMessages from "./didcommMessages";
3
4
  export * as drafts from "./drafts";
4
5
  export * as files from "./files";
5
6
  export * as keys from "./keys";
6
7
  export * as presentations from "./presentations";
8
+ export * as gdpr from "./gdpr";
7
9
  export * as desk from "./desk";
10
+ export * from "./apiKeys/client/requests";
8
11
  export * from "./credentials/client/requests";
9
12
  export * from "./didcommMessages/client/requests";
10
13
  export * from "./drafts/client/requests";
11
14
  export * from "./files/client/requests";
12
15
  export * from "./keys/client/requests";
13
16
  export * from "./presentations/client/requests";
17
+ export * from "./gdpr/client/requests";
@@ -26,17 +26,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.desk = exports.presentations = exports.keys = exports.files = exports.drafts = exports.didcommMessages = exports.credentials = void 0;
29
+ exports.desk = exports.gdpr = exports.presentations = exports.keys = exports.files = exports.drafts = exports.didcommMessages = exports.credentials = exports.apiKeys = void 0;
30
+ exports.apiKeys = __importStar(require("./apiKeys"));
30
31
  exports.credentials = __importStar(require("./credentials"));
31
32
  exports.didcommMessages = __importStar(require("./didcommMessages"));
32
33
  exports.drafts = __importStar(require("./drafts"));
33
34
  exports.files = __importStar(require("./files"));
34
35
  exports.keys = __importStar(require("./keys"));
35
36
  exports.presentations = __importStar(require("./presentations"));
37
+ exports.gdpr = __importStar(require("./gdpr"));
36
38
  exports.desk = __importStar(require("./desk"));
39
+ __exportStar(require("./apiKeys/client/requests"), exports);
37
40
  __exportStar(require("./credentials/client/requests"), exports);
38
41
  __exportStar(require("./didcommMessages/client/requests"), exports);
39
42
  __exportStar(require("./drafts/client/requests"), exports);
40
43
  __exportStar(require("./files/client/requests"), exports);
41
44
  __exportStar(require("./keys/client/requests"), exports);
42
45
  __exportStar(require("./presentations/client/requests"), exports);
46
+ __exportStar(require("./gdpr/client/requests"), exports);
@@ -267,6 +267,15 @@ export declare class Keys {
267
267
  * @throws {@link Truvity.InternalServerError}
268
268
  */
269
269
  credentialSign(id: Truvity.ResourceId, request: Truvity.CredentialSignRequest, requestOptions?: Keys.RequestOptions): Promise<stream.Readable>;
270
+ /**
271
+ * Sign DIDCOMM Message Plaintext.
272
+ * @throws {@link Truvity.BadRequestError}
273
+ * @throws {@link Truvity.UnauthorizedError}
274
+ * @throws {@link Truvity.ForbiddenError}
275
+ * @throws {@link Truvity.NotFoundError}
276
+ * @throws {@link Truvity.InternalServerError}
277
+ */
278
+ didcommMessageSign(id: Truvity.ResourceId, request: Truvity.DidcommMessageSignRequest, requestOptions?: Keys.RequestOptions): Promise<stream.Readable>;
270
279
  /**
271
280
  * Sign a JSON-LD representation of an unsigned presentation.
272
281
  * @throws {@link Truvity.BadRequestError}
@@ -858,6 +858,92 @@ class Keys {
858
858
  }
859
859
  });
860
860
  }
861
+ /**
862
+ * Sign DIDCOMM Message Plaintext.
863
+ * @throws {@link Truvity.BadRequestError}
864
+ * @throws {@link Truvity.UnauthorizedError}
865
+ * @throws {@link Truvity.ForbiddenError}
866
+ * @throws {@link Truvity.NotFoundError}
867
+ * @throws {@link Truvity.InternalServerError}
868
+ */
869
+ didcommMessageSign(id, request, requestOptions) {
870
+ var _a, _b;
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ const { didMethod, body: _body } = request;
873
+ const _queryParams = {};
874
+ if (didMethod != null) {
875
+ _queryParams["did_method"] = didMethod;
876
+ }
877
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.TruvityEnvironment.Default, `keys/${yield serializers.ResourceId.jsonOrThrow(id)}/didcomm-messages/sign`),
879
+ method: "POST",
880
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@truvity/sdk", "X-Fern-SDK-Version": "0.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
881
+ contentType: "application/json",
882
+ queryParameters: _queryParams,
883
+ body: yield serializers.keys.didcommMessageSign.Request.jsonOrThrow(_body, {
884
+ unrecognizedObjectKeys: "strip",
885
+ }),
886
+ responseType: "streaming",
887
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
888
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
889
+ });
890
+ if (_response.ok) {
891
+ return _response.body;
892
+ }
893
+ if (_response.error.reason === "status-code") {
894
+ switch (_response.error.statusCode) {
895
+ case 400:
896
+ throw new Truvity.BadRequestError(yield serializers.BadRequestErrorBody.parseOrThrow(_response.error.body, {
897
+ unrecognizedObjectKeys: "passthrough",
898
+ allowUnrecognizedUnionMembers: true,
899
+ allowUnrecognizedEnumValues: true,
900
+ breadcrumbsPrefix: ["response"],
901
+ }));
902
+ case 401:
903
+ throw new Truvity.UnauthorizedError(yield serializers.ProblemUnauthorized.parseOrThrow(_response.error.body, {
904
+ unrecognizedObjectKeys: "passthrough",
905
+ allowUnrecognizedUnionMembers: true,
906
+ allowUnrecognizedEnumValues: true,
907
+ breadcrumbsPrefix: ["response"],
908
+ }));
909
+ case 403:
910
+ throw new Truvity.ForbiddenError(yield serializers.ProblemForbidden.parseOrThrow(_response.error.body, {
911
+ unrecognizedObjectKeys: "passthrough",
912
+ allowUnrecognizedUnionMembers: true,
913
+ allowUnrecognizedEnumValues: true,
914
+ breadcrumbsPrefix: ["response"],
915
+ }));
916
+ case 404:
917
+ throw new Truvity.NotFoundError(_response.error.body);
918
+ case 500:
919
+ throw new Truvity.InternalServerError(yield serializers.ProblemInternalServerError.parseOrThrow(_response.error.body, {
920
+ unrecognizedObjectKeys: "passthrough",
921
+ allowUnrecognizedUnionMembers: true,
922
+ allowUnrecognizedEnumValues: true,
923
+ breadcrumbsPrefix: ["response"],
924
+ }));
925
+ default:
926
+ throw new errors.TruvityError({
927
+ statusCode: _response.error.statusCode,
928
+ body: _response.error.body,
929
+ });
930
+ }
931
+ }
932
+ switch (_response.error.reason) {
933
+ case "non-json":
934
+ throw new errors.TruvityError({
935
+ statusCode: _response.error.statusCode,
936
+ body: _response.error.rawBody,
937
+ });
938
+ case "timeout":
939
+ throw new errors.TruvityTimeoutError();
940
+ case "unknown":
941
+ throw new errors.TruvityError({
942
+ message: _response.error.errorMessage,
943
+ });
944
+ }
945
+ });
946
+ }
861
947
  /**
862
948
  * Sign a JSON-LD representation of an unsigned presentation.
863
949
  * @throws {@link Truvity.BadRequestError}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * didMethod: Truvity.DidMethod.Key,
9
+ * body: "string"
10
+ * }
11
+ *
12
+ * @example
13
+ * {
14
+ * didMethod: Truvity.DidMethod.Key,
15
+ * body: "string"
16
+ * }
17
+ *
18
+ * @example
19
+ * {
20
+ * didMethod: Truvity.DidMethod.Key,
21
+ * body: "string"
22
+ * }
23
+ *
24
+ * @example
25
+ * {
26
+ * didMethod: Truvity.DidMethod.Key,
27
+ * body: "string"
28
+ * }
29
+ *
30
+ * @example
31
+ * {
32
+ * didMethod: Truvity.DidMethod.Key,
33
+ * body: "string"
34
+ * }
35
+ *
36
+ * @example
37
+ * {
38
+ * didMethod: Truvity.DidMethod.Key,
39
+ * body: "string"
40
+ * }
41
+ */
42
+ export interface DidcommMessageSignRequest {
43
+ /**
44
+ * All supported DID methods. Default value: web.
45
+ */
46
+ didMethod?: Truvity.DidMethod;
47
+ body: string;
48
+ }
@@ -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 });
@@ -5,6 +5,7 @@ export { type KeyLatestRequest } from "./KeyLatestRequest";
5
5
  export { type KeyDeleteRequest } from "./KeyDeleteRequest";
6
6
  export { type KeyInput } from "./KeyInput";
7
7
  export { type CredentialSignRequest } from "./CredentialSignRequest";
8
+ export { type DidcommMessageSignRequest } from "./DidcommMessageSignRequest";
8
9
  export { type PresentationSignRequest } from "./PresentationSignRequest";
9
10
  export { type KeyRestoreRequest } from "./KeyRestoreRequest";
10
11
  export { type KeyHistoryRequest } from "./KeyHistoryRequest";
@@ -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
+ * API Key - public part.
7
+ */
8
+ export interface ApiKey {
9
+ expiration: Truvity.Timestamp;
10
+ subjectId: Truvity.SubjectId;
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
+ * Result of api-key's resource create.
7
+ */
8
+ export interface ApiKeyCreateOutput extends Truvity.Resource {
9
+ data: Truvity.ApiKeyFull;
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,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Enum of all available values.
6
+ */
7
+ export declare type ApiKeyField = "ID" | "REVISION" | "CREATED_AT" | "MODIFIED_AT" | "ETAG" | "DELETED_AT" | "DATA_EXPIRATION" | "DATA_SUBJECT_ID";
8
+ export declare const ApiKeyField: {
9
+ readonly Id: "ID";
10
+ readonly Revision: "REVISION";
11
+ readonly CreatedAt: "CREATED_AT";
12
+ readonly ModifiedAt: "MODIFIED_AT";
13
+ readonly Etag: "ETAG";
14
+ readonly DeletedAt: "DELETED_AT";
15
+ readonly DataExpiration: "DATA_EXPIRATION";
16
+ readonly DataSubjectId: "DATA_SUBJECT_ID";
17
+ };
@@ -0,0 +1,16 @@
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.ApiKeyField = void 0;
7
+ exports.ApiKeyField = {
8
+ Id: "ID",
9
+ Revision: "REVISION",
10
+ CreatedAt: "CREATED_AT",
11
+ ModifiedAt: "MODIFIED_AT",
12
+ Etag: "ETAG",
13
+ DeletedAt: "DELETED_AT",
14
+ DataExpiration: "DATA_EXPIRATION",
15
+ DataSubjectId: "DATA_SUBJECT_ID",
16
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * Schema for the ApiKeyResource filter.
7
+ */
8
+ export interface ApiKeyFilter {
9
+ annotations?: Truvity.FilterAnnotations;
10
+ createdAt?: Truvity.FilterTimestamp;
11
+ data?: Truvity.ApiKeyFilterData;
12
+ deletedAt?: Truvity.FilterTimestampOptional;
13
+ etag?: Truvity.FilterString;
14
+ id?: Truvity.FilterId;
15
+ labels?: Truvity.FilterLabels;
16
+ modifiedAt?: Truvity.FilterTimestamp;
17
+ revision?: Truvity.FilterInteger;
18
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ export interface ApiKeyFilterData {
6
+ expiration?: Truvity.FilterTimestamp;
7
+ subjectId?: Truvity.FilterId;
8
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Truvity from "../index";
5
+ /**
6
+ * An API Key just after creation.
7
+ */
8
+ export interface ApiKeyFull extends Truvity.ApiKey, Truvity.ApiKeySecret {
9
+ }
@@ -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
+ }