@caitlyn-ai/sdk 0.0.0-stage → 0.0.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 (45) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +4 -0
  3. package/README.md +164 -2
  4. package/dist-browser/sdk/index.mjs +1923 -0
  5. package/dist-browser/sdk/index.mjs.map +7 -0
  6. package/dist-cjs/sdk/index.cjs +1974 -0
  7. package/dist-cjs/sdk/index.cjs.map +7 -0
  8. package/dist-es/sdk/index.mjs +1925 -0
  9. package/dist-es/sdk/index.mjs.map +7 -0
  10. package/dist-types/Caitlyn.d.ts +76 -0
  11. package/dist-types/CaitlynClient.d.ts +160 -0
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  14. package/dist-types/commandBuilder.d.ts +18 -0
  15. package/dist-types/commands/CreateDocumentCommand.d.ts +190 -0
  16. package/dist-types/commands/CreateUploadCommand.d.ts +165 -0
  17. package/dist-types/commands/GetAgentVersionCommand.d.ts +177 -0
  18. package/dist-types/commands/ListDocumentsCommand.d.ts +176 -0
  19. package/dist-types/commands/ResumeConversationStreamCommand.d.ts +146 -0
  20. package/dist-types/commands/SendMessageCommand.d.ts +183 -0
  21. package/dist-types/commands/UpdateDraftVersionCommand.d.ts +202 -0
  22. package/dist-types/commands/index.d.ts +7 -0
  23. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  24. package/dist-types/endpoint/bdd.d.ts +2 -0
  25. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  26. package/dist-types/extensionConfiguration.d.ts +8 -0
  27. package/dist-types/index.d.ts +22 -0
  28. package/dist-types/models/CaitlynServiceException.d.ts +15 -0
  29. package/dist-types/models/enums.d.ts +148 -0
  30. package/dist-types/models/errors.d.ts +659 -0
  31. package/dist-types/models/models_0.d.ts +754 -0
  32. package/dist-types/pagination/Interfaces.d.ts +8 -0
  33. package/dist-types/pagination/ListDocumentsPaginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +2 -0
  35. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  36. package/dist-types/runtimeConfig.d.ts +50 -0
  37. package/dist-types/runtimeConfig.native.d.ts +49 -0
  38. package/dist-types/runtimeConfig.shared.d.ts +36 -0
  39. package/dist-types/runtimeExtensions.d.ts +17 -0
  40. package/dist-types/schemas/schemas_0.d.ts +51 -0
  41. package/dist-types/sdk/client.d.ts +47 -0
  42. package/dist-types/sdk/events.d.ts +163 -0
  43. package/dist-types/sdk/index.d.ts +8 -0
  44. package/dist-types/sdk/operations.d.ts +70 -0
  45. package/package.json +49 -5
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/CaitlynClient.ts", "../../src/auth/httpAuthSchemeProvider.ts", "../../src/endpoint/EndpointParameters.ts", "../../src/runtimeConfig.browser.ts", "../../src/runtimeConfig.shared.ts", "../../src/schemas/schemas_0.ts", "../../src/models/CaitlynServiceException.ts", "../../src/models/errors.ts", "../../src/runtimeExtensions.ts", "../../src/auth/httpAuthExtensionConfiguration.ts", "../../src/sdk/client.ts", "../../src/sdk/operations.ts", "../../src/commandBuilder.ts", "../../src/commands/CreateDocumentCommand.ts", "../../src/commands/CreateUploadCommand.ts", "../../src/commands/GetAgentVersionCommand.ts", "../../src/pagination/ListDocumentsPaginator.ts", "../../src/commands/ListDocumentsCommand.ts", "../../src/commands/ResumeConversationStreamCommand.ts", "../../src/commands/SendMessageCommand.ts", "../../src/commands/UpdateDraftVersionCommand.ts", "../../src/sdk/events.ts", "../../src/models/enums.ts", "../../src/sdk/index.ts"],
4
+ "sourcesContent": ["// smithy-typescript generated code\nimport { getCaitlynSdkPlugin } from \"@caitlyn-ai/sdk-core\";\nimport {\n DefaultIdentityProviderConfig,\n getHttpAuthSchemeEndpointRuleSetPlugin,\n getHttpSigningPlugin,\n} from \"@smithy/core\";\nimport {\n type DefaultsMode as __DefaultsMode,\n type SmithyConfiguration as __SmithyConfiguration,\n type SmithyResolvedConfiguration as __SmithyResolvedConfiguration,\n Client as __Client,\n} from \"@smithy/core/client\";\nimport {\n type EndpointInputConfig,\n type EndpointRequiredInputConfig,\n type EndpointRequiredResolvedConfig,\n type EndpointResolvedConfig,\n resolveEndpointConfig,\n resolveEndpointRequiredConfig,\n} from \"@smithy/core/endpoints\";\nimport { type HttpHandlerUserInput as __HttpHandlerUserInput, getContentLengthPlugin } from \"@smithy/core/protocols\";\nimport {\n type RetryInputConfig,\n type RetryResolvedConfig,\n getRetryPlugin,\n resolveRetryConfig,\n} from \"@smithy/core/retry\";\nimport { getSchemaSerdePlugin } from \"@smithy/core/schema\";\nimport type {\n BodyLengthCalculator as __BodyLengthCalculator,\n CheckOptionalClientConfig as __CheckOptionalClientConfig,\n ChecksumConstructor as __ChecksumConstructor,\n Decoder as __Decoder,\n Encoder as __Encoder,\n HashConstructor as __HashConstructor,\n HttpHandlerOptions as __HttpHandlerOptions,\n Logger as __Logger,\n Provider as __Provider,\n SdkStreamMixinInjector as __SdkStreamMixinInjector,\n StreamCollector as __StreamCollector,\n UrlParser as __UrlParser,\n} from \"@smithy/types\";\n\nimport {\n type HttpAuthSchemeInputConfig,\n type HttpAuthSchemeResolvedConfig,\n defaultCaitlynHttpAuthSchemeParametersProvider,\n resolveHttpAuthSchemeConfig,\n} from \"./auth/httpAuthSchemeProvider\";\nimport type { CreateDocumentCommandInput, CreateDocumentCommandOutput } from \"./commands/CreateDocumentCommand\";\nimport type { CreateUploadCommandInput, CreateUploadCommandOutput } from \"./commands/CreateUploadCommand\";\nimport type { GetAgentVersionCommandInput, GetAgentVersionCommandOutput } from \"./commands/GetAgentVersionCommand\";\nimport type { ListDocumentsCommandInput, ListDocumentsCommandOutput } from \"./commands/ListDocumentsCommand\";\nimport type {\n ResumeConversationStreamCommandInput,\n ResumeConversationStreamCommandOutput,\n} from \"./commands/ResumeConversationStreamCommand\";\nimport type { SendMessageCommandInput, SendMessageCommandOutput } from \"./commands/SendMessageCommand\";\nimport type {\n UpdateDraftVersionCommandInput,\n UpdateDraftVersionCommandOutput,\n} from \"./commands/UpdateDraftVersionCommand\";\nimport {\n type ClientInputEndpointParameters,\n type ClientResolvedEndpointParameters,\n type EndpointParameters,\n resolveClientEndpointParameters,\n} from \"./endpoint/EndpointParameters\";\nimport { getRuntimeConfig as __getRuntimeConfig } from \"./runtimeConfig\";\nimport { type RuntimeExtension, type RuntimeExtensionsConfig, resolveRuntimeExtensions } from \"./runtimeExtensions\";\n\nexport { __Client };\n\n/**\n * @public\n */\nexport type ServiceInputTypes =\n | CreateDocumentCommandInput\n | CreateUploadCommandInput\n | GetAgentVersionCommandInput\n | ListDocumentsCommandInput\n | ResumeConversationStreamCommandInput\n | SendMessageCommandInput\n | UpdateDraftVersionCommandInput;\n\n/**\n * @public\n */\nexport type ServiceOutputTypes =\n | CreateDocumentCommandOutput\n | CreateUploadCommandOutput\n | GetAgentVersionCommandOutput\n | ListDocumentsCommandOutput\n | ResumeConversationStreamCommandOutput\n | SendMessageCommandOutput\n | UpdateDraftVersionCommandOutput;\n\n/**\n * @public\n */\nexport interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {\n /**\n * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.\n */\n requestHandler?: __HttpHandlerUserInput;\n\n /**\n * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface\n * that computes the SHA-256 HMAC or checksum of a string or binary buffer.\n * @internal\n */\n sha256?: __ChecksumConstructor | __HashConstructor;\n\n /**\n * The function that will be used to convert strings into HTTP endpoints.\n * @internal\n */\n urlParser?: __UrlParser;\n\n /**\n * A function that can calculate the length of a request body.\n * @internal\n */\n bodyLengthChecker?: __BodyLengthCalculator;\n\n /**\n * A function that converts a stream into an array of bytes.\n * @internal\n */\n streamCollector?: __StreamCollector;\n\n /**\n * The function that will be used to convert a base64-encoded string to a byte array.\n * @internal\n */\n base64Decoder?: __Decoder;\n\n /**\n * The function that will be used to convert binary data to a base64-encoded string.\n * @internal\n */\n base64Encoder?: __Encoder;\n\n /**\n * The function that will be used to convert a UTF8-encoded string to a byte array.\n * @internal\n */\n utf8Decoder?: __Decoder;\n\n /**\n * The function that will be used to convert binary data to a UTF-8 encoded string.\n * @internal\n */\n utf8Encoder?: __Encoder;\n\n /**\n * The runtime environment.\n * @internal\n */\n runtime?: string;\n\n /**\n * Disable dynamically changing the endpoint of the client based on the hostPrefix\n * trait of an operation.\n */\n disableHostPrefix?: boolean;\n\n /**\n * Value for how many times a request will be made at most in case of retry.\n */\n maxAttempts?: number | __Provider<number>;\n\n /**\n * Specifies which retry algorithm to use.\n * Accepted values are \"standard\" and \"adaptive\".\n * @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html\n *\n */\n retryMode?: string | __Provider<string>;\n\n /**\n * Optional logger for logging debug/info/warn/error.\n */\n logger?: __Logger;\n\n /**\n * Optional extensions\n */\n extensions?: RuntimeExtension[];\n\n /**\n * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.\n */\n defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;\n /**\n * The internal function that inject utilities to runtime-specific stream to help users consume the data\n * @internal\n */\n sdkStreamMixin?: __SdkStreamMixinInjector;\n\n /**\n * The SDK package version, sent in the user agent.\n * @internal\n */\n caitlynSdkVersion?: string;\n\n}\n\n/**\n * @public\n */\nexport type CaitlynClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &\n ClientDefaults &\n RetryInputConfig &\n EndpointInputConfig<EndpointParameters> &\n EndpointRequiredInputConfig &\n HttpAuthSchemeInputConfig &\n ClientInputEndpointParameters;\n/**\n * @public\n *\n * The configuration interface of CaitlynClient class constructor that set the region, credentials and other options.\n */\nexport interface CaitlynClientConfig extends CaitlynClientConfigType {}\n\n/**\n * @public\n */\nexport type CaitlynClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &\n Required<ClientDefaults> &\n RuntimeExtensionsConfig &\n RetryResolvedConfig &\n EndpointResolvedConfig<EndpointParameters> &\n EndpointRequiredResolvedConfig &\n HttpAuthSchemeResolvedConfig &\n ClientResolvedEndpointParameters;\n/**\n * @public\n *\n * The resolved configuration interface of CaitlynClient class. This is resolved and normalized from the {@link CaitlynClientConfig | constructor configuration interface}.\n */\nexport interface CaitlynClientResolvedConfig extends CaitlynClientResolvedConfigType {}\n\n/**\n * The Caitlyn v3 API.\n *\n * Every request is made to a workspace's own hostname, which names the workspace, and carries a\n * short-lived Caitlyn bearer token, however the caller signed in. The `session` sign-in mode (the\n * browser cookie) is handled by the SDKs' runtime and is not modelled per operation.\n * @public\n */\nexport class CaitlynClient extends __Client<\n __HttpHandlerOptions,\n ServiceInputTypes,\n ServiceOutputTypes,\n CaitlynClientResolvedConfig\n> {\n /**\n * The resolved configuration of CaitlynClient class. This is resolved and normalized from the {@link CaitlynClientConfig | constructor configuration interface}.\n */\n readonly config: CaitlynClientResolvedConfig;\n\n constructor(...[configuration]: __CheckOptionalClientConfig<CaitlynClientConfig>) {\n const _config_0 = __getRuntimeConfig(configuration || {});\n super(_config_0 as any);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = resolveRetryConfig(_config_1);\n const _config_3 = resolveEndpointConfig(_config_2);\n const _config_4 = resolveEndpointRequiredConfig(_config_3);\n const _config_5 = resolveHttpAuthSchemeConfig(_config_4);\n const _config_6 = resolveRuntimeExtensions(_config_5, configuration?.extensions || []);\n this.config = _config_6;\n this.middlewareStack.use(getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(getRetryPlugin(this.config));\n this.middlewareStack.use(getContentLengthPlugin(this.config));\n this.middlewareStack.use(\n getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: defaultCaitlynHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config: CaitlynClientResolvedConfig) =>\n new DefaultIdentityProviderConfig({\n \"smithy.api#httpBearerAuth\": config.token,\n }),\n })\n );\n this.middlewareStack.use(getHttpSigningPlugin(this.config));\n this.middlewareStack.use(getCaitlynSdkPlugin(this.config, {\n 'retrySafeOperations': ['CreateDocument', 'CreateUpload', 'GetAgentVersion', 'ListDocuments', 'ResumeConversationStream', 'UpdateDraftVersion'], sdkModel: '5.115.0', 'since': ['CreateDocument=5.115.0', 'CreateUpload=5.115.0', 'GetAgentVersion=5.115.0', 'ListDocuments=5.115.0', 'ResumeConversationStream=5.115.0', 'SendMessage=5.115.0', 'UpdateDraftVersion=5.115.0'], }));\n }\n\n /**\n * Destroy underlying resources, like sockets. It's usually not necessary to do this.\n * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.\n * Otherwise, sockets might stay open for quite a long time before the server terminates them.\n */\n destroy(): void {\n super.destroy();\n }\n}\n", "// smithy-typescript generated code\nimport { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from \"@smithy/core\";\nimport { getSmithyContext, normalizeProvider } from \"@smithy/core/client\";\nimport {\n type HandlerExecutionContext,\n type HttpAuthOption,\n type HttpAuthScheme,\n type HttpAuthSchemeParameters,\n type HttpAuthSchemeParametersProvider,\n type HttpAuthSchemeProvider,\n type Provider,\n TokenIdentity,\n TokenIdentityProvider,\n} from \"@smithy/types\";\n\nimport type { CaitlynClientResolvedConfig } from \"../CaitlynClient\";\n\n/**\n * @internal\n */\nexport interface CaitlynHttpAuthSchemeParameters extends HttpAuthSchemeParameters {}\n\n/**\n * @internal\n */\nexport interface CaitlynHttpAuthSchemeParametersProvider\n extends HttpAuthSchemeParametersProvider<\n CaitlynClientResolvedConfig,\n HandlerExecutionContext,\n CaitlynHttpAuthSchemeParameters,\n object\n > {}\n\n/**\n * @internal\n */\nexport const defaultCaitlynHttpAuthSchemeParametersProvider = async (\n config: CaitlynClientResolvedConfig,\n context: HandlerExecutionContext,\n input: object\n): Promise<CaitlynHttpAuthSchemeParameters> => {\n return {\n operation: getSmithyContext(context).operation as string,\n };\n};\n\nfunction createSmithyApiHttpBearerAuthHttpAuthOption(authParameters: CaitlynHttpAuthSchemeParameters): HttpAuthOption {\n return {\n schemeId: \"smithy.api#httpBearerAuth\",\n };\n}\n\n/**\n * @internal\n */\nexport interface CaitlynHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CaitlynHttpAuthSchemeParameters> {}\n\n/**\n * @internal\n */\nexport const defaultCaitlynHttpAuthSchemeProvider: CaitlynHttpAuthSchemeProvider = (authParameters) => {\n const options: HttpAuthOption[] = [];\n switch (authParameters.operation) {\n default: {\n options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));\n }\n }\n return options;\n};\n\n/**\n * @public\n */\nexport interface HttpAuthSchemeInputConfig {\n /**\n * A comma-separated list of case-sensitive auth scheme names.\n * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.\n * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.\n * @public\n */\n authSchemePreference?: string[] | Provider<string[]>;\n\n /**\n * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.\n * @internal\n */\n httpAuthSchemes?: HttpAuthScheme[];\n\n /**\n * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.\n * @internal\n */\n httpAuthSchemeProvider?: CaitlynHttpAuthSchemeProvider;\n /**\n * The token used to authenticate requests.\n */\n token?: TokenIdentity | TokenIdentityProvider;\n}\n\n/**\n * @internal\n */\nexport interface HttpAuthSchemeResolvedConfig {\n /**\n * A comma-separated list of case-sensitive auth scheme names.\n * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.\n * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.\n * @public\n */\n readonly authSchemePreference: Provider<string[]>;\n\n /**\n * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.\n * @internal\n */\n readonly httpAuthSchemes: HttpAuthScheme[];\n\n /**\n * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.\n * @internal\n */\n readonly httpAuthSchemeProvider: CaitlynHttpAuthSchemeProvider;\n /**\n * The token used to authenticate requests.\n */\n readonly token?: TokenIdentityProvider;\n}\n\n/**\n * @internal\n */\nexport const resolveHttpAuthSchemeConfig = <T>(\n config: T & HttpAuthSchemeInputConfig\n): T & HttpAuthSchemeResolvedConfig => {\n const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);\n return Object.assign(config, {\n authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),\n token,\n }) as T & HttpAuthSchemeResolvedConfig;\n};\n", "// smithy-typescript generated code\nimport type {\n Endpoint,\n EndpointParameterInstructions,\n EndpointParameters as __EndpointParameters,\n EndpointV2,\n Provider,\n} from \"@smithy/types\";\n\n/**\n * @public\n */\nexport interface ClientInputEndpointParameters {\n endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;\n}\n\n/**\n * @public\n */\nexport type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, \"endpoint\"> & {\n defaultSigningName: string;\n};\n\n/**\n * @internal\n */\nexport const resolveClientEndpointParameters = <T>(\n options: T & ClientInputEndpointParameters\n): T & ClientResolvedEndpointParameters => {\n return Object.assign(options, {\n defaultSigningName: \"\",\n });\n};\n\n/**\n * @internal\n */\nexport const commonParams = {\n endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n} as const satisfies EndpointParameterInstructions;\n\n/**\n * @internal\n */\nexport interface EndpointParameters extends __EndpointParameters {\n endpoint?: string | undefined;\n}\n", "// smithy-typescript generated code\nimport { calculateBodyLength } from \"@smithy/core/serde\";\nimport { FetchHttpHandler as RequestHandler, streamCollector } from \"@smithy/fetch-http-handler\";\n\nimport type { CaitlynClientConfig } from \"./CaitlynClient\";\nimport { getRuntimeConfig as getSharedRuntimeConfig } from \"./runtimeConfig.shared\";\n\n/**\n * @internal\n */\nexport const getRuntimeConfig = (config: CaitlynClientConfig) => {\n const clientSharedValues = getSharedRuntimeConfig(config);\n return {\n ...clientSharedValues,\n ...config,\n runtime: \"browser\",\n bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,\n maxAttempts: config?.maxAttempts ?? 3,\n requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => undefined)),\n retryMode: config?.retryMode ?? \"standard\",\n streamCollector: config?.streamCollector ?? streamCollector,\n };\n};\n", "// smithy-typescript generated code\nimport { caitlynEndpointProvider, CaitlynRestJsonProtocol, CaitlynRetryStrategy } from \"@caitlyn-ai/sdk-core\";\nimport { HttpBearerAuthSigner } from \"@smithy/core\";\nimport { NoOpLogger } from \"@smithy/core/client\";\nimport { parseUrl } from \"@smithy/core/protocols\";\nimport { fromBase64, fromUtf8, sdkStreamMixin, toBase64, toUtf8 } from \"@smithy/core/serde\";\nimport type { IdentityProviderConfig } from \"@smithy/types\";\n\nimport { defaultCaitlynHttpAuthSchemeProvider } from \"./auth/httpAuthSchemeProvider\";\nimport type { CaitlynClientConfig } from \"./CaitlynClient\";\nimport { errorTypeRegistries } from \"./schemas/schemas_0\";\n\n/**\n * @internal\n */\nexport const getRuntimeConfig = (config: CaitlynClientConfig) => {\n return {\n apiVersion: \"3.0.0\",\n base64Decoder: config?.base64Decoder ?? fromBase64,\n base64Encoder: config?.base64Encoder ?? toBase64,\n caitlynSdkVersion: config?.caitlynSdkVersion ?? \"0.0.2\",\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? caitlynEndpointProvider,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCaitlynHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"smithy.api#httpBearerAuth\",\n identityProvider: (ipc: IdentityProviderConfig) =>\n ipc.getIdentityProvider(\"smithy.api#httpBearerAuth\"),\n signer: new HttpBearerAuthSigner(),\n },\n ],\n logger: config?.logger ?? new NoOpLogger(),\n protocol: config?.protocol ?? CaitlynRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? { defaultNamespace: \"ai.caitlyn.v3\", errorTypeRegistries },\n retryStrategy: config?.retryStrategy ?? new CaitlynRetryStrategy(config?.maxAttempts ?? 3),\n sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,\n sha256: config?.sha256 ?? undefined as any,\n urlParser: config?.urlParser ?? parseUrl,\n utf8Decoder: config?.utf8Decoder ?? fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? toUtf8,\n };\n};\n", "const _AC = \"AgentConfiguration\";\nconst _AS = \"AttachmentSettings\";\nconst _CAV = \"Caitlyn-Api-Version\";\nconst _CD = \"CreateDocument\";\nconst _CDI = \"CreateDocumentInput\";\nconst _CDO = \"CreateDocumentOutput\";\nconst _CE = \"ConflictError\";\nconst _CI = \"ContextItem\";\nconst _CIL = \"ContextItemList\";\nconst _CRI = \"Caitlyn-Request-Id\";\nconst _CS = \"ContentSafety\";\nconst _CU = \"CreateUpload\";\nconst _CUI = \"CreateUploadInput\";\nconst _CUO = \"CreateUploadOutput\";\nconst _D = \"Document\";\nconst _DL = \"DocumentList\";\nconst _ESB = \"EventStreamBody\";\nconst _ET = \"ETag\";\nconst _FE = \"FieldError\";\nconst _FEL = \"FieldErrorList\";\nconst _GAV = \"GetAgentVersion\";\nconst _GAVI = \"GetAgentVersionInput\";\nconst _GAVO = \"GetAgentVersionOutput\";\nconst _IE = \"InternalError\";\nconst _IK = \"Idempotency-Key\";\nconst _IM = \"If-Match\";\nconst _KBB = \"KnowledgeBaseBinding\";\nconst _KBBL = \"KnowledgeBaseBindingList\";\nconst _L = \"Location\";\nconst _LD = \"ListDocuments\";\nconst _LDI = \"ListDocumentsInput\";\nconst _LDO = \"ListDocumentsOutput\";\nconst _LEI = \"Last-Event-ID\";\nconst _NFE = \"NotFoundError\";\nconst _O = \"Operation\";\nconst _PDE = \"PermissionDeniedError\";\nconst _PF = \"PartialFailure\";\nconst _PFE = \"PreconditionFailedError\";\nconst _PFL = \"PartialFailureList\";\nconst _PRE = \"PreconditionRequiredError\";\nconst _PTLE = \"PayloadTooLargeError\";\nconst _RA = \"Retry-After\";\nconst _RCS = \"ResumeConversationStream\";\nconst _RCSI = \"ResumeConversationStreamInput\";\nconst _RCSO = \"ResumeConversationStreamOutput\";\nconst _SM = \"SendMessage\";\nconst _SMI = \"SendMessageInput\";\nconst _SMO = \"SendMessageOutput\";\nconst _SUE = \"ServiceUnavailableError\";\nconst _TMRE = \"TooManyRequestsError\";\nconst _UCE = \"UnprocessableContentError\";\nconst _UDV = \"UpdateDraftVersion\";\nconst _UDVI = \"UpdateDraftVersionInput\";\nconst _UDVO = \"UpdateDraftVersionOutput\";\nconst _UE = \"UnauthenticatedError\";\nconst _VE = \"ValidationError\";\nconst _a = \"attachments\";\nconst _aI = \"agentId\";\nconst _aV = \"apiVersion\";\nconst _bO = \"basedOn\";\nconst _bS = \"byteSize\";\nconst _c = \"client\";\nconst _cA = \"createdAt\";\nconst _cI = \"conversationId\";\nconst _cS = \"contentSafety\";\nconst _cT = \"contentType\";\nconst _cl = \"clear\";\nconst _co = \"code\";\nconst _con = \"configuration\";\nconst _cont = \"context\";\nconst _cu = \"cursor\";\nconst _d = \"detail\";\nconst _dD = \"deniedDocuments\";\nconst _da = \"data\";\nconst _do = \"document\";\nconst _e = \"error\";\nconst _eA = \"expiresAt\";\nconst _en = \"enabled\";\nconst _er = \"errors\";\nconst _et = \"etag\";\nconst _ev = \"events\";\nconst _f = \"folder\";\nconst _fN = \"fileName\";\nconst _fW = \"filter[name][startsWith]\";\nconst _fi = \"filter[folder][eq]\";\nconst _fil = \"filter[status][eq]\";\nconst _gI = \"guardrailId\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _hH = \"httpHeader\";\nconst _hQ = \"httpQuery\";\nconst _i = \"instructions\";\nconst _iK = \"idempotencyKey\";\nconst _iM = \"ifMatch\";\nconst _iT = \"idempotencyToken\";\nconst _id = \"identity\";\nconst _id_ = \"id\";\nconst _it = \"items\";\nconst _k = \"kind\";\nconst _kB = \"knowledgeBases\";\nconst _kBI = \"knowledgeBaseId\";\nconst _l = \"label\";\nconst _lEI = \"lastEventId\";\nconst _li = \"limit\";\nconst _lo = \"location\";\nconst _m = \"model\";\nconst _mF = \"maxFiles\";\nconst _mP = \"matchesProduction\";\nconst _mS = \"minimumScore\";\nconst _mT = \"mediaType\";\nconst _me = \"message\";\nconst _n = \"name\";\nconst _nC = \"nextCursor\";\nconst _nOR = \"numberOfResults\";\nconst _nP = \"namePrefix\";\nconst _no = \"note\";\nconst _o = \"operation\";\nconst _p = \"pointer\";\nconst _pF = \"partialFailures\";\nconst _pa = \"parameter\";\nconst _rAS = \"retryAfterSeconds\";\nconst _rH = \"requiredHeaders\";\nconst _rI = \"requestId\";\nconst _s = \"smithy.ts.sdk.synthetic.ai.caitlyn.v3\";\nconst _se = \"server\";\nconst _sh = \"sha256\";\nconst _so = \"source\";\nconst _sor = \"sort\";\nconst _st = \"status\";\nconst _sta = \"stage\";\nconst _str = \"streaming\";\nconst _t = \"type\";\nconst _tI = \"targetId\";\nconst _ti = \"title\";\nconst _ts = \"text/event-stream\";\nconst _u = \"uri\";\nconst _uA = \"updatedAt\";\nconst _uI = \"uploadId\";\nconst _uM = \"uploadMethod\";\nconst _uU = \"uploadUrl\";\nconst _v = \"version\";\nconst n0 = \"ai.caitlyn.v3\";\n\n// smithy-typescript generated code\nimport { TypeRegistry } from \"@smithy/core/schema\";\nimport type {\n StaticErrorSchema,\n StaticListSchema,\n StaticMapSchema,\n StaticOperationSchema,\n StaticSimpleSchema,\n StaticStructureSchema,\n} from \"@smithy/types\";\n\nimport { CaitlynServiceException } from \"../models/CaitlynServiceException\";\nimport {\n ConflictError,\n InternalError,\n NotFoundError,\n PayloadTooLargeError,\n PermissionDeniedError,\n PreconditionFailedError,\n PreconditionRequiredError,\n ServiceUnavailableError,\n TooManyRequestsError,\n UnauthenticatedError,\n UnprocessableContentError,\n ValidationError,\n} from \"../models/errors\";\n\n/* eslint no-var: 0 */\nconst _s_registry = new TypeRegistry(_s);\nexport var CaitlynServiceException$: StaticErrorSchema = [-3, _s, \"CaitlynServiceException\", 0, [], []];\n_s_registry.registerError(CaitlynServiceException$, CaitlynServiceException);\nconst n0_registry = new TypeRegistry(n0);\nexport var ConflictError$: StaticErrorSchema = [-3, n0, _CE,\n { [_e]: _c, [_hE]: 409 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(ConflictError$, ConflictError);\nexport var InternalError$: StaticErrorSchema = [-3, n0, _IE,\n { [_e]: _se, [_hE]: 500 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(InternalError$, InternalError);\nexport var NotFoundError$: StaticErrorSchema = [-3, n0, _NFE,\n { [_e]: _c, [_hE]: 404 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(NotFoundError$, NotFoundError);\nexport var PayloadTooLargeError$: StaticErrorSchema = [-3, n0, _PTLE,\n { [_e]: _c, [_hE]: 413 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(PayloadTooLargeError$, PayloadTooLargeError);\nexport var PermissionDeniedError$: StaticErrorSchema = [-3, n0, _PDE,\n { [_e]: _c, [_hE]: 403 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(PermissionDeniedError$, PermissionDeniedError);\nexport var PreconditionFailedError$: StaticErrorSchema = [-3, n0, _PFE,\n { [_e]: _c, [_hE]: 412 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(PreconditionFailedError$, PreconditionFailedError);\nexport var PreconditionRequiredError$: StaticErrorSchema = [-3, n0, _PRE,\n { [_e]: _c, [_hE]: 428 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(PreconditionRequiredError$, PreconditionRequiredError);\nexport var ServiceUnavailableError$: StaticErrorSchema = [-3, n0, _SUE,\n { [_e]: _se, [_hE]: 503 },\n [_t, _ti, _st, _co, _rI, _d, _er, _rAS],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList, [1, { [_hH]: _RA }]], 5\n];\nn0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);\nexport var TooManyRequestsError$: StaticErrorSchema = [-3, n0, _TMRE,\n { [_e]: _c, [_hE]: 429 },\n [_t, _ti, _st, _co, _rI, _d, _er, _rAS],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList, [1, { [_hH]: _RA }]], 5\n];\nn0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);\nexport var UnauthenticatedError$: StaticErrorSchema = [-3, n0, _UE,\n { [_e]: _c, [_hE]: 401 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(UnauthenticatedError$, UnauthenticatedError);\nexport var UnprocessableContentError$: StaticErrorSchema = [-3, n0, _UCE,\n { [_e]: _c, [_hE]: 422 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(UnprocessableContentError$, UnprocessableContentError);\nexport var ValidationError$: StaticErrorSchema = [-3, n0, _VE,\n { [_e]: _c, [_hE]: 400 },\n [_t, _ti, _st, _co, _rI, _d, _er],\n [0, 0, 1, 0, 0, 0, () => FieldErrorList], 5\n];\nn0_registry.registerError(ValidationError$, ValidationError);\n/**\n * TypeRegistry instances containing modeled errors.\n * @internal\n *\n */\nexport const errorTypeRegistries = [\n _s_registry,\n n0_registry,\n]\nvar EventStreamBody: StaticSimpleSchema = [0, n0, _ESB, { [_mT]: _ts, [_str]: 1 }, 42];\nexport var AgentConfiguration$: StaticStructureSchema = [3, n0, _AC,\n 0,\n [_i, _id, _m, _kB, _a, _cS, _dD],\n [0, 0, 0, () => KnowledgeBaseBindingList, () => AttachmentSettings$, () => ContentSafety$, 2], 1\n];\nexport var AttachmentSettings$: StaticStructureSchema = [3, n0, _AS,\n 0,\n [_en, _mF],\n [2, 1]\n];\nexport var ContentSafety$: StaticStructureSchema = [3, n0, _CS,\n 0,\n [_gI],\n [0]\n];\nexport var ContextItem$: StaticStructureSchema = [3, n0, _CI,\n 0,\n [_t, _l, _u, _da],\n [0, 0, 0, 15], 2\n];\nexport var CreateDocumentInput$: StaticStructureSchema = [3, n0, _CDI,\n 0,\n [_kBI, _uI, _f, _iK, _n],\n [[0, 1], 0, 0, [0, { [_hH]: _IK, [_iT]: 1 }], 0], 3\n];\nexport var CreateDocumentOutput$: StaticStructureSchema = [3, n0, _CDO,\n 0,\n [_do, _o, _rI, _aV, _lo],\n [() => Document$, () => Operation$, [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }], [0, { [_hH]: _L }]], 2\n];\nexport var CreateUploadInput$: StaticStructureSchema = [3, n0, _CUI,\n 0,\n [_fN, _cT, _bS, _sh, _iK],\n [0, 0, 1, 0, [0, { [_hH]: _IK, [_iT]: 1 }]], 4\n];\nexport var CreateUploadOutput$: StaticStructureSchema = [3, n0, _CUO,\n 0,\n [_id_, _uU, _uM, _rH, _eA, _st, _rI, _aV, _lo],\n [0, 0, 0, 128 | 0, 5, 0, [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }], [0, { [_hH]: _L }]], 6\n];\nexport var Document$: StaticStructureSchema = [3, n0, _D,\n 0,\n [_id_, _kBI, _n, _f, _st, _cA, _uA, _sta, _cT, _bS, _sh, _pF],\n [0, 0, 0, 0, 0, 5, 5, 0, 0, 1, 0, () => PartialFailureList], 7\n];\nexport var FieldError$: StaticStructureSchema = [3, n0, _FE,\n 0,\n [_co, _p, _pa, _d],\n [0, 0, 0, 0], 1\n];\nexport var GetAgentVersionInput$: StaticStructureSchema = [3, n0, _GAVI,\n 0,\n [_aI, _v],\n [[0, 1], [0, 1]], 2\n];\nexport var GetAgentVersionOutput$: StaticStructureSchema = [3, n0, _GAVO,\n 0,\n [_et, _aI, _n, _cA, _con, _rI, _aV, _so, _bO, _mP, _no],\n [[0, { [_hH]: _ET }], 0, 0, 5, () => AgentConfiguration$, [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }], 0, 0, 2, 0], 5\n];\nexport var KnowledgeBaseBinding$: StaticStructureSchema = [3, n0, _KBB,\n 0,\n [_kBI, _nOR, _mS],\n [0, 1, 1], 1\n];\nexport var ListDocumentsInput$: StaticStructureSchema = [3, n0, _LDI,\n 0,\n [_kBI, _li, _cu, _sor, _f, _st, _nP],\n [[0, 1], [1, { [_hQ]: _li }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }], [0, { [_hQ]: _fi }], [0, { [_hQ]: _fil }], [0, { [_hQ]: _fW }]], 1\n];\nexport var ListDocumentsOutput$: StaticStructureSchema = [3, n0, _LDO,\n 0,\n [_it, _rI, _aV, _nC],\n [() => DocumentList, [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }], 0], 1\n];\nexport var Operation$: StaticStructureSchema = [3, n0, _O,\n 0,\n [_id_, _k, _st, _cA],\n [0, 0, 0, 5], 4\n];\nexport var PartialFailure$: StaticStructureSchema = [3, n0, _PF,\n 0,\n [_co, _tI, _d],\n [0, 0, 0], 1\n];\nexport var ResumeConversationStreamInput$: StaticStructureSchema = [3, n0, _RCSI,\n 0,\n [_cI, _lEI],\n [[0, 1], [0, { [_hH]: _LEI }]], 1\n];\nexport var ResumeConversationStreamOutput$: StaticStructureSchema = [3, n0, _RCSO,\n 0,\n [_ev, _rI, _aV],\n [[() => EventStreamBody, 16], [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }]], 1\n];\nexport var SendMessageInput$: StaticStructureSchema = [3, n0, _SMI,\n 0,\n [_cI, _me, _cont],\n [[0, 1], 0, () => ContextItemList], 2\n];\nexport var SendMessageOutput$: StaticStructureSchema = [3, n0, _SMO,\n 0,\n [_ev, _rI, _aV],\n [[() => EventStreamBody, 16], [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }]], 1\n];\nexport var UpdateDraftVersionInput$: StaticStructureSchema = [3, n0, _UDVI,\n 0,\n [_aI, _iM, _id, _i, _m, _kB, _a, _cS, _dD, _cl],\n [[0, 1], [0, { [_hH]: _IM }], 0, 0, 0, () => KnowledgeBaseBindingList, () => AttachmentSettings$, () => ContentSafety$, 2, 64 | 0], 2\n];\nexport var UpdateDraftVersionOutput$: StaticStructureSchema = [3, n0, _UDVO,\n 0,\n [_et, _aI, _n, _cA, _con, _rI, _aV, _so, _bO, _mP, _no],\n [[0, { [_hH]: _ET }], 0, 0, 5, () => AgentConfiguration$, [0, { [_hH]: _CRI }], [0, { [_hH]: _CAV }], 0, 0, 2, 0], 5\n];\nvar ClearableDraftFieldList = 64 | 0;\nvar ContextItemList: StaticListSchema = [1, n0, _CIL,\n 0, () => ContextItem$\n];\nvar DocumentList: StaticListSchema = [1, n0, _DL,\n 0, () => Document$\n];\nvar FieldErrorList: StaticListSchema = [1, n0, _FEL,\n 0, () => FieldError$\n];\nvar KnowledgeBaseBindingList: StaticListSchema = [1, n0, _KBBL,\n 0, () => KnowledgeBaseBinding$\n];\nvar PartialFailureList: StaticListSchema = [1, n0, _PFL,\n 0, () => PartialFailure$\n];\nvar HeaderMap = 128 | 0;\nexport var CreateDocument$: StaticOperationSchema = [9, n0, _CD,\n { [_h]: [\"POST\", \"/v3/knowledge-bases/{knowledgeBaseId}/documents\", 202] }, () => CreateDocumentInput$, () => CreateDocumentOutput$\n];\nexport var CreateUpload$: StaticOperationSchema = [9, n0, _CU,\n { [_h]: [\"POST\", \"/v3/uploads\", 201] }, () => CreateUploadInput$, () => CreateUploadOutput$\n];\nexport var GetAgentVersion$: StaticOperationSchema = [9, n0, _GAV,\n { [_h]: [\"GET\", \"/v3/agents/{agentId}/versions/{version}\", 200] }, () => GetAgentVersionInput$, () => GetAgentVersionOutput$\n];\nexport var ListDocuments$: StaticOperationSchema = [9, n0, _LD,\n { [_h]: [\"GET\", \"/v3/knowledge-bases/{knowledgeBaseId}/documents\", 200] }, () => ListDocumentsInput$, () => ListDocumentsOutput$\n];\nexport var ResumeConversationStream$: StaticOperationSchema = [9, n0, _RCS,\n { [_h]: [\"GET\", \"/v3/conversations/{conversationId}/stream\", 200] }, () => ResumeConversationStreamInput$, () => ResumeConversationStreamOutput$\n];\nexport var SendMessage$: StaticOperationSchema = [9, n0, _SM,\n { [_h]: [\"POST\", \"/v3/conversations/{conversationId}/send\", 200] }, () => SendMessageInput$, () => SendMessageOutput$\n];\nexport var UpdateDraftVersion$: StaticOperationSchema = [9, n0, _UDV,\n { [_h]: [\"PATCH\", \"/v3/agents/{agentId}/versions/draft\", 200] }, () => UpdateDraftVersionInput$, () => UpdateDraftVersionOutput$\n];\n", "// smithy-typescript generated code\nimport {\n type ServiceExceptionOptions as __ServiceExceptionOptions,\n ServiceException as __ServiceException,\n} from \"@smithy/core/client\";\n\nexport type { __ServiceExceptionOptions };\n\nexport { __ServiceException };\n\n/**\n * @public\n *\n * Base exception class for all service exceptions from Caitlyn service.\n */\nexport class CaitlynServiceException extends __ServiceException {\n public static readonly shapeId: string = \"smithy.ts.sdk.synthetic.ai.caitlyn.v3#CaitlynServiceException\";\n /**\n * @internal\n */\n constructor(options: __ServiceExceptionOptions) {\n super(options);\n Object.setPrototypeOf(this, CaitlynServiceException.prototype);\n }\n}\n", "// smithy-typescript generated code\nimport type { ExceptionOptionType as __ExceptionOptionType } from \"@smithy/core/client\";\n\nimport { CaitlynServiceException as __BaseException } from \"./CaitlynServiceException\";\nimport type { FieldError } from \"./models_0\";\n\n/**\n * An unexpected server failure. Not retried by the SDKs.\n * @public\n */\nexport class InternalError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#InternalError\";\n readonly name = \"InternalError\" as const;\n readonly $fault = \"server\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<InternalError, __BaseException>) {\n super({\n name: \"InternalError\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n * @public\n */\nexport class NotFoundError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#NotFoundError\";\n readonly name = \"NotFoundError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<NotFoundError, __BaseException>) {\n super({\n name: \"NotFoundError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, NotFoundError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n * @public\n */\nexport class PermissionDeniedError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#PermissionDeniedError\";\n readonly name = \"PermissionDeniedError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<PermissionDeniedError, __BaseException>) {\n super({\n name: \"PermissionDeniedError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PermissionDeniedError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * `If-Match` does not match the resource's current ETag: it changed since the caller read it.\n * @public\n */\nexport class PreconditionFailedError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#PreconditionFailedError\";\n readonly name = \"PreconditionFailedError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<PreconditionFailedError, __BaseException>) {\n super({\n name: \"PreconditionFailedError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PreconditionFailedError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The update sent no `If-Match` header; read the resource and send its ETag.\n * @public\n */\nexport class PreconditionRequiredError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#PreconditionRequiredError\";\n readonly name = \"PreconditionRequiredError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<PreconditionRequiredError, __BaseException>) {\n super({\n name: \"PreconditionRequiredError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PreconditionRequiredError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n * @public\n */\nexport class ServiceUnavailableError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#ServiceUnavailableError\";\n readonly name = \"ServiceUnavailableError\" as const;\n readonly $fault = \"server\" as const;\n $retryable = {};\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n\n /**\n * Seconds to wait before trying again, from the `Retry-After` header.\n * @public\n */\n retryAfterSeconds?: number | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<ServiceUnavailableError, __BaseException>) {\n super({\n name: \"ServiceUnavailableError\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, ServiceUnavailableError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n this.retryAfterSeconds = opts.retryAfterSeconds;\n }\n}\n\n/**\n * Too many requests; wait for `Retry-After` and try again.\n * @public\n */\nexport class TooManyRequestsError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#TooManyRequestsError\";\n readonly name = \"TooManyRequestsError\" as const;\n readonly $fault = \"client\" as const;\n $retryable = {\n throttling: true,\n };\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n\n /**\n * Seconds to wait before trying again, from the `Retry-After` header.\n * @public\n */\n retryAfterSeconds?: number | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<TooManyRequestsError, __BaseException>) {\n super({\n name: \"TooManyRequestsError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, TooManyRequestsError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n this.retryAfterSeconds = opts.retryAfterSeconds;\n }\n}\n\n/**\n * No credential was sent, or it is expired or not valid.\n * @public\n */\nexport class UnauthenticatedError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#UnauthenticatedError\";\n readonly name = \"UnauthenticatedError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<UnauthenticatedError, __BaseException>) {\n super({\n name: \"UnauthenticatedError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthenticatedError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n * @public\n */\nexport class ValidationError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#ValidationError\";\n readonly name = \"ValidationError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>) {\n super({\n name: \"ValidationError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ValidationError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The resource's state does not allow the request, a unique name is taken, or a request with the\n * same idempotency key is still in progress.\n * @public\n */\nexport class ConflictError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#ConflictError\";\n readonly name = \"ConflictError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<ConflictError, __BaseException>) {\n super({\n name: \"ConflictError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ConflictError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The body, a file or the send `context` is over its documented limit.\n * @public\n */\nexport class PayloadTooLargeError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#PayloadTooLargeError\";\n readonly name = \"PayloadTooLargeError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<PayloadTooLargeError, __BaseException>) {\n super({\n name: \"PayloadTooLargeError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, PayloadTooLargeError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n\n/**\n * The idempotency key was already used with a different request body.\n * @public\n */\nexport class UnprocessableContentError extends __BaseException {\n public static readonly shapeId: string = \"ai.caitlyn.v3#UnprocessableContentError\";\n readonly name = \"UnprocessableContentError\" as const;\n readonly $fault = \"client\" as const;\n /**\n * A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/\\{code\\}`.\n * @public\n */\n type: string;\n\n /**\n * A short, human-readable summary of the problem, the same for every occurrence of the code.\n * @public\n */\n title: string;\n\n /**\n * The HTTP status code, repeated from the response.\n * @public\n */\n status: number;\n\n /**\n * The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it.\n * @public\n */\n code: string;\n\n /**\n * What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data.\n * @public\n */\n detail?: string | undefined;\n\n /**\n * The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support.\n * @public\n */\n requestId: string;\n\n /**\n * Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`.\n * @public\n */\n errors?: FieldError[] | undefined;\n /**\n * @internal\n */\n constructor(opts: __ExceptionOptionType<UnprocessableContentError, __BaseException>) {\n super({\n name: \"UnprocessableContentError\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnprocessableContentError.prototype);\n this.type = opts.type;\n this.title = opts.title;\n this.status = opts.status;\n this.code = opts.code;\n this.detail = opts.detail;\n this.requestId = opts.requestId;\n this.errors = opts.errors;\n }\n}\n", "// smithy-typescript generated code\nimport { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from \"@smithy/core/client\";\nimport { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from \"@smithy/core/protocols\";\n\nimport { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from \"./auth/httpAuthExtensionConfiguration\";\nimport type { CaitlynExtensionConfiguration } from \"./extensionConfiguration\";\n\n/**\n * @public\n */\nexport interface RuntimeExtension {\n configure(extensionConfiguration: CaitlynExtensionConfiguration): void;\n}\n\n/**\n * @public\n */\nexport interface RuntimeExtensionsConfig {\n extensions: RuntimeExtension[];\n}\n\n/**\n * @internal\n */\nexport const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => {\n const extensionConfiguration: CaitlynExtensionConfiguration = Object.assign(\n getDefaultExtensionConfiguration(runtimeConfig),\n getHttpHandlerExtensionConfiguration(runtimeConfig),\n getHttpAuthExtensionConfiguration(runtimeConfig)\n );\n\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n\n return Object.assign(\n runtimeConfig,\n resolveDefaultRuntimeConfig(extensionConfiguration),\n resolveHttpHandlerRuntimeConfig(extensionConfiguration),\n resolveHttpAuthRuntimeConfig(extensionConfiguration)\n );\n};\n", "// smithy-typescript generated code\nimport { type HttpAuthScheme, TokenIdentity, TokenIdentityProvider } from \"@smithy/types\";\n\nimport type { CaitlynHttpAuthSchemeProvider } from \"./httpAuthSchemeProvider\";\n\n/**\n * @internal\n */\nexport interface HttpAuthExtensionConfiguration {\n setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;\n httpAuthSchemes(): HttpAuthScheme[];\n setHttpAuthSchemeProvider(httpAuthSchemeProvider: CaitlynHttpAuthSchemeProvider): void;\n httpAuthSchemeProvider(): CaitlynHttpAuthSchemeProvider;\n setToken(token: TokenIdentity | TokenIdentityProvider): void;\n token(): TokenIdentity | TokenIdentityProvider | undefined;\n}\n\n/**\n * @internal\n */\nexport type HttpAuthRuntimeConfig = Partial<{\n httpAuthSchemes: HttpAuthScheme[];\n httpAuthSchemeProvider: CaitlynHttpAuthSchemeProvider;\n token: TokenIdentity | TokenIdentityProvider;\n}>;\n\n/**\n * @internal\n */\nexport const getHttpAuthExtensionConfiguration = (\n runtimeConfig: HttpAuthRuntimeConfig\n): HttpAuthExtensionConfiguration => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes!;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider!;\n let _token = runtimeConfig.token;\n return {\n setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n } else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes(): HttpAuthScheme[] {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider: CaitlynHttpAuthSchemeProvider): void {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider(): CaitlynHttpAuthSchemeProvider {\n return _httpAuthSchemeProvider;\n },\n setToken(token: TokenIdentity | TokenIdentityProvider): void {\n _token = token;\n },\n token(): TokenIdentity | TokenIdentityProvider | undefined {\n return _token;\n },\n };\n};\n\n/**\n * @internal\n */\nexport const resolveHttpAuthRuntimeConfig = (config: HttpAuthExtensionConfiguration): HttpAuthRuntimeConfig => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n token: config.token(),\n };\n};\n", "// Generated by ai.caitlyn:caitlyn-typescript-codegen from the Smithy model. Do not edit.\nimport { CaitlynClient } from \"../CaitlynClient\";\nimport { clientConfig, createAuth, getCaitlynAuthPlugin, getCaitlynTelemetryPlugin, type AuthSession, type CaitlynOptions } from \"@caitlyn-ai/sdk-core\";\nimport * as ops from \"./operations\";\n\ntype Rest<F> = F extends (client: CaitlynClient, ...rest: infer R) => unknown ? R : never;\n\n/** Creates the client the standalone operation functions take as their first argument. */\nexport function createCaitlynClient(options: CaitlynOptions, auth: AuthSession = createAuth(options)): CaitlynClient {\n const client = new CaitlynClient(clientConfig(options, auth));\n client.middlewareStack.use(getCaitlynAuthPlugin(auth));\n if (options.telemetry?.enabled !== false) client.middlewareStack.use(getCaitlynTelemetryPlugin(options.telemetry?.tracerProvider));\n return client;\n}\n\n/** Every operation, grouped by namespace. Import the standalone functions instead for the smallest bundle. */\nexport class Caitlyn {\n readonly client: CaitlynClient;\n /** The sign-in session: the current token, and the oauth mode's authorizationUrl(), handleCallback() and signOut(). */\n readonly auth: AuthSession;\n\n constructor(options: CaitlynOptions) {\n this.auth = createAuth(options);\n this.client = createCaitlynClient(options, this.auth);\n }\n\n readonly conversations = {\n resume: (...args: Rest<typeof ops.resumeConversationStream>) => ops.resumeConversationStream(this.client, ...args),\n send: (...args: Rest<typeof ops.sendMessage>) => ops.sendMessage(this.client, ...args),\n };\n\n readonly documents = {\n create: (...args: Rest<typeof ops.createDocument>) => ops.createDocument(this.client, ...args),\n list: (...args: Rest<typeof ops.listDocuments>) => ops.listDocuments(this.client, ...args),\n upload: (...args: Rest<typeof ops.uploadDocument>) => ops.uploadDocument(this.client, ...args),\n };\n\n readonly uploads = {\n create: (...args: Rest<typeof ops.createUploadFromFile>) => ops.createUploadFromFile(this.client, ...args),\n reserve: (...args: Rest<typeof ops.createUpload>) => ops.createUpload(this.client, ...args),\n };\n\n readonly versions = {\n get: (...args: Rest<typeof ops.getAgentVersion>) => ops.getAgentVersion(this.client, ...args),\n updateDraft: (...args: Rest<typeof ops.updateDraftVersion>) => ops.updateDraftVersion(this.client, ...args),\n };\n}\n", "// Generated by ai.caitlyn:caitlyn-typescript-codegen from the Smithy model. Do not edit.\nimport type { CaitlynClient } from \"../CaitlynClient\";\nimport { CaitlynServiceException } from \"../models/CaitlynServiceException\";\nimport { SseStream, uploadFile, type CallOptions, type WithRaw } from \"@caitlyn-ai/sdk-core\";\nimport { ConflictError, InternalError, NotFoundError, PayloadTooLargeError, PermissionDeniedError, PreconditionFailedError, PreconditionRequiredError, ServiceUnavailableError, TooManyRequestsError, UnauthenticatedError, UnprocessableContentError, ValidationError } from \"../models/errors\";\nimport { CreateDocumentCommand } from \"../commands/CreateDocumentCommand\";\nimport { CreateUploadCommand } from \"../commands/CreateUploadCommand\";\nimport { GetAgentVersionCommand } from \"../commands/GetAgentVersionCommand\";\nimport { ListDocumentsCommand } from \"../commands/ListDocumentsCommand\";\nimport { paginateListDocuments } from \"../pagination/ListDocumentsPaginator\";\nimport { ResumeConversationStreamCommand } from \"../commands/ResumeConversationStreamCommand\";\nimport { SendMessageCommand } from \"../commands/SendMessageCommand\";\nimport { UpdateDraftVersionCommand } from \"../commands/UpdateDraftVersionCommand\";\nimport type { CreateDocumentInput, CreateDocumentOutput, CreateUploadInput, CreateUploadOutput, Document, GetAgentVersionInput, GetAgentVersionOutput, ListDocumentsInput, ListDocumentsOutput, ResumeConversationStreamInput, ResumeConversationStreamOutput, SendMessageInput, SendMessageOutput, UpdateDraftVersionInput, UpdateDraftVersionOutput } from \"../models/models_0\";\nimport { ConversationEventNames, type ConversationEvent, type Message } from \"./events\";\n\n/** The error class for each HTTP status (one per status: PROTOCOL.md lint rule 1). */\nconst ERROR_CLASSES: Record<number, new (opts: any) => CaitlynServiceException> = {\n 400: ValidationError,\n 401: UnauthenticatedError,\n 403: PermissionDeniedError,\n 404: NotFoundError,\n 409: ConflictError,\n 412: PreconditionFailedError,\n 413: PayloadTooLargeError,\n 422: UnprocessableContentError,\n 428: PreconditionRequiredError,\n 429: TooManyRequestsError,\n 500: InternalError,\n 503: ServiceUnavailableError,\n};\n\n/** Builds the typed error for problem details that arrive outside an HTTP error response. */\nconst toError = (problem: Record<string, unknown>): Error => {\n const status = Number(problem.status ?? 0);\n const fault = status >= 500 ? \"server\" : \"client\";\n const message = String(problem.detail ?? problem.title ?? problem.code);\n const Typed = ERROR_CLASSES[status];\n const error = Typed\n ? new Typed({ $fault: fault, $metadata: {}, message })\n : new CaitlynServiceException({ name: String(problem.code ?? \"Error\"), $fault: fault, $metadata: {}, message });\n return Object.assign(error, problem, { message });\n};\n\n/** Creates a document from an upload; ingestion continues after the response.\n * \n * Returns 202 with the document in its initial state and the Operation that tracks ingestion, and\n * `Location` names the Operation. Needs the files permission, read access to the knowledge base and\n * access to the folder; it does not need update access to the knowledge base, which is for the\n * knowledge base's own configuration. */\nexport function createDocument(client: CaitlynClient, input: Omit<CreateDocumentInput, \"idempotencyKey\">, options: CallOptions & { idempotencyKey?: string } = {}): Promise<WithRaw<CreateDocumentOutput>> {\n const { signal, ...rest } = options;\n return client.send(new CreateDocumentCommand({ ...input, ...rest }), { abortSignal: signal }) as Promise<WithRaw<CreateDocumentOutput>>;\n}\n\n/** Reserves a short-lived slot for a file's bytes and returns a presigned URL bound to their\n * checksum.\n * \n * Send the bytes with `uploadMethod` to `uploadUrl`, with every header in `requiredHeaders`,\n * before `expiresAt`; then pass the upload's `id` to the operation that uses it. The SDKs'\n * `uploads.create(file)` does all of this. */\nexport function createUpload(client: CaitlynClient, input: Omit<CreateUploadInput, \"idempotencyKey\">, options: CallOptions & { idempotencyKey?: string } = {}): Promise<WithRaw<CreateUploadOutput>> {\n const { signal, ...rest } = options;\n return client.send(new CreateUploadCommand({ ...input, ...rest }), { abortSignal: signal }) as Promise<WithRaw<CreateUploadOutput>>;\n}\n\n/** Gets one version of an agent, with its full configuration and its ETag.\n * \n * `version` is `draft`, `production` or the name of a pinned or published version. Production is\n * readable by everyone with access to the agent; the draft and pinned versions only by the people\n * and groups on the agent's version access grant, and anyone else gets 404. */\nexport function getAgentVersion(client: CaitlynClient, input: GetAgentVersionInput, options: CallOptions = {}): Promise<WithRaw<GetAgentVersionOutput>> {\n const { signal, ...rest } = options;\n return client.send(new GetAgentVersionCommand({ ...input, ...rest }), { abortSignal: signal }) as Promise<WithRaw<GetAgentVersionOutput>>;\n}\n\n/** Lists the documents in a knowledge base, one page at a time.\n * \n * Documents are returned in a stable order that does not change between pages. Filters combine\n * with AND. Unlike v2, an unknown filter is refused with 400 `UNKNOWN_FILTER` instead of being\n * ignored, and the list can be sorted by `name`, `updatedAt` (when the document last changed) and\n * `byteSize` on the server; v2 sorts on the client only. */\nexport function listDocuments(client: CaitlynClient, input: ListDocumentsInput, options: CallOptions = {}): AsyncIterable<WithRaw<Document>> {\n const { signal, ...rest } = options;\n return {\n async *[Symbol.asyncIterator]() {\n const pages = paginateListDocuments({ client, pageSize: input.limit }, { ...input, ...rest }, { abortSignal: signal });\n for await (const page of pages) yield* page.items as WithRaw<Document>[];\n },\n };\n}\n\n/** Re-attaches to the answer that is being written, from the event after `Last-Event-ID`.\n * \n * Used by the SDKs after a dropped connection; callers rarely need it directly. When no answer is\n * being written, the stream ends at once. */\nexport function resumeConversationStream(client: CaitlynClient, conversationId: string, input: Omit<ResumeConversationStreamInput, \"conversationId\">, options: CallOptions = {}): SseStream<ConversationEvent, Message> {\n const { signal, ...rest } = options;\n return new SseStream<ConversationEvent, Message>(\n { known: ConversationEventNames, final: { event: \"message.completed\", member: \"message\" }, errorEvent: \"message.failed\", toError },\n async () => (await client.send(new ResumeConversationStreamCommand({ ...input, conversationId, ...rest }), { abortSignal: signal })).events as unknown as AsyncIterable<Uint8Array>,\n undefined,\n signal,\n );\n}\n\n/** Sends a message and streams the answer as server-sent events.\n * \n * The stream ends with exactly one `message.completed` or `message.failed`. If the connection\n * drops, the SDK re-attaches with `ResumeConversationStream` and `Last-Event-ID`, so no event is\n * lost or repeated. Not retried automatically: a send that fails before the stream starts is\n * reported to the caller. */\nexport function sendMessage(client: CaitlynClient, conversationId: string, input: Omit<SendMessageInput, \"conversationId\">, options: CallOptions = {}): SseStream<ConversationEvent, Message> {\n const { signal, ...rest } = options;\n return new SseStream<ConversationEvent, Message>(\n { known: ConversationEventNames, final: { event: \"message.completed\", member: \"message\" }, errorEvent: \"message.failed\", toError },\n async () => (await client.send(new SendMessageCommand({ ...input, conversationId, ...rest }), { abortSignal: signal })).events as unknown as AsyncIterable<Uint8Array>,\n async (lastEventId) =>\n (await client.send(new ResumeConversationStreamCommand({ conversationId, lastEventId: lastEventId }), { abortSignal: signal })).events as unknown as AsyncIterable<Uint8Array>,\n signal,\n );\n}\n\n/** Edits the draft with a partial update of its configuration; `If-Match` is required.\n * \n * Members that are absent stay unchanged, nested objects are merged and lists are replaced whole.\n * To return a member to its default, name it in `clear`; naming a member that is not clearable, or\n * one the same request also sets, is refused with 400 `VALIDATION_FAILED`. Returns the whole draft\n * and its new ETag. */\nexport function updateDraftVersion(client: CaitlynClient, agentId: string, input: Omit<UpdateDraftVersionInput, \"ifMatch\" | \"agentId\">, options: CallOptions & { ifMatch: string }): Promise<WithRaw<UpdateDraftVersionOutput>> {\n const { signal, ...rest } = options;\n return client.send(new UpdateDraftVersionCommand({ ...input, agentId, ...rest }), { abortSignal: signal }) as Promise<WithRaw<UpdateDraftVersionOutput>>;\n}\n\n/** Computes the SHA-256, reserves the upload slot and sends the bytes to it. */\nexport function createUploadFromFile(client: CaitlynClient, input: { file: Blob; fileName: string } & Omit<CreateUploadInput, \"fileName\" | \"contentType\" | \"byteSize\" | \"sha256\" | \"idempotencyKey\">, options: CallOptions & { idempotencyKey?: string } = {}) {\n const { file, fileName, ...rest } = input;\n return uploadFile(file, fileName, (meta) => createUpload(client, { ...rest, ...meta }, options), toError, options.signal);\n}\n\n/** Uploads the file, then calls createDocument with the upload. */\nexport async function uploadDocument(client: CaitlynClient, input: { file: Blob; fileName: string } & Omit<CreateDocumentInput, \"uploadId\" | \"idempotencyKey\">, options: CallOptions & { idempotencyKey?: string } = {}) {\n const { file, fileName, ...rest } = input;\n const upload = await createUploadFromFile(client, { file, fileName }, { signal: options.signal });\n return createDocument(client, { ...rest, uploadId: upload.id }, options);\n}\n\n", "// smithy-typescript generated code\nimport { makeBuilder } from \"@smithy/core/client\";\nimport { getEndpointPlugin } from \"@smithy/core/endpoints\";\nimport type { EndpointParameterInstructions } from \"@smithy/types\";\n\nimport type { CaitlynClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from \"./CaitlynClient\";\nimport { commonParams } from \"./endpoint/EndpointParameters\";\n\n\n/**\n * @internal\n */\nexport const command = makeBuilder<CaitlynClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>(commonParams, \"Caitlyn\", \"CaitlynClient\", getEndpointPlugin);\n\n/**\n * @internal\n */\nexport const _ep0: EndpointParameterInstructions = {};\n\n/**\n * @internal\n */\nexport const _mw0 = (Command: any, cs: any, config: any, o: any) => [\n];\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { CreateDocumentInput, CreateDocumentOutput } from \"../models/models_0\";\nimport { CreateDocument$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link CreateDocumentCommand}.\n */\nexport interface CreateDocumentCommandInput extends CreateDocumentInput {}\n/**\n * @public\n *\n * The output of {@link CreateDocumentCommand}.\n */\nexport interface CreateDocumentCommandOutput extends CreateDocumentOutput, __MetadataBearer {}\n\n/**\n * Creates a document from an upload; ingestion continues after the response.\n *\n * Returns 202 with the document in its initial state and the Operation that tracks ingestion, and\n * `Location` names the Operation. Needs the files permission, read access to the knowledge base and\n * access to the folder; it does not need update access to the knowledge base, which is for the\n * knowledge base's own configuration.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, CreateDocumentCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, CreateDocumentCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // CreateDocumentInput\n * knowledgeBaseId: \"STRING_VALUE\", // required\n * idempotencyKey: \"STRING_VALUE\",\n * uploadId: \"STRING_VALUE\", // required\n * folder: \"STRING_VALUE\", // required\n * name: \"STRING_VALUE\",\n * };\n * const command = new CreateDocumentCommand(input);\n * const response = await client.send(command);\n * // { // CreateDocumentOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // location: \"STRING_VALUE\",\n * // document: { // Document\n * // id: \"STRING_VALUE\", // required\n * // knowledgeBaseId: \"STRING_VALUE\", // required\n * // name: \"STRING_VALUE\", // required\n * // folder: \"STRING_VALUE\", // required\n * // status: \"pending\" || \"processing\" || \"indexed\" || \"partially_indexed\" || \"failed\" || \"deleting\", // required\n * // stage: \"STRING_VALUE\",\n * // contentType: \"STRING_VALUE\",\n * // byteSize: Number(\"long\"),\n * // sha256: \"STRING_VALUE\",\n * // createdAt: new Date(\"TIMESTAMP\"), // required\n * // updatedAt: new Date(\"TIMESTAMP\"), // required\n * // partialFailures: [ // PartialFailureList\n * // { // PartialFailure\n * // targetId: \"STRING_VALUE\",\n * // code: \"STRING_VALUE\", // required\n * // detail: \"STRING_VALUE\",\n * // },\n * // ],\n * // },\n * // operation: { // Operation\n * // id: \"STRING_VALUE\", // required\n * // kind: \"document_ingestion\", // required\n * // status: \"queued\" || \"running\" || \"succeeded\" || \"succeeded_with_failures\" || \"failed\" || \"cancelled\", // required\n * // createdAt: new Date(\"TIMESTAMP\"), // required\n * // },\n * // };\n *\n * ```\n *\n * @param CreateDocumentCommandInput - {@link CreateDocumentCommandInput}\n * @returns {@link CreateDocumentCommandOutput}\n * @see {@link CreateDocumentCommandInput} for command's `input` shape.\n * @see {@link CreateDocumentCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link ConflictError} (client fault)\n * The resource's state does not allow the request, a unique name is taken, or a request with the\n * same idempotency key is still in progress.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link UnprocessableContentError} (client fault)\n * The idempotency key was already used with a different request body.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Add an uploaded file to the HR folder\n * ```javascript\n * //\n * const input = {\n * folder: \"hr/\",\n * idempotencyKey: \"3f0c9a1e-5d2b-4f7a-9c1e-2b8d4a6f0e13\",\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * name: \"Leave policy\",\n * uploadId: \"0193a6f2-1111-7a2b-8c3d-4e5f60718293\"\n * };\n * const command = new CreateDocumentCommand(input);\n * const response = await client.send(command);\n * /* response is\n * {\n * document: {\n * createdAt: \"2026-11-10T01:02:03.000Z\",\n * folder: \"hr/\",\n * id: \"doc-3b7f9e21\",\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * name: \"Leave policy\",\n * status: \"pending\",\n * updatedAt: \"2026-11-10T01:02:03.000Z\"\n * },\n * location: \"/api/v3/operations/0193a6f2-2222-7b3c-9d4e-5f6071829304\",\n * operation: {\n * createdAt: \"2026-11-10T01:02:03.000Z\",\n * id: \"0193a6f2-2222-7b3c-9d4e-5f6071829304\",\n * kind: \"document_ingestion\",\n * status: \"queued\"\n * }\n * }\n * *\\/\n * ```\n *\n * @example The upload was already used, or has expired\n * ```javascript\n * //\n * const input = {\n * folder: \"hr/\",\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * uploadId: \"0193a6f2-1111-7a2b-8c3d-4e5f60718293\"\n * };\n * const command = new CreateDocumentCommand(input);\n * const response = await client.send(command);\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class CreateDocumentCommand extends command<CreateDocumentCommandInput, CreateDocumentCommandOutput>(\n _ep0,\n _mw0,\n \"CreateDocument\",\n CreateDocument$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: CreateDocumentInput;\n output: CreateDocumentOutput;\n };\n sdk: {\n input: CreateDocumentCommandInput;\n output: CreateDocumentCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { CreateUploadInput, CreateUploadOutput } from \"../models/models_0\";\nimport { CreateUpload$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link CreateUploadCommand}.\n */\nexport interface CreateUploadCommandInput extends CreateUploadInput {}\n/**\n * @public\n *\n * The output of {@link CreateUploadCommand}.\n */\nexport interface CreateUploadCommandOutput extends CreateUploadOutput, __MetadataBearer {}\n\n/**\n * Reserves a short-lived slot for a file's bytes and returns a presigned URL bound to their\n * checksum.\n *\n * Send the bytes with `uploadMethod` to `uploadUrl`, with every header in `requiredHeaders`,\n * before `expiresAt`; then pass the upload's `id` to the operation that uses it. The SDKs'\n * `uploads.create(file)` does all of this.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, CreateUploadCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, CreateUploadCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // CreateUploadInput\n * idempotencyKey: \"STRING_VALUE\",\n * fileName: \"STRING_VALUE\", // required\n * contentType: \"STRING_VALUE\", // required\n * byteSize: Number(\"long\"), // required\n * sha256: \"STRING_VALUE\", // required\n * };\n * const command = new CreateUploadCommand(input);\n * const response = await client.send(command);\n * // { // CreateUploadOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // location: \"STRING_VALUE\",\n * // id: \"STRING_VALUE\", // required\n * // uploadUrl: \"STRING_VALUE\", // required\n * // uploadMethod: \"STRING_VALUE\", // required\n * // requiredHeaders: { // HeaderMap // required\n * // \"<keys>\": \"STRING_VALUE\",\n * // },\n * // expiresAt: new Date(\"TIMESTAMP\"), // required\n * // status: \"awaiting_bytes\" || \"received\" || \"consumed\" || \"expired\", // required\n * // };\n *\n * ```\n *\n * @param CreateUploadCommandInput - {@link CreateUploadCommandInput}\n * @returns {@link CreateUploadCommandOutput}\n * @see {@link CreateUploadCommandInput} for command's `input` shape.\n * @see {@link CreateUploadCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link ConflictError} (client fault)\n * The resource's state does not allow the request, a unique name is taken, or a request with the\n * same idempotency key is still in progress.\n *\n * @throws {@link PayloadTooLargeError} (client fault)\n * The body, a file or the send `context` is over its documented limit.\n *\n * @throws {@link UnprocessableContentError} (client fault)\n * The idempotency key was already used with a different request body.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Reserve an upload for a PDF\n * ```javascript\n * //\n * const input = {\n * byteSize: 482113,\n * contentType: \"application/pdf\",\n * fileName: \"leave-policy.pdf\",\n * idempotencyKey: \"9b1d4e2a-7c3f-4a8e-b5d6-0e1f2a3b4c5d\",\n * sha256: \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\"\n * };\n * const command = new CreateUploadCommand(input);\n * const response = await client.send(command);\n * /* response is\n * {\n * expiresAt: \"2026-11-10T01:17:03.000Z\",\n * id: \"0193a6f2-1111-7a2b-8c3d-4e5f60718293\",\n * location: \"/api/v3/uploads/0193a6f2-1111-7a2b-8c3d-4e5f60718293\",\n * requiredHeaders: {\n * Content-Type: \"application/pdf\"\n * },\n * status: \"awaiting_bytes\",\n * uploadMethod: \"PUT\",\n * uploadUrl: \"https://uploads.example.com/0193a6f2-1111-7a2b-8c3d-4e5f60718293?signature=abc\"\n * }\n * *\\/\n * ```\n *\n * @example A file over the size limit\n * ```javascript\n * //\n * const input = {\n * byteSize: 9000000000,\n * contentType: \"application/zip\",\n * fileName: \"archive.zip\",\n * sha256: \"n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=\"\n * };\n * const command = new CreateUploadCommand(input);\n * const response = await client.send(command);\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class CreateUploadCommand extends command<CreateUploadCommandInput, CreateUploadCommandOutput>(\n _ep0,\n _mw0,\n \"CreateUpload\",\n CreateUpload$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: CreateUploadInput;\n output: CreateUploadOutput;\n };\n sdk: {\n input: CreateUploadCommandInput;\n output: CreateUploadCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { GetAgentVersionInput, GetAgentVersionOutput } from \"../models/models_0\";\nimport { GetAgentVersion$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link GetAgentVersionCommand}.\n */\nexport interface GetAgentVersionCommandInput extends GetAgentVersionInput {}\n/**\n * @public\n *\n * The output of {@link GetAgentVersionCommand}.\n */\nexport interface GetAgentVersionCommandOutput extends GetAgentVersionOutput, __MetadataBearer {}\n\n/**\n * Gets one version of an agent, with its full configuration and its ETag.\n *\n * `version` is `draft`, `production` or the name of a pinned or published version. Production is\n * readable by everyone with access to the agent; the draft and pinned versions only by the people\n * and groups on the agent's version access grant, and anyone else gets 404.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, GetAgentVersionCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, GetAgentVersionCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // GetAgentVersionInput\n * agentId: \"STRING_VALUE\", // required\n * version: \"STRING_VALUE\", // required\n * };\n * const command = new GetAgentVersionCommand(input);\n * const response = await client.send(command);\n * // { // GetAgentVersionOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // etag: \"STRING_VALUE\", // required\n * // agentId: \"STRING_VALUE\", // required\n * // name: \"STRING_VALUE\", // required\n * // source: \"pin\" || \"publish\" || \"migration\" || \"import\",\n * // basedOn: \"STRING_VALUE\",\n * // matchesProduction: true || false,\n * // createdAt: new Date(\"TIMESTAMP\"), // required\n * // note: \"STRING_VALUE\",\n * // configuration: { // AgentConfiguration\n * // identity: \"STRING_VALUE\",\n * // instructions: \"STRING_VALUE\", // required\n * // model: \"STRING_VALUE\",\n * // knowledgeBases: [ // KnowledgeBaseBindingList\n * // { // KnowledgeBaseBinding\n * // knowledgeBaseId: \"STRING_VALUE\", // required\n * // numberOfResults: Number(\"int\"),\n * // minimumScore: Number(\"float\"),\n * // },\n * // ],\n * // attachments: { // AttachmentSettings\n * // enabled: true || false,\n * // maxFiles: Number(\"int\"),\n * // },\n * // contentSafety: { // ContentSafety\n * // guardrailId: \"STRING_VALUE\",\n * // },\n * // deniedDocuments: true || false,\n * // },\n * // };\n *\n * ```\n *\n * @param GetAgentVersionCommandInput - {@link GetAgentVersionCommandInput}\n * @returns {@link GetAgentVersionCommandOutput}\n * @see {@link GetAgentVersionCommandInput} for command's `input` shape.\n * @see {@link GetAgentVersionCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Read the draft before editing it\n * ```javascript\n * //\n * const input = {\n * agentId: \"GHT7YRWXPL\",\n * version: \"draft\"\n * };\n * const command = new GetAgentVersionCommand(input);\n * const response = await client.send(command);\n * /* response is\n * {\n * agentId: \"GHT7YRWXPL\",\n * configuration: {\n * identity: \"You are the HR assistant for Harbour Freight staff.\",\n * instructions: \"Answer leave and pay questions from the HR policy knowledge base.\",\n * knowledgeBases: [\n * {\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * minimumScore: 0.3,\n * numberOfResults: 8\n * }\n * ],\n * model: \"claude-sonnet-5-5\"\n * },\n * createdAt: \"2026-11-02T03:04:05.000Z\",\n * etag: `\"draft-41\"`,\n * matchesProduction: false,\n * name: \"draft\"\n * }\n * *\\/\n * ```\n *\n * @example A version name that does not exist, or that the caller may not see\n * ```javascript\n * //\n * const input = {\n * agentId: \"GHT7YRWXPL\",\n * version: \"v99\"\n * };\n * const command = new GetAgentVersionCommand(input);\n * const response = await client.send(command);\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class GetAgentVersionCommand extends command<GetAgentVersionCommandInput, GetAgentVersionCommandOutput>(\n _ep0,\n _mw0,\n \"GetAgentVersion\",\n GetAgentVersion$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: GetAgentVersionInput;\n output: GetAgentVersionOutput;\n };\n sdk: {\n input: GetAgentVersionCommandInput;\n output: GetAgentVersionCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport { createPaginator } from \"@smithy/core\";\nimport type { Paginator } from \"@smithy/types\";\n\nimport { CaitlynClient } from \"../CaitlynClient\";\nimport {\n ListDocumentsCommand,\n ListDocumentsCommandInput,\n ListDocumentsCommandOutput,\n} from \"../commands/ListDocumentsCommand\";\nimport type { CaitlynPaginationConfiguration } from \"./Interfaces\";\n\n/**\n * @public\n */\nexport const paginateListDocuments: (\n config: CaitlynPaginationConfiguration,\n input: ListDocumentsCommandInput,\n ...rest: any[]\n) => Paginator<ListDocumentsCommandOutput> = createPaginator<\n CaitlynPaginationConfiguration,\n ListDocumentsCommandInput,\n ListDocumentsCommandOutput\n>(CaitlynClient, ListDocumentsCommand, \"cursor\", \"nextCursor\", \"limit\");\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { ListDocumentsInput, ListDocumentsOutput } from \"../models/models_0\";\nimport { ListDocuments$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link ListDocumentsCommand}.\n */\nexport interface ListDocumentsCommandInput extends ListDocumentsInput {}\n/**\n * @public\n *\n * The output of {@link ListDocumentsCommand}.\n */\nexport interface ListDocumentsCommandOutput extends ListDocumentsOutput, __MetadataBearer {}\n\n/**\n * Lists the documents in a knowledge base, one page at a time.\n *\n * Documents are returned in a stable order that does not change between pages. Filters combine\n * with AND. Unlike v2, an unknown filter is refused with 400 `UNKNOWN_FILTER` instead of being\n * ignored, and the list can be sorted by `name`, `updatedAt` (when the document last changed) and\n * `byteSize` on the server; v2 sorts on the client only.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, ListDocumentsCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, ListDocumentsCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // ListDocumentsInput\n * knowledgeBaseId: \"STRING_VALUE\", // required\n * limit: Number(\"int\"),\n * cursor: \"STRING_VALUE\",\n * sort: \"STRING_VALUE\",\n * folder: \"STRING_VALUE\",\n * status: \"pending\" || \"processing\" || \"indexed\" || \"partially_indexed\" || \"failed\" || \"deleting\",\n * namePrefix: \"STRING_VALUE\",\n * };\n * const command = new ListDocumentsCommand(input);\n * const response = await client.send(command);\n * // { // ListDocumentsOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // items: [ // DocumentList // required\n * // { // Document\n * // id: \"STRING_VALUE\", // required\n * // knowledgeBaseId: \"STRING_VALUE\", // required\n * // name: \"STRING_VALUE\", // required\n * // folder: \"STRING_VALUE\", // required\n * // status: \"pending\" || \"processing\" || \"indexed\" || \"partially_indexed\" || \"failed\" || \"deleting\", // required\n * // stage: \"STRING_VALUE\",\n * // contentType: \"STRING_VALUE\",\n * // byteSize: Number(\"long\"),\n * // sha256: \"STRING_VALUE\",\n * // createdAt: new Date(\"TIMESTAMP\"), // required\n * // updatedAt: new Date(\"TIMESTAMP\"), // required\n * // partialFailures: [ // PartialFailureList\n * // { // PartialFailure\n * // targetId: \"STRING_VALUE\",\n * // code: \"STRING_VALUE\", // required\n * // detail: \"STRING_VALUE\",\n * // },\n * // ],\n * // },\n * // ],\n * // nextCursor: \"STRING_VALUE\",\n * // };\n *\n * ```\n *\n * @param ListDocumentsCommandInput - {@link ListDocumentsCommandInput}\n * @returns {@link ListDocumentsCommandOutput}\n * @see {@link ListDocumentsCommandInput} for command's `input` shape.\n * @see {@link ListDocumentsCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example List the HR folder's documents that finished indexing\n * ```javascript\n * //\n * const input = {\n * folder: \"hr/\",\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * limit: 2,\n * status: \"indexed\"\n * };\n * const command = new ListDocumentsCommand(input);\n * const response = await client.send(command);\n * /* response is\n * {\n * items: [\n * {\n * byteSize: 482113,\n * contentType: \"application/pdf\",\n * createdAt: \"2026-10-01T22:10:00.000Z\",\n * folder: \"hr/\",\n * id: \"doc-3b7f9e21\",\n * knowledgeBaseId: \"KB4T7YQ2WL\",\n * name: \"Leave policy\",\n * status: \"indexed\",\n * updatedAt: \"2026-10-01T22:14:31.000Z\"\n * }\n * ],\n * nextCursor: \"c1.MEUCIQDl8z\"\n * }\n * *\\/\n * ```\n *\n * @example A knowledge base that does not exist, or that the caller may not see\n * ```javascript\n * //\n * const input = {\n * knowledgeBaseId: \"KBNOPE0000\"\n * };\n * const command = new ListDocumentsCommand(input);\n * const response = await client.send(command);\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class ListDocumentsCommand extends command<ListDocumentsCommandInput, ListDocumentsCommandOutput>(\n _ep0,\n _mw0,\n \"ListDocuments\",\n ListDocuments$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: ListDocumentsInput;\n output: ListDocumentsOutput;\n };\n sdk: {\n input: ListDocumentsCommandInput;\n output: ListDocumentsCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { ResumeConversationStreamInput, ResumeConversationStreamOutput } from \"../models/models_0\";\nimport { ResumeConversationStream$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link ResumeConversationStreamCommand}.\n */\nexport interface ResumeConversationStreamCommandInput extends ResumeConversationStreamInput {}\n/**\n * @public\n *\n * The output of {@link ResumeConversationStreamCommand}.\n */\nexport interface ResumeConversationStreamCommandOutput extends Omit<ResumeConversationStreamOutput, \"events\">, __MetadataBearer {\n events: StreamingBlobPayloadOutputTypes;\n}\n\n/**\n * Re-attaches to the answer that is being written, from the event after `Last-Event-ID`.\n *\n * Used by the SDKs after a dropped connection; callers rarely need it directly. When no answer is\n * being written, the stream ends at once.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, ResumeConversationStreamCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, ResumeConversationStreamCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // ResumeConversationStreamInput\n * conversationId: \"STRING_VALUE\", // required\n * lastEventId: \"STRING_VALUE\",\n * };\n * const command = new ResumeConversationStreamCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * // { // ResumeConversationStreamOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // events: \"<SdkStream>\", // see \\@smithy/types -> StreamingBlobPayloadOutputTypes // required\n * // };\n *\n * ```\n *\n * @param ResumeConversationStreamCommandInput - {@link ResumeConversationStreamCommandInput}\n * @returns {@link ResumeConversationStreamCommandOutput}\n * @see {@link ResumeConversationStreamCommandInput} for command's `input` shape.\n * @see {@link ResumeConversationStreamCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Resume after a dropped connection\n * ```javascript\n * // The answer arrives as a stream of events; the example shows only the request.\n * const input = {\n * conversationId: \"0193a6f2-7c4e-7b1a-9d2e-3f5a8c1b0e47\",\n * lastEventId: \"0193a6f2-9b10-7c3d-8e44-1f2a3b4c5d6e\"\n * };\n * const command = new ResumeConversationStreamCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @example A conversation that does not exist, or that the caller may not see\n * ```javascript\n * //\n * const input = {\n * conversationId: \"0193a6f2-0000-7000-8000-000000000000\"\n * };\n * const command = new ResumeConversationStreamCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class ResumeConversationStreamCommand extends command<ResumeConversationStreamCommandInput, ResumeConversationStreamCommandOutput>(\n _ep0,\n _mw0,\n \"ResumeConversationStream\",\n ResumeConversationStream$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: ResumeConversationStreamInput;\n output: ResumeConversationStreamOutput;\n };\n sdk: {\n input: ResumeConversationStreamCommandInput;\n output: ResumeConversationStreamCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { SendMessageInput, SendMessageOutput } from \"../models/models_0\";\nimport { SendMessage$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link SendMessageCommand}.\n */\nexport interface SendMessageCommandInput extends SendMessageInput {}\n/**\n * @public\n *\n * The output of {@link SendMessageCommand}.\n */\nexport interface SendMessageCommandOutput extends Omit<SendMessageOutput, \"events\">, __MetadataBearer {\n events: StreamingBlobPayloadOutputTypes;\n}\n\n/**\n * Sends a message and streams the answer as server-sent events.\n *\n * The stream ends with exactly one `message.completed` or `message.failed`. If the connection\n * drops, the SDK re-attaches with `ResumeConversationStream` and `Last-Event-ID`, so no event is\n * lost or repeated. Not retried automatically: a send that fails before the stream starts is\n * reported to the caller.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, SendMessageCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, SendMessageCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // SendMessageInput\n * conversationId: \"STRING_VALUE\", // required\n * message: \"STRING_VALUE\", // required\n * context: [ // ContextItemList\n * { // ContextItem\n * type: \"STRING_VALUE\", // required\n * label: \"STRING_VALUE\", // required\n * uri: \"STRING_VALUE\",\n * data: \"DOCUMENT_VALUE\",\n * },\n * ],\n * };\n * const command = new SendMessageCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * // { // SendMessageOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // events: \"<SdkStream>\", // see \\@smithy/types -> StreamingBlobPayloadOutputTypes // required\n * // };\n *\n * ```\n *\n * @param SendMessageCommandInput - {@link SendMessageCommandInput}\n * @returns {@link SendMessageCommandOutput}\n * @see {@link SendMessageCommandInput} for command's `input` shape.\n * @see {@link SendMessageCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link ConflictError} (client fault)\n * The resource's state does not allow the request, a unique name is taken, or a request with the\n * same idempotency key is still in progress.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link PayloadTooLargeError} (client fault)\n * The body, a file or the send `context` is over its documented limit.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Ask a question\n * ```javascript\n * // The answer arrives as a stream of events; the example shows only the request.\n * const input = {\n * conversationId: \"0193a6f2-7c4e-7b1a-9d2e-3f5a8c1b0e47\",\n * message: \"How much annual leave do part-time staff get?\"\n * };\n * const command = new SendMessageCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @example A conversation that does not exist, or that the caller may not see\n * ```javascript\n * //\n * const input = {\n * conversationId: \"0193a6f2-0000-7000-8000-000000000000\",\n * message: \"Hello\"\n * };\n * const command = new SendMessageCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @example An answer is already being written\n * ```javascript\n * //\n * const input = {\n * conversationId: \"0193a6f2-7c4e-7b1a-9d2e-3f5a8c1b0e47\",\n * message: \"And for casual staff?\"\n * };\n * const command = new SendMessageCommand(input);\n * const response = await client.send(command);\n * // consume or destroy the stream to free the socket.\n * const bytes = await response.events.transformToByteArray();\n * // const str = await response.events.transformToString();\n * // response.events.destroy(); // only applicable to Node.js Readable streams.\n *\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class SendMessageCommand extends command<SendMessageCommandInput, SendMessageCommandOutput>(\n _ep0,\n _mw0,\n \"SendMessage\",\n SendMessage$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: SendMessageInput;\n output: SendMessageOutput;\n };\n sdk: {\n input: SendMessageCommandInput;\n output: SendMessageCommandOutput;\n };\n };\n}\n", "// smithy-typescript generated code\nimport type { MetadataBearer as __MetadataBearer } from \"@smithy/types\";\n\nimport { _ep0, _mw0, command } from \"../commandBuilder\";\nimport type { UpdateDraftVersionInput, UpdateDraftVersionOutput } from \"../models/models_0\";\nimport { UpdateDraftVersion$ } from \"../schemas/schemas_0\";\n\n/**\n * @public\n */\nexport type { __MetadataBearer };\n/**\n * @public\n *\n * The input for {@link UpdateDraftVersionCommand}.\n */\nexport interface UpdateDraftVersionCommandInput extends UpdateDraftVersionInput {}\n/**\n * @public\n *\n * The output of {@link UpdateDraftVersionCommand}.\n */\nexport interface UpdateDraftVersionCommandOutput extends UpdateDraftVersionOutput, __MetadataBearer {}\n\n/**\n * Edits the draft with a partial update of its configuration; `If-Match` is required.\n *\n * Members that are absent stay unchanged, nested objects are merged and lists are replaced whole.\n * To return a member to its default, name it in `clear`; naming a member that is not clearable, or\n * one the same request also sets, is refused with 400 `VALIDATION_FAILED`. Returns the whole draft\n * and its new ETag.\n * @example\n * Use a bare-bones client and the command you need to make an API call.\n * ```javascript\n * import { CaitlynClient, UpdateDraftVersionCommand } from \"@caitlyn-ai/sdk\"; // ES Modules import\n * // const { CaitlynClient, UpdateDraftVersionCommand } = require(\"@caitlyn-ai/sdk\"); // CommonJS import\n * // import type { CaitlynClientConfig } from \"@caitlyn-ai/sdk\";\n * const config = {}; // type is CaitlynClientConfig\n * const client = new CaitlynClient(config);\n * const input = { // UpdateDraftVersionInput\n * agentId: \"STRING_VALUE\", // required\n * ifMatch: \"STRING_VALUE\", // required\n * identity: \"STRING_VALUE\",\n * instructions: \"STRING_VALUE\",\n * model: \"STRING_VALUE\",\n * knowledgeBases: [ // KnowledgeBaseBindingList\n * { // KnowledgeBaseBinding\n * knowledgeBaseId: \"STRING_VALUE\", // required\n * numberOfResults: Number(\"int\"),\n * minimumScore: Number(\"float\"),\n * },\n * ],\n * attachments: { // AttachmentSettings\n * enabled: true || false,\n * maxFiles: Number(\"int\"),\n * },\n * contentSafety: { // ContentSafety\n * guardrailId: \"STRING_VALUE\",\n * },\n * deniedDocuments: true || false,\n * clear: [ // ClearableDraftFieldList\n * \"identity\",\n * ],\n * };\n * const command = new UpdateDraftVersionCommand(input);\n * const response = await client.send(command);\n * // { // UpdateDraftVersionOutput\n * // requestId: \"STRING_VALUE\",\n * // apiVersion: \"STRING_VALUE\",\n * // etag: \"STRING_VALUE\", // required\n * // agentId: \"STRING_VALUE\", // required\n * // name: \"STRING_VALUE\", // required\n * // source: \"pin\" || \"publish\" || \"migration\" || \"import\",\n * // basedOn: \"STRING_VALUE\",\n * // matchesProduction: true || false,\n * // createdAt: new Date(\"TIMESTAMP\"), // required\n * // note: \"STRING_VALUE\",\n * // configuration: { // AgentConfiguration\n * // identity: \"STRING_VALUE\",\n * // instructions: \"STRING_VALUE\", // required\n * // model: \"STRING_VALUE\",\n * // knowledgeBases: [ // KnowledgeBaseBindingList\n * // { // KnowledgeBaseBinding\n * // knowledgeBaseId: \"STRING_VALUE\", // required\n * // numberOfResults: Number(\"int\"),\n * // minimumScore: Number(\"float\"),\n * // },\n * // ],\n * // attachments: { // AttachmentSettings\n * // enabled: true || false,\n * // maxFiles: Number(\"int\"),\n * // },\n * // contentSafety: { // ContentSafety\n * // guardrailId: \"STRING_VALUE\",\n * // },\n * // deniedDocuments: true || false,\n * // },\n * // };\n *\n * ```\n *\n * @param UpdateDraftVersionCommandInput - {@link UpdateDraftVersionCommandInput}\n * @returns {@link UpdateDraftVersionCommandOutput}\n * @see {@link UpdateDraftVersionCommandInput} for command's `input` shape.\n * @see {@link UpdateDraftVersionCommandOutput} for command's `response` shape.\n * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.\n *\n * @throws {@link NotFoundError} (client fault)\n * The record does not exist, or the caller may not see it. The two are deliberately the same, so\n * identifiers cannot be probed.\n *\n * @throws {@link PreconditionFailedError} (client fault)\n * `If-Match` does not match the resource's current ETag: it changed since the caller read it.\n *\n * @throws {@link PreconditionRequiredError} (client fault)\n * The update sent no `If-Match` header; read the resource and send its ETag.\n *\n * @throws {@link InternalError} (server fault)\n * An unexpected server failure. Not retried by the SDKs.\n *\n * @throws {@link PermissionDeniedError} (client fault)\n * The caller may not call this operation: it lacks the permission, its credential type may not\n * call it, or the operation is served only on the organisation's primary workspace. Decided before\n * any record is read. A record the caller may not see is 404 instead.\n *\n * @throws {@link ServiceUnavailableError} (server fault)\n * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for\n * `Retry-After` and try again.\n *\n * @throws {@link TooManyRequestsError} (client fault)\n * Too many requests; wait for `Retry-After` and try again.\n *\n * @throws {@link UnauthenticatedError} (client fault)\n * No credential was sent, or it is expired or not valid.\n *\n * @throws {@link ValidationError} (client fault)\n * The request is malformed: a member is missing, the wrong type or out of range; it has a member,\n * filter or sort field the operation does not define; or its cursor is not valid for this list.\n *\n * @throws {@link CaitlynServiceException}\n * <p>Base exception class for all service exceptions from Caitlyn service.</p>\n *\n *\n * @example Change the instructions and clear the identity\n * ```javascript\n * //\n * const input = {\n * agentId: \"GHT7YRWXPL\",\n * clear: [\n * \"identity\"\n * ],\n * ifMatch: `\"draft-41\"`,\n * instructions: \"Answer leave and pay questions. Quote the policy clause you relied on.\"\n * };\n * const command = new UpdateDraftVersionCommand(input);\n * const response = await client.send(command);\n * /* response is\n * {\n * agentId: \"GHT7YRWXPL\",\n * configuration: {\n * instructions: \"Answer leave and pay questions. Quote the policy clause you relied on.\",\n * model: \"claude-sonnet-5-5\"\n * },\n * createdAt: \"2026-11-02T03:04:05.000Z\",\n * etag: `\"draft-42\"`,\n * matchesProduction: false,\n * name: \"draft\"\n * }\n * *\\/\n * ```\n *\n * @example The draft changed since it was read\n * ```javascript\n * //\n * const input = {\n * agentId: \"GHT7YRWXPL\",\n * ifMatch: `\"draft-40\"`,\n * instructions: \"Answer leave questions.\"\n * };\n * const command = new UpdateDraftVersionCommand(input);\n * const response = await client.send(command);\n * /* response is\n * { /* metadata only *\\/ }\n * *\\/\n * ```\n *\n * @public\n */\nexport class UpdateDraftVersionCommand extends command<UpdateDraftVersionCommandInput, UpdateDraftVersionCommandOutput>(\n _ep0,\n _mw0,\n \"UpdateDraftVersion\",\n UpdateDraftVersion$\n) {\n /** @internal type navigation helper, not in runtime. */\n protected declare static __types: {\n api: {\n input: UpdateDraftVersionInput;\n output: UpdateDraftVersionOutput;\n };\n sdk: {\n input: UpdateDraftVersionCommandInput;\n output: UpdateDraftVersionCommandOutput;\n };\n };\n}\n", "// Generated by ai.caitlyn:caitlyn-typescript-codegen from the Smithy model. Do not edit.\nimport type { FieldError } from \"../models/models_0\";\n\n/** The events on a conversation's answer stream. The SSE `event:` name is each member's\n * `@jsonName`. Clients skip event names they do not know. */\nexport type ConversationEvent =\n | ({ type: \"message.started\"; eventId?: string } & MessageStarted)\n | ({ type: \"phase.changed\"; eventId?: string } & PhaseChanged)\n | ({ type: \"progress.updated\"; eventId?: string } & ProgressUpdated)\n | ({ type: \"text.delta\"; eventId?: string } & TextDelta)\n | ({ type: \"citation.added\"; eventId?: string } & CitationAdded)\n | ({ type: \"tool.started\"; eventId?: string } & ToolStarted)\n | ({ type: \"tool.finished\"; eventId?: string } & ToolFinished)\n | ({ type: \"input.requested\"; eventId?: string } & InputRequested)\n | ({ type: \"message.completed\"; eventId?: string } & MessageCompleted)\n | ({ type: \"message.failed\"; eventId?: string } & MessageFailed)\n ;\n\n/** The SSE event names this SDK version knows; any other event is skipped. */\nexport const ConversationEventNames: ReadonlySet<string> = new Set([\"message.started\", \"phase.changed\", \"progress.updated\", \"text.delta\", \"citation.added\", \"tool.started\", \"tool.finished\", \"input.requested\", \"message.completed\", \"message.failed\"]);\n\n/** A passage the answer cites. */\nexport interface Citation {\n /** The citation's number in the answer text, starting at 1. */\n number: number;\n /** The cited document. */\n documentId?: string;\n /** The knowledge base the document is in. */\n knowledgeBaseId?: string;\n /** The cited document's name. */\n documentName?: string;\n /** The page the passage is on, starting at 1, for paged documents. */\n pageNumber?: number;\n}\n\n/** The data of `citation.added`. */\nexport interface CitationAdded {\n /** The passage the answer now cites. */\n citation: Citation;\n}\n\n/** The data of `input.requested`. */\nexport interface InputRequested {\n /** The widget the agent asks the person to fill in. */\n widget?: unknown;\n}\n\n/** A message in a conversation. */\nexport interface Message {\n /** The message's identifier. */\n id: string;\n /** Who wrote the message. */\n role: MessageRole;\n /** The message text. For an answer, the whole text the deltas built up. */\n text: string;\n /** The agent version that wrote an answer. */\n agentVersion?: string;\n /** The passages an answer cites, in citation number order. */\n citations?: Citation[];\n /** When the message was written. */\n createdAt: string;\n}\n\n/** The data of `message.completed`. */\nexport interface MessageCompleted {\n /** The complete answer message. */\n message: Message;\n}\n\n/** The data of `message.failed`: a problem details object, exactly as an error response body. */\nexport interface MessageFailed {\n /** A stable URI for the code: its page in the public error reference,\n * `https://build.caitlyn.ai/errors/{code}`. */\n type: string;\n /** A short, human-readable summary of the problem, the same for every occurrence of the code. */\n title: string;\n /** The HTTP status code, repeated from the response. */\n status: number;\n /** The stable code, for example `NOT_FOUND`. Once shipped a code keeps its meaning and is never\n * renamed; callers match on it. */\n code: string;\n /** What went wrong in this occurrence, written for the integrator. Never holds stack traces,\n * storage keys or another person's data. */\n detail?: string;\n /** The request's identifier, the same value as the `Caitlyn-Request-Id` header. Quote it to\n * support. */\n requestId: string;\n /** Field-level problems, one per member or parameter at fault. Present only on 400\n * `VALIDATION_FAILED`. */\n errors?: FieldError[];\n}\n\n/** Who wrote a message. Open: new values may be added. */\nexport type MessageRole = \"user\" | \"assistant\" | (string & {}); // open enum\n\n/** The data of `message.started`. */\nexport interface MessageStarted {\n /** The answer message's identifier. */\n messageId: string;\n /** The agent version answering. */\n agentVersion?: string;\n /** The workflow phase the answer starts in, where the agent has phases. */\n phase?: string;\n}\n\n/** The data of `phase.changed`. */\nexport interface PhaseChanged {\n /** The phase the agent is now in. */\n phase: string;\n /** The phase it left. */\n previousPhase?: string;\n}\n\n/** A progress step's status. Open: new values may be added. `succeeded` and `failed` are final. */\nexport type ProgressStatus = \"running\" | \"succeeded\" | \"failed\" | (string & {}); // open enum\n\n/** The data of `progress.updated`. */\nexport interface ProgressUpdated {\n /** The step's identifier, unique within the message. */\n id: string;\n /** What the step is doing, for display. */\n label: string;\n /** More detail for display. */\n details?: string;\n /** The step's status. Absent means running. */\n status?: ProgressStatus;\n /** The section of the answer the step belongs to, for display. */\n section?: string;\n}\n\n/** The data of `text.delta`. */\nexport interface TextDelta {\n /** The next fragment of answer text, to append to what came before. */\n delta: string;\n}\n\n/** The data of `tool.finished`. */\nexport interface ToolFinished {\n /** The tool call's identifier. */\n toolCallId: string;\n /** The tool called. */\n toolName: string;\n /** How the call ended. */\n status: ToolStatus;\n /** The call's result. Present only when the caller may read it. */\n result?: unknown;\n /** How long the call took, in milliseconds. */\n durationMs?: number;\n}\n\n/** The data of `tool.started`. */\nexport interface ToolStarted {\n /** The tool call's identifier. */\n toolCallId: string;\n /** The tool called. */\n toolName: string;\n /** The call's arguments. Present only when the caller may read them. */\n arguments?: unknown;\n}\n\n/** How a tool call ended. Open: new values may be added. Every value is final. */\nexport type ToolStatus = \"succeeded\" | \"failed\" | (string & {}); // open enum\n\n", "// smithy-typescript generated code\n/**\n * @public\n * @enum\n */\nexport const ClearableDraftField = {\n /**\n * The agent's identity statement.\n */\n IDENTITY: \"identity\",\n} as const;\n/**\n * @public\n */\nexport type ClearableDraftField = (typeof ClearableDraftField)[keyof typeof ClearableDraftField];\n\n/**\n * @public\n * @enum\n */\nexport const VersionSource = {\n /**\n * Created from an imported agent file.\n */\n IMPORT: \"import\",\n /**\n * Carried over from the version model before v3.\n */\n MIGRATION: \"migration\",\n /**\n * Pinned from the draft, without changing production.\n */\n PIN: \"pin\",\n /**\n * Published, which also made it production.\n */\n PUBLISH: \"publish\",\n} as const;\n/**\n * @public\n */\nexport type VersionSource = (typeof VersionSource)[keyof typeof VersionSource];\n\n/**\n * @public\n * @enum\n */\nexport const DocumentStatus = {\n /**\n * Being deleted.\n */\n DELETING: \"deleting\",\n /**\n * The document's content could not be processed. Final.\n */\n FAILED: \"failed\",\n /**\n * Searchable. Final.\n */\n INDEXED: \"indexed\",\n /**\n * Searchable, but some enrichments did not complete; see `partialFailures`. Final.\n */\n PARTIALLY_INDEXED: \"partially_indexed\",\n /**\n * Created; processing has not started.\n */\n PENDING: \"pending\",\n /**\n * Being processed. `stage` says what the server is doing.\n */\n PROCESSING: \"processing\",\n} as const;\n/**\n * @public\n */\nexport type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];\n\n/**\n * @public\n * @enum\n */\nexport const OperationKind = {\n /**\n * A document's ingestion: reading, enriching and indexing its content.\n */\n DOCUMENT_INGESTION: \"document_ingestion\",\n} as const;\n/**\n * @public\n */\nexport type OperationKind = (typeof OperationKind)[keyof typeof OperationKind];\n\n/**\n * @public\n * @enum\n */\nexport const OperationStatus = {\n /**\n * Cancelled before it finished. Final.\n */\n CANCELLED: \"cancelled\",\n /**\n * The core work failed; see `error`. Final.\n */\n FAILED: \"failed\",\n /**\n * Waiting to start.\n */\n QUEUED: \"queued\",\n /**\n * Running.\n */\n RUNNING: \"running\",\n /**\n * Finished with no failures. Final.\n */\n SUCCEEDED: \"succeeded\",\n /**\n * Finished, but some enrichments did not complete; see `partialFailures`. Final.\n */\n SUCCEEDED_WITH_FAILURES: \"succeeded_with_failures\",\n} as const;\n/**\n * @public\n */\nexport type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus];\n\n/**\n * @public\n * @enum\n */\nexport const UploadStatus = {\n /**\n * Reserved; the bytes have not arrived.\n */\n AWAITING_BYTES: \"awaiting_bytes\",\n /**\n * Used by an operation. Final.\n */\n CONSUMED: \"consumed\",\n /**\n * Not used before `expiresAt`. Final.\n */\n EXPIRED: \"expired\",\n /**\n * The bytes arrived and matched the checksum.\n */\n RECEIVED: \"received\",\n} as const;\n/**\n * @public\n */\nexport type UploadStatus = (typeof UploadStatus)[keyof typeof UploadStatus];\n", "// Generated by ai.caitlyn:caitlyn-typescript-codegen from the Smithy model. Do not edit.\n// The public entry: model shapes, operations and the client. Command classes are not exported.\nexport { Caitlyn, createCaitlynClient } from \"./client\";\nexport * from \"./operations\";\nexport * from \"./events\";\nexport type * from \"../models/models_0\";\nexport * from \"../models/enums\";\nexport * from \"../models/errors\";\nexport { CaitlynServiceException as CaitlynError } from \"../models/CaitlynServiceException\";\nexport { NotSupportedByServer, SseStream, CaitlynAuthError, WaiterError, createAuth, workspaceAudience, type AuthOptions, type AuthSession, type AwsCredentials, type OAuthTokens, type TokenStore, type CaitlynOptions, type CallOptions, type CaitlynErrorFields, type WaiterOptions, type WithRaw } from \"@caitlyn-ai/sdk-core\";\n"],
5
+ "mappings": ";AACA,SAAS,2BAA2B;AACpC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAIE,UAAU;AAAA,OACL;AACP;AAAA,EAKE;AAAA,EACA;AAAA,OACK;AACP,SAA8D,8BAA8B;AAC5F;AAAA,EAGE;AAAA,EACA;AAAA,OACK;AACP,SAAS,4BAA4B;;;AC3BrC,SAAS,4BAA4B,mBAAmB,+BAA+B;AACvF,SAAS,kBAAkB,yBAAyB;AAkC7C,IAAM,iDAAiD,OAC5D,QACA,SACA,UAC6C;AAC7C,SAAO;AAAA,IACL,WAAW,iBAAiB,OAAO,EAAE;AAAA,EACvC;AACF;AAEA,SAAS,4CAA4C,gBAAiE;AACpH,SAAO;AAAA,IACL,UAAU;AAAA,EACZ;AACF;AAUO,IAAM,uCAAsE,CAAC,mBAAmB;AACrG,QAAM,UAA4B,CAAC;AACnC,UAAQ,eAAe,WAAW;AAAA,IAChC,SAAS;AACP,cAAQ,KAAK,4CAA4C,cAAc,CAAC;AAAA,IAC1E;AAAA,EACF;AACA,SAAO;AACT;AA+DO,IAAM,8BAA8B,CACzC,WACqC;AACrC,QAAM,QAAQ,wBAAwB,OAAO,OAAO,mBAAmB,0BAA0B;AACjG,SAAO,OAAO,OAAO,QAAQ;AAAA,IAC3B,sBAAsB,kBAAkB,OAAO,wBAAwB,CAAC,CAAC;AAAA,IACzE;AAAA,EACF,CAAC;AACH;;;ACjHO,IAAM,kCAAkC,CAC7C,YACyC;AACzC,SAAO,OAAO,OAAO,SAAS;AAAA,IAC5B,oBAAoB;AAAA,EACtB,CAAC;AACH;AAKO,IAAM,eAAe;AAAA,EAC1B,UAAU,EAAE,MAAM,iBAAiB,MAAM,WAAW;AACt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