@transcend-io/cli 6.13.2 → 6.14.2

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 (123) hide show
  1. package/README.md +40 -13
  2. package/build/cli-sync-ot.d.ts +3 -0
  3. package/build/cli-sync-ot.d.ts.map +1 -0
  4. package/build/cli-sync-ot.js +56 -0
  5. package/build/cli-sync-ot.js.map +1 -0
  6. package/build/codecs.d.ts +46 -0
  7. package/build/codecs.d.ts.map +1 -1
  8. package/build/codecs.js +28 -1
  9. package/build/codecs.js.map +1 -1
  10. package/build/graphql/fetchAllRequestIdentifiers.d.ts +2 -0
  11. package/build/graphql/fetchAllRequestIdentifiers.d.ts.map +1 -1
  12. package/build/graphql/gqls/assessment.d.ts +1 -0
  13. package/build/graphql/gqls/assessment.d.ts.map +1 -1
  14. package/build/graphql/gqls/assessment.js +13 -1
  15. package/build/graphql/gqls/assessment.js.map +1 -1
  16. package/build/graphql/parseAssessmentRiskLogic.d.ts +3 -1
  17. package/build/graphql/parseAssessmentRiskLogic.d.ts.map +1 -1
  18. package/build/graphql/parseAssessmentRiskLogic.js +3 -1
  19. package/build/graphql/parseAssessmentRiskLogic.js.map +1 -1
  20. package/build/graphql/pullTranscendConfiguration.d.ts.map +1 -1
  21. package/build/graphql/pullTranscendConfiguration.js +3 -1
  22. package/build/graphql/pullTranscendConfiguration.js.map +1 -1
  23. package/build/oneTrust/{getListOfAssessments.d.ts → endpoints/getListOfOneTrustAssessments.d.ts} +4 -3
  24. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.d.ts.map +1 -0
  25. package/build/oneTrust/{getListOfAssessments.js → endpoints/getListOfOneTrustAssessments.js} +9 -7
  26. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.js.map +1 -0
  27. package/build/oneTrust/{getAssessment.d.ts → endpoints/getOneTrustAssessment.d.ts} +4 -3
  28. package/build/oneTrust/endpoints/getOneTrustAssessment.d.ts.map +1 -0
  29. package/build/oneTrust/endpoints/getOneTrustAssessment.js +18 -0
  30. package/build/oneTrust/endpoints/getOneTrustAssessment.js.map +1 -0
  31. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts +16 -0
  32. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts.map +1 -0
  33. package/build/oneTrust/endpoints/getOneTrustRisk.js +18 -0
  34. package/build/oneTrust/endpoints/getOneTrustRisk.js.map +1 -0
  35. package/build/oneTrust/endpoints/getOneTrustUser.d.ts +16 -0
  36. package/build/oneTrust/endpoints/getOneTrustUser.d.ts.map +1 -0
  37. package/build/oneTrust/endpoints/getOneTrustUser.js +18 -0
  38. package/build/oneTrust/endpoints/getOneTrustUser.js.map +1 -0
  39. package/build/oneTrust/endpoints/index.d.ts +5 -0
  40. package/build/oneTrust/endpoints/index.d.ts.map +1 -0
  41. package/build/oneTrust/endpoints/index.js +21 -0
  42. package/build/oneTrust/endpoints/index.js.map +1 -0
  43. package/build/oneTrust/helpers/constants.d.ts +3 -0
  44. package/build/oneTrust/helpers/constants.d.ts.map +1 -0
  45. package/build/oneTrust/helpers/constants.js +15 -0
  46. package/build/oneTrust/helpers/constants.js.map +1 -0
  47. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts +34 -0
  48. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts.map +1 -0
  49. package/build/oneTrust/helpers/convertToEmptyStrings.js +58 -0
  50. package/build/oneTrust/helpers/convertToEmptyStrings.js.map +1 -0
  51. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts +22 -0
  52. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts.map +1 -0
  53. package/build/oneTrust/helpers/enrichOneTrustAssessment.js +95 -0
  54. package/build/oneTrust/helpers/enrichOneTrustAssessment.js.map +1 -0
  55. package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts +5 -0
  56. package/build/oneTrust/helpers/flattenOneTrustAssessment.d.ts.map +1 -0
  57. package/build/oneTrust/helpers/flattenOneTrustAssessment.js +136 -0
  58. package/build/oneTrust/helpers/flattenOneTrustAssessment.js.map +1 -0
  59. package/build/oneTrust/helpers/index.d.ts +4 -0
  60. package/build/oneTrust/helpers/index.d.ts.map +1 -0
  61. package/build/oneTrust/helpers/index.js +20 -0
  62. package/build/oneTrust/helpers/index.js.map +1 -0
  63. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts +14 -0
  64. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.d.ts.map +1 -0
  65. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js +25 -0
  66. package/build/oneTrust/helpers/oneTrustAssessmentToCsv.js.map +1 -0
  67. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts +10 -0
  68. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.d.ts.map +1 -0
  69. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js +38 -0
  70. package/build/oneTrust/helpers/oneTrustAssessmentToCsvRecord.js.map +1 -0
  71. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts +18 -0
  72. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts.map +1 -0
  73. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js +28 -0
  74. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js.map +1 -0
  75. package/build/oneTrust/{parseCliPullOtArguments.d.ts → helpers/parseCliSyncOtArguments.d.ts} +11 -5
  76. package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts.map +1 -0
  77. package/build/oneTrust/helpers/parseCliSyncOtArguments.js +109 -0
  78. package/build/oneTrust/helpers/parseCliSyncOtArguments.js.map +1 -0
  79. package/build/oneTrust/{writeOneTrustAssessment.d.ts → helpers/syncOneTrustAssessmentToDisk.d.ts} +5 -7
  80. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts.map +1 -0
  81. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js +49 -0
  82. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js.map +1 -0
  83. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts +25 -0
  84. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts.map +1 -0
  85. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js +35 -0
  86. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js.map +1 -0
  87. package/build/oneTrust/helpers/syncOneTrustAssessments.d.ts +22 -0
  88. package/build/oneTrust/helpers/syncOneTrustAssessments.d.ts.map +1 -0
  89. package/build/oneTrust/helpers/syncOneTrustAssessments.js +125 -0
  90. package/build/oneTrust/helpers/syncOneTrustAssessments.js.map +1 -0
  91. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts +2 -0
  92. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts.map +1 -0
  93. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js +74 -0
  94. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js.map +1 -0
  95. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts +2 -0
  96. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.d.ts.map +1 -0
  97. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js +592 -0
  98. package/build/oneTrust/helpers/tests/flattenOneTrustQuestionResponses.test.js.map +1 -0
  99. package/build/oneTrust/index.d.ts +2 -4
  100. package/build/oneTrust/index.d.ts.map +1 -1
  101. package/build/oneTrust/index.js +2 -4
  102. package/build/oneTrust/index.js.map +1 -1
  103. package/build/tsbuildinfo +1 -1
  104. package/package.json +4 -4
  105. package/build/cli-pull-ot.d.ts +0 -3
  106. package/build/cli-pull-ot.d.ts.map +0 -1
  107. package/build/cli-pull-ot.js +0 -55
  108. package/build/cli-pull-ot.js.map +0 -1
  109. package/build/oneTrust/getAssessment.d.ts.map +0 -1
  110. package/build/oneTrust/getAssessment.js +0 -15
  111. package/build/oneTrust/getAssessment.js.map +0 -1
  112. package/build/oneTrust/getListOfAssessments.d.ts.map +0 -1
  113. package/build/oneTrust/getListOfAssessments.js.map +0 -1
  114. package/build/oneTrust/parseCliPullOtArguments.d.ts.map +0 -1
  115. package/build/oneTrust/parseCliPullOtArguments.js +0 -67
  116. package/build/oneTrust/parseCliPullOtArguments.js.map +0 -1
  117. package/build/oneTrust/types.d.ts +0 -391
  118. package/build/oneTrust/types.d.ts.map +0 -1
  119. package/build/oneTrust/types.js +0 -4
  120. package/build/oneTrust/types.js.map +0 -1
  121. package/build/oneTrust/writeOneTrustAssessment.d.ts.map +0 -1
  122. package/build/oneTrust/writeOneTrustAssessment.js +0 -41
  123. package/build/oneTrust/writeOneTrustAssessment.js.map +0 -1
