@perplexity-ai/perplexity_ai 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/lib/add-output-text.d.mts +4 -4
  9. package/lib/add-output-text.d.mts.map +1 -1
  10. package/lib/add-output-text.d.ts +4 -4
  11. package/lib/add-output-text.d.ts.map +1 -1
  12. package/lib/add-output-text.js +4 -3
  13. package/lib/add-output-text.js.map +1 -1
  14. package/lib/add-output-text.mjs +4 -3
  15. package/lib/add-output-text.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/async/chat/completions.d.mts +6 -0
  18. package/resources/async/chat/completions.d.mts.map +1 -1
  19. package/resources/async/chat/completions.d.ts +6 -0
  20. package/resources/async/chat/completions.d.ts.map +1 -1
  21. package/resources/chat/completions.d.mts +6 -0
  22. package/resources/chat/completions.d.mts.map +1 -1
  23. package/resources/chat/completions.d.ts +6 -0
  24. package/resources/chat/completions.d.ts.map +1 -1
  25. package/resources/index.d.mts +1 -1
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +1 -1
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/responses/index.d.mts +1 -1
  32. package/resources/responses/index.d.mts.map +1 -1
  33. package/resources/responses/index.d.ts +1 -1
  34. package/resources/responses/index.d.ts.map +1 -1
  35. package/resources/responses/index.js.map +1 -1
  36. package/resources/responses/index.mjs.map +1 -1
  37. package/resources/responses/responses.d.mts +348 -5
  38. package/resources/responses/responses.d.mts.map +1 -1
  39. package/resources/responses/responses.d.ts +348 -5
  40. package/resources/responses/responses.d.ts.map +1 -1
  41. package/resources/responses/responses.js +12 -0
  42. package/resources/responses/responses.js.map +1 -1
  43. package/resources/responses/responses.mjs +12 -0
  44. package/resources/responses/responses.mjs.map +1 -1
  45. package/resources/shared.d.mts +4 -0
  46. package/resources/shared.d.mts.map +1 -1
  47. package/resources/shared.d.ts +4 -0
  48. package/resources/shared.d.ts.map +1 -1
  49. package/src/client.ts +2 -0
  50. package/src/lib/add-output-text.ts +14 -10
  51. package/src/resources/async/chat/completions.ts +7 -0
  52. package/src/resources/chat/completions.ts +7 -0
  53. package/src/resources/index.ts +1 -0
  54. package/src/resources/responses/index.ts +1 -0
  55. package/src/resources/responses/responses.ts +457 -4
  56. package/src/resources/shared.ts +4 -0
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/resources/chat/completions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,gCAA6B;AAC9C,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC;IAC3G,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1C,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,C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AAC;aACjC;SACF;KACF;IAED,KAAY,kCAAkC,GAAG,cAAc,CAAC,kCAAkC,CAAC;IACnG,KAAY,+BAA+B,GAAG,cAAc,CAAC,+BAA+B,CAAC;CAC9F;AAED,MAAM,WAAW,kCAAmC,SAAQ,0BAA0B;IACpF,MAAM,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IACjF,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -4,6 +4,6 @@ export { Browser } from "./browser/browser.mjs";
4
4
  export { Chat, type StreamChunk } from "./chat/chat.mjs";
5
5
  export { ContextualizedEmbeddings, type ContextualizedEmbeddingCreateResponse, type ContextualizedEmbeddingCreateParams, } from "./contextualized-embeddings.mjs";
6
6
  export { Embeddings, type EmbeddingCreateResponse, type EmbeddingCreateParams } from "./embeddings.mjs";
7
- export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses/responses.mjs";
7
+ export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCancelResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses/responses.mjs";
8
8
  export { Search, type SearchCreateResponse, type SearchCreateParams } from "./search.mjs";
