@fencyai/js 0.1.122 → 0.1.124

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 (132) hide show
  1. package/lib/AgentTaskEventData.d.ts +5 -0
  2. package/lib/AgentTaskEventData.d.ts.map +1 -0
  3. package/lib/AgentTaskModel.d.ts +4 -0
  4. package/lib/AgentTaskModel.d.ts.map +1 -0
  5. package/lib/AgentTaskModel.js +2 -0
  6. package/lib/api/agent-task-params/toStreamingChatCompletionTaskParams.d.ts +1 -0
  7. package/lib/api/agent-task-params/toStreamingChatCompletionTaskParams.d.ts.map +1 -0
  8. package/lib/api/agent-task-params/toStreamingChatCompletionTaskParams.js +1 -1
  9. package/lib/api/agent-task-params/toStreamingMemoryTypeChatCompletionTaskParams.d.ts +1 -0
  10. package/lib/api/agent-task-params/toStreamingMemoryTypeChatCompletionTaskParams.d.ts.map +1 -0
  11. package/lib/api/agent-task-params/toStreamingMemoryTypeChatCompletionTaskParams.js +1 -1
  12. package/lib/api/agent-task-params/toStructuredChatCompletionTaskParams.d.ts +1 -0
  13. package/lib/api/agent-task-params/toStructuredChatCompletionTaskParams.d.ts.map +1 -0
  14. package/lib/api/agent-task-params/toStructuredChatCompletionTaskParams.js +1 -1
  15. package/lib/api/createAgentTask.d.ts +5 -0
  16. package/lib/api/createAgentTask.d.ts.map +1 -0
  17. package/lib/api/createAgentTask.js +4 -0
  18. package/lib/api/createStream.d.ts +5 -0
  19. package/lib/api/createStream.d.ts.map +1 -0
  20. package/lib/api/createStream.js +4 -0
  21. package/lib/index.d.ts +5 -3
  22. package/lib/index.d.ts.map +1 -0
  23. package/lib/index.js +4 -0
  24. package/lib/loadFency.d.ts +2 -0
  25. package/lib/loadFency.d.ts.map +1 -0
  26. package/lib/loadFency.js +1 -0
  27. package/lib/openapi/ct/core/ApiError.d.ts +1 -0
  28. package/lib/openapi/ct/core/ApiError.d.ts.map +1 -0
  29. package/lib/openapi/ct/core/ApiRequestOptions.d.ts +1 -0
  30. package/lib/openapi/ct/core/ApiRequestOptions.d.ts.map +1 -0
  31. package/lib/openapi/ct/core/ApiResult.d.ts +1 -0
  32. package/lib/openapi/ct/core/ApiResult.d.ts.map +1 -0
  33. package/lib/openapi/ct/core/CancelablePromise.d.ts +1 -0
  34. package/lib/openapi/ct/core/CancelablePromise.d.ts.map +1 -0
  35. package/lib/openapi/ct/core/OpenAPI.d.ts +1 -0
  36. package/lib/openapi/ct/core/OpenAPI.d.ts.map +1 -0
  37. package/lib/openapi/ct/core/request.d.ts +1 -0
  38. package/lib/openapi/ct/core/request.d.ts.map +1 -0
  39. package/lib/openapi/ct/index.d.ts +1 -0
  40. package/lib/openapi/ct/index.d.ts.map +1 -0
  41. package/lib/openapi/ct/models/AgentTaskProgressItemUpdatedEventDto.d.ts +1 -0
  42. package/lib/openapi/ct/models/AgentTaskProgressItemUpdatedEventDto.d.ts.map +1 -0
  43. package/lib/openapi/ct/models/ApiDtoType.d.ts +1 -0
  44. package/lib/openapi/ct/models/ApiDtoType.d.ts.map +1 -0
  45. package/lib/openapi/ct/models/StreamDto.d.ts +1 -0
  46. package/lib/openapi/ct/models/StreamDto.d.ts.map +1 -0
  47. package/lib/openapi/ct/models/StreamEventType.d.ts +1 -0
  48. package/lib/openapi/ct/models/StreamEventType.d.ts.map +1 -0
  49. package/lib/openapi/ct/models/StreamNotFoundEventDto.d.ts +1 -0
  50. package/lib/openapi/ct/models/StreamNotFoundEventDto.d.ts.map +1 -0
  51. package/lib/openapi/ct/models/StreamTimeoutEventDto.d.ts +1 -0
  52. package/lib/openapi/ct/models/StreamTimeoutEventDto.d.ts.map +1 -0
  53. package/lib/openapi/ct/services/PubService.d.ts +1 -0
  54. package/lib/openapi/ct/services/PubService.d.ts.map +1 -0
  55. package/lib/openapi/ct-st/core/ApiError.d.ts +1 -0
  56. package/lib/openapi/ct-st/core/ApiError.d.ts.map +1 -0
  57. package/lib/openapi/ct-st/core/ApiRequestOptions.d.ts +1 -0
  58. package/lib/openapi/ct-st/core/ApiRequestOptions.d.ts.map +1 -0
  59. package/lib/openapi/ct-st/core/ApiResult.d.ts +1 -0
  60. package/lib/openapi/ct-st/core/ApiResult.d.ts.map +1 -0
  61. package/lib/openapi/ct-st/core/CancelablePromise.d.ts +1 -0
  62. package/lib/openapi/ct-st/core/CancelablePromise.d.ts.map +1 -0
  63. package/lib/openapi/ct-st/core/OpenAPI.d.ts +1 -0
  64. package/lib/openapi/ct-st/core/OpenAPI.d.ts.map +1 -0
  65. package/lib/openapi/ct-st/core/request.d.ts +1 -0
  66. package/lib/openapi/ct-st/core/request.d.ts.map +1 -0
  67. package/lib/openapi/ct-st/index.d.ts +1 -0
  68. package/lib/openapi/ct-st/index.d.ts.map +1 -0
  69. package/lib/openapi/ct-st/models/AgentTaskTypeName.d.ts +1 -0
  70. package/lib/openapi/ct-st/models/AgentTaskTypeName.d.ts.map +1 -0
  71. package/lib/openapi/ct-st/models/ModelMessage.d.ts +1 -0
  72. package/lib/openapi/ct-st/models/ModelMessage.d.ts.map +1 -0
  73. package/lib/openapi/ct-st/models/ModelMessageRole.d.ts +1 -0
  74. package/lib/openapi/ct-st/models/ModelMessageRole.d.ts.map +1 -0
  75. package/lib/openapi/ct-st/models/PubAgentTaskDto.d.ts +1 -0
  76. package/lib/openapi/ct-st/models/PubAgentTaskDto.d.ts.map +1 -0
  77. package/lib/openapi/ct-st/models/PubCreateAgentTaskRequest.d.ts +1 -0
  78. package/lib/openapi/ct-st/models/PubCreateAgentTaskRequest.d.ts.map +1 -0
  79. package/lib/openapi/ct-st/models/StreamingChatCompletionTaskTypeRequestDto.d.ts +1 -0
  80. package/lib/openapi/ct-st/models/StreamingChatCompletionTaskTypeRequestDto.d.ts.map +1 -0
  81. package/lib/openapi/ct-st/models/StreamingMemoryTypeChatCompletionTaskTypeRequestDto.d.ts +1 -0
  82. package/lib/openapi/ct-st/models/StreamingMemoryTypeChatCompletionTaskTypeRequestDto.d.ts.map +1 -0
  83. package/lib/openapi/ct-st/models/StructuredChatCompletionTaskTypeRequestDto.d.ts +1 -0
  84. package/lib/openapi/ct-st/models/StructuredChatCompletionTaskTypeRequestDto.d.ts.map +1 -0
  85. package/lib/openapi/ct-st/services/PubService.d.ts +1 -0
  86. package/lib/openapi/ct-st/services/PubService.d.ts.map +1 -0
  87. package/lib/types/AgentTask.d.ts +3 -0
  88. package/lib/types/AgentTask.d.ts.map +1 -0
  89. package/lib/types/AgentTask.js +1 -0
  90. package/lib/types/ApiError.d.ts +2 -0
  91. package/lib/types/ApiError.d.ts.map +1 -0
  92. package/lib/types/CreateAgentTaskRequest.d.ts +2 -0
  93. package/lib/types/CreateAgentTaskRequest.d.ts.map +1 -0
  94. package/lib/types/CreateAgentTaskResponse.d.ts +2 -0
  95. package/lib/types/CreateAgentTaskResponse.d.ts.map +1 -0
  96. package/lib/types/CreateStreamResponse.d.ts +2 -0
  97. package/lib/types/CreateStreamResponse.d.ts.map +1 -0
  98. package/lib/types/FencyInstance.d.ts +2 -0
  99. package/lib/types/FencyInstance.d.ts.map +1 -0
  100. package/lib/types/FencyOptions.d.ts +2 -0
  101. package/lib/types/FencyOptions.d.ts.map +1 -0
  102. package/lib/types/Stream.d.ts +3 -0
  103. package/lib/types/Stream.d.ts.map +1 -0
  104. package/lib/types/Stream.js +1 -0
  105. package/lib/types/StreamEventTypes.d.ts +25 -0
  106. package/lib/types/StreamEventTypes.d.ts.map +1 -0
  107. package/lib/types/index.d.ts +10 -7
  108. package/lib/types/index.d.ts.map +1 -0
  109. package/lib/types/index.js +9 -1
  110. package/lib/utils/streamEventTypes.d.ts +8 -0
  111. package/lib/utils/streamEventTypes.d.ts.map +1 -0
  112. package/lib/utils/streamEventTypes.js +34 -0
  113. package/lib/utils/toModelMessageRole.d.ts +3 -0
  114. package/lib/utils/toModelMessageRole.d.ts.map +1 -0
  115. package/lib/{toModelMessageRole.js → utils/toModelMessageRole.js} +1 -1
  116. package/lib/utils/version.d.ts +1 -0
  117. package/lib/utils/version.d.ts.map +1 -0
  118. package/lib/utils/version.js +1 -1
  119. package/package.json +5 -3
  120. package/lib/toModelMessageRole.d.ts +0 -2
  121. package/lib/types/CreateFileDownloadLinkRequest.d.ts +0 -3
  122. package/lib/types/CreateFileDownloadLinkResponse.d.ts +0 -4
  123. package/lib/types/CreateFileDownloadLinkResponse.js +0 -1
  124. package/lib/types/S3PostRequest.d.ts +0 -10
  125. package/lib/types/S3PostRequest.js +0 -1
  126. package/lib/utils/parseApiError.d.ts +0 -2
  127. package/lib/utils/parseApiError.js +0 -14
  128. package/lib/utils/parseErrorBody.d.ts +0 -1
  129. package/lib/utils/parseErrorBody.js +0 -8
  130. package/lib/utils/parseNonOkResponse.d.ts +0 -2
  131. package/lib/utils/parseNonOkResponse.js +0 -35
  132. /package/lib/types/{CreateFileDownloadLinkRequest.js → StreamEventTypes.js} +0 -0
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export type StreamingChatCompletionEvents = {
2
3
  taskType: 'StreamingChatCompletion';
3
4
  eventType: 'Text';
@@ -10,6 +11,7 @@ export type StreamingChatCompletionEvents = {
10
11
  content: string;
11
12
  }[];
12
13
  };