package/README.md CHANGED
@@ -147,6 +147,7 @@
147
147
  - [Authentication](#authentication-34)
148
148
  - [Arguments](#arguments-33)
149
149
  - [Usage](#usage-34)
150
+ - [tr-sync-ot](#tr-sync-ot)
150
151
  - [tr-build-xdi-sync-endpoint](#tr-build-xdi-sync-endpoint)
151
152
  - [Authentication](#authentication-35)
152
153
  - [Arguments](#arguments-34)
@@ -176,7 +177,7 @@ yarn add -D @transcend-io/cli
176
177
 
177
178
  # cli commands available within package
178
179
  yarn tr-pull --auth=$TRANSCEND_API_KEY
179
- yarn tr-pull-ot --auth=$ONE_TRUST_OAUTH_TOKEN --hostname=$ONE_TRUST_HOSTNAME --file=$ONE_TRUST_OUTPUT_FILE
180
+ yarn tr-sync-ot --auth=$ONE_TRUST_OAUTH_TOKEN --hostname=$ONE_TRUST_HOSTNAME --file=$ONE_TRUST_OUTPUT_FILE
180
181
  yarn tr-push --auth=$TRANSCEND_API_KEY
181
182
  yarn tr-scan-packages --auth=$TRANSCEND_API_KEY
182
183
  yarn tr-discover-silos --auth=$TRANSCEND_API_KEY
@@ -217,7 +218,7 @@ npm i -D @transcend-io/cli
217
218
 
218
219
  # cli commands available within package
219
220
  tr-pull --auth=$TRANSCEND_API_KEY
220
- tr-pull-ot --auth=$ONE_TRUST_OAUTH_TOKEN --hostname=$ONE_TRUST_HOSTNAME --file=$ONE_TRUST_OUTPUT_FILE
221
+ tr-sync-ot --auth=$ONE_TRUST_OAUTH_TOKEN --hostname=$ONE_TRUST_HOSTNAME --file=$ONE_TRUST_OUTPUT_FILE
221
222
  tr-push --auth=$TRANSCEND_API_KEY
222
223
  tr-scan-packages --auth=$TRANSCEND_API_KEY
223
224
  tr-discover-silos --auth=$TRANSCEND_API_KEY
@@ -577,9 +578,9 @@ tr-pull --auth=./transcend-api-keys.json --resources=consentManager --file=./tra
577
578
 
578
579
  Note: This command will overwrite the existing transcend.yml file that you have locally.
579
580
 
580
- ### tr-pull-ot
581
+ ### tr-sync-ot
581
582
 
582
- Pulls resources from a OneTrust instance. For now, it only supports retrieving OneTrust Assessments. It sends a request to the [Get List of Assessments](https://developer.onetrust.com/onetrust/reference/getallassessmentbasicdetailsusingget) endpoint to fetch a list of all Assessments in your account. Then, it queries the [Get Assessment](https://developer.onetrust.com/onetrust/reference/exportassessmentusingget) and [Get Risk](https://developer.onetrust.com/onetrust/reference/getriskusingget) endpoints to enrich these assessments with more details such as respondents, approvers, assessment questions and responses, and assessment risks. Finally, it syncs the enriched resources to disk in the specified file and format.
583
+ Pulls resources from a OneTrust and syncs them to a Transcend instance. For now, it only supports retrieving OneTrust Assessments. It sends a request to the [Get List of Assessments](https://developer.onetrust.com/onetrust/reference/getallassessmentbasicdetailsusingget) endpoint to fetch a list of all Assessments in your account. Then, it queries the [Get Assessment](https://developer.onetrust.com/onetrust/reference/exportassessmentusingget), [Get Risk](https://developer.onetrust.com/onetrust/reference/getriskusingget), and [Get User](https://developer.onetrust.com/onetrust/reference/getuserbyid) endpoints to enrich these assessments with more details such as respondents, approvers, assessment questions and responses, and assessment risks. Finally, it syncs the enriched resources to disk in the specified file and format.
583
584
 
584
585
  This command can be helpful if you are looking to:
585
586
 
@@ -593,25 +594,51 @@ In order to use this command, you will need to generate a OneTrust OAuth Token w
593
594
  - [GET /v2/assessments](https://developer.onetrust.com/onetrust/reference/getallassessmentbasicdetailsusingget)
594
595
  - [GET /v2/assessments/{assessmentId}/export](https://developer.onetrust.com/onetrust/reference/exportassessmentusingget)
595
596
  - [GET /risks/{riskId}](https://developer.onetrust.com/onetrust/reference/getriskusingget)
597
+ - [GET /v2/Users/{userId}](https://developer.onetrust.com/onetrust/reference/getuserusingget)
596
598
 
597
599
  To learn how to generate the token, see the [OAuth 2.0 Scopes](https://developer.onetrust.com/onetrust/reference/oauth-20-scopes) and [Generate Access Token](https://developer.onetrust.com/onetrust/reference/getoauthtoken) pages.
598
600
 
601
+ If syncing the resources to Transcend, you will also need to generate an API key on the Transcend Admin Dashboard (https://app.transcend.io/infrastructure/api-keys).
602
+
603
+ The API key needs the following scopes when pushing the various resource types:
604
+
605
+ | Resource | Scope |
606
+ | ----------- | ------------------ |
607
+ | assessments | Manage Assessments |
608
+
599
609
  #### Arguments
600
610
 
601
- | Argument | Description | Type | Default | Required |
602
- | ---------- | ------------------------------------------------------------------------------------------------- | ------- | ----------- | -------- |
603
- | auth | The OAuth access token with the scopes necessary to access the OneTrust Public APIs. | string | N/A | true |
604
- | hostname | The domain of the OneTrust environment from which to pull the resource (e.g. trial.onetrust.com). | string | N/A | true |
605
- | file | Path to the file to pull the resource into. Its format must match the fileFormat argument. | string | N/A | true |
606
- | fileFormat | The format of the output file. For now, only json is supported. | string | json | false |
607
- | resource | The resource to pull from OneTrust. For now, only assessments is supported. | string | assessments | false |
608
- | debug | Whether to print detailed logs in case of error. | boolean | false | false |
611
+ | Argument | Description | Type | Default | Required |
612
+ | ------------- | ------------------------------------------------------------------------------------------------- | ------------ | ------------------------ | -------- |
613
+ | hostname | The domain of the OneTrust environment from which to pull the resource (e.g. trial.onetrust.com). | string | N/A | true |
614
+ | oneTrustAuth | The OAuth access token with the scopes necessary to access the OneTrust Public APIs. | string | N/A | true |
615
+ | transcendAuth | The Transcend API Key to with the scopes necessary to access Transcend's Public APIs. | string | N/A | false |
616
+ | transcendUrl | URL of the Transcend backend. Use https://api.us.transcend.io for US hosting. | string - URL | https://api.transcend.io | false |
617
+ | file | Path to the file to pull the resource into. Its format must match the fileFormat argument. | string | N/A | false |
618
+ | fileFormat | The format of the output file. | string | json | false |
619
+ | resource | The resource to pull from OneTrust. For now, only assessments is supported. | string | assessments | false |
620
+ | dryRun | Whether to export the resource to a file rather than sync to Transcend. | boolean | false | false |
621
+ | debug | Whether to print detailed logs in case of error. | boolean | false | false |
609
622
 
610
623
  #### Usage
611
624
 
625
+ ```sh
626
+ # Syncs all assessments from the OneTrust instance to Transcend
627
+ tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --transcendAuth=$TRANSCEND_API_KEY
628
+ ```
629
+
630
+ Alternatively, you can set dryRun to true and sync the resource to disk:
631
+
632
+ ```sh
633
+ # Writes out file to ./oneTrustAssessments.csv
634
+ tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --dryRun=true --file=./oneTrustAssessments.csv
635
+ ```
636
+
637
+ You can also sync to disk in json format:
638
+
612
639
  ```sh
613
640
  # Writes out file to ./oneTrustAssessments.json
614
- tr-pull-ot --auth=$ONE_TRUST_OAUTH_TOKEN --hostname=trial.onetrust.com --file=./oneTrustAssessments.json
641
+ tr-sync-ot --hostname=trial.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --dryRun=true --fileFormat=json --file=./oneTrustAssessments.json
615
642
  ```
616
643
 
617
644
  ### tr-push
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli-sync-ot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-sync-ot.d.ts","sourceRoot":"","sources":["../src/cli-sync-ot.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const logger_1 = require("./logger");
8
+ const colors_1 = __importDefault(require("colors"));
9
+ const oneTrust_1 = require("./oneTrust");
10
+ const enums_1 = require("./enums");
11
+ const syncOneTrustAssessments_1 = require("./oneTrust/helpers/syncOneTrustAssessments");
12
+ const graphql_1 = require("./graphql");
13
+ /**
14
+ * Pull configuration from OneTrust down locally to disk
15
+ *
16
+ * Dev Usage:
17
+ * yarn ts-node ./src/cli-sync-ot.ts --hostname=customer.my.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --transcendAuth=$TRANSCEND_API_KEY
18
+ *
19
+ * Standard usage
20
+ * yarn cli-sync-ot --hostname=customer.my.onetrust.com --oneTrustAuth=$ONE_TRUST_OAUTH_TOKEN --transcendAuth=$TRANSCEND_API_KEY
21
+ */
22
+ async function main() {
23
+ const { file, fileFormat, hostname, oneTrustAuth, transcendAuth, transcendUrl, resource,
24
+ // debug,
25
+ dryRun, } = (0, oneTrust_1.parseCliSyncOtArguments)();
26
+ // use the hostname and auth token to instantiate a client to talk to OneTrust
27
+ const oneTrust = (0, oneTrust_1.createOneTrustGotInstance)({ hostname, auth: oneTrustAuth });
28
+ // try {
29
+ if (resource === enums_1.OneTrustPullResource.Assessments) {
30
+ await (0, syncOneTrustAssessments_1.syncOneTrustAssessments)({
31
+ oneTrust,
32
+ file,
33
+ fileFormat,
34
+ dryRun,
35
+ ...(transcendAuth && transcendUrl
36
+ ? {
37
+ transcend: (0, graphql_1.buildTranscendGraphQLClient)(transcendUrl, transcendAuth),
38
+ }
39
+ : {}),
40
+ });
41
+ }
42
+ // } catch (err) {
43
+ // logger.error(
44
+ // colors.red(
45
+ // `An error occurred syncing the resource ${resource} from OneTrust: ${
46
+ // debug ? err.stack : err.message
47
+ // }`,
48
+ // ),
49
+ // );
50
+ // process.exit(1);
51
+ // }
52
+ // Indicate success
53
+ logger_1.logger.info(colors_1.default.green(`Successfully synced OneTrust ${resource} to ${dryRun ? `disk at "${file}"` : 'Transcend'}!`));
54
+ }
55
+ main();
56
+ //# sourceMappingURL=cli-sync-ot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-sync-ot.js","sourceRoot":"","sources":["../src/cli-sync-ot.ts"],"names":[],"mappings":";;;;;;AACA,qCAAkC;AAElC,oDAA4B;AAC5B,yCAAgF;AAChF,mCAA+C;AAC/C,wFAAqF;AACrF,uCAAwD;AAExD;;;;;;;;GAQG;AACH,KAAK,UAAU,IAAI;IACjB,MAAM,EACJ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,QAAQ;IACR,SAAS;IACT,MAAM,GACP,GAAG,IAAA,kCAAuB,GAAE,CAAC;IAE9B,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,IAAA,oCAAyB,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IAE7E,QAAQ;IACR,IAAI,QAAQ,KAAK,4BAAoB,CAAC,WAAW,EAAE;QACjD,MAAM,IAAA,iDAAuB,EAAC;YAC5B,QAAQ;YACR,IAAI;YACJ,UAAU;YACV,MAAM;YACN,GAAG,CAAC,aAAa,IAAI,YAAY;gBAC/B,CAAC,CAAC;oBACE,SAAS,EAAE,IAAA,qCAA2B,EAAC,YAAY,EAAE,aAAa,CAAC;iBACpE;gBACH,CAAC,CAAC,EAAE,CAAC;SACR,CAAC,CAAC;KACJ;IACD,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,8EAA8E;IAC9E,0CAA0C;IAC1C,YAAY;IACZ,SAAS;IACT,OAAO;IACP,qBAAqB;IACrB,IAAI;IAEJ,mBAAmB;IACnB,eAAM,CAAC,IAAI,CACT,gBAAM,CAAC,KAAK,CACV,gCAAgC,QAAQ,OACtC,MAAM,CAAC,CAAC,CAAC,YAAY,IAAI,GAAG,CAAC,CAAC,CAAC,WACjC,GAAG,CACJ,CACF,CAAC;AACJ,CAAC;AAED,IAAI,EAAE,CAAC"}
package/build/codecs.d.ts CHANGED
@@ -47156,6 +47156,10 @@ export declare const RiskLogicInput: t.IntersectionC<[t.TypeC<{
47156
47156
  }>, t.PartialC<{
47157
47157
  /** The risk level to assign to the question */
47158
47158
  'risk-level': t.StringC;
47159
+ /** The risk matrix column to assign to a question. */
47160
+ 'risk-matrix-column': t.StringC;
47161
+ /** The risk matrix row to assign to a question. */
47162
+ 'risk-matrix-row': t.StringC;
47159
47163
  }>]>;
47160
47164
  /** Type override */
47161
47165
  export type RiskLogicInput = t.TypeOf<typeof RiskLogicInput>;
@@ -47256,6 +47260,10 @@ export declare const AssessmentSectionQuestionInput: t.IntersectionC<[t.TypeC<{
47256
47260
  }>, t.PartialC<{
47257
47261
  /** The risk level to assign to the question */
47258
47262
  'risk-level': t.StringC;
47263
+ /** The risk matrix column to assign to a question. */
47264
+ 'risk-matrix-column': t.StringC;
47265
+ /** The risk matrix row to assign to a question. */
47266
+ 'risk-matrix-row': t.StringC;
47259
47267
  }>]>>;
47260
47268
  /** Risk category titles for the question */
47261
47269
  'risk-categories': t.ArrayC<t.StringC>;
@@ -47467,6 +47475,10 @@ export declare const AssessmentSectionInput: t.IntersectionC<[t.TypeC<{
47467
47475
  }>, t.PartialC<{
47468
47476
  /** The risk level to assign to the question */
47469
47477
  'risk-level': t.StringC;
47478
+ /** The risk matrix column to assign to a question. */
47479
+ 'risk-matrix-column': t.StringC;
47480
+ /** The risk matrix row to assign to a question. */
47481
+ 'risk-matrix-row': t.StringC;
47470
47482
  }>]>>;
47471
47483
  /** Risk category titles for the question */
47472
47484
  'risk-categories': t.ArrayC<t.StringC>;
@@ -47710,6 +47722,10 @@ export declare const AssessmentTemplateInput: t.IntersectionC<[t.TypeC<{
47710
47722
  }>, t.PartialC<{
47711
47723
  /** The risk level to assign to the question */
47712
47724
  'risk-level': t.StringC;
47725
+ /** The risk matrix column to assign to a question. */
47726
+ 'risk-matrix-column': t.StringC;
47727
+ /** The risk matrix row to assign to a question. */
47728
+ 'risk-matrix-row': t.StringC;
47713
47729
  }>]>>;
47714
47730
  /** Risk category titles for the question */
47715
47731
  'risk-categories': t.ArrayC<t.StringC>;
@@ -48015,6 +48031,10 @@ export declare const AssessmentInput: t.IntersectionC<[t.TypeC<{
48015
48031
  }>, t.PartialC<{
48016
48032
  /** The risk level to assign to the question */
48017
48033
  'risk-level': t.StringC;
48034
+ /** The risk matrix column to assign to a question. */
48035
+ 'risk-matrix-column': t.StringC;
48036
+ /** The risk matrix row to assign to a question. */
48037
+ 'risk-matrix-row': t.StringC;
48018
48038
  }>]>>;
48019
48039
  /** Risk category titles for the question */
48020
48040
  'risk-categories': t.ArrayC<t.StringC>;
@@ -88567,6 +88587,10 @@ export declare const TranscendInput: t.PartialC<{
88567
88587
  }>, t.PartialC<{
88568
88588
  /** The risk level to assign to the question */
88569
88589
  'risk-level': t.StringC;
88590
+ /** The risk matrix column to assign to a question. */
88591
+ 'risk-matrix-column': t.StringC;
88592
+ /** The risk matrix row to assign to a question. */
88593
+ 'risk-matrix-row': t.StringC;
88570
88594
  }>]>>;
88571
88595
  /** Risk category titles for the question */
88572
88596
  'risk-categories': t.ArrayC<t.StringC>;
@@ -88840,6 +88864,10 @@ export declare const TranscendInput: t.PartialC<{
88840
88864
  }>, t.PartialC<{
88841
88865
  /** The risk level to assign to the question */
88842
88866
  'risk-level': t.StringC;
88867
+ /** The risk matrix column to assign to a question. */
88868
+ 'risk-matrix-column': t.StringC;
88869
+ /** The risk matrix row to assign to a question. */
88870
+ 'risk-matrix-row': t.StringC;
88843
88871
  }>]>>;
88844
88872
  /** Risk category titles for the question */
88845
88873
  'risk-categories': t.ArrayC<t.StringC>;
@@ -89332,5 +89360,23 @@ export declare const PathfinderPromptRunMetadata: t.PartialC<{
89332
89360
  }>;
89333
89361
  /** Type override */
89334
89362
  export type PathfinderPromptRunMetadata = t.TypeOf<typeof PathfinderPromptRunMetadata>;
89363
+ /** Input for importing multiple OneTrust assessment forms into Transcend */
89364
+ export declare const ImportOnetrustAssessmentsInput: t.PartialC<{
89365
+ /** 'The rows of the CSV file.' */
89366
+ rows: t.ArrayC<t.TypeC<{
89367
+ /** A list of columns within this row. */
89368
+ columns: t.ArrayC<t.IntersectionC<[t.TypeC<{
89369
+ /** The title of the column */
89370
+ title: t.StringC;
89371
+ }>, t.PartialC<{
89372
+ /** The optional value of the column */
89373
+ value: t.StringC;
89374
+ }>]>>;
89375
+ }>>;
89376
+ /** 'The json record representing the assessment.' */
89377
+ json: t.StringC;
89378
+ }>;
89379
+ /** Type override */
89380
+ export type ImportOnetrustAssessmentsInput = t.TypeOf<typeof ImportOnetrustAssessmentsInput>;
89335
89381
  export {};
89336
89382
  //# sourceMappingURL=codecs.d.ts.map