@transcend-io/sdk 1.9.4 → 2.0.0

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.
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { Logger } from "@transcend-io/utils";
2
2
  import { GraphQLClient, RequestDocument, Variables } from "graphql-request";
3
3
  import { Got } from "got";
4
4
  import { DocumentNode } from "graphql";
5
- import { ActionItemCode, ActionItemPriorityOverride, AirgapBundleAnalyticsBinInterval, AirgapBundleAnalyticsDimension, AirgapBundleAnalyticsMetric, AssessmentFormStatus, AssessmentQuestionSubType, AssessmentQuestionType, AssessmentSyncColumn, AssessmentSyncModel, AttributeKeyType, AttributeSupportedResourceType, BrowserTimeZone, ChatCompletionRole, CodePackageType, CollectDataSubjectRegions, ConfidenceLabel, ConsentBundleType, ConsentManagerMetricBin, ConsentPrecedenceOption, ConsentThemeInput, ConsentTrackerSource, ConsentTrackerStatus, ConsentUiUserFlow, ConsentVariantInput, Controllership, DataCategoryType, DataFlowScope, DataProtectionImpactAssessmentStatus, DefaultConsentOption, EnricherType, IdentifierType, IsoCountryCode, IsoCountrySubdivisionCode, LargeLanguageModelClient, LogicOperator, OrderDirection, PolicyType, PreferenceQueryResponseItem, PreferenceStoreAuthLevel, PreferenceStoreIdentifier, PreferenceStorePurposeResponse, PreferenceTopicType, PreflightRequestStatus, PrivacyCenterFooterLayout, PrivacyCenterThemePartial, ProcessingPurpose, PromptAVendorEmailCompletionLinkType, PromptAVendorEmailSendType, PromptFilePurpose, QueueStatus, RegionDetectionMethod, RegionsOperator, RequestAction, RequestActionObjectResolver, RequestDataSiloStatus, RequestEnricherStatus, RequestStatus, RetentionScheduleOperation, RetentionScheduleType, RetentionType, ScopeName, SignedIabAgreementOption, SombraStandardScope, SubDataPointDataSubCategoryGuessStatus, TelemetryPartitionStrategy, ThemeConfiguration, TranscendProduct, UIConfiguration, UiVariantStatus, UnknownRequestPolicy, WorkflowConfigType, WorkflowConfigVisibility } from "@transcend-io/privacy-types";
5
+ import { ActionItemCode, ActionItemPriorityOverride, AirgapBundleAnalyticsBinInterval, AirgapBundleAnalyticsDimension, AirgapBundleAnalyticsMetric, AssessmentFormStatus, AssessmentQuestionSubType, AssessmentQuestionType, AssessmentSyncColumn, AssessmentSyncModel, AttributeKeyType, AttributeSupportedResourceType, BrowserTimeZone, ChatCompletionRole, CodePackageType, CollectDataSubjectRegions, ConfidenceLabel, ConsentBundleType, ConsentManagerMetricBin, ConsentPrecedenceOption, ConsentThemeInput, ConsentTrackerSource, ConsentTrackerStatus, ConsentUiUserFlow, ConsentVariantInput, Controllership, CustomFunctionLifecycleState, CustomFunctionPayloadType, CustomFunctionType, CustomFunctionVersionLifecycleState, DataCategoryType, DataFlowScope, DataProtectionImpactAssessmentStatus, DefaultConsentOption, EnricherType, IdentifierType, IsoCountryCode, IsoCountrySubdivisionCode, LargeLanguageModelClient, LogicOperator, OrderDirection, PolicyType, PreferenceQueryResponseItem, PreferenceStoreAuthLevel, PreferenceStoreIdentifier, PreferenceStorePurposeResponse, PreferenceTopicType, PreflightRequestStatus, PrivacyCenterFooterLayout, PrivacyCenterThemePartial, ProcessingPurpose, PromptAVendorEmailCompletionLinkType, PromptAVendorEmailSendType, PromptFilePurpose, QueueStatus, RegionDetectionMethod, RegionsOperator, RequestAction, RequestActionObjectResolver, RequestDataSiloStatus, RequestEnricherStatus, RequestStatus, RetentionScheduleOperation, RetentionScheduleType, RetentionType, ScopeName, SignedIabAgreementOption, SombraStandardScope, SubDataPointDataSubCategoryGuessStatus, TelemetryPartitionStrategy, ThemeConfiguration, TranscendProduct, UIConfiguration, UiVariantStatus, UnknownRequestPolicy, WorkflowConfigType, WorkflowConfigVisibility } from "@transcend-io/privacy-types";
6
6
  import * as t from "io-ts";
7
7
  import { BrowserLanguage, InitialViewState, OnConsentExpiry, UserPrivacySignalEnum } from "@transcend-io/airgap.js-types";
8
8
  import { LocaleValue } from "@transcend-io/internationalization";
@@ -99,6 +99,11 @@ declare function createSombraGotInstance(transcendUrl: string, transcendApiKey:
99
99
  /** Logger instance */logger?: Logger; /** Sombra API key */
100
100
  sombraApiKey?: string; /** Override Sombra URL (replaces process.env.SOMBRA_URL lookup) */
101
101
  sombraUrl?: string;
102
+ /**
103
+ * Connect to a specific Sombra gateway by ID instead of the
104
+ * organization's primary gateway
105
+ */
106
+ sombraId?: string;
102
107
  }): Promise<Got>;
103
108
  //#endregion
104
109
  //#region src/api/withTransientRetry.d.ts
@@ -854,6 +859,22 @@ declare function syncDataCategories(client: GraphQLClient, inputs: DataCategoryI
854
859
  }): Promise<boolean>;
855
860
  //#endregion
856
861
  //#region src/data-inventory/syncDataSiloDependencies.d.ts
862
+ /**
863
+ * A set of data silos that another data silo depends on during an erasure request,
864
+ * either globally or scoped to a single erasure workflow.
865
+ */
866
+ interface DependedOnDataSiloInput {
867
+ /** IDs of the data silos depended on */
868
+ ids?: string[];
869
+ /** Titles of the data silos depended on */
870
+ titles?: string[];
871
+ /** ID of the workflow config this override applies to. Omit for the global configuration */
872
+ workflowConfigId?: string;
873
+ /** Internal name of the workflow config this override applies to. Omit for the global configuration */
874
+ workflowConfigInternalName?: string;
875
+ /** Clear the workflow-scoped override so the data silo falls back to the global configuration */
876
+ resetToGlobal?: boolean;
877
+ }
857
878
  /**
858
879
  * Sync data silo dependencies
859
880
  *
@@ -862,7 +883,7 @@ declare function syncDataCategories(client: GraphQLClient, inputs: DataCategoryI
862
883
  * @returns True upon success
863
884
  */
864
885
  declare function syncDataSiloDependencies(client: GraphQLClient, options: {
865
- /** Pairs of [data silo ID, dependency titles] */input: [string, string[]][]; /** Logger instance */
886
+ /** Pairs of [data silo ID, dependency entries] */input: [string, DependedOnDataSiloInput[]][]; /** Logger instance */
866
887
  logger?: Logger;
867
888
  }): Promise<boolean>;
868
889
  //#endregion