9
9
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,wBAAoB;AACrD,OAAO,EACL,wBAAwB,EACxB,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,GACzC,wCAAoC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,yBAAqB;AACpG,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,kCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,qBAAiB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,wBAAoB;AACrD,OAAO,EACL,wBAAwB,EACxB,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,GACzC,wCAAoC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,yBAAqB;AACpG,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,kCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,qBAAiB"}
@@ -4,6 +4,6 @@ export { Browser } from "./browser/browser.js";
4
4
  export { Chat, type StreamChunk } from "./chat/chat.js";
5
5
  export { ContextualizedEmbeddings, type ContextualizedEmbeddingCreateResponse, type ContextualizedEmbeddingCreateParams, } from "./contextualized-embeddings.js";
6
6
  export { Embeddings, type EmbeddingCreateResponse, type EmbeddingCreateParams } from "./embeddings.js";
7
- export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses/responses.js";
7
+ export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCancelResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses/responses.js";
8
8
  export { Search, type SearchCreateResponse, type SearchCreateParams } from "./search.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,uBAAoB;AACrD,OAAO,EACL,wBAAwB,EACxB,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,GACzC,uCAAoC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,wBAAqB;AACpG,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,iCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,oBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,uBAAoB;AACrD,OAAO,EACL,wBAAwB,EACxB,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,GACzC,uCAAoC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,qBAAqB,EAAE,wBAAqB;AACpG,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,iCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,oBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,uCAAqD;AAA5C,4FAAA,IAAI,OAAA;AACb,4EAIqC;AAHnC,qIAAA,wBAAwB,OAAA;AAI1B,8CAAoG;AAA3F,wGAAA,UAAU,OAAA;AACnB,sDAmB+B;AAlB7B,sGAAA,SAAS,OAAA;AAmBX,sCAAsF;AAA7E,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,uCAAqD;AAA5C,4FAAA,IAAI,OAAA;AACb,4EAIqC;AAHnC,qIAAA,wBAAwB,OAAA;AAI1B,8CAAoG;AAA3F,wGAAA,UAAU,OAAA;AACnB,sDAoB+B;AAnB7B,sGAAA,SAAS,OAAA;AAoBX,sCAAsF;AAA7E,gGAAA,MAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAoB,wBAAoB;AACrD,OAAO,EACL,wBAAwB,GAGzB,wCAAoC;AACrC,OAAO,EAAE,UAAU,EAA4D,yBAAqB;AACpG,OAAO,EACL,SAAS,GAkBV,kCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAsD,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EAAE,IAAI,EAAoB,wBAAoB;AACrD,OAAO,EACL,wBAAwB,GAGzB,wCAAoC;AACrC,OAAO,EAAE,UAAU,EAA4D,yBAAqB;AACpG,OAAO,EACL,SAAS,GAmBV,kCAA8B;AAC/B,OAAO,EAAE,MAAM,EAAsD,qBAAiB"}
@@ -1,3 +1,3 @@
1
1
  export { Files, type FileContentParams } from "./files.mjs";
2
- export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses.mjs";
2
+ export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCancelResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,oBAAgB;AACxD,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,wBAAoB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,oBAAgB;AACxD,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,wBAAoB"}
@@ -1,3 +1,3 @@
1
1
  export { Files, type FileContentParams } from "./files.js";
