import type { DataspaceSector } from 'gdc-common-utils-ts/constants'; import type { PollOptions, SubmitAndPollResult } from './orchestration/client-port.js'; export type RouteContext = { tenantId: string; jurisdiction: string; sector: DataspaceSector | string; }; export type IndividualOrganizationConfirmOrderInput = { /** * Preferred route identifier for the selected personal indexing service provider. */ serviceProviderDid?: string; /** * @deprecated Use `serviceProviderDid`. */ tenantId?: string; jurisdiction?: string; sector?: string; offerId: string; additionalClaims?: Record; timeoutSeconds?: number; intervalSeconds?: number; }; /** * Terminal individual Order result with the opaque code required by the * subsequent managed-wallet activation and DCR flow. */ export type IndividualOrganizationOrderResult = SubmitAndPollResult & Readonly<{ activationCode: string; /** * Governed `RelatedPerson.identifier` automatically materialized by GW for * the principal Organization owner/controller. GW reuses the bare UUID from * `Organization.owner.identifier.value`; document helpers expose it as an * `urn:uuid:` FHIR reference only when a reference is required. */ controllerRelatedPersonIdentifier: string; /** * @deprecated Use `controllerRelatedPersonIdentifier`, which states the * resource represented by this identifier. */ controllerAssignmentIdentifier: string; }>; type ConfirmIndividualOrganizationOrderDeps = { input: IndividualOrganizationConfirmOrderInput; routeCtx: RouteContext; defaultTimeoutMs?: number; defaultIntervalMs?: number; individualFamilyOrderBatchPath: (ctx: RouteContext) => string; individualFamilyOrderPollPath: (ctx: RouteContext) => string; submitAndPoll: (submitPath: string, pollPath: string, payload: { thid?: string; } & Record, options?: PollOptions) => Promise; }; export declare function confirmIndividualOrganizationOrderWithDeps(deps: ConfirmIndividualOrganizationOrderDeps): Promise; /** * Reads the opaque controller activation code from a completed individual * Order. Integrators should consume `result.activationCode` instead of calling * this reader directly; it remains public for response-adapter compatibility. */ export declare function readIndividualOrganizationActivationCode(responseBody: unknown): string | undefined; /** * Reads the principal owner/controller assignment that GW creates during the * same Order transition as the individual controller licence. This is a * projection from the returned RelatedPerson `resource.meta.claims`; it is not * an Order claim and callers must not pre-create or search for it. */ export declare function readIndividualOrganizationControllerAssignmentIdentifier(responseBody: unknown): string | undefined; export {};