@@ -45081,6 +45102,535 @@ declare function syncSoftwareDevelopmentKits(client: GraphQLClient, softwareDeve
45081
45102
  success: boolean;
45082
45103
  }>;
45083
45104
  //#endregion
45105
+ //#region src/custom-functions/codeSigning.d.ts
45106
+ /**
45107
+ * The execution context for a custom function's code.
45108
+ */
45109
+ interface CustomFunctionCodeContextInput {
45110
+ /** Environment variables made available to the function (values are encrypted at sign time) */
45111
+ userDefinedEnv: Record<string, string>;
45112
+ /** Hosts the function is allowed to make network requests to */
45113
+ allowedHosts: string[];
45114
+ /** Whether the function may import third party modules */
45115
+ allowThirdPartyImports?: boolean;
45116
+ /** Execution timeout in milliseconds (capped by the Sombra gateway configuration) */
45117
+ timeoutMs?: number;
45118
+ }
45119
+ /**
45120
+ * The plaintext payload sent to the Sombra customer-ingress
45121
+ * `/v1/custom/sign` endpoint.
45122
+ */
45123
+ interface CustomFunctionSignPayload {
45124
+ /** The plaintext TypeScript source code of the custom function */
45125
+ code: string;
45126
+ /** The execution context for the code */
45127
+ context: CustomFunctionCodeContextInput;
45128
+ }
45129
+ /**
45130
+ * Decode the payload of a JWT without verifying its signature.
45131
+ *
45132
+ * Custom function code and context JWTs are HMAC-signed by Sombra but their
45133
+ * payloads are readable base64url JSON. Since the JWTs are fetched over the
45134
+ * authenticated GraphQL API, decoding without verification is safe for the
45135
+ * purposes of change detection.
45136
+ *
45137
+ * @param token - The JWT string
45138
+ * @returns The decoded payload object, or undefined if the JWT is malformed
45139
+ */
45140
+ declare function decodeJwtPayload<T extends object>(token: string): T | undefined;
45141
+ /**
45142
+ * The decoded payload of a signed custom function code JWT.
45143
+ */
45144
+ interface SignedCustomFunctionCode {
45145
+ /** The base64-encoded source code */
45146
+ base64Code: string;
45147
+ }
45148
+ /**
45149
+ * The decoded payload of a signed custom function code context JWT. The
45150
+ * environment variable values are encrypted at sign time, so only their names
45151
+ * are comparable.
45152
+ */
45153
+ interface SignedCustomFunctionCodeContext {
45154
+ /** Hosts the function is allowed to make network requests to */
45155
+ allowedHosts?: string[];
45156
+ /** Whether the function may import third party modules */
45157
+ allowThirdPartyImports?: boolean;
45158
+ /** Execution timeout in milliseconds */
45159
+ timeoutMs?: number;
45160
+ /** Environment variables, with values encrypted by the Sombra gateway */
45161
+ userDefinedEncryptedEnv?: Record<string, unknown>;
45162
+ }
45163
+ /**
45164
+ * The result of comparing a local custom function definition against the
45165
+ * signed code and context currently stored in Transcend.
45166
+ */
45167
+ interface CustomFunctionDiff {
45168
+ /** Whether any comparable field differs */
45169
+ changed: boolean;
45170
+ /** Human-readable list of fields that differ */
45171
+ changedFields: string[];
45172
+ }
45173
+ /**
45174
+ * Compare a desired sign payload against the signed code/context JWTs of an
45175
+ * existing custom function version.
45176
+ *
45177
+ * Environment variable *values* are encrypted server-side and cannot be
45178
+ * compared — only their names are diffed. Callers should offer a force flag to
45179
+ * re-push when only env values change.
45180
+ *
45181
+ * @param desired - The desired code and context
45182
+ * @param existing - The existing signed JWTs from the API
45183
+ * @returns The diff result
45184
+ */
45185
+ declare function diffCustomFunctionCode(desired: CustomFunctionSignPayload, existing: {
45186
+ /** The signed code JWT of the existing version */signedCodeJwt: string; /** The signed code context JWT of the existing version */
45187
+ signedCodeContextJwt: string;
45188
+ }): CustomFunctionDiff;
45189
+ //#endregion
45190
+ //#region src/custom-functions/fetchAllCustomFunctions.d.ts
45191
+ /**
45192
+ * Preview of a custom function version.
45193
+ */
45194
+ interface CustomFunctionVersionPreview {
45195
+ /** Version ID */
45196
+ id: string;
45197
+ /** Monotonic version number (e.g. "1.0") */
45198
+ versionNumber: string;
45199
+ /** Lifecycle state of the version */
45200
+ lifecycleState: CustomFunctionVersionLifecycleState;
45201
+ /** Signed code JWT for this specific version's code */
45202
+ signedCodeJwt: string;
45203
+ }
45204
+ /**
45205
+ * A custom function as returned by the `customFunctions` query.
45206
+ */
45207
+ interface CustomFunction {
45208
+ /** Custom function ID */
45209
+ id: string;
45210
+ /** Display name */
45211
+ name: string;
45212
+ /** Description */
45213
+ description?: string | null;
45214
+ /** Product-facing type */
45215
+ type: CustomFunctionType;
45216
+ /** Lifecycle state */
45217
+ lifecycleState: CustomFunctionLifecycleState;
45218
+ /** ID of the Sombra gateway the function belongs to (signs its code and runs it) */
45219
+ sombraId?: string | null;
45220
+ /** ID of the data silo (DSR integration) the function is linked to, for DSR functions */
45221
+ dataSiloId?: string | null;
45222
+ /** Signed code JWT of the preferred (draft if pending, else active) version */
45223
+ signedCodeJwt: string;
45224
+ /** Signed code context JWT of the preferred version */
45225
+ signedCodeContextJwt: string;
45226
+ /** Whether a draft version is newer than the current active version */
45227
+ hasPendingDraft: boolean;
45228
+ /** Current active version metadata */
45229
+ activeVersion?: CustomFunctionVersionPreview | null;
45230
+ /** Pending draft version metadata */
45231
+ draftVersion?: CustomFunctionVersionPreview | null;
45232
+ }
45233
+ /**
45234
+ * Fetch all custom functions in the organization
45235
+ *
45236
+ * @param client - GraphQL client
45237
+ * @param options - Options
45238
+ * @returns All custom functions in the organization
45239
+ */
45240
+ declare function fetchAllCustomFunctions(client: GraphQLClient, options?: {
45241
+ /** Logger instance */logger?: Logger; /** Filter options */
45242
+ filterBy?: {
45243
+ /** Filter by text match on name or description */text?: string;
45244
+ };
45245
+ }): Promise<CustomFunction[]>;
45246
+ //#endregion
45247
+ //#region src/custom-functions/runCustomFunctionTest.d.ts
45248
+ /**
45249
+ * A log line emitted while executing a custom function.
45250
+ */
45251
+ interface CustomFunctionExecutionLog {
45252
+ /** The logged message */
45253
+ message: string;
45254
+ /** The stream/file the message was written to (e.g. stdout, stderr) */
45255
+ file: string;
45256
+ }
45257
+ /**
45258
+ * The error a custom function execution failed with, when it failed.
45259
+ */
45260
+ interface CustomFunctionExecutionError {
45261
+ /** Error message */
45262
+ message: string;
45263
+ /** Stack trace, when available */
45264
+ stack?: string | null;
45265
+ }
45266
+ /**
45267
+ * The result of executing a custom function via the `runCustomFunction`
45268
+ * mutation.
45269
+ */
45270
+ interface CustomFunctionExecutionResult {
45271
+ /** Process exit code (negative values are internal "success with warnings" codes) */
45272
+ exitCode: number;
45273
+ /** The error the execution failed with, when it failed */
45274
+ error?: CustomFunctionExecutionError | null;
45275
+ /** Log lines emitted during execution */
45276
+ logs: CustomFunctionExecutionLog[];
45277
+ /** Execution profile */
45278
+ profile: {
45279
+ /** Wall-clock execution time in milliseconds */timeMs: number;
45280
+ };
45281
+ }
45282
+ /**
45283
+ * The outcome of test-running a custom function.
45284
+ */
45285
+ interface CustomFunctionTestRunResult {
45286
+ /** Whether the test passed (no error and a non-failure exit code) */
45287
+ passed: boolean;
45288
+ /** The raw execution result (error, logs, exit code, timing) */
45289
+ result: CustomFunctionExecutionResult;
45290
+ }
45291
+ /**
45292
+ * A single test payload to run a custom function with before pushing.
45293
+ */
45294
+ interface CustomFunctionTestPayload {
45295
+ /** The JSON test payload */
45296
+ payload: object;
45297
+ /**
45298
+ * Which export the payload invokes for DSR functions (`DATA_POINT` →
45299
+ * `default`, `REQUEST_ENRICHER` → `enricher`). Defaults to DATA_POINT.
45300
+ * GENERAL functions are always run as Maestro payloads and ignore this
45301
+ */
45302
+ payloadType?: CustomFunctionPayloadType;
45303
+ }
45304
+ /**
45305
+ * Whether an execution result counts as a passing test.
45306
+ *
45307
+ * Mirrors the Admin Dashboard's function editor: a run passes when it
45308
+ * produced no error and exited with a code <= 0 (negative codes are internal
45309
+ * success-with-metadata codes).
45310
+ *
45311
+ * @param result - The execution result
45312
+ * @returns True when the run passed
45313
+ */
45314
+ declare function didCustomFunctionTestPass(result: Pick<CustomFunctionExecutionResult, 'error' | 'exitCode'>): boolean;
45315
+ /**
45316
+ * Test-run custom function code that has been signed but not yet saved.
45317
+ *
45318
+ * Sends the pre-signed code/context JWT pair to the `runCustomFunction`
45319
+ * mutation as a test run (`isCustomFunctionTestRun: true`). The backend
45320
+ * verifies JWT provenance against the target Sombra gateway, executes the
45321
+ * code on that gateway, and returns the execution result — nothing is
45322
+ * persisted.
45323
+ *
45324
+ * - GENERAL functions run against `sombraId` (or the organization's primary
45325
+ * Sombra) with the payload validated as a Maestro payload.
45326
+ * - DSR functions run against the Sombra of the data silo referenced by
45327
+ * `extras.dataSilo.id` in the payload; `payloadType` selects which export
45328
+ * is invoked (`DATA_POINT` → `default`, `REQUEST_ENRICHER` → `enricher`).
45329
+ *
45330
+ * Requires backend support for pre-signed JWTs on `runCustomFunction`; older
45331
+ * backends reject the JWT fields with a friendly upgrade error.
45332
+ *
45333
+ * @param client - GraphQL client authenticated with a Transcend API key
45334
+ * @param options - Options
45335
+ * @returns The execution result plus a `passed` boolean
45336
+ */
45337
+ declare function runCustomFunctionTest(client: GraphQLClient, options: {
45338
+ /** Product-facing type of the custom function under test */type: CustomFunctionType; /** Pre-signed code JWT from the Sombra customer-ingress `/v1/custom/sign` route */
45339
+ signedCodeJwt: string; /** Pre-signed code context JWT from the same sign call */
45340
+ signedCodeContextJwt: string; /** The JSON test payload to invoke the function with (base64-encoded on the wire) */
45341
+ payload: object; /** Dedicated Sombra gateway ID (GENERAL only; DSR derives it from the payload's data silo) */
45342
+ sombraId?: string;
45343
+ /**
45344
+ * Which export to invoke for DSR functions (`DATA_POINT` → `default`,
45345
+ * `REQUEST_ENRICHER` → `enricher`). Defaults to DATA_POINT. GENERAL
45346
+ * functions are always run as Maestro payloads and ignore this setting
45347
+ */
45348
+ payloadType?: CustomFunctionPayloadType; /** Logger instance */
45349
+ logger?: Logger;
45350
+ }): Promise<CustomFunctionTestRunResult>;
45351
+ //#endregion
45352
+ //#region src/custom-functions/syncCustomFunction.d.ts
45353
+ /**
45354
+ * The desired state of a custom function to sync to Transcend.
45355
+ */
45356
+ interface CustomFunctionConfigInput {
45357
+ /**
45358
+ * Custom function ID to update. When set, this is the sync key and the
45359
+ * function must already exist. When omitted, the function is matched by
45360
+ * exact name — which fails if multiple functions share the name.
45361
+ */
45362
+ id?: string;
45363
+ /** Display name of the custom function (the sync key when no `id` is set) */
45364
+ name: string;
45365
+ /** The plaintext TypeScript source code */
45366
+ code: string;
45367
+ /** Description of the custom function */
45368
+ description?: string;
45369
+ /** Product-facing type. Defaults to GENERAL */
45370
+ type?: CustomFunctionType;
45371
+ /** Data silo ID the function is attached to (required for DSR functions) */
45372
+ dataSiloId?: string;
45373
+ /** Dedicated Sombra gateway ID (defaults to the organization's primary Sombra) */
45374
+ sombraId?: string;
45375
+ /** Hosts the function is allowed to make network requests to */
45376
+ allowedHosts?: string[];
45377
+ /** Whether the function may import third party modules */
45378
+ allowThirdPartyImports?: boolean;
45379
+ /** Execution timeout in milliseconds */
45380
+ timeoutMs?: number;
45381
+ /** Environment variables to expose to the function */
45382
+ env?: Record<string, string>;
45383
+ }
45384
+ /**
45385
+ * The outcome of syncing a single custom function.
45386
+ */
45387
+ type CustomFunctionSyncOutcome = /** A new custom function was created */'created' /** A new revision was pushed to an existing custom function */ | 'updated' /** Only metadata (name/description) changed; updated without a new code revision */ | 'metadata-updated' /** No changes detected; nothing was pushed */ | 'skipped' /** The test run failed; nothing was pushed */ | 'test-failed' /** Dry run: a new custom function would be created */ | 'would-create' /** Dry run: a new revision would be pushed */ | 'would-update';
45388
+ /**
45389
+ * The result of running one test payload during a sync, tagged with the
45390
+ * export the payload invoked.
45391
+ */
45392
+ interface CustomFunctionSyncTestResult extends CustomFunctionTestRunResult {
45393
+ /** Which export the payload invoked (DSR functions; DATA_POINT when omitted) */
45394
+ payloadType?: CustomFunctionTestPayload['payloadType'];
45395
+ }
45396
+ /**
45397
+ * The result of syncing a single custom function.
45398
+ */
45399
+ interface CustomFunctionSyncResult {
45400
+ /** The sync outcome */
45401
+ outcome: CustomFunctionSyncOutcome;
45402
+ /** The custom function ID (when it exists or was created) */
45403
+ customFunctionId?: string;
45404
+ /** The version number that is now active or drafted (when a revision was pushed) */
45405
+ versionNumber?: string;
45406
+ /** Fields that changed, driving the update (empty on create/skip) */
45407
+ changedFields: string[];
45408
+ /** Whether the pushed revision was promoted to active */
45409
+ promoted: boolean;
45410
+ /** The test-run results (one per payload), when the code was tested */
45411
+ testResults?: CustomFunctionSyncTestResult[];
45412
+ /** The data silo (DSR integration) the function is linked to, for DSR functions */
45413
+ dataSiloId?: string;
45414
+ /**
45415
+ * Whether a new data silo (DSR integration) was created during this sync.
45416
+ * On a `test-failed` outcome this means the auto-created silo was rolled
45417
+ * back (deleted) — `dataSiloId` is absent in that case.
45418
+ */
45419
+ createdDataSilo?: boolean;
45420
+ }
45421
+ /**
45422
+ * Sync a custom function definition (metadata + code revision) to Transcend.
45423
+ *
45424
+ * - When no custom function with the given name exists, one is created.
45425
+ * - A new DSR function without a `dataSiloId` also gets its DSR integration
45426
+ * created: a `customFunction`-catalog data silo shell is created first (the
45427
+ * backend needs it to exist for the test run), the code is tested against
45428
+ * it, and on a passing test the function is created and linked. A failing
45429
+ * test rolls the silo back (deletes it).
45430
+ * - When one exists and the code/context changed, a new draft revision is
45431
+ * created and (unless `promote` is false) promoted to active.
45432
+ * - When only metadata changed (description, or name for id-pinned entries),
45433
+ * the function record is updated in place — no signing, no test runs, and
45434
+ * no new code revision.
45435
+ * - When nothing changed, the function is skipped (unless `force` is set).
45436
+ *
45437
+ * Code is signed against the Sombra customer-ingress `/v1/custom/sign` route
45438
+ * before being saved via the GraphQL API, so plaintext code and env values
45439
+ * never reach Transcend's backend.
45440
+ *
45441
+ * Environment variable values are encrypted server-side and cannot be diffed;
45442
+ * use `force` to re-push when only env values changed.
45443
+ *
45444
+ * @param client - GraphQL client authenticated with a Transcend API key
45445
+ * @param options - Options
45446
+ * @returns The sync result
45447
+ */
45448
+ declare function syncCustomFunction(client: GraphQLClient, options: {
45449
+ /** The desired custom function state */input: CustomFunctionConfigInput;
45450
+ /**
45451
+ * Got instance authenticated against the customer ingress of the Sombra
45452
+ * gateway the function belongs to (see `resolveEffectiveSombraId`).
45453
+ * Required unless `dryRun` is set
45454
+ */
45455
+ sombra?: Got; /** Default Sombra gateway ID when neither the config nor the existing function specify one */
45456
+ defaultSombraId?: string; /** All existing custom functions in the organization (see `fetchAllCustomFunctions`) */
45457
+ existing: CustomFunction[]; /** Whether to promote new revisions to active. Defaults to true */
45458
+ promote?: boolean; /** When true, report what would happen without mutating anything */
45459
+ dryRun?: boolean; /** When true, push a new revision even if no changes were detected */
45460
+ force?: boolean;
45461
+ /**
45462
+ * JSON test payloads to run the freshly signed code with before pushing.
45463
+ * Every payload is run via the `runCustomFunction` mutation (DSR
45464
+ * functions can cover both the default and enricher exports via
45465
+ * `payloadType`) and all must pass — any failure rejects the push
45466
+ * (outcome `test-failed`). Skipped on dry runs (nothing is signed).
45467
+ */
45468
+ testPayloads?: CustomFunctionTestPayload[]; /** Logger instance */
45469
+ logger?: Logger;
45470
+ }): Promise<CustomFunctionSyncResult>;
45471
+ //#endregion
45472
+ //#region src/custom-functions/buildCustomFunctionSignPayload.d.ts
45473
+ /**
45474
+ * Build the sign payload for a custom function config.
45475
+ *
45476
+ * @param input - The custom function config
45477
+ * @returns The plaintext sign payload
45478
+ */
45479
+ declare function buildCustomFunctionSignPayload(input: CustomFunctionConfigInput): CustomFunctionSignPayload;
45480
+ //#endregion
45481
+ //#region src/custom-functions/customFunctionDataSilo.d.ts
45482
+ /**
45483
+ * The integration/catalog name for custom function DSR integrations. Silos
45484
+ * created with this catalog get `customSiloConnectionStrategy =
45485
+ * CUSTOM_FUNCTION` and start `NOT_CONFIGURED` until a custom function is
45486
+ * attached — the same shell the Admin Dashboard creates for a new DSR
45487
+ * function.
45488
+ */
45489
+ declare const CUSTOM_FUNCTION_INTEGRATION_NAME = "customFunction";
45490
+ /**
45491
+ * A newly created custom function data silo (DSR integration).
45492
+ */
45493
+ interface CustomFunctionDataSilo {
45494
+ /** Data silo ID */
45495
+ id: string;
45496
+ /** Data silo title */
45497
+ title: string;
45498
+ }
45499
+ /**
45500
+ * Create the data silo (DSR integration) backing a new DSR custom function.
45501
+ *
45502
+ * The silo is an inert `customFunction`-catalog shell: it has no function
45503
+ * attached yet and stays `NOT_CONFIGURED` until `createCustomFunction` links
45504
+ * one (which flips it to `Connected`). The `customFunction` catalog requires
45505
+ * a Sombra gateway on create — the function's code runs on that gateway.
45506
+ *
45507
+ * @param client - GraphQL client authenticated with a Transcend API key
45508
+ * @param options - Options
45509
+ * @returns The created data silo
45510
+ */
45511
+ declare function createCustomFunctionDataSilo(client: GraphQLClient, options: {
45512
+ /** Title of the integration (conventionally the custom function name) */title: string; /** The Sombra gateway the function belongs to */
45513
+ sombraId: string; /** Logger instance */
45514
+ logger?: Logger;
45515
+ }): Promise<CustomFunctionDataSilo>;
45516
+ /**
45517
+ * Delete a data silo. Used to roll back a just-created custom function data
45518
+ * silo when the function's test run fails before anything was linked to it.
45519
+ *
45520
+ * @param client - GraphQL client authenticated with a Transcend API key
45521
+ * @param dataSiloId - The data silo ID to delete
45522
+ * @param options - Options
45523
+ */
45524
+ declare function deleteDataSilo(client: GraphQLClient, dataSiloId: string, options?: {
45525
+ /** Logger instance */logger?: Logger;
45526
+ }): Promise<void>;
45527
+ //#endregion
45528
+ //#region src/custom-functions/gqls/customFunction.d.ts
45529
+ declare const CUSTOM_FUNCTIONS: string;
45530
+ declare const CREATE_CUSTOM_FUNCTION: string;
45531
+ declare const UPDATE_STANDALONE_CUSTOM_FUNCTION: string;
45532
+ declare const CREATE_CUSTOM_FUNCTION_DATA_SILO: string;
45533
+ declare const DELETE_DATA_SILOS: string;
45534
+ declare const RUN_CUSTOM_FUNCTION: string;
45535
+ declare const PROMOTE_CUSTOM_FUNCTION_VERSION: string;
45536
+ //#endregion
45537
+ //#region src/custom-functions/injectDataSiloIntoDsrTestPayload.d.ts
45538
+ /**
45539
+ * Inject the resolved data silo into a DSR test payload.
45540
+ *
45541
+ * The backend's unsaved-DSR test path resolves the execution Sombra from
45542
+ * `extras.dataSilo.id`, so the payload must reference the function's actual
45543
+ * data silo — which the payload file cannot know for silos created during
45544
+ * the same push. The silo `id` is always overridden; other `extras.dataSilo`
45545
+ * fields from the payload file are preserved. The backend validates DSR
45546
+ * payloads against the full webhook notification codec, which requires
45547
+ * `title`, `description`, and `link` on the data silo — those are defaulted
45548
+ * when the payload file omits them.
45549
+ *
45550
+ * @param payload - The DSR test payload from the manifest
45551
+ * @param dataSilo - The resolved data silo
45552
+ * @returns The payload with `extras.dataSilo` pointing at the resolved silo
45553
+ */
45554
+ declare function injectDataSiloIntoDsrTestPayload(payload: object, dataSilo: {
45555
+ /** Data silo ID */id: string; /** Fallback title when the payload does not carry one */
45556
+ title: string;
45557
+ }): object;
45558
+ //#endregion
45559
+ //#region src/custom-functions/resolveEffectiveSombraId.d.ts
45560
+ /**
45561
+ * Resolve which Sombra gateway a custom function's code must be signed
45562
+ * against.
45563
+ *
45564
+ * Each custom function belongs to a single gateway, whose keys sign the code
45565
+ * and encrypt the env values — signing against any other gateway would
45566
+ * produce JWTs that fail verification at execution time. The gateway is
45567
+ * resolved as: the config's `sombraId`, else the existing function's
45568
+ * gateway, else the caller's default (e.g. a CLI flag), else `undefined`
45569
+ * meaning the organization's primary Sombra.
45570
+ *
45571
+ * A config that pins a different gateway than the existing function is an
45572
+ * error — the gateway of an existing function cannot be changed by a push.
45573
+ *
45574
+ * @param input - The custom function config
45575
+ * @param existing - The matching existing custom function, when there is one
45576
+ * @param defaultSombraId - Fallback gateway ID when neither the config nor the existing function specify one
45577
+ * @returns The Sombra gateway ID to sign against, or undefined for the primary gateway
45578
+ */
45579
+ declare function resolveEffectiveSombraId(input: Pick<CustomFunctionConfigInput, 'name' | 'sombraId'>, existing: Pick<CustomFunction, 'id' | 'sombraId'> | undefined, defaultSombraId?: string): string | undefined;
45580
+ /**
45581
+ * Resolve the organization's primary Sombra gateway ID.
45582
+ *
45583
+ * @param client - GraphQL client authenticated with a Transcend API key
45584
+ * @param logger - Logger instance
45585
+ * @returns The primary Sombra ID
45586
+ */
45587
+ declare function resolvePrimarySombraId(client: GraphQLClient, logger?: Logger): Promise<string>;
45588
+ //#endregion
45589
+ //#region src/custom-functions/resolveExistingCustomFunction.d.ts
45590
+ /**
45591
+ * Resolve which existing custom function a config refers to.
45592
+ *
45593
+ * When the config has an `id`, it must match an existing function. Otherwise
45594
+ * the function is matched by exact name; an ambiguous name (multiple existing
45595
+ * functions with the same name) is an error that the caller should resolve by
45596
+ * adding an `id` to the config.
45597
+ *
45598
+ * @param existing - All existing custom functions in the organization
45599
+ * @param input - The custom function config
45600
+ * @returns The matching custom function, or undefined when it should be created
45601
+ */
45602
+ declare function resolveExistingCustomFunction(existing: CustomFunction[], input: Pick<CustomFunctionConfigInput, 'id' | 'name'>): CustomFunction | undefined;
45603
+ //#endregion
45604
+ //#region src/custom-functions/signCustomFunctionCode.d.ts
45605
+ /**
45606
+ * The signed JWT pair returned by Sombra's customer-ingress
45607
+ * `/v1/custom/sign` endpoint.
45608
+ */
45609
+ interface SignedCustomFunctionJwts {
45610
+ /** HMAC-signed JWT wrapping the function code */
45611
+ signedCodeJwt: string;
45612
+ /** HMAC-signed JWT wrapping the execution context (env values encrypted at sign time) */
45613
+ signedCodeContextJwt: string;
45614
+ }
45615
+ /**
45616
+ * Sign custom function code against the Sombra customer-ingress
45617
+ * `/v1/custom/sign` route.
45618
+ *
45619
+ * The route is authenticated by the sombra instance's bearer headers (the
45620
+ * Transcend API key, plus the Sombra internal key when self-hosting — see
45621
+ * `createSombraGotInstance`). Code and env values travel to the customer's
45622
+ * own Sombra gateway over TLS and never reach Transcend's backend in
45623
+ * plaintext.
45624
+ *
45625
+ * @param sombra - Got instance authenticated against the Sombra customer ingress
45626
+ * @param payload - The plaintext code and execution context to sign
45627
+ * @param options - Options
45628
+ * @returns The signed code and context JWTs to store via the GraphQL API
45629
+ */
45630
+ declare function signCustomFunctionCode(sombra: Got, payload: CustomFunctionSignPayload, options?: {
45631
+ /** Existing custom function ID, forwarded for Sombra log context */customFunctionId?: string;
45632
+ }): Promise<SignedCustomFunctionJwts>;
45633
+ //#endregion
45084
45634
  //#region src/index.d.ts