2
- export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses.js";
2
+ export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FunctionCallOutputItem, type FunctionTool, type InputItem, type OutputItem, type ResponseFile, type ResponseFileList, type ResponseStreamChunk, type ResponsesCreateParams, type ResponsesUsage, type ResponseCreateResponse, type ResponseRetrieveResponse, type ResponseCancelResponse, type ResponseCreateParams, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, } from "./responses.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,mBAAgB;AACxD,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,uBAAoB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,mBAAgB;AACxD,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,GACnC,uBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,4CAoBqB;AAnBnB,sGAAA,SAAS,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,KAAK,EAA0B,oBAAgB;AACxD,OAAO,EACL,SAAS,GAkBV,wBAAoB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/responses/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,KAAK,EAA0B,oBAAgB;AACxD,OAAO,EACL,SAAS,GAmBV,wBAAoB"}
@@ -19,6 +19,16 @@ export declare class Responses extends APIResource {
19
19
  * Retrieve a response by its ID. Use this to poll the status of background tasks.
20
20
  */
21
21
  retrieve(responseID: string, options?: RequestOptions): APIPromise<ResponseRetrieveResponse>;
22
+ /**
23
+ * Request cancellation of a response. Acts on durable state, so it works for
24
+ * background responses that outlive the client connection as well as durably
25
+ * routed foreground responses. The cancel is asynchronous: a 200 acknowledges the
26
+ * request (status `cancelling`) and the run stops shortly after. Poll the retrieve
27
+ * endpoint for the terminal status. Cancelling a run that is already terminal
28
+ * returns 400. Ownership is enforced server side; an unknown id, or a response
29
+ * belonging to a different account, returns 404.
30
+ */
31
+ cancel(responseID: string, options?: RequestOptions): APIPromise<ResponseCancelResponse>;
22
32
  }
23
33
  /**
24
34
  * Text annotation (e.g., URL citation)
@@ -145,7 +155,7 @@ export declare namespace InputItem {
145
155
  * One item in the response output: an assistant message, retrieved tool results,
146
156
  * or a record of a tool call.
147
157
  */
