@caitlyn-ai/sdk 0.0.2 → 0.1.1

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 (43) hide show
  1. package/README.md +39 -7
  2. package/dist-browser/sdk/index.mjs +59 -33
  3. package/dist-browser/sdk/index.mjs.map +3 -3
  4. package/dist-cjs/sdk/index.cjs +59 -32
  5. package/dist-cjs/sdk/index.cjs.map +3 -3
  6. package/dist-es/sdk/index.mjs +59 -33
  7. package/dist-es/sdk/index.mjs.map +3 -3
  8. package/dist-types/sdk/index.d.ts +5376 -8
  9. package/package.json +2 -3
  10. package/dist-types/Caitlyn.d.ts +0 -76
  11. package/dist-types/CaitlynClient.d.ts +0 -160
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -81
  14. package/dist-types/commandBuilder.d.ts +0 -18
  15. package/dist-types/commands/CreateDocumentCommand.d.ts +0 -190
  16. package/dist-types/commands/CreateUploadCommand.d.ts +0 -165
  17. package/dist-types/commands/GetAgentVersionCommand.d.ts +0 -177
  18. package/dist-types/commands/ListDocumentsCommand.d.ts +0 -176
  19. package/dist-types/commands/ResumeConversationStreamCommand.d.ts +0 -146
  20. package/dist-types/commands/SendMessageCommand.d.ts +0 -183
  21. package/dist-types/commands/UpdateDraftVersionCommand.d.ts +0 -202
  22. package/dist-types/commands/index.d.ts +0 -7
  23. package/dist-types/endpoint/EndpointParameters.d.ts +0 -32
  24. package/dist-types/endpoint/bdd.d.ts +0 -2
  25. package/dist-types/endpoint/endpointResolver.d.ts +0 -8
  26. package/dist-types/extensionConfiguration.d.ts +0 -8
  27. package/dist-types/index.d.ts +0 -22
  28. package/dist-types/models/CaitlynServiceException.d.ts +0 -15
  29. package/dist-types/models/enums.d.ts +0 -148
  30. package/dist-types/models/errors.d.ts +0 -659
  31. package/dist-types/models/models_0.d.ts +0 -754
  32. package/dist-types/pagination/Interfaces.d.ts +0 -8
  33. package/dist-types/pagination/ListDocumentsPaginator.d.ts +0 -7
  34. package/dist-types/pagination/index.d.ts +0 -2
  35. package/dist-types/runtimeConfig.browser.d.ts +0 -50
  36. package/dist-types/runtimeConfig.d.ts +0 -50
  37. package/dist-types/runtimeConfig.native.d.ts +0 -49
  38. package/dist-types/runtimeConfig.shared.d.ts +0 -36
  39. package/dist-types/runtimeExtensions.d.ts +0 -17
  40. package/dist-types/schemas/schemas_0.d.ts +0 -51
  41. package/dist-types/sdk/client.d.ts +0 -47
  42. package/dist-types/sdk/events.d.ts +0 -163
  43. package/dist-types/sdk/operations.d.ts +0 -70