45085
45635
  interface MonorepoPackageDefinition {
45086
45636
  directory: string;
@@ -45089,5 +45639,5 @@ interface MonorepoPackageDefinition {
45089
45639
  }
45090
45640
  declare function createMonorepoPackageDefinition(name: string, directory: string): MonorepoPackageDefinition;
45091
45641
  //#endregion
45092
- export { AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUE_FIELDS, Action, ActionItem, ActionItemAttributeKey, ActionItemCollection, ActionItemCollectionInput, ActionItemInput, ActionItemRaw, AddMessagesToPromptRunInput, Agent, AgentFile, AgentFileFilterBy, AgentFileInput, AgentFunction, AgentFunctionInput, AgentInput, AirgapBundleAggregateAnalyticsDimensionsGql, AirgapBundleAggregateAnalyticsItemGql, AirgapBundleTimeseriesAnalyticsItemGql, ApiKey, Assessment, AssessmentAction, AssessmentAnswer, AssessmentAnswerOption, AssessmentComment, AssessmentGroup, AssessmentNestedRule, AssessmentPreviousSubmission, AssessmentQuestion, AssessmentResource, AssessmentRiskLogic, AssessmentRule, AssessmentRuleWithOperands, AssessmentRuleWithoutOperands, AssessmentSection, Attribute, AttributeInput, AttributeKey, AttributeValue, AttributeValueInput, BULK_REQUEST_FILES, BusinessEntity, BusinessEntityInput, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, CONSENT_WORKFLOW_TRIGGERS, COOKIES, COOKIE_STATS, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_CONSENT_UI_THEME, CREATE_CONSENT_UI_VARIANT, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_OR_UPDATE_CONSENT_WORKFLOW_TRIGGER, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, Catalog, ChunkMode, CodePackage, ColumnIdentifierMap, ColumnMetadataMap, ColumnPurposeMap, ConsentExperience, ConsentManageExperienceInput, ConsentManager, ConsentManagerInput, ConsentManagerMetric, ConsentPreferenceResponse, ConsentUiTheme, ConsentUiThemesQueryResponse, ConsentUiVariant, ConsentUiVariantsQueryResponse, ConsentWorkflowTrigger, ConsentWorkflowTriggerPurposeInput, ConsentWorkflowTriggerSyncInput, CookieInput, CookieOrder, CreatedApiKey, DATAPOINT_EXPORT, DATA_FLOWS, DATA_FLOW_STATS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SILO_SOMBRA, DATA_SUBJECTS, DELETE_COOKIES, DELETE_DATA_FLOWS, DELETE_PRIVACY_CENTER_FOOTER_LINKS, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DataCategoryInput, DataFlowAttributeInput, DataFlowInput, DataFlowOrder, DataPoint, DataPointWithSubDataPoint, DataSilo, type DataSiloAttributeValue, DataSiloEnriched, DataSubCategory, DataSubject, DataSubjectInput, DataSubjectRef, DeletePreferenceRecordCliCsvRow, DeletePreferenceRecordsInput, DeletePreferenceRecordsResponse, ENRICHERS, EXPERIENCES, Enricher, EnricherInput, ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_CONSENT_UI_THEMES, FETCH_CONSENT_UI_VARIANTS, FETCH_PRIVACY_CENTER_ID, FailingPreferenceUpdates, FetchApiKeysInput, FileFormatState, FileMetadataState, FormattedAttribute, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, Identifier, IdentifierInput, IdentifierMetadataForPreference, IdentifiersAndCreateMissingInput, IndexedCatalogs, Initializer, IntlMessageInput, LargeLanguageModel, Message, MetadataMapping, MonorepoPackageDefinition, NEW_IDENTIFIER_TYPES, NOOP_LOGGER, OWNER_FIELDS, OrganizationPreview, POLICIES, PRIVACY_CENTER, PROCESSING_PURPOSE_SUB_CATEGORIES, PURPOSES, ParentOrganizationTeam, PartitionInput, PendingSafePreferenceUpdates, PendingWithConflictPreferenceUpdates, Plugin, PluginResponse, Policy, PolicyInput, PreferenceAccessTokenInput, PreferenceAccessTokenInputWithIndex, PreferenceIdentifier, PreferenceOptionValue, PreferenceOptionValueInput, PreferenceState, PreferenceTopic, type PreferenceTopicSyncInput, PreferenceUpdateMap, PreferenceUploadReferenceData, PreferencesQueryFilter, PrivacyCenter, PrivacyCenterChildOrganization, PrivacyCenterFooterLink, PrivacyCenterFooterLinkIcon, PrivacyCenterFooterLinkInput, PrivacyCenterInput, ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposeSubCategory, PromptThread, Purpose, type PurposeInput, PurposeRowMapping, PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RETRY_TRANSIENT_MSGS, Region, RegionInput, Repository, RepositoryInput, RequestDataSilo, RequestDataSiloFilters, RequestEnricher, RequestFile, RequestFileCursor, RequestFileResponse, RequestIdentifier, RequestIdentifierMetadata, RequestIdentifiersResponse, RequestUploadReceipts, RetentionSchedule, RetryOptions, RiskCategory, RiskFramework, RiskLevel, RiskMatrix, RiskMatrixColumn, RiskMatrixRow, SERVICE_FIELDS, SKIP_REQUEST_ENRICHER, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SiloDiscoveryRawResult, SiloDiscoveryResult, SkippedPreferenceUpdates, SoftwareDevelopmentKit, SoftwareDevelopmentKitInput, SubDataPoint, SubDataPointCategory, SubDataPointPurpose, SyncActionInput, SyncPurposesResult, SyncTemplateInput, SyncedConsentUiTheme, SyncedConsentUiVariant, TEAM_FIELDS, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TRACKING_PURPOSE_FIELDS, Team, TeamInput, Template, TranscendAttributeValueGql, TranscendCliAirgapBundleAggregateAnalyticsResponse, TranscendCliAirgapBundleTimeseriesAnalyticsResponse, TranscendCliConsentPartitionsResponse, TranscendCliCookieStatsResponse, TranscendCliCookiesResponse, TranscendCliCreateConsentExperienceResponse, TranscendCliCreateConsentPartitionResponse, TranscendCliCreateDataFlowsResponse, TranscendCliDataFlowStatsResponse, TranscendCliDataFlowsResponse, TranscendCliDeleteCookiesResponse, TranscendCliDeleteDataFlowsResponse, TranscendCliExperiencesResponse, TranscendCliFetchConsentManagerIdResponse, TranscendCliFetchConsentManagerResponse, TranscendCliFetchConsentManagerThemeResponse, TranscendCliPurposesResponse, TranscendCliUpdateConsentExperienceResponse, TranscendCliUpdateDataFlowsResponse, TranscendCliUpdateOrCreateCookiesResponse, TranscendClientMutationIdResponse, TranscendConsentManagerConfigGql, TranscendConsentManagerGql, TranscendConsentManagerThemeGql, TranscendConsentPartitionGql, TranscendCookieDomainGql, TranscendCookieGql, TranscendCookieServiceGql, TranscendDataFlowGql, TranscendExperienceGql, TranscendExperiencePurposeGql, TranscendExperienceRegionGql, TranscendMappedDataSiloGql, TranscendOwnerGql, TranscendPreferenceTopicGql, TranscendPreferenceTopicTitle, TranscendPurposeGql, TranscendTeamGql, TranscendTrackerStatsGql, TranscendTrackingPurposeGql, TranscendUpdateCookieInputGql, TranscendUpdateDataFlowInputGql, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_CONSENT_UI_THEME, UPDATE_CONSENT_UI_VARIANT, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_CENTER_FOOTER_LINKS, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, User, UserPreview, UserRole, Vendor, VendorInput, WorkflowConfigMatchInput, WorkflowConfigMatchResolution, WorkflowConfigNode, WorkflowConfigSummary, WorkflowConfigSyncInput, addMessagesToPromptRun, assumeRole, buildConsentChunks, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildTriggerConditionFromPurposes, checkIfPendingPreferenceUpdatesAreNoOp, checkIfPendingPreferenceUpdatesCauseConflict, consentWindowHasAny, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createDataCategory, createDataFlows, createDataSubject, createMonorepoPackageDefinition, createOrUpdatePreferenceOptionValues, createPreferenceAccessTokens, createProcessingPurpose, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTeam, createTranscendConsentGotInstance, createVendor, deleteApiKey, deployConsentManager, fetchActiveSiloDiscoPlugin, fetchAirgapBundleAggregateAnalytics, fetchAirgapBundleTimeseriesAnalytics, fetchAllActionItemCollections, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCodePackages, fetchAllConsentWorkflowTriggers, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllLargeLanguageModels, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceOptionValues, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptThreads, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRepositories, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllSiloDiscoveryResults, fetchAllSoftwareDevelopmentKits, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAllWorkflowConfigs, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchConsentPreferencesChunked, fetchConsentThemes, fetchConsentVariants, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchParentOrganizationTeams, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchRequestDataSilo, fetchRequestDataSilos, fetchRequestDataSilosCount, fetchRequestFilesForRequest, findEarliestDayWithData, findLatestDayWithData, formatAttributeValues, formatRegions, getBoundsFromConsentFilter, getComparisonTimeForRecord, getPreferenceIdentifiersFromRow, getPreferenceMetadataFromRow, getPreferenceUpdatesFromRow, getPreferencesForIdentifiers, getUniquePreferenceIdentifierNamesFromRow, getWorkflowConfigDisplayTitle, inferPolicyTypeFromTitle, isConsentWorkflowTriggerV2Mode, isTransientError, iterateConsentPages, loadReferenceData, loginUser, makeGraphQLRequest, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parsePurposesFromTriggerCondition, pickConsentChunkMode, resolveDisplayedChildOrganizationIds, resolveParentTeamIdsByName, resolveWorkflowConfigByTitle, resolveWorkflowConfigMatch, resolveWorkflowTitleFromId, retryRequestEnricher, setResourceAttributes, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncConsentManager, syncConsentManagerExperiences, syncConsentUiThemes, syncConsentUiVariants, syncConsentWorkflowTriggers, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPreferenceOptionValues, syncPreferenceTopics, syncPrivacyCenter, syncPrivacyCenterFooterLinks, syncProcessingActivities, syncProcessingPurposes, syncPurposes, syncRepositories, syncSoftwareDevelopmentKits, syncTeams, syncTemplate, syncVendors, syncWorkflowConfigs, transformPreferenceRecordToCsv, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateConsentManagerToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updateRepositories, updateSoftwareDevelopmentKits, updateTeam, updateVendors, uploadSiloDiscoveryResults, validateConsentWorkflowTriggerMode, validateSombraVersion, withTransientRetry, workflowConfigInputLabel, workflowConfigMatchKey, workflowRegionListKey };
45642
+ export { AIRGAP_BUNDLE_AGGREGATE_ANALYTICS, AIRGAP_BUNDLE_TIMESERIES_ANALYTICS, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUE_FIELDS, Action, ActionItem, ActionItemAttributeKey, ActionItemCollection, ActionItemCollectionInput, ActionItemInput, ActionItemRaw, AddMessagesToPromptRunInput, Agent, AgentFile, AgentFileFilterBy, AgentFileInput, AgentFunction, AgentFunctionInput, AgentInput, AirgapBundleAggregateAnalyticsDimensionsGql, AirgapBundleAggregateAnalyticsItemGql, AirgapBundleTimeseriesAnalyticsItemGql, ApiKey, Assessment, AssessmentAction, AssessmentAnswer, AssessmentAnswerOption, AssessmentComment, AssessmentGroup, AssessmentNestedRule, AssessmentPreviousSubmission, AssessmentQuestion, AssessmentResource, AssessmentRiskLogic, AssessmentRule, AssessmentRuleWithOperands, AssessmentRuleWithoutOperands, AssessmentSection, Attribute, AttributeInput, AttributeKey, AttributeValue, AttributeValueInput, BULK_REQUEST_FILES, BusinessEntity, BusinessEntityInput, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, CONSENT_WORKFLOW_TRIGGERS, COOKIES, COOKIE_STATS, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_CONSENT_UI_THEME, CREATE_CONSENT_UI_VARIANT, CREATE_CUSTOM_FUNCTION, CREATE_CUSTOM_FUNCTION_DATA_SILO, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_OR_UPDATE_CONSENT_WORKFLOW_TRIGGER, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, CUSTOM_FUNCTIONS, CUSTOM_FUNCTION_INTEGRATION_NAME, Catalog, ChunkMode, CodePackage, ColumnIdentifierMap, ColumnMetadataMap, ColumnPurposeMap, ConsentExperience, ConsentManageExperienceInput, ConsentManager, ConsentManagerInput, ConsentManagerMetric, ConsentPreferenceResponse, ConsentUiTheme, ConsentUiThemesQueryResponse, ConsentUiVariant, ConsentUiVariantsQueryResponse, ConsentWorkflowTrigger, ConsentWorkflowTriggerPurposeInput, ConsentWorkflowTriggerSyncInput, CookieInput, CookieOrder, CreatedApiKey, CustomFunction, CustomFunctionCodeContextInput, CustomFunctionConfigInput, CustomFunctionDataSilo, CustomFunctionDiff, CustomFunctionExecutionError, CustomFunctionExecutionLog, CustomFunctionExecutionResult, CustomFunctionSignPayload, CustomFunctionSyncOutcome, CustomFunctionSyncResult, CustomFunctionSyncTestResult, CustomFunctionTestPayload, CustomFunctionTestRunResult, CustomFunctionVersionPreview, DATAPOINT_EXPORT, DATA_FLOWS, DATA_FLOW_STATS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SILO_SOMBRA, DATA_SUBJECTS, DELETE_COOKIES, DELETE_DATA_FLOWS, DELETE_DATA_SILOS, DELETE_PRIVACY_CENTER_FOOTER_LINKS, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DataCategoryInput, DataFlowAttributeInput, DataFlowInput, DataFlowOrder, DataPoint, DataPointWithSubDataPoint, DataSilo, type DataSiloAttributeValue, DataSiloEnriched, DataSubCategory, DataSubject, DataSubjectInput, DataSubjectRef, DeletePreferenceRecordCliCsvRow, DeletePreferenceRecordsInput, DeletePreferenceRecordsResponse, DependedOnDataSiloInput, ENRICHERS, EXPERIENCES, Enricher, EnricherInput, ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_CONSENT_UI_THEMES, FETCH_CONSENT_UI_VARIANTS, FETCH_PRIVACY_CENTER_ID, FailingPreferenceUpdates, FetchApiKeysInput, FileFormatState, FileMetadataState, FormattedAttribute, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, Identifier, IdentifierInput, IdentifierMetadataForPreference, IdentifiersAndCreateMissingInput, IndexedCatalogs, Initializer, IntlMessageInput, LargeLanguageModel, Message, MetadataMapping, MonorepoPackageDefinition, NEW_IDENTIFIER_TYPES, NOOP_LOGGER, OWNER_FIELDS, OrganizationPreview, POLICIES, PRIVACY_CENTER, PROCESSING_PURPOSE_SUB_CATEGORIES, PROMOTE_CUSTOM_FUNCTION_VERSION, PURPOSES, ParentOrganizationTeam, PartitionInput, PendingSafePreferenceUpdates, PendingWithConflictPreferenceUpdates, Plugin, PluginResponse, Policy, PolicyInput, PreferenceAccessTokenInput, PreferenceAccessTokenInputWithIndex, PreferenceIdentifier, PreferenceOptionValue, PreferenceOptionValueInput, PreferenceState, PreferenceTopic, type PreferenceTopicSyncInput, PreferenceUpdateMap, PreferenceUploadReferenceData, PreferencesQueryFilter, PrivacyCenter, PrivacyCenterChildOrganization, PrivacyCenterFooterLink, PrivacyCenterFooterLinkIcon, PrivacyCenterFooterLinkInput, PrivacyCenterInput, ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposeSubCategory, PromptThread, Purpose, type PurposeInput, PurposeRowMapping, PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RETRY_TRANSIENT_MSGS, RUN_CUSTOM_FUNCTION, Region, RegionInput, Repository, RepositoryInput, RequestDataSilo, RequestDataSiloFilters, RequestEnricher, RequestFile, RequestFileCursor, RequestFileResponse, RequestIdentifier, RequestIdentifierMetadata, RequestIdentifiersResponse, RequestUploadReceipts, RetentionSchedule, RetryOptions, RiskCategory, RiskFramework, RiskLevel, RiskMatrix, RiskMatrixColumn, RiskMatrixRow, SERVICE_FIELDS, SKIP_REQUEST_ENRICHER, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SignedCustomFunctionCode, SignedCustomFunctionCodeContext, SignedCustomFunctionJwts, SiloDiscoveryRawResult, SiloDiscoveryResult, SkippedPreferenceUpdates, SoftwareDevelopmentKit, SoftwareDevelopmentKitInput, SubDataPoint, SubDataPointCategory, SubDataPointPurpose, SyncActionInput, SyncPurposesResult, SyncTemplateInput, SyncedConsentUiTheme, SyncedConsentUiVariant, TEAM_FIELDS, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TRACKING_PURPOSE_FIELDS, Team, TeamInput, Template, TranscendAttributeValueGql, TranscendCliAirgapBundleAggregateAnalyticsResponse, TranscendCliAirgapBundleTimeseriesAnalyticsResponse, TranscendCliConsentPartitionsResponse, TranscendCliCookieStatsResponse, TranscendCliCookiesResponse, TranscendCliCreateConsentExperienceResponse, TranscendCliCreateConsentPartitionResponse, TranscendCliCreateDataFlowsResponse, TranscendCliDataFlowStatsResponse, TranscendCliDataFlowsResponse, TranscendCliDeleteCookiesResponse, TranscendCliDeleteDataFlowsResponse, TranscendCliExperiencesResponse, TranscendCliFetchConsentManagerIdResponse, TranscendCliFetchConsentManagerResponse, TranscendCliFetchConsentManagerThemeResponse, TranscendCliPurposesResponse, TranscendCliUpdateConsentExperienceResponse, TranscendCliUpdateDataFlowsResponse, TranscendCliUpdateOrCreateCookiesResponse, TranscendClientMutationIdResponse, TranscendConsentManagerConfigGql, TranscendConsentManagerGql, TranscendConsentManagerThemeGql, TranscendConsentPartitionGql, TranscendCookieDomainGql, TranscendCookieGql, TranscendCookieServiceGql, TranscendDataFlowGql, TranscendExperienceGql, TranscendExperiencePurposeGql, TranscendExperienceRegionGql, TranscendMappedDataSiloGql, TranscendOwnerGql, TranscendPreferenceTopicGql, TranscendPreferenceTopicTitle, TranscendPurposeGql, TranscendTeamGql, TranscendTrackerStatsGql, TranscendTrackingPurposeGql, TranscendUpdateCookieInputGql, TranscendUpdateDataFlowInputGql, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_CONSENT_UI_THEME, UPDATE_CONSENT_UI_VARIANT, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_CENTER_FOOTER_LINKS, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, UPDATE_STANDALONE_CUSTOM_FUNCTION, User, UserPreview, UserRole, Vendor, VendorInput, WorkflowConfigMatchInput, WorkflowConfigMatchResolution, WorkflowConfigNode, WorkflowConfigSummary, WorkflowConfigSyncInput, addMessagesToPromptRun, assumeRole, buildConsentChunks, buildCustomFunctionSignPayload, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildTriggerConditionFromPurposes, checkIfPendingPreferenceUpdatesAreNoOp, checkIfPendingPreferenceUpdatesCauseConflict, consentWindowHasAny, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createCustomFunctionDataSilo, createDataCategory, createDataFlows, createDataSubject, createMonorepoPackageDefinition, createOrUpdatePreferenceOptionValues, createPreferenceAccessTokens, createProcessingPurpose, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTeam, createTranscendConsentGotInstance, createVendor, decodeJwtPayload, deleteApiKey, deleteDataSilo, deployConsentManager, didCustomFunctionTestPass, diffCustomFunctionCode, fetchActiveSiloDiscoPlugin, fetchAirgapBundleAggregateAnalytics, fetchAirgapBundleTimeseriesAnalytics, fetchAllActionItemCollections, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCodePackages, fetchAllConsentWorkflowTriggers, fetchAllCookies, fetchAllCustomFunctions, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllLargeLanguageModels, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceOptionValues, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptThreads, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRepositories, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllSiloDiscoveryResults, fetchAllSoftwareDevelopmentKits, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAllWorkflowConfigs, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchConsentPreferencesChunked, fetchConsentThemes, fetchConsentVariants, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchParentOrganizationTeams, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchRequestDataSilo, fetchRequestDataSilos, fetchRequestDataSilosCount, fetchRequestFilesForRequest, findEarliestDayWithData, findLatestDayWithData, formatAttributeValues, formatRegions, getBoundsFromConsentFilter, getComparisonTimeForRecord, getPreferenceIdentifiersFromRow, getPreferenceMetadataFromRow, getPreferenceUpdatesFromRow, getPreferencesForIdentifiers, getUniquePreferenceIdentifierNamesFromRow, getWorkflowConfigDisplayTitle, inferPolicyTypeFromTitle, injectDataSiloIntoDsrTestPayload, isConsentWorkflowTriggerV2Mode, isTransientError, iterateConsentPages, loadReferenceData, loginUser, makeGraphQLRequest, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parsePurposesFromTriggerCondition, pickConsentChunkMode, resolveDisplayedChildOrganizationIds, resolveEffectiveSombraId, resolveExistingCustomFunction, resolveParentTeamIdsByName, resolvePrimarySombraId, resolveWorkflowConfigByTitle, resolveWorkflowConfigMatch, resolveWorkflowTitleFromId, retryRequestEnricher, runCustomFunctionTest, setResourceAttributes, signCustomFunctionCode, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncConsentManager, syncConsentManagerExperiences, syncConsentUiThemes, syncConsentUiVariants, syncConsentWorkflowTriggers, syncCookies, syncCustomFunction, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPreferenceOptionValues, syncPreferenceTopics, syncPrivacyCenter, syncPrivacyCenterFooterLinks, syncProcessingActivities, syncProcessingPurposes, syncPurposes, syncRepositories, syncSoftwareDevelopmentKits, syncTeams, syncTemplate, syncVendors, syncWorkflowConfigs, transformPreferenceRecordToCsv, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateConsentManagerToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updateRepositories, updateSoftwareDevelopmentKits, updateTeam, updateVendors, uploadSiloDiscoveryResults, validateConsentWorkflowTriggerMode, validateSombraVersion, withTransientRetry, workflowConfigInputLabel, workflowConfigMatchKey, workflowRegionListKey };
45093
45643
  //# sourceMappingURL=index.d.mts.map