148
- export type OutputItem = OutputItem.MessageOutputItem | OutputItem.SearchResultsOutputItem | OutputItem.FetchURLResultsOutputItem | FunctionCallOutputItem | OutputItem.McpListToolsOutputItem | OutputItem.McpCallOutputItem;
158
+ export type OutputItem = OutputItem.MessageOutputItem | OutputItem.SearchResultsOutputItem | OutputItem.FetchURLResultsOutputItem | FunctionCallOutputItem | OutputItem.McpListToolsOutputItem | OutputItem.McpCallOutputItem | OutputItem.SkillLoadedOutputItem | OutputItem.AdvisorResultOutputItem | OutputItem.SandboxResultsOutputItem | OutputItem.SandboxWriteFileOutputItem | OutputItem.SandboxReadFileOutputItem | OutputItem.SandboxEditFileOutputItem | OutputItem.SandboxGrepOutputItem | OutputItem.SandboxGlobOutputItem | OutputItem.SandboxApplyPatchOutputItem | OutputItem.ShareFileOutputItem | OutputItem.UnknownOutputItem;
149
159
  export declare namespace OutputItem {
150
160
  interface MessageOutputItem {
151
161
  id: string;
@@ -237,6 +247,171 @@ export declare namespace OutputItem {
237
247
  */
238
248
  output?: string;
239
249
  }
250
+ /**
251
+ * Per-call result emitted by the `load_skill` tool. Only the resolved skill name
252
+ * is surfaced here; the skill body itself lives in the function_call_output input
253
+ * item the model consumes on its next turn.
254
+ */
255
+ interface SkillLoadedOutputItem {
256
+ /**
257
+ * Name of the skill that was loaded.
258
+ */
259
+ name: string;
260
+ type: 'skill_loaded';
261
+ }
262
+ /**
263
+ * Preview API. Advisor tool invocation emitted in `response.output[]`. The advisor
264
+ * result is server-side guidance consumed by the agent loop; it is not a
265
+ * client-executable function call.
266
+ */
267
+ interface AdvisorResultOutputItem {
268
+ call_id: string;
269
+ /**
270
+ * Status of a response or output item
271
+ */
272
+ status: 'completed' | 'failed' | 'in_progress' | 'queued' | 'cancelled' | 'requires_action';
273
+ type: 'advisor_result';
274
+ /**
275
+ * Guidance returned by the advisor model.
276
+ */
277
+ advice?: string;
278
+ /**
279
+ * Raw JSON arguments the executor passed to the advisor tool.
280
+ */
281
+ arguments?: string;
282
+ /**
283
+ * Non-fatal advisor error code when the advisor call failed.
284
+ */
285
+ error_code?: string;
286
+ /**
287
+ * Non-fatal advisor error message when the advisor call failed.
288
+ */
289
+ error_message?: string;
290
+ /**
291
+ * Parsed advisor question when present in arguments.
292
+ */
293
+ question?: string;
294
+ }
295
+ /**
296
+ * Sandbox tool results emitted in `response.output[]`. Cost is aggregated into
297
+ * `Usage.tool_calls_details.sandbox.cost_usd`; this item does not carry
298
+ * per-execution cost.
299
+ */
300
+ interface SandboxResultsOutputItem {
301
+ call_id: string;
302
+ code: string;
303
+ language: 'python' | 'bash';
304
+ results: Array<SandboxResultsOutputItem.Result>;
305
+ status: 'in_progress' | 'completed' | 'failed' | 'timed_out';
306
+ type: 'sandbox_results';
307
+ container_id?: string;
308
+ }
309
+ namespace SandboxResultsOutputItem {
310
+ /**
311
+ * One sandbox execution result. `status` describes whether the sandbox runner
312
+ * completed, failed, or timed out. `exit_code` is the program exit code, so
313
+ * `status: completed` can still have a non-zero `exit_code`.
314
+ */
315
+ interface Result {
316
+ duration_ms: number;
317
+ exit_code: number;
318
+ status: 'in_progress' | 'completed' | 'failed' | 'timed_out';
319
+ stderr: string;
320
+ stdout: string;
321
+ }
322
+ }
323
+ /**
324
+ * Per-invocation result of the `write` tool inside the sandbox.
325
+ */
326
+ interface SandboxWriteFileOutputItem {
327
+ call_id: string;
328
+ file_path: string;
329
+ type: 'sandbox_write_file';
330
+ error?: string;
331
+ size_bytes?: number;
332
+ }
333
+ /**
334
+ * Per-invocation result of the `read` tool inside the sandbox.
335
+ */
336
+ interface SandboxReadFileOutputItem {
337
+ call_id: string;
338
+ file_path: string;
339
+ type: 'sandbox_read_file';
340
+ content?: string;
341
+ error?: string;
342
+ start_line?: number;
343
+ total_lines?: number;
344
+ }
345
+ /**
346
+ * Per-invocation result of the `edit` tool inside the sandbox.
347
+ */
348
+ interface SandboxEditFileOutputItem {
349
+ call_id: string;
350
+ type: 'sandbox_edit_file';
351
+ error?: string;
352
+ file_path?: string;
353
+ message?: string;
354
+ }
355
+ /**
356
+ * Per-invocation result of the `grep` tool inside the sandbox.
357
+ */
358
+ interface SandboxGrepOutputItem {
359
+ call_id: string;
360
+ type: 'sandbox_grep';
361
+ count?: number;
362
+ error?: string;
363
+ files?: Array<string>;
364
+ truncated?: boolean;
365
+ }
366
+ /**
367
+ * Per-invocation result of the `glob` tool inside the sandbox.
368
+ */
369
+ interface SandboxGlobOutputItem {
370
+ call_id: string;
371
+ type: 'sandbox_glob';
372
+ count?: number;
373
+ error?: string;
374
+ files?: Array<string>;
375
+ truncated?: boolean;
376
+ }
377
+ /**
378
+ * Per-invocation result of the `apply_patch` tool inside the sandbox.
379
+ */
380
+ interface SandboxApplyPatchOutputItem {
381
+ call_id: string;
382
+ type: 'sandbox_apply_patch';
383
+ added?: Array<string>;
384
+ deleted?: Array<string>;
385
+ error?: string;
386
+ modified?: Array<string>;
387
+ }
388
+ /**
389
+ * Result of one `share_file` tool call. On success, file_id and filename identify
390
+ * a sandbox file downloadable at url.
391
+ */
392
+ interface ShareFileOutputItem {
393
+ call_id: string;
394
+ type: 'share_file';
395
+ error?: string;
396
+ file_id?: string;
397
+ filename?: string;
398
+ size_bytes?: number;
399
+ /**
400
+ * Relative download path, /v1/responses/{id}/files/{file_id}/content.
401
+ */
402
+ url?: string;
403
+ }
404
+ /**
405
+ * Forward-compat fallback for proto OutputItem variants the gateway does not yet
406
+ * have a typed schema for.
407
+ */
408
+ interface UnknownOutputItem {
409
+ item_name: string;
410
+ payload: {
411
+ [key: string]: unknown;
412
+ };
413
+ type: 'unknown';
414
+ }
240
415
  }
241
416
  /**
242
417
  * Metadata for a file shared from a response sandbox via the share_file tool.
@@ -287,8 +462,9 @@ export interface ResponseFileList {
287
462
  * - `response.reasoning.fetch_url_queries`: URL fetch queries issued
288
463
  * - `response.reasoning.fetch_url_results`: URL fetch results received
289
464
  * - `response.reasoning.stopped`: Reasoning phase complete
465
+ * - `response.skill.loaded`: load_skill resolved a skill body
290
466
  */
291
- export type ResponseStreamChunk = ResponseStreamChunk.ResponseCreatedEvent | ResponseStreamChunk.ResponseInProgressEvent | ResponseStreamChunk.ResponseCompletedEvent | ResponseStreamChunk.ResponseFailedEvent | ResponseStreamChunk.OutputItemAddedEvent | ResponseStreamChunk.OutputItemDoneEvent | ResponseStreamChunk.TextDeltaEvent | ResponseStreamChunk.TextDoneEvent | ResponseStreamChunk.ReasoningStartedEvent | ResponseStreamChunk.SearchQueriesEvent | ResponseStreamChunk.SearchResultsEvent | ResponseStreamChunk.FetchURLQueriesEvent | ResponseStreamChunk.FetchURLResultsEvent | ResponseStreamChunk.ReasoningStoppedEvent;
467
+ export type ResponseStreamChunk = ResponseStreamChunk.ResponseCreatedEvent | ResponseStreamChunk.ResponseInProgressEvent | ResponseStreamChunk.ResponseCompletedEvent | ResponseStreamChunk.ResponseFailedEvent | ResponseStreamChunk.OutputItemAddedEvent | ResponseStreamChunk.OutputItemDoneEvent | ResponseStreamChunk.TextDeltaEvent | ResponseStreamChunk.TextDoneEvent | ResponseStreamChunk.ReasoningStartedEvent | ResponseStreamChunk.SearchQueriesEvent | ResponseStreamChunk.SearchResultsEvent | ResponseStreamChunk.FetchURLQueriesEvent | ResponseStreamChunk.FetchURLResultsEvent | ResponseStreamChunk.ReasoningStoppedEvent | ResponseStreamChunk.ResponseSkillLoadedEvent;
292
468
  export declare namespace ResponseStreamChunk {
293
469
  /**
294
470
  * Response created event (type: "response.created"). Contains the initial response
@@ -330,6 +506,17 @@ export declare namespace ResponseStreamChunk {
330
506
  */
331
507
  background?: boolean;
332
508
  error?: ResponsesAPI.ErrorInfo;
509
+ /**
510
+ * ID of the previous response in the chain, when the response was created with
511
+ * previous_response_id.
512
+ */
513
+ previous_response_id?: string | null;
514
+ /**
515
+ * Whether the response is stored and visible to later retrieve calls. A response
516
+ * created with store=false can still be used as a previous_response_id
517
+ * continuation source.
518
+ */
519
+ store?: boolean;
333
520
  usage?: ResponsesAPI.ResponsesUsage;
334
521
  }
335
522
  }