14
+ /** @public */
13
15
  export type StructuredChatCompletionEvents = {
14
16
  taskType: 'StructuredChatCompletion';
15
17
  eventType: 'Json';
@@ -22,6 +24,7 @@ export type StructuredChatCompletionEvents = {
22
24
  content: any;
23
25
  }[];
24
26
  };
27
+ /** @public */
25
28
  export type StreamingMemoryTypeChatCompletionEvents = {
26
29
  taskType: 'StreamingMemoryTypeChatCompletion';
27
30
  eventType: 'Text';
@@ -67,4 +70,6 @@ export type StreamingMemoryTypeChatCompletionEvents = {
67
70
  pageNumbers: number[];
68
71
  }[];
69
72
  };
73
+ /** @public */
70
74
  export type AgentTaskEventData = StreamingChatCompletionEvents | StructuredChatCompletionEvents | StreamingMemoryTypeChatCompletionEvents;
75
+ //# sourceMappingURL=AgentTaskEventData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTaskEventData.d.ts","sourceRoot":"","sources":["../src/AgentTaskEventData.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,MAAM,6BAA6B,GACnC;IACI,QAAQ,EAAE,yBAAyB,CAAA;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf,GACD;IACI,QAAQ,EAAE,yBAAyB,CAAA;IACnC,SAAS,EAAE,WAAW,CAAA;IACtB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACzE,CAAA;AAEP,cAAc;AACd,MAAM,MAAM,8BAA8B,GACpC;IACI,QAAQ,EAAE,0BAA0B,CAAA;IACpC,SAAS,EAAE,MAAM,CAAA;IAEjB,IAAI,EAAE,GAAG,CAAA;CACZ,GACD;IACI,QAAQ,EAAE,0BAA0B,CAAA;IACpC,SAAS,EAAE,WAAW,CAAA;IAEtB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,EAAE,CAAA;CACtE,CAAA;AAEP,cAAc;AACd,MAAM,MAAM,uCAAuC,GAC7C;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,QAAQ,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CAC3B,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,aAAa,CAAA;CAC3B,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,oBAAoB,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACtB,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,qBAAqB,CAAA;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,oBAAoB,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACtB,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,eAAe,CAAA;IAC1B,OAAO,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,WAAW,EAAE,MAAM,EAAE,CAAA;KACxB,EAAE,CAAA;CACN,GACD;IACI,QAAQ,EAAE,mCAAmC,CAAA;IAC7C,SAAS,EAAE,WAAW,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE;QACL,QAAQ,EAAE,MAAM,CAAA;QAChB,WAAW,EAAE,MAAM,CAAA;QACnB,WAAW,EAAE,MAAM,EAAE,CAAA;KACxB,EAAE,CAAA;CACN,CAAA;AAEP,cAAc;AACd,MAAM,MAAM,kBAAkB,GACxB,6BAA6B,GAC7B,8BAA8B,GAC9B,uCAAuC,CAAA"}
@@ -1,3 +1,7 @@
1
+ /** @public */
1
2
  export type AgentTaskModel = 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-sonnet-4.6' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'openai/gpt-4.1-nano';
3
+ /** @public */
2
4
  export declare const agentTaskModels: AgentTaskModel[];