@@ -1,183 +0,0 @@
1
- import type { MetadataBearer as __MetadataBearer, StreamingBlobPayloadOutputTypes } from "@smithy/types";
2
- import type { SendMessageInput, SendMessageOutput } from "../models/models_0";
3
- /**
4
- * @public
5
- */
6
- export type { __MetadataBearer };
7
- /**
8
- * @public
9
- *
10
- * The input for {@link SendMessageCommand}.
11
- */
12
- export interface SendMessageCommandInput extends SendMessageInput {
13
- }
14
- /**
15
- * @public
16
- *
17
- * The output of {@link SendMessageCommand}.
18
- */
19
- export interface SendMessageCommandOutput extends Omit<SendMessageOutput, "events">, __MetadataBearer {
20
- events: StreamingBlobPayloadOutputTypes;
21
- }
22
- declare const SendMessageCommand_base: {
23
- new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, import("..").CaitlynClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
- new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl<SendMessageCommandInput, SendMessageCommandOutput, import("..").CaitlynClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
25
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
- };
27
- /**
28
- * Sends a message and streams the answer as server-sent events.
29
- *
30
- * The stream ends with exactly one `message.completed` or `message.failed`. If the connection
31
- * drops, the SDK re-attaches with `ResumeConversationStream` and `Last-Event-ID`, so no event is
32
- * lost or repeated. Not retried automatically: a send that fails before the stream starts is
33
- * reported to the caller.
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { CaitlynClient, SendMessageCommand } from "@caitlyn-ai/sdk"; // ES Modules import
38
- * // const { CaitlynClient, SendMessageCommand } = require("@caitlyn-ai/sdk"); // CommonJS import
39
- * // import type { CaitlynClientConfig } from "@caitlyn-ai/sdk";
40
- * const config = {}; // type is CaitlynClientConfig
41
- * const client = new CaitlynClient(config);
42
- * const input = { // SendMessageInput
43
- * conversationId: "STRING_VALUE", // required
44
- * message: "STRING_VALUE", // required
45
- * context: [ // ContextItemList
46
- * { // ContextItem
47
- * type: "STRING_VALUE", // required
48
- * label: "STRING_VALUE", // required
49
- * uri: "STRING_VALUE",
50
- * data: "DOCUMENT_VALUE",
51
- * },
52
- * ],
53
- * };
54
- * const command = new SendMessageCommand(input);
55
- * const response = await client.send(command);
56
- * // consume or destroy the stream to free the socket.
57
- * const bytes = await response.events.transformToByteArray();
58
- * // const str = await response.events.transformToString();
59
- * // response.events.destroy(); // only applicable to Node.js Readable streams.
60
- *
61
- * // { // SendMessageOutput
62
- * // requestId: "STRING_VALUE",
63
- * // apiVersion: "STRING_VALUE",
64
- * // events: "<SdkStream>", // see \@smithy/types -> StreamingBlobPayloadOutputTypes // required
65
- * // };
66
- *
67
- * ```
68
- *
69
- * @param SendMessageCommandInput - {@link SendMessageCommandInput}
70
- * @returns {@link SendMessageCommandOutput}
71
- * @see {@link SendMessageCommandInput} for command's `input` shape.
72
- * @see {@link SendMessageCommandOutput} for command's `response` shape.
73
- * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.
74
- *
75
- * @throws {@link ConflictError} (client fault)
76
- * The resource's state does not allow the request, a unique name is taken, or a request with the
77
- * same idempotency key is still in progress.
78
- *
79
- * @throws {@link NotFoundError} (client fault)
80
- * The record does not exist, or the caller may not see it. The two are deliberately the same, so
81
- * identifiers cannot be probed.
82
- *
83
- * @throws {@link PayloadTooLargeError} (client fault)
84
- * The body, a file or the send `context` is over its documented limit.
85
- *
86
- * @throws {@link InternalError} (server fault)
87
- * An unexpected server failure. Not retried by the SDKs.
88
- *
89
- * @throws {@link PermissionDeniedError} (client fault)
90
- * The caller may not call this operation: it lacks the permission, its credential type may not
91
- * call it, or the operation is served only on the organisation's primary workspace. Decided before
92
- * any record is read. A record the caller may not see is 404 instead.
93
- *
94
- * @throws {@link ServiceUnavailableError} (server fault)
95
- * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for
96
- * `Retry-After` and try again.
97
- *
98
- * @throws {@link TooManyRequestsError} (client fault)
99
- * Too many requests; wait for `Retry-After` and try again.
100
- *
101
- * @throws {@link UnauthenticatedError} (client fault)
102
- * No credential was sent, or it is expired or not valid.
103
- *
104
- * @throws {@link ValidationError} (client fault)
105
- * The request is malformed: a member is missing, the wrong type or out of range; it has a member,
106
- * filter or sort field the operation does not define; or its cursor is not valid for this list.
107
- *
108
- * @throws {@link CaitlynServiceException}
109
- * <p>Base exception class for all service exceptions from Caitlyn service.</p>
110
- *
111
- *
112
- * @example Ask a question
113
- * ```javascript
114
- * // The answer arrives as a stream of events; the example shows only the request.
115
- * const input = {
116
- * conversationId: "0193a6f2-7c4e-7b1a-9d2e-3f5a8c1b0e47",
117
- * message: "How much annual leave do part-time staff get?"
118
- * };
119
- * const command = new SendMessageCommand(input);
120
- * const response = await client.send(command);
121
- * // consume or destroy the stream to free the socket.
122
- * const bytes = await response.events.transformToByteArray();
123
- * // const str = await response.events.transformToString();
124
- * // response.events.destroy(); // only applicable to Node.js Readable streams.
125
- *
126
- * /* response is
127
- * { /* metadata only *\/ }
128
- * *\/
129
- * ```
130
- *
131
- * @example A conversation that does not exist, or that the caller may not see
132
- * ```javascript
133
- * //
134
- * const input = {
135
- * conversationId: "0193a6f2-0000-7000-8000-000000000000",
136
- * message: "Hello"
137
- * };
138
- * const command = new SendMessageCommand(input);
139
- * const response = await client.send(command);
140
- * // consume or destroy the stream to free the socket.
141
- * const bytes = await response.events.transformToByteArray();
142
- * // const str = await response.events.transformToString();
143
- * // response.events.destroy(); // only applicable to Node.js Readable streams.
144
- *
145
- * /* response is
146
- * { /* metadata only *\/ }
147
- * *\/
148
- * ```
149
- *
150
- * @example An answer is already being written
151
- * ```javascript
152
- * //
153
- * const input = {
154
- * conversationId: "0193a6f2-7c4e-7b1a-9d2e-3f5a8c1b0e47",
155
- * message: "And for casual staff?"
156
- * };
157
- * const command = new SendMessageCommand(input);
158
- * const response = await client.send(command);
159
- * // consume or destroy the stream to free the socket.
160
- * const bytes = await response.events.transformToByteArray();
161
- * // const str = await response.events.transformToString();
162
- * // response.events.destroy(); // only applicable to Node.js Readable streams.
163
- *
164
- * /* response is
165
- * { /* metadata only *\/ }
166
- * *\/
167
- * ```
168
- *
169
- * @public
170
- */
171
- export declare class SendMessageCommand extends SendMessageCommand_base {
172
- /** @internal type navigation helper, not in runtime. */
173
- protected static __types: {
174
- api: {
175
- input: SendMessageInput;
176
- output: SendMessageOutput;
177
- };
178
- sdk: {
179
- input: SendMessageCommandInput;
180
- output: SendMessageCommandOutput;
181
- };
182
- };
183
- }
@@ -1,202 +0,0 @@
1
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import type { UpdateDraftVersionInput, UpdateDraftVersionOutput } from "../models/models_0";
3
- /**
4
- * @public
5
- */
6
- export type { __MetadataBearer };
7
- /**
8
- * @public
9
- *
10
- * The input for {@link UpdateDraftVersionCommand}.
11
- */
12
- export interface UpdateDraftVersionCommandInput extends UpdateDraftVersionInput {
13
- }
14
- /**
15
- * @public
16
- *
17
- * The output of {@link UpdateDraftVersionCommand}.
18
- */
19
- export interface UpdateDraftVersionCommandOutput extends UpdateDraftVersionOutput, __MetadataBearer {
20
- }
21
- declare const UpdateDraftVersionCommand_base: {
22
- new (input: UpdateDraftVersionCommandInput): import("@smithy/core/client").CommandImpl<UpdateDraftVersionCommandInput, UpdateDraftVersionCommandOutput, import("..").CaitlynClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
- new (input: UpdateDraftVersionCommandInput): import("@smithy/core/client").CommandImpl<UpdateDraftVersionCommandInput, UpdateDraftVersionCommandOutput, import("..").CaitlynClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
- };
26
- /**
27
- * Edits the draft with a partial update of its configuration; `If-Match` is required.
28
- *
29
- * Members that are absent stay unchanged, nested objects are merged and lists are replaced whole.
30
- * To return a member to its default, name it in `clear`; naming a member that is not clearable, or
31
- * one the same request also sets, is refused with 400 `VALIDATION_FAILED`. Returns the whole draft
32
- * and its new ETag.
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { CaitlynClient, UpdateDraftVersionCommand } from "@caitlyn-ai/sdk"; // ES Modules import
37
- * // const { CaitlynClient, UpdateDraftVersionCommand } = require("@caitlyn-ai/sdk"); // CommonJS import
38
- * // import type { CaitlynClientConfig } from "@caitlyn-ai/sdk";
39
- * const config = {}; // type is CaitlynClientConfig
40
- * const client = new CaitlynClient(config);
41
- * const input = { // UpdateDraftVersionInput
42
- * agentId: "STRING_VALUE", // required
43
- * ifMatch: "STRING_VALUE", // required
44
- * identity: "STRING_VALUE",
45
- * instructions: "STRING_VALUE",
46
- * model: "STRING_VALUE",
47
- * knowledgeBases: [ // KnowledgeBaseBindingList
48
- * { // KnowledgeBaseBinding
49
- * knowledgeBaseId: "STRING_VALUE", // required
50
- * numberOfResults: Number("int"),
51
- * minimumScore: Number("float"),
52
- * },
53
- * ],
54
- * attachments: { // AttachmentSettings
55
- * enabled: true || false,
56
- * maxFiles: Number("int"),
57
- * },
58
- * contentSafety: { // ContentSafety
59
- * guardrailId: "STRING_VALUE",
60
- * },
61
- * deniedDocuments: true || false,
62
- * clear: [ // ClearableDraftFieldList
63
- * "identity",
64
- * ],
65
- * };
66
- * const command = new UpdateDraftVersionCommand(input);
67
- * const response = await client.send(command);
68
- * // { // UpdateDraftVersionOutput
69
- * // requestId: "STRING_VALUE",
70
- * // apiVersion: "STRING_VALUE",
71
- * // etag: "STRING_VALUE", // required
72
- * // agentId: "STRING_VALUE", // required
73
- * // name: "STRING_VALUE", // required
74
- * // source: "pin" || "publish" || "migration" || "import",
75
- * // basedOn: "STRING_VALUE",
76
- * // matchesProduction: true || false,
77
- * // createdAt: new Date("TIMESTAMP"), // required
78
- * // note: "STRING_VALUE",
79
- * // configuration: { // AgentConfiguration
80
- * // identity: "STRING_VALUE",
81
- * // instructions: "STRING_VALUE", // required
82
- * // model: "STRING_VALUE",
83
- * // knowledgeBases: [ // KnowledgeBaseBindingList
84
- * // { // KnowledgeBaseBinding
85
- * // knowledgeBaseId: "STRING_VALUE", // required
86
- * // numberOfResults: Number("int"),
87
- * // minimumScore: Number("float"),
88
- * // },
89
- * // ],
90
- * // attachments: { // AttachmentSettings
91
- * // enabled: true || false,
92
- * // maxFiles: Number("int"),
93
- * // },
94
- * // contentSafety: { // ContentSafety
95
- * // guardrailId: "STRING_VALUE",
96
- * // },
97
- * // deniedDocuments: true || false,
98
- * // },
99
- * // };
100
- *
101
- * ```
102
- *
103
- * @param UpdateDraftVersionCommandInput - {@link UpdateDraftVersionCommandInput}
104
- * @returns {@link UpdateDraftVersionCommandOutput}
105
- * @see {@link UpdateDraftVersionCommandInput} for command's `input` shape.
106
- * @see {@link UpdateDraftVersionCommandOutput} for command's `response` shape.
107
- * @see {@link CaitlynClientResolvedConfig | config} for CaitlynClient's `config` shape.
108
- *
109
- * @throws {@link NotFoundError} (client fault)
110
- * The record does not exist, or the caller may not see it. The two are deliberately the same, so
111
- * identifiers cannot be probed.
112
- *
113
- * @throws {@link PreconditionFailedError} (client fault)
114
- * `If-Match` does not match the resource's current ETag: it changed since the caller read it.
115
- *
116
- * @throws {@link PreconditionRequiredError} (client fault)
117
- * The update sent no `If-Match` header; read the resource and send its ETag.
118
- *
119
- * @throws {@link InternalError} (server fault)
120
- * An unexpected server failure. Not retried by the SDKs.
121
- *
122
- * @throws {@link PermissionDeniedError} (client fault)
123
- * The caller may not call this operation: it lacks the permission, its credential type may not
124
- * call it, or the operation is served only on the organisation's primary workspace. Decided before
125
- * any record is read. A record the caller may not see is 404 instead.
126
- *
127
- * @throws {@link ServiceUnavailableError} (server fault)
128
- * A dependency is briefly unavailable, or the request's audit event could not be recorded; wait for
129
- * `Retry-After` and try again.
130
- *
131
- * @throws {@link TooManyRequestsError} (client fault)
132
- * Too many requests; wait for `Retry-After` and try again.
133
- *
134
- * @throws {@link UnauthenticatedError} (client fault)
135
- * No credential was sent, or it is expired or not valid.
136
- *
137
- * @throws {@link ValidationError} (client fault)
138
- * The request is malformed: a member is missing, the wrong type or out of range; it has a member,
139
- * filter or sort field the operation does not define; or its cursor is not valid for this list.
140
- *
141
- * @throws {@link CaitlynServiceException}
142
- * <p>Base exception class for all service exceptions from Caitlyn service.</p>
143
- *
144
- *
145
- * @example Change the instructions and clear the identity
146
- * ```javascript
147
- * //
148
- * const input = {
149
- * agentId: "GHT7YRWXPL",
150
- * clear: [
151
- * "identity"
152
- * ],
153
- * ifMatch: `"draft-41"`,
154
- * instructions: "Answer leave and pay questions. Quote the policy clause you relied on."
155
- * };
156
- * const command = new UpdateDraftVersionCommand(input);
157
- * const response = await client.send(command);
158
- * /* response is
159
- * {
160
- * agentId: "GHT7YRWXPL",
161
- * configuration: {
162
- * instructions: "Answer leave and pay questions. Quote the policy clause you relied on.",
163
- * model: "claude-sonnet-5-5"
164
- * },
165
- * createdAt: "2026-11-02T03:04:05.000Z",
166
- * etag: `"draft-42"`,
167
- * matchesProduction: false,
168
- * name: "draft"
169
- * }
170
- * *\/
171
- * ```
172
- *
173
- * @example The draft changed since it was read
174
- * ```javascript
175
- * //
176
- * const input = {
177
- * agentId: "GHT7YRWXPL",
178
- * ifMatch: `"draft-40"`,
179
- * instructions: "Answer leave questions."
180
- * };
181
- * const command = new UpdateDraftVersionCommand(input);
182
- * const response = await client.send(command);
183
- * /* response is
184
- * { /* metadata only *\/ }
185
- * *\/
186
- * ```
187
- *
188
- * @public
189
- */
190
- export declare class UpdateDraftVersionCommand extends UpdateDraftVersionCommand_base {
191
- /** @internal type navigation helper, not in runtime. */
192
- protected static __types: {
193
- api: {
194
- input: UpdateDraftVersionInput;
195
- output: UpdateDraftVersionOutput;
196
- };
197
- sdk: {
198
- input: UpdateDraftVersionCommandInput;
199
- output: UpdateDraftVersionCommandOutput;
200
- };
201
- };
202
- }
@@ -1,7 +0,0 @@
1
- export * from "./CreateDocumentCommand";
2
- export * from "./CreateUploadCommand";
3
- export * from "./GetAgentVersionCommand";
4
- export * from "./ListDocumentsCommand";
5
- export * from "./ResumeConversationStreamCommand";
6
- export * from "./SendMessageCommand";
7
- export * from "./UpdateDraftVersionCommand";
@@ -1,32 +0,0 @@
1
- import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
- /**
3
- * @public
4
- */
5
- export interface ClientInputEndpointParameters {
6
- endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
- }
8
- /**
9
- * @public
10
- */
11
- export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
- defaultSigningName: string;
13
- };
14
- /**
15
- * @internal
16
- */
17
- export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
18
- /**
19
- * @internal
20
- */
21
- export declare const commonParams: {
22
- readonly endpoint: {
23
- readonly type: "builtInParams";
24
- readonly name: "endpoint";
25
- };
26
- };
27
- /**
28
- * @internal
29
- */
30
- export interface EndpointParameters extends __EndpointParameters {
31
- endpoint?: string | undefined;
32
- }
@@ -1,2 +0,0 @@
1
- import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
- export declare const bdd: BinaryDecisionDiagram;
@@ -1,8 +0,0 @@
1
- import type { EndpointV2, Logger } from "@smithy/types";
2
- import type { EndpointParameters } from "./EndpointParameters";
3
- /**
4
- * @internal
5
- */
6
- export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
- logger?: Logger;
8
- }) => EndpointV2;
@@ -1,8 +0,0 @@
1
- import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
2
- import type { DefaultExtensionConfiguration } from "@smithy/types";
3
- import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
- /**
5
- * @internal
6
- */
7
- export interface CaitlynExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
8
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * The Caitlyn v3 API.
3
- *
4
- * Every request is made to a workspace's own hostname, which names the workspace, and carries a
5
- * short-lived Caitlyn bearer token, however the caller signed in. The `session` sign-in mode (the
6
- * browser cookie) is handled by the SDKs' runtime and is not modelled per operation.
7
- *
8
- * @packageDocumentation
9
- */
10
- export * from "./CaitlynClient";
11
- export * from "./Caitlyn";
12
- export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
13
- export type { RuntimeExtension } from "./runtimeExtensions";
14
- export type { CaitlynExtensionConfiguration } from "./extensionConfiguration";
15
- export * from "./commands";
16
- export { Command as $Command } from "@smithy/core/client";
17
- export * from "./pagination";
18
- export * from "./schemas/schemas_0";
19
- export * from "./models/enums";
20
- export * from "./models/errors";
21
- export * from "./models/models_0";
22
- export { CaitlynServiceException } from "./models/CaitlynServiceException";
@@ -1,15 +0,0 @@
1
- import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
- export type { __ServiceExceptionOptions };
3
- export { __ServiceException };
4
- /**
5
- * @public
6
- *
7
- * Base exception class for all service exceptions from Caitlyn service.
8
- */
9
- export declare class CaitlynServiceException extends __ServiceException {
10
- static readonly shapeId: string;
11
- /**
12
- * @internal
13
- */
14
- constructor(options: __ServiceExceptionOptions);
15
- }
@@ -1,148 +0,0 @@
1
- /**
2
- * @public
3
- * @enum
4
- */
5
- export declare const ClearableDraftField: {
6
- /**
7
- * The agent's identity statement.
8
- */
9
- readonly IDENTITY: "identity";
10
- };
11
- /**
12
- * @public
13
- */
14
- export type ClearableDraftField = (typeof ClearableDraftField)[keyof typeof ClearableDraftField];
15
- /**
16
- * @public
17
- * @enum
18
- */
19
- export declare const VersionSource: {
20
- /**
21
- * Created from an imported agent file.
22
- */
23
- readonly IMPORT: "import";
24
- /**
25
- * Carried over from the version model before v3.
26
- */
27
- readonly MIGRATION: "migration";
28
- /**
29
- * Pinned from the draft, without changing production.
30
- */
31
- readonly PIN: "pin";
32
- /**
33
- * Published, which also made it production.
34
- */
35
- readonly PUBLISH: "publish";
36
- };
37
- /**
38
- * @public
39
- */
40
- export type VersionSource = (typeof VersionSource)[keyof typeof VersionSource];
41
- /**
42
- * @public
43
- * @enum
44
- */
45
- export declare const DocumentStatus: {
46
- /**
47
- * Being deleted.
48
- */
49
- readonly DELETING: "deleting";
50
- /**
51
- * The document's content could not be processed. Final.
52
- */
53
- readonly FAILED: "failed";
54
- /**
55
- * Searchable. Final.
56
- */
57
- readonly INDEXED: "indexed";
58
- /**
59
- * Searchable, but some enrichments did not complete; see `partialFailures`. Final.
60
- */
61
- readonly PARTIALLY_INDEXED: "partially_indexed";
62
- /**
63
- * Created; processing has not started.
64
- */
65
- readonly PENDING: "pending";
66
- /**
67
- * Being processed. `stage` says what the server is doing.
68
- */
69
- readonly PROCESSING: "processing";
70
- };
71
- /**
72
- * @public
73
- */
74
- export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
75
- /**
76
- * @public
77
- * @enum
78
- */
79
- export declare const OperationKind: {
80
- /**
81
- * A document's ingestion: reading, enriching and indexing its content.
82
- */
83
- readonly DOCUMENT_INGESTION: "document_ingestion";
84
- };
85
- /**
86
- * @public
87
- */
88
- export type OperationKind = (typeof OperationKind)[keyof typeof OperationKind];
89
- /**
90
- * @public
91
- * @enum
92
- */
93
- export declare const OperationStatus: {
94
- /**
95
- * Cancelled before it finished. Final.
96
- */
97
- readonly CANCELLED: "cancelled";
98
- /**
99
- * The core work failed; see `error`. Final.
100
- */
101
- readonly FAILED: "failed";
102
- /**
103
- * Waiting to start.
104
- */
105
- readonly QUEUED: "queued";
106
- /**
107
- * Running.
108
- */
109
- readonly RUNNING: "running";
110
- /**
111
- * Finished with no failures. Final.
112
- */
113
- readonly SUCCEEDED: "succeeded";
114
- /**
115
- * Finished, but some enrichments did not complete; see `partialFailures`. Final.
116
- */
117
- readonly SUCCEEDED_WITH_FAILURES: "succeeded_with_failures";
118
- };
119
- /**
120
- * @public
121
- */
122
- export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus];
123
- /**
124
- * @public
125
- * @enum
126
- */
127
- export declare const UploadStatus: {
128
- /**
129
- * Reserved; the bytes have not arrived.
130
- */
131
- readonly AWAITING_BYTES: "awaiting_bytes";
132
- /**
133
- * Used by an operation. Final.
134
- */
135
- readonly CONSUMED: "consumed";
136
- /**
137
- * Not used before `expiresAt`. Final.
138
- */
139
- readonly EXPIRED: "expired";
140
- /**
141
- * The bytes arrived and matched the checksum.
142
- */
143
- readonly RECEIVED: "received";
144
- };
145
- /**
146
- * @public
147
- */
148
- export type UploadStatus = (typeof UploadStatus)[keyof typeof UploadStatus];