@@ -373,6 +560,17 @@ export declare namespace ResponseStreamChunk {
373
560
  */
374
561
  background?: boolean;
375
562
  error?: ResponsesAPI.ErrorInfo;
563
+ /**
564
+ * ID of the previous response in the chain, when the response was created with
565
+ * previous_response_id.
566
+ */
567
+ previous_response_id?: string | null;
568
+ /**
569
+ * Whether the response is stored and visible to later retrieve calls. A response
570
+ * created with store=false can still be used as a previous_response_id
571
+ * continuation source.
572
+ */
573
+ store?: boolean;
376
574
  usage?: ResponsesAPI.ResponsesUsage;
377
575
  }
378
576
  }
@@ -415,6 +613,17 @@ export declare namespace ResponseStreamChunk {
415
613
  */
416
614
  background?: boolean;
417
615
  error?: ResponsesAPI.ErrorInfo;
616
+ /**
617
+ * ID of the previous response in the chain, when the response was created with
618
+ * previous_response_id.
619
+ */
620
+ previous_response_id?: string | null;
621
+ /**
622
+ * Whether the response is stored and visible to later retrieve calls. A response
623
+ * created with store=false can still be used as a previous_response_id
624
+ * continuation source.
625
+ */
626
+ store?: boolean;
418
627
  usage?: ResponsesAPI.ResponsesUsage;
419
628
  }