5
+ /** @public */
3
6
  export declare const isValidAgentTaskModel: (model: string) => model is AgentTaskModel;
7
+ //# sourceMappingURL=AgentTaskModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTaskModel.d.ts","sourceRoot":"","sources":["../src/AgentTaskModel.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,MAAM,cAAc,GACpB,4BAA4B,GAC5B,2BAA2B,GAC3B,6BAA6B,GAC7B,2BAA2B,GAC3B,6BAA6B,GAC7B,yBAAyB,GACzB,8BAA8B,GAC9B,uBAAuB,GACvB,qBAAqB,CAAA;AAE3B,cAAc;AACd,eAAO,MAAM,eAAe,EAAE,cAAc,EAU3C,CAAA;AAED,cAAc;AACd,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,cAY9D,CAAA"}
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export const agentTaskModels = [
2
3
  'anthropic/claude-haiku-4.5',
3
4
  'anthropic/claude-opus-4.5',
@@ -9,6 +10,7 @@ export const agentTaskModels = [
9
10
  'google/gemini-2.5-pro',
10
11
  'openai/gpt-4.1-nano',
11
12
  ];
13
+ /** @public */
12
14
  export const isValidAgentTaskModel = (model) => {
13
15
  return [
14
16
  'anthropic/claude-haiku-4.5',
@@ -6,3 +6,4 @@ export declare function toStreamingChatCompletionTaskParams(task: CreateAgentTas
6
6
  }[];
7
7
  model: import("../../AgentTaskModel").AgentTaskModel;
8
8
  } | undefined;
9
+ //# sourceMappingURL=toStreamingChatCompletionTaskParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStreamingChatCompletionTaskParams.d.ts","sourceRoot":"","sources":["../../../src/api/agent-task-params/toStreamingChatCompletionTaskParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAE3E,wBAAgB,mCAAmC,CAC/C,IAAI,EAAE,sBAAsB,CAAC,6BAA6B,CAAC;;;;;;cAa9D"}
@@ -1,5 +1,5 @@
1
1
  import { agentTaskModels, isValidAgentTaskModel } from '../../AgentTaskModel';
2
- import { toModelMessageRole } from '../../toModelMessageRole';
2
+ import { toModelMessageRole } from '../../utils/toModelMessageRole';
3
3
  export function toStreamingChatCompletionTaskParams(task) {
4
4
  if (!task)
5
5
  return undefined;
@@ -6,3 +6,4 @@ export declare function toStreamingMemoryTypeChatCompletionTaskParams(task: Crea
6
6
  }[];
7
7
  model: import("../../AgentTaskModel").AgentTaskModel;
8
8
  } | undefined;
9
+ //# sourceMappingURL=toStreamingMemoryTypeChatCompletionTaskParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStreamingMemoryTypeChatCompletionTaskParams.d.ts","sourceRoot":"","sources":["../../../src/api/agent-task-params/toStreamingMemoryTypeChatCompletionTaskParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAE3E,wBAAgB,6CAA6C,CACzD,IAAI,EAAE,sBAAsB,CAAC,uCAAuC,CAAC;;;;;;cAaxE"}
@@ -1,5 +1,5 @@
1
1
  import { agentTaskModels, isValidAgentTaskModel } from '../../AgentTaskModel';
2
- import { toModelMessageRole } from '../../toModelMessageRole';
2
+ import { toModelMessageRole } from '../../utils/toModelMessageRole';
3
3
  export function toStreamingMemoryTypeChatCompletionTaskParams(task) {
4
4
  if (!task)
5
5
  return undefined;
@@ -7,3 +7,4 @@ export declare function toStructuredChatCompletionTaskParams(task: CreateAgentTa
7
7
  jsonSchema: string;
8
8
  model: import("../../AgentTaskModel").AgentTaskModel;
9
9
  } | undefined;
10
+ //# sourceMappingURL=toStructuredChatCompletionTaskParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStructuredChatCompletionTaskParams.d.ts","sourceRoot":"","sources":["../../../src/api/agent-task-params/toStructuredChatCompletionTaskParams.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAE3E,wBAAgB,oCAAoC,CAChD,IAAI,EAAE,sBAAsB,CAAC,8BAA8B,CAAC;;;;;;;cAc/D"}
@@ -1,5 +1,5 @@
1
1
  import { agentTaskModels, isValidAgentTaskModel } from '../../AgentTaskModel';
2
- import { toModelMessageRole } from '../../toModelMessageRole';
2
+ import { toModelMessageRole } from '../../utils/toModelMessageRole';
3
3
  export function toStructuredChatCompletionTaskParams(task) {
4
4
  if (!task)
5
5
  return undefined;
@@ -1,5 +1,9 @@
1
1
  import { CreateAgentTaskRequest } from '../types/CreateAgentTaskRequest';
2
2
  import { CreateAgentTaskResponse } from '../types/CreateAgentTaskResponse';
3
+ /**
4
+ * Creates an agent task.
5
+ * @public
6
+ */
3
7
  export declare function createAgentTask(params: {
4
8
  pk: string;
5
9
  request: CreateAgentTaskRequest;
@@ -7,3 +11,4 @@ export declare function createAgentTask(params: {
7
11
  clientToken: string;
8
12
  streamToken: string;
9
13
  }): Promise<CreateAgentTaskResponse>;
14
+ //# sourceMappingURL=createAgentTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAgentTask.d.ts","sourceRoot":"","sources":["../../src/api/createAgentTask.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAIxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAG1E;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,sBAAsB,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAwCnC"}
@@ -3,6 +3,10 @@ import { toStreamingChatCompletionTaskParams } from './agent-task-params/toStrea
3
3
  import { toStreamingMemoryTypeChatCompletionTaskParams } from './agent-task-params/toStreamingMemoryTypeChatCompletionTaskParams';
4
4
  import { toStructuredChatCompletionTaskParams } from './agent-task-params/toStructuredChatCompletionTaskParams';
5
5
  import { getPackageVersion } from '../utils/version';
6
+ /**
7
+ * Creates an agent task.
8
+ * @public
9
+ */
6
10
  export async function createAgentTask(params) {
7
11
  try {
8
12
  OpenAPI.BASE = params.baseUrl;
@@ -1,6 +1,11 @@
1
1
  import { CreateStreamResponse } from '../types/CreateStreamResponse';
2
+ /**
3
+ * Creates a stream.
4
+ * @public
5
+ */
2
6
  export declare function createStream(params: {
3
7
  pk: string;
4
8
  baseUrl: string;
5
9
  clientToken: string;
6
10
  }): Promise<CreateStreamResponse>;
11
+ //# sourceMappingURL=createStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createStream.d.ts","sourceRoot":"","sources":["../../src/api/createStream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAGpE;;;GAGG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA6BhC"}
@@ -1,5 +1,9 @@
1
1
  import { OpenAPI } from '../openapi/ct';
2
2
  import { getPackageVersion } from '../utils/version';
3
+ /**
4
+ * Creates a stream.
5
+ * @public
6
+ */
3
7
  export async function createStream(params) {
4
8
  try {
5
9
  OpenAPI.BASE = params.baseUrl;
package/lib/index.d.ts CHANGED
@@ -1,12 +1,14 @@
1
+ /**
2
+ * @packageDocumentation
3
+ */
1
4
  export { loadFency } from './loadFency';
2
5
  export type { FencyInstance } from './types/FencyInstance';
3
6
  export type { FencyOptions } from './types/FencyOptions';
4
7
  export * from './types/index';
5
- export type { AgentTaskProgressItemUpdatedEventDto } from './openapi/ct/models/AgentTaskProgressItemUpdatedEventDto';
6
- export type { StreamNotFoundEventDto } from './openapi/ct/models/StreamNotFoundEventDto';
7
- export type { StreamTimeoutEventDto } from './openapi/ct/models/StreamTimeoutEventDto';
8
+ export { isStreamTimeoutEvent, isStreamNotFoundEvent, isAgentTaskProgressItemUpdatedEvent, } from './utils/streamEventTypes';
8
9
  export { createAgentTask } from './api/createAgentTask';
9
10
  export { createStream } from './api/createStream';
10
11
  export { isValidAgentTaskModel, agentTaskModels } from './AgentTaskModel';
11
12
  export type { AgentTaskModel } from './AgentTaskModel';
12
13
  export type { AgentTaskEventData } from './AgentTaskEventData';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,cAAc,eAAe,CAAA;AAE7B,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,mCAAmC,GACtC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACzE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
package/lib/index.js CHANGED
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ */
1
4
  export { loadFency } from './loadFency';
2
5
  export * from './types/index';
6
+ export { isStreamTimeoutEvent, isStreamNotFoundEvent, isAgentTaskProgressItemUpdatedEvent, } from './utils/streamEventTypes';
3
7
  // api
4
8
  export { createAgentTask } from './api/createAgentTask';
5
9
  export { createStream } from './api/createStream';
@@ -5,6 +5,7 @@ import { FencyOptions } from './types/FencyOptions';
5
5
  * This method should be called outside of a component's render to avoid
6
6
  * recreating the Fency object on every render.
7
7
  *
8
+ * @public
8
9
  * @param publishableKey - Your Fency publishable key
9
10
  * @param options - Optional configuration options
10
11
  * @returns A promise that resolves to a Fency instance
@@ -17,3 +18,4 @@ import { FencyOptions } from './types/FencyOptions';
17
18
  * ```
18
19
  */
19
20
  export declare function loadFency(options: FencyOptions): Promise<FencyInstance>;
21
+ //# sourceMappingURL=loadFency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadFency.d.ts","sourceRoot":"","sources":["../src/loadFency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAmBvE"}
package/lib/loadFency.js CHANGED
@@ -3,6 +3,7 @@
3
3
  * This method should be called outside of a component's render to avoid
4
4
  * recreating the Fency object on every render.
5
5
  *
6
+ * @public
6
7
  * @param publishableKey - Your Fency publishable key
7
8
  * @param options - Optional configuration options
8
9
  * @returns A promise that resolves to a Fency instance
@@ -8,3 +8,4 @@ export declare class ApiError extends Error {
8
8
  readonly request: ApiRequestOptions;
9
9
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
10
10
  }
11
+ //# sourceMappingURL=ApiError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiError.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/ApiError.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,QAAS,SAAQ,KAAK;IAC/B,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,IAAI,EAAE,GAAG,CAAC;IAC1B,SAAgB,OAAO,EAAE,iBAAiB,CAAC;gBAE/B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM;CAU/E"}
@@ -11,3 +11,4 @@ export type ApiRequestOptions = {
11
11
  readonly responseHeader?: string;
12
12
  readonly errors?: Record<number, string>;
13
13
  };
14
+ //# sourceMappingURL=ApiRequestOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiRequestOptions.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/ApiRequestOptions.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAClF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC"}
@@ -5,3 +5,4 @@ export type ApiResult = {
5
5
  readonly statusText: string;
6
6
  readonly body: any;
7
7
  };
8
+ //# sourceMappingURL=ApiResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiResult.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/ApiResult.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;CACtB,CAAC"}
@@ -18,3 +18,4 @@ export declare class CancelablePromise<T> implements Promise<T> {
18
18
  cancel(): void;
19
19
  get isCancelled(): boolean;
20
20
  }
21
+ //# sourceMappingURL=CancelablePromise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelablePromise.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/CancelablePromise.ts"],"names":[],"mappings":"AAIA,qBAAa,WAAY,SAAQ,KAAK;gBAEtB,OAAO,EAAE,MAAM;IAK3B,IAAW,WAAW,IAAI,OAAO,CAEhC;CACJ;AAED,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B,CAAC,aAAa,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CACrC;AAED,qBAAa,iBAAiB,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;gBAU/C,QAAQ,EAAE,CACN,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAC5C,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,EAC9B,QAAQ,EAAE,QAAQ,KACjB,IAAI;IAiDb,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,WAEvB;IAEM,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACtC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,EACrE,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,GACxE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAIxB,KAAK,CAAC,OAAO,GAAG,KAAK,EACxB,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GACtE,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIhB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC;IAIpD,MAAM,IAAI,IAAI;IAmBrB,IAAW,WAAW,IAAI,OAAO,CAEhC;CACJ"}
@@ -14,3 +14,4 @@ export type OpenAPIConfig = {
14
14
  };
15
15
  export declare const OpenAPI: OpenAPIConfig;
16
16
  export {};
17
+ //# sourceMappingURL=OpenAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAPI.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/OpenAPI.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAC9D,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,aAUrB,CAAC"}
@@ -28,3 +28,4 @@ export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiRe
28
28
  */
29
29
  export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
30
30
  export {};
31
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/core/request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,KAAK,IAAI,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,SAAS,CAE9F,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAE9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAEvD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,IAW5C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,QAEhD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,KAAG,MAOpC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAgC5D,CAAC;AAqBF,eAAO,MAAM,WAAW,GAAI,SAAS,iBAAiB,KAAG,QAAQ,GAAG,SAyBnE,CAAC;AAEF,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAE9D,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,SAAS,iBAAiB,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAK9G,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,QAAQ,aAAa,EAAE,SAAS,iBAAiB,KAAG,OAAO,CAAC,OAAO,CAyCnG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,iBAAiB,KAAG,GAW3D,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,QAAQ,aAAa,EACrB,SAAS,iBAAiB,EAC1B,KAAK,MAAM,EACX,MAAM,GAAG,EACT,UAAU,QAAQ,GAAG,SAAS,EAC9B,SAAS,OAAO,EAChB,UAAU,QAAQ,KACnB,OAAO,CAAC,QAAQ,CAiBlB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,QAAQ,EAAE,iBAAiB,MAAM,KAAG,MAAM,GAAG,SAQxF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,GAAG,CAkBrE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB,EAAE,QAAQ,SAAS,KAAG,IAgC/E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,SAAS,iBAAiB,KAAG,iBAAiB,CAAC,CAAC,CA6BjG,CAAC"}
@@ -9,3 +9,4 @@ export { StreamEventType } from './models/StreamEventType';
9
9
  export type { StreamNotFoundEventDto } from './models/StreamNotFoundEventDto';
10
10
  export type { StreamTimeoutEventDto } from './models/StreamTimeoutEventDto';
11
11
  export { PubService } from './services/PubService';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/ct/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,YAAY,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AAC1G,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
@@ -8,3 +8,4 @@ export type AgentTaskProgressItemUpdatedEventDto = {
8
8
  progressItemId: string;
9
9
  data: string;
10
10
  };
11
+ //# sourceMappingURL=AgentTaskProgressItemUpdatedEventDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTaskProgressItemUpdatedEventDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/AgentTaskProgressItemUpdatedEventDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,MAAM,MAAM,oCAAoC,GAAG;IAC/C,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -4,3 +4,4 @@ export declare enum ApiDtoType {
4
4
  SESSION = "Session",
5
5
  USER = "User"
6
6
  }
7
+ //# sourceMappingURL=ApiDtoType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiDtoType.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/ApiDtoType.ts"],"names":[],"mappings":"AAIA,oBAAY,UAAU;IAClB,eAAe,mBAAmB;IAClC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB"}
@@ -5,3 +5,4 @@ export type StreamDto = {
5
5
  type: ApiDtoType;
6
6
  token: string;
7
7
  };
8
+ //# sourceMappingURL=StreamDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/StreamDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -4,3 +4,4 @@ export declare enum StreamEventType {
4
4
  STREAM_UNAUTHORIZED = "StreamUnauthorized",
5
5
  AGENT_TASK_PROGRESS_ITEM_UPDATED = "AgentTaskProgressItemUpdated"
6
6
  }
7
+ //# sourceMappingURL=StreamEventType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamEventType.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/StreamEventType.ts"],"names":[],"mappings":"AAIA,oBAAY,eAAe;IACvB,cAAc,kBAAkB;IAChC,gBAAgB,mBAAmB;IACnC,mBAAmB,uBAAuB;IAC1C,gCAAgC,iCAAiC;CACpE"}
@@ -4,3 +4,4 @@ export type StreamNotFoundEventDto = {
4
4
  streamId: string;
5
5
  timestamp: string;
6
6
  };
7
+ //# sourceMappingURL=StreamNotFoundEventDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamNotFoundEventDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/StreamNotFoundEventDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -4,3 +4,4 @@ export type StreamTimeoutEventDto = {
4
4
  streamId: string;
5
5
  timestamp: string;
6
6
  };
7
+ //# sourceMappingURL=StreamTimeoutEventDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamTimeoutEventDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/models/StreamTimeoutEventDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -17,3 +17,4 @@ export declare class PubService {
17
17
  */
18
18
  static getPubTypes(): CancelablePromise<(StreamTimeoutEventDto | StreamNotFoundEventDto | AgentTaskProgressItemUpdatedEventDto)>;
19
19
  }
20
+ //# sourceMappingURL=PubService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubService.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct/services/PubService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAC3G,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,UAAU;IACnB;;;;OAIG;WACW,YAAY,IAAI,iBAAiB,CAAC,SAAS,CAAC;IAM1D;;;;OAIG;WACW,WAAW,IAAI,iBAAiB,CAAC,CAAC,qBAAqB,GAAG,sBAAsB,GAAG,oCAAoC,CAAC,CAAC;CAM1I"}
@@ -8,3 +8,4 @@ export declare class ApiError extends Error {
8
8
  readonly request: ApiRequestOptions;
9
9
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
10
10
  }
11
+ //# sourceMappingURL=ApiError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiError.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/ApiError.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,qBAAa,QAAS,SAAQ,KAAK;IAC/B,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,IAAI,EAAE,GAAG,CAAC;IAC1B,SAAgB,OAAO,EAAE,iBAAiB,CAAC;gBAE/B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM;CAU/E"}
@@ -11,3 +11,4 @@ export type ApiRequestOptions = {
11
11
  readonly responseHeader?: string;
12
12
  readonly errors?: Record<number, string>;
13
13
  };
14
+ //# sourceMappingURL=ApiRequestOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiRequestOptions.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/ApiRequestOptions.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAClF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C,CAAC"}
@@ -5,3 +5,4 @@ export type ApiResult = {
5
5
  readonly statusText: string;
6
6
  readonly body: any;
7
7
  };
8
+ //# sourceMappingURL=ApiResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiResult.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/ApiResult.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC;CACtB,CAAC"}
@@ -18,3 +18,4 @@ export declare class CancelablePromise<T> implements Promise<T> {
18
18
  cancel(): void;
19
19
  get isCancelled(): boolean;
20
20
  }
21
+ //# sourceMappingURL=CancelablePromise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelablePromise.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/CancelablePromise.ts"],"names":[],"mappings":"AAIA,qBAAa,WAAY,SAAQ,KAAK;gBAEtB,OAAO,EAAE,MAAM;IAK3B,IAAW,WAAW,IAAI,OAAO,CAEhC;CACJ;AAED,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B,CAAC,aAAa,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CACrC;AAED,qBAAa,iBAAiB,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,CAAC;;gBAU/C,QAAQ,EAAE,CACN,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAC5C,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,EAC9B,QAAQ,EAAE,QAAQ,KACjB,IAAI;IAiDb,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,WAEvB;IAEM,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,KAAK,EACtC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,EACrE,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,GACxE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAIxB,KAAK,CAAC,OAAO,GAAG,KAAK,EACxB,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GACtE,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIhB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC;IAIpD,MAAM,IAAI,IAAI;IAmBrB,IAAW,WAAW,IAAI,OAAO,CAEhC;CACJ"}
@@ -14,3 +14,4 @@ export type OpenAPIConfig = {
14
14
  };
15
15
  export declare const OpenAPI: OpenAPIConfig;
16
16
  export {};
17
+ //# sourceMappingURL=OpenAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAPI.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/OpenAPI.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAC9D,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,aAUrB,CAAC"}
@@ -28,3 +28,4 @@ export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiRe
28
28
  */
29
29
  export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
30
30
  export {};
31
+ //# sourceMappingURL=request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/core/request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,KAAK,IAAI,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,SAAS,CAE9F,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAE9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAEvD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,IAW5C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,QAEhD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,KAAG,MAOpC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAgC5D,CAAC;AAqBF,eAAO,MAAM,WAAW,GAAI,SAAS,iBAAiB,KAAG,QAAQ,GAAG,SAyBnE,CAAC;AAEF,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAE9D,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,SAAS,iBAAiB,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAK9G,CAAC;AAEF,eAAO,MAAM,UAAU,GAAU,QAAQ,aAAa,EAAE,SAAS,iBAAiB,KAAG,OAAO,CAAC,OAAO,CAyCnG,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,iBAAiB,KAAG,GAW3D,CAAC;AAEF,eAAO,MAAM,WAAW,GACpB,QAAQ,aAAa,EACrB,SAAS,iBAAiB,EAC1B,KAAK,MAAM,EACX,MAAM,GAAG,EACT,UAAU,QAAQ,GAAG,SAAS,EAC9B,SAAS,OAAO,EAChB,UAAU,QAAQ,KACnB,OAAO,CAAC,QAAQ,CAiBlB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,UAAU,QAAQ,EAAE,iBAAiB,MAAM,KAAG,MAAM,GAAG,SAQxF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,UAAU,QAAQ,KAAG,OAAO,CAAC,GAAG,CAkBrE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,iBAAiB,EAAE,QAAQ,SAAS,KAAG,IAgC/E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,SAAS,iBAAiB,KAAG,iBAAiB,CAAC,CAAC,CA6BjG,CAAC"}
@@ -11,3 +11,4 @@ export type { StreamingChatCompletionTaskTypeRequestDto } from './models/Streami
11
11
  export type { StreamingMemoryTypeChatCompletionTaskTypeRequestDto } from './models/StreamingMemoryTypeChatCompletionTaskTypeRequestDto';
12
12
  export type { StructuredChatCompletionTaskTypeRequestDto } from './models/StructuredChatCompletionTaskTypeRequestDto';
13
13
  export { PubService } from './services/PubService';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/ct-st/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,YAAY,EAAE,yCAAyC,EAAE,MAAM,oDAAoD,CAAC;AACpH,YAAY,EAAE,mDAAmD,EAAE,MAAM,8DAA8D,CAAC;AACxI,YAAY,EAAE,0CAA0C,EAAE,MAAM,qDAAqD,CAAC;AAEtH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
@@ -3,3 +3,4 @@ export declare enum AgentTaskTypeName {
3
3
  STREAMING_CHAT_COMPLETION = "StreamingChatCompletion",
4
4
  STRUCTURED_CHAT_COMPLETION = "StructuredChatCompletion"
5
5
  }
6
+ //# sourceMappingURL=AgentTaskTypeName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTaskTypeName.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/AgentTaskTypeName.ts"],"names":[],"mappings":"AAIA,oBAAY,iBAAiB;IACzB,qCAAqC,sCAAsC;IAC3E,yBAAyB,4BAA4B;IACrD,0BAA0B,6BAA6B;CAC1D"}
@@ -3,3 +3,4 @@ export type ModelMessage = {
3
3
  role: ModelMessageRole;
4
4
  content: string;
5
5
  };
6
+ //# sourceMappingURL=ModelMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelMessage.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/ModelMessage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -3,3 +3,4 @@ export declare enum ModelMessageRole {
3
3
  USER = "USER",
4
4
  ASSISTANT = "ASSISTANT"
5
5
  }
6
+ //# sourceMappingURL=ModelMessageRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModelMessageRole.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/ModelMessageRole.ts"],"names":[],"mappings":"AAIA,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;CAC1B"}
@@ -4,3 +4,4 @@ export type PubAgentTaskDto = {
4
4
  createdAt: string;
5
5
  type: AgentTaskTypeName;
6
6
  };
7
+ //# sourceMappingURL=PubAgentTaskDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubAgentTaskDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/PubAgentTaskDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,iBAAiB,CAAC;CAC3B,CAAC"}
@@ -6,3 +6,4 @@ export type PubCreateAgentTaskRequest = {
6
6
  structuredChatCompletionTask?: StructuredChatCompletionTaskTypeRequestDto;
7
7
  streamingMemoryTypeChatCompletionTask?: StreamingMemoryTypeChatCompletionTaskTypeRequestDto;
8
8
  };
9
+ //# sourceMappingURL=PubCreateAgentTaskRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubCreateAgentTaskRequest.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/PubCreateAgentTaskRequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAC7G,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,uDAAuD,CAAC;AACjI,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,MAAM,MAAM,yBAAyB,GAAG;IACpC,2BAA2B,CAAC,EAAE,yCAAyC,CAAC;IACxE,4BAA4B,CAAC,EAAE,0CAA0C,CAAC;IAC1E,qCAAqC,CAAC,EAAE,mDAAmD,CAAC;CAC/F,CAAC"}
@@ -3,3 +3,4 @@ export type StreamingChatCompletionTaskTypeRequestDto = {
3
3
  messages: Array<ModelMessage>;
4
4
  model: string;
5
5
  };
6
+ //# sourceMappingURL=StreamingChatCompletionTaskTypeRequestDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamingChatCompletionTaskTypeRequestDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/StreamingChatCompletionTaskTypeRequestDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,MAAM,MAAM,yCAAyC,GAAG;IACpD,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -3,3 +3,4 @@ export type StreamingMemoryTypeChatCompletionTaskTypeRequestDto = {
3
3
  messages: Array<ModelMessage>;
4
4
  model: string;
5
5
  };
6
+ //# sourceMappingURL=StreamingMemoryTypeChatCompletionTaskTypeRequestDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamingMemoryTypeChatCompletionTaskTypeRequestDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/StreamingMemoryTypeChatCompletionTaskTypeRequestDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,MAAM,MAAM,mDAAmD,GAAG;IAC9D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -4,3 +4,4 @@ export type StructuredChatCompletionTaskTypeRequestDto = {
4
4
  jsonSchema: string;
5
5
  model: string;
6
6
  };
7
+ //# sourceMappingURL=StructuredChatCompletionTaskTypeRequestDto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StructuredChatCompletionTaskTypeRequestDto.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/models/StructuredChatCompletionTaskTypeRequestDto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,MAAM,MAAM,0CAA0C,GAAG;IACrD,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -10,3 +10,4 @@ export declare class PubService {
10
10
  */
11
11
  static createAgentTask(requestBody: PubCreateAgentTaskRequest): CancelablePromise<PubAgentTaskDto>;
12
12
  }
13
+ //# sourceMappingURL=PubService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PubService.d.ts","sourceRoot":"","sources":["../../../../src/openapi/ct-st/services/PubService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,UAAU;IACnB;;;;;OAKG;WACW,eAAe,CACzB,WAAW,EAAE,yBAAyB,GACvC,iBAAiB,CAAC,eAAe,CAAC;CAQxC"}
@@ -1,6 +1,9 @@
1
+ /** @public */
1
2
  export type AgentTask = {
2
3
  id: string;
3
4
  response?: string;
4
5
  createdAt: string;
5
6
  };
7
+ /** @public */
6
8
  export declare const isAgentTask: (data: any) => data is AgentTask;
9
+ //# sourceMappingURL=AgentTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentTask.d.ts","sourceRoot":"","sources":["../../src/types/AgentTask.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,MAAM,SAAS,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,cAAc;AACd,eAAO,MAAM,WAAW,GAAI,MAAM,GAAG,KAAG,IAAI,IAAI,SAS/C,CAAA"}
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export const isAgentTask = (data) => {
2
3
  return (typeof data === 'object' &&
3
4
  data !== null &&
@@ -1,4 +1,6 @@
1
+ /** @public */
1
2
  export type ApiError = {
2
3
  code: string;
3
4
  message: string;
4
5
  };
6
+ //# sourceMappingURL=ApiError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiError.d.ts","sourceRoot":"","sources":["../../src/types/ApiError.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export interface CreateAgentTaskRequest {
2
3
  streamingChatCompletionTask?: {
3
4
  messages: {
@@ -22,3 +23,4 @@ export interface CreateAgentTaskRequest {
22
23
  model: string;
23
24
  };
24
25
  }
26
+ //# sourceMappingURL=CreateAgentTaskRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAgentTaskRequest.d.ts","sourceRoot":"","sources":["../../src/types/CreateAgentTaskRequest.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,WAAW,sBAAsB;IACnC,2BAA2B,CAAC,EAAE;QAC1B,QAAQ,EAAE;YACN,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;YACrC,OAAO,EAAE,MAAM,CAAA;SAClB,EAAE,CAAA;QACH,KAAK,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,4BAA4B,CAAC,EAAE;QAC3B,QAAQ,EAAE;YACN,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;YACrC,OAAO,EAAE,MAAM,CAAA;SAClB,EAAE,CAAA;QACH,UAAU,EAAE,MAAM,CAAA;QAClB,KAAK,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,qCAAqC,CAAC,EAAE;QACpC,QAAQ,EAAE;YACN,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;YACrC,OAAO,EAAE,MAAM,CAAA;SAClB,EAAE,CAAA;QACH,KAAK,EAAE,MAAM,CAAA;KAChB,CAAA;CACJ"}
@@ -1,5 +1,6 @@
1
1
  import { ApiError } from './ApiError';
2
2
  import { AgentTask } from './AgentTask';
3
+ /** @public */
3
4
  export type CreateAgentTaskResponse = {
4
5
  type: 'success';
5
6
  agentTask: AgentTask;
@@ -7,3 +8,4 @@ export type CreateAgentTaskResponse = {
7
8
  type: 'error';
8
9
  error: ApiError;
9
10
  };
11
+ //# sourceMappingURL=CreateAgentTaskResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAgentTaskResponse.d.ts","sourceRoot":"","sources":["../../src/types/CreateAgentTaskResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,cAAc;AACd,MAAM,MAAM,uBAAuB,GAC7B;IACI,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,EAAE,SAAS,CAAA;CACvB,GACD;IACI,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,QAAQ,CAAA;CAClB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { ApiError } from './ApiError';
2
2
  import { Stream } from './Stream';
3
+ /** @public */
3
4
  export type CreateStreamResponse = {
4
5
  type: 'success';
5
6
  stream: Stream;
@@ -7,3 +8,4 @@ export type CreateStreamResponse = {
7
8
  type: 'error';
8
9
  error: ApiError;
9
10
  };
11
+ //# sourceMappingURL=CreateStreamResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateStreamResponse.d.ts","sourceRoot":"","sources":["../../src/types/CreateStreamResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,cAAc;AACd,MAAM,MAAM,oBAAoB,GAC1B;IACI,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACjB,GACD;IACI,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,QAAQ,CAAA;CAClB,CAAA"}
@@ -1,4 +1,6 @@
1
+ /** @public */
1
2
  export interface FencyInstance {
2
3
  publishableKey: string;
3
4
  baseUrl: string;
4
5
  }
6
+ //# sourceMappingURL=FencyInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FencyInstance.d.ts","sourceRoot":"","sources":["../../src/types/FencyInstance.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,WAAW,aAAa;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAClB"}
@@ -1,6 +1,8 @@
1
+ /** @public */
1
2
  export interface FencyOptions {
2
3
  /** Your Fency publishable key */
3
4
  publishableKey: string;
4
5
  /** Optional configuration for the Fency instance */
5
6
  baseUrl?: string;
6
7
  }
8
+ //# sourceMappingURL=FencyOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FencyOptions.d.ts","sourceRoot":"","sources":["../../src/types/FencyOptions.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,WAAW,YAAY;IACzB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,6 +1,9 @@
1
+ /** @public */
1
2
  export interface Stream {
2
3
  id: string;
3
4
  createdAt: string;
4
5
  token: string;
5
6
  }
7
+ /** @public */
6
8
  export declare const isStream: (data: any) => data is Stream;
9
+ //# sourceMappingURL=Stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../src/types/Stream.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,cAAc;AACd,eAAO,MAAM,QAAQ,GAAI,MAAM,GAAG,KAAG,IAAI,IAAI,MAQ5C,CAAA"}
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export const isStream = (data) => {
2
3
  return (typeof data === 'object' &&
3
4
  data !== null &&
@@ -0,0 +1,25 @@
1
+ /** @public */
2
+ export type StreamEventType = 'StreamTimeout' | 'StreamNotFound' | 'StreamUnauthorized' | 'AgentTaskProgressItemUpdated';
3
+ /** @public */
4
+ export type AgentTaskProgressItemUpdatedEvent = {
5
+ type: StreamEventType;
6
+ streamId: string;
7
+ timestamp: string;
8
+ createdAt: string;
9
+ agentTaskId: string;
10
+ progressItemId: string;
11
+ data: string;
12
+ };
13
+ /** @public */
14
+ export type StreamNotFoundEvent = {
15
+ type: StreamEventType;
16
+ streamId: string;
17
+ timestamp: string;
18
+ };
19
+ /** @public */
20
+ export type StreamTimeoutEvent = {
21
+ type: StreamEventType;
22
+ streamId: string;
23
+ timestamp: string;
24
+ };
25
+ //# sourceMappingURL=StreamEventTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamEventTypes.d.ts","sourceRoot":"","sources":["../../src/types/StreamEventTypes.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,MAAM,MAAM,eAAe,GACrB,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,8BAA8B,CAAA;AAEpC,cAAc;AACd,MAAM,MAAM,iCAAiC,GAAG;IAC5C,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;CACf,CAAA;AAED,cAAc;AACd,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,cAAc;AACd,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA"}
@@ -1,7 +1,10 @@
1
- export type { ApiError } from './ApiError';
2
- export type { AgentTask } from './AgentTask';
3
- export type { CreateAgentTaskRequest } from './CreateAgentTaskRequest';
4
- export type { CreateAgentTaskResponse } from './CreateAgentTaskResponse';
5
- export type { CreateStreamResponse } from './CreateStreamResponse';
6
- export type { CreateFileDownloadLinkResponse } from './CreateFileDownloadLinkResponse';
7
- export type { Stream } from './Stream';
1
+ export * from './AgentTask';
2
+ export * from './ApiError';
3
+ export * from './CreateAgentTaskRequest';
4
+ export * from './CreateAgentTaskResponse';
5
+ export * from './CreateStreamResponse';
6
+ export * from './FencyInstance';
7
+ export * from './FencyOptions';
8
+ export * from './Stream';
9
+ export * from './StreamEventTypes';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA"}
@@ -1 +1,9 @@
1
- export {};
1
+ export * from './AgentTask';
2
+ export * from './ApiError';
3
+ export * from './CreateAgentTaskRequest';
4
+ export * from './CreateAgentTaskResponse';
5
+ export * from './CreateStreamResponse';
6
+ export * from './FencyInstance';
7
+ export * from './FencyOptions';
8
+ export * from './Stream';
9
+ export * from './StreamEventTypes';
@@ -0,0 +1,8 @@
1
+ import type { AgentTaskProgressItemUpdatedEvent, StreamNotFoundEvent, StreamTimeoutEvent } from '../types/StreamEventTypes';
2
+ /** @public */
3
+ export declare function isStreamTimeoutEvent(value: unknown): value is StreamTimeoutEvent;
4
+ /** @public */
5
+ export declare function isStreamNotFoundEvent(value: unknown): value is StreamNotFoundEvent;
6
+ /** @public */
7
+ export declare function isAgentTaskProgressItemUpdatedEvent(value: unknown): value is AgentTaskProgressItemUpdatedEvent;
8
+ //# sourceMappingURL=streamEventTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streamEventTypes.d.ts","sourceRoot":"","sources":["../../src/utils/streamEventTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EACrB,MAAM,2BAA2B,CAAA;AAUlC,cAAc;AACd,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,kBAAkB,CAO7B;AAED,cAAc;AACd,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,mBAAmB,CAO9B;AAED,cAAc;AACd,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,iCAAiC,CAW5C"}
@@ -0,0 +1,34 @@
1
+ function isObject(value) {
2
+ return typeof value === 'object' && value !== null;
3
+ }
4
+ function hasString(obj, key) {
5
+ return key in obj && typeof obj[key] === 'string';
6
+ }
7
+ /** @public */
8
+ export function isStreamTimeoutEvent(value) {
9
+ if (!isObject(value))
10
+ return false;
11
+ return (value.type === 'StreamTimeout' &&
12
+ hasString(value, 'streamId') &&
13
+ hasString(value, 'timestamp'));
14
+ }
15
+ /** @public */
16
+ export function isStreamNotFoundEvent(value) {
17
+ if (!isObject(value))
18
+ return false;
19
+ return (value.type === 'StreamNotFound' &&
20
+ hasString(value, 'streamId') &&
21
+ hasString(value, 'timestamp'));
22
+ }
23
+ /** @public */
24
+ export function isAgentTaskProgressItemUpdatedEvent(value) {
25
+ if (!isObject(value))
26
+ return false;
27
+ return (value.type === 'AgentTaskProgressItemUpdated' &&
28
+ hasString(value, 'streamId') &&
29
+ hasString(value, 'timestamp') &&
30
+ hasString(value, 'createdAt') &&
31
+ hasString(value, 'agentTaskId') &&
32
+ hasString(value, 'progressItemId') &&
33
+ hasString(value, 'data'));
34
+ }
@@ -0,0 +1,3 @@
1
+ import { ModelMessageRole } from '../openapi/ct-st/models/ModelMessageRole';
2
+ export declare const toModelMessageRole: (role: "user" | "assistant" | "system") => ModelMessageRole;
3
+ //# sourceMappingURL=toModelMessageRole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toModelMessageRole.d.ts","sourceRoot":"","sources":["../../src/utils/toModelMessageRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAE3E,eAAO,MAAM,kBAAkB,GAC3B,MAAM,MAAM,GAAG,WAAW,GAAG,QAAQ,KACtC,gBASF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ModelMessageRole } from './openapi/ct-st/models/ModelMessageRole';
1
+ import { ModelMessageRole } from '../openapi/ct-st/models/ModelMessageRole';
2
2
  export const toModelMessageRole = (role) => {
3
3
  switch (role) {
4
4
  case 'user':
@@ -12,3 +12,4 @@ export declare function setPackageVersion(version: string): void;
12
12
  * Reset the version to the default build-time version
13
13
  */
14
14
  export declare function resetPackageVersion(): void;
15
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C"}
@@ -1,7 +1,7 @@
1
1
  // Browser-compatible version utility
2
2
  // The version is set at build time and can be overridden if needed
3
3
  // Build-time version constant - this should be updated during the build process
4
- const SDK_VERSION = '0.1.120';
4
+ const SDK_VERSION = '0.1.122';
5
5
  // Allow runtime override if needed
6
6
  let versionOverride = null;
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/js",
3
- "version": "0.1.122",
3
+ "version": "0.1.124",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -32,7 +32,9 @@
32
32
  "test:watch": "jest --watch",
33
33
  "dev": "tsc --watch",
34
34
  "prepublishOnly": "npm run build",
35
- "codegen": "openapi --input http://localhost:8080/pub/ct-st/swagger.json --output ./src/openapi/ct-st && openapi --input http://localhost:8080/pub/ct/swagger.json --output ./src/openapi/ct"
35
+ "codegen": "openapi --input http://localhost:8080/pub/ct-st/swagger.json --output ./src/openapi/ct-st && openapi --input http://localhost:8080/pub/ct/swagger.json --output ./src/openapi/ct",
36
+ "extract-api": "api-extractor run",
37
+ "extract-api:local": "api-extractor run --local"
36
38
  },
37
39
  "devDependencies": {
38
40
  "@types/jest": "^29.5.11",
@@ -42,5 +44,5 @@
42
44
  "ts-jest": "^29.1.1",
43
45
  "typescript": "^5.3.3"
44
46
  },
45
- "gitHead": "08324adcc717e633a5e97ab3c87f881d4ef2b307"
47
+ "gitHead": "277a6a14145ee48036b64dd9b40c90dbb0d9d945"
46
48
  }
@@ -1,2 +0,0 @@
1
- import { ModelMessageRole } from './openapi/ct-st/models/ModelMessageRole';
2
- export declare const toModelMessageRole: (role: "user" | "assistant" | "system") => ModelMessageRole;
@@ -1,3 +0,0 @@
1
- export interface CreateFileDownloadLinkRequest {
2
- fileId: string;
3
- }
@@ -1,4 +0,0 @@
1
- export interface CreateFileDownloadLinkResponse {
2
- type: 'success';
3
- downloadLink: string;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- export interface S3PostRequest {
2
- xAmzDate: string;
3
- xAmzSignature: string;
4
- xAmzAlgorithm: string;
5
- xAmzCredential: string;
6
- policy: string;
7
- key: string;
8
- uploadUrl: string;
9
- sessionToken: string;
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { ApiError } from '../types/ApiError';
2
- export declare const parseApiError: (error: unknown) => ApiError | null;
@@ -1,14 +0,0 @@
1
- export const parseApiError = (error) => {
2
- if (typeof error === 'object' &&
3
- error !== null &&
4
- 'code' in error &&
5
- 'message' in error &&
6
- typeof error.code === 'string' &&
7
- typeof error.message === 'string') {
8
- return {
9
- code: error.code,
10
- message: error.message,
11
- };
12
- }
13
- return null;
14
- };
@@ -1 +0,0 @@
1
- export declare const parseErrorBody: (response: Response) => Promise<unknown>;
@@ -1,8 +0,0 @@
1
- export const parseErrorBody = async (response) => {
2
- try {
3
- return await response.json();
4
- }
5
- catch (error) {
6
- return null;
7
- }
8
- };
@@ -1,2 +0,0 @@
1
- import { ApiError } from '../types/ApiError';
2
- export declare const parseNonOkResponse: (response: Response) => Promise<ApiError>;
@@ -1,35 +0,0 @@
1
- import { parseApiError } from './parseApiError';
2
- import { parseErrorBody } from './parseErrorBody';
3
- export const parseNonOkResponse = async (response) => {
4
- const error = await parseErrorBody(response);
5
- const apiError = parseApiError(error);
6
- if (apiError) {
7
- return apiError;
8
- }
9
- if (apiError) {
10
- return apiError;
11
- }
12
- if (response.status === 401) {
13
- return {
14
- code: 'InvalidCredentials',
15
- message: `Invalid credentials provided.
16
- Please make sure a valid publishable key is set.
17
- You can find your publishable key in the Fency dashboard.
18
- Take a look at https://docs.fency.ai/docs for more information.`,
19
- };
20
- }
21
- if (response.status === 403) {
22
- return {
23
- code: 'ForbiddenOperation',
24
- message: `Forbidden operation!
25
- If your publishable key is correctly set, you might need to whitelist the domain you're using in the Fency dashboard.
26
- If you're using localhost you also need to whitelist that.
27
- Take a look at https://docs.fency.ai/docs for more information.
28
- `,
29
- };
30
- }
31
- return {
32
- code: 'UnknownError',
33
- message: `Unknown error!\n${response.status ? `Status code: ${response.status}\n` : ''}Response Body:${JSON.stringify(error, null, 2)}`.trim(),
34
- };
35
- };