420
629
  }
@@ -623,6 +832,25 @@ export declare namespace ResponseStreamChunk {
623
832
  type: 'response.reasoning.stopped';
624
833
  thought?: string;
625
834
  }
835
+ /**
836
+ * Skill loaded event (type: "response.skill.loaded"). Fires when load_skill
837
+ * resolves a known skill. The skill body stays in the model conversation prefix;
838
+ * this event carries only the name for client rendering.
839
+ */
840
+ interface ResponseSkillLoadedEvent {
841
+ /**
842
+ * Name of the skill that was loaded.
843
+ */
844
+ name: string;
845
+ /**
846
+ * Monotonically increasing sequence number for event ordering
847
+ */
848
+ sequence_number: number;
849
+ /**
850
+ * SSE event type discriminator (always "response.skill.loaded")
851
+ */
852
+ type: 'response.skill.loaded';
853
+ }
626
854
  }
627
855
  export interface ResponsesCreateParams {
628
856
  /**
@@ -649,7 +877,7 @@ export interface ResponsesCreateParams {
649
877
  max_output_tokens?: number;
650
878
  /**
651
879
  * Maximum number of research loop steps. If provided, overrides the preset's
652
- * max_steps value. Must be >= 1 if specified. Maximum allowed is 10.
880
+ * max_steps value. Must be >= 1 if specified. Maximum allowed is 100.
653
881
  */
654
882
  max_steps?: number;
655
883
  /**
@@ -683,6 +911,14 @@ export interface ResponsesCreateParams {
683
911
  * Specifies the desired output format for the model response
684
912
  */
685
913
  response_format?: Shared.ResponseFormat;
914
+ /**
915
+ * Built-in and request-scoped inline skills available to the model. Skill metadata
916
+ * is disclosed to the model up front; full instructions are loaded on demand
917
+ * through the `load_skill` tool. Selecting any skill enables the sandbox tool for
918
+ * the request. Requests with skills run on the durable backend and skills are not
919
+ * echoed back on Response objects.
920
+ */
921
+ skills?: Array<ResponsesCreateParams.BuiltinSkill | ResponsesCreateParams.InlineSkill>;
686
922
  /**
687
923
  * OpenAI-compatible storage toggle. When false, the response is hidden from later
688
924
  * retrieve calls, and the echoed response reports `store: false`. It can still be
@@ -705,6 +941,39 @@ export declare namespace ResponsesCreateParams {
705
941
  */
706
942
  effort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
707
943
  }
944
+ /**
945
+ * Selects a built-in skill from the catalog by name.
946
+ */
947
+ interface BuiltinSkill {
948
+ /**
949
+ * Built-in skill to make available to the model. office is the full Office bundle
950
+ * (enables all four leaves). office/docx, office/pdf, office/pptx, office/xlsx
951
+ * each create polished documents of that type from scratch, with structural
952
+ * validation and visual QA.
953
+ */
954
+ name: 'office' | 'office/docx' | 'office/pdf' | 'office/pptx' | 'office/xlsx';
955
+ type: 'builtin';
956
+ }
957
+ /**
958
+ * Request-scoped skill defined inline. Inline skills have no files or sandbox
959
+ * mounts and are never echoed back in the response.
960
+ */
961
+ interface InlineSkill {
962
+ /**
963
+ * Short discovery description, limited to 1,024 UTF-8 bytes.
964
+ */
965
+ description: string;
966
+ /**
967
+ * Instructions returned by `load_skill`, limited to 65,536 UTF-8 bytes per skill
968
+ * and 262,144 bytes across the request.
969
+ */
970
+ instructions: string;
971
+ /**
972
+ * Request-scoped lowercase ASCII name separated by single hyphens.
973
+ */
974
+ name: string;
975
+ type: 'inline';
976
+ }
708
977
  interface WebSearchTool {
709
978
  type: 'web_search';
710
979
  filters?: WebSearchTool.Filters;
@@ -872,6 +1141,17 @@ export interface ResponseCreateResponse {
872
1141
  */
873
1142
  background?: boolean;
874
1143
  error?: ErrorInfo;
1144
+ /**
1145
+ * ID of the previous response in the chain, when the response was created with
1146
+ * previous_response_id.
1147
+ */
1148
+ previous_response_id?: string | null;
1149
+ /**
1150
+ * Whether the response is stored and visible to later retrieve calls. A response
1151
+ * created with store=false can still be used as a previous_response_id
1152
+ * continuation source.
1153
+ */
1154
+ store?: boolean;
875
1155
  usage?: ResponsesUsage;
876
1156
  /**
877
1157
  * Convenience property that aggregates all `output_text` items from the `output` list.
@@ -900,6 +1180,17 @@ export interface ResponseRetrieveResponse {
900
1180
  */
901
1181
  background?: boolean;
902
1182
  error?: ErrorInfo;
1183
+ /**
1184
+ * ID of the previous response in the chain, when the response was created with
1185
+ * previous_response_id.
1186
+ */
1187
+ previous_response_id?: string | null;
1188
+ /**
1189
+ * Whether the response is stored and visible to later retrieve calls. A response
1190
+ * created with store=false can still be used as a previous_response_id
1191
+ * continuation source.
1192
+ */
1193
+ store?: boolean;
903
1194
  usage?: ResponsesUsage;
904
1195
  /**
905
1196
  * Convenience property that aggregates all `output_text` items from the `output` list.
@@ -907,6 +1198,17 @@ export interface ResponseRetrieveResponse {
907
1198
  */
908
1199
  output_text?: string;
909
1200
  }
1201
+ export interface ResponseCancelResponse {
1202
+ /**
1203
+ * The response id (resp\_...).
1204
+ */
1205
+ response_id: string;
1206
+ /**
1207
+ * Always `cancelling`: the cancel was accepted and the run stops asynchronously.
1208
+ * An already terminal run returns 400 instead, so no terminal status appears here.
1209
+ */
1210
+ status: 'cancelling';
1211
+ }
910
1212
  export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming;
911
1213
  export interface ResponseCreateParamsBase {
912
1214
  /**
@@ -933,7 +1235,7 @@ export interface ResponseCreateParamsBase {
933
1235
  max_output_tokens?: number;
934
1236
  /**
935
1237
  * Maximum number of research loop steps. If provided, overrides the preset's
936
- * max_steps value. Must be >= 1 if specified. Maximum allowed is 10.
1238
+ * max_steps value. Must be >= 1 if specified. Maximum allowed is 100.
937
1239
  */
938
1240
  max_steps?: number;
939
1241
  /**
@@ -967,6 +1269,14 @@ export interface ResponseCreateParamsBase {
967
1269
  * Specifies the desired output format for the model response
968
1270
  */
969
1271
  response_format?: Shared.ResponseFormat;
1272
+ /**
1273
+ * Built-in and request-scoped inline skills available to the model. Skill metadata
1274
+ * is disclosed to the model up front; full instructions are loaded on demand
1275
+ * through the `load_skill` tool. Selecting any skill enables the sandbox tool for
1276
+ * the request. Requests with skills run on the durable backend and skills are not
1277
+ * echoed back on Response objects.
1278
+ */
1279
+ skills?: Array<ResponseCreateParams.BuiltinSkill | ResponseCreateParams.InlineSkill>;
970
1280
  /**
971
1281
  * OpenAI-compatible storage toggle. When false, the response is hidden from later
972
1282
  * retrieve calls, and the echoed response reports `store: false`. It can still be
@@ -989,6 +1299,39 @@ export declare namespace ResponseCreateParams {
989
1299
  */
990
1300
  effort?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
991
1301
  }
1302
+ /**
1303
+ * Selects a built-in skill from the catalog by name.
1304
+ */
1305
+ interface BuiltinSkill {
1306
+ /**
1307
+ * Built-in skill to make available to the model. office is the full Office bundle
1308
+ * (enables all four leaves). office/docx, office/pdf, office/pptx, office/xlsx
1309
+ * each create polished documents of that type from scratch, with structural
1310
+ * validation and visual QA.
1311
+ */
1312
+ name: 'office' | 'office/docx' | 'office/pdf' | 'office/pptx' | 'office/xlsx';
1313
+ type: 'builtin';
1314
+ }
1315
+ /**
1316
+ * Request-scoped skill defined inline. Inline skills have no files or sandbox
1317
+ * mounts and are never echoed back in the response.
1318
+ */
1319
+ interface InlineSkill {
1320
+ /**
1321
+ * Short discovery description, limited to 1,024 UTF-8 bytes.
1322
+ */
1323
+ description: string;
1324
+ /**
1325
+ * Instructions returned by `load_skill`, limited to 65,536 UTF-8 bytes per skill
1326
+ * and 262,144 bytes across the request.
1327
+ */
1328
+ instructions: string;
1329
+ /**
1330
+ * Request-scoped lowercase ASCII name separated by single hyphens.
1331
+ */
1332
+ name: string;
1333
+ type: 'inline';
1334
+ }
992
1335
  interface WebSearchTool {
993
1336
  type: 'web_search';
994
1337
  filters?: WebSearchTool.Filters;
@@ -1116,7 +1459,7 @@ export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase
1116
1459
  stream: true;
1117
1460
  }
1118
1461
  export declare namespace Responses {
1119
- export { type Annotation as Annotation, type ContentPart as ContentPart, type ErrorInfo as ErrorInfo, type FunctionCallOutputItem as FunctionCallOutputItem, type FunctionTool as FunctionTool, type InputItem as InputItem, type OutputItem as OutputItem, type ResponseFile as ResponseFile, type ResponseFileList as ResponseFileList, type ResponseStreamChunk as ResponseStreamChunk, type ResponsesCreateParams as ResponsesCreateParams, type ResponsesUsage as ResponsesUsage, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, };
1462
+ export { type Annotation as Annotation, type ContentPart as ContentPart, type ErrorInfo as ErrorInfo, type FunctionCallOutputItem as FunctionCallOutputItem, type FunctionTool as FunctionTool, type InputItem as InputItem, type OutputItem as OutputItem, type ResponseFile as ResponseFile, type ResponseFileList as ResponseFileList, type ResponseStreamChunk as ResponseStreamChunk, type ResponsesCreateParams as ResponsesCreateParams, type ResponsesUsage as ResponsesUsage, type ResponseCreateResponse as ResponseCreateResponse, type ResponseRetrieveResponse as ResponseRetrieveResponse, type ResponseCancelResponse as ResponseCancelResponse, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, };
1120
1463
  export { Files as Files, type FileContentParams as FileContentParams };
1121
1464
  }
1122
1465
  //# sourceMappingURL=responses.d.mts.map