stainless.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # yaml-language-server: $schema=https://app.stainless.com/config-internal.schema.json
  2. organization:
  3. name: opencode
  4. docs: "https://opencode.ai/docs"
  5. contact: "[email protected]"
  6. targets:
  7. typescript:
  8. package_name: "@opencode-ai/sdk"
  9. production_repo: "sst/opencode-sdk-js"
  10. publish:
  11. npm: true
  12. go:
  13. package_name: opencode
  14. production_repo: sst/opencode-sdk-go
  15. python:
  16. project_name: opencode-ai
  17. package_name: opencode_ai
  18. production_repo: sst/opencode-sdk-python
  19. publish:
  20. pypi: true
  21. environments:
  22. production: http://localhost:54321
  23. streaming:
  24. on_event:
  25. - kind: fallthrough
  26. handle: yield
  27. resources:
  28. $shared:
  29. models:
  30. unknownError: UnknownError
  31. providerAuthError: ProviderAuthError
  32. event:
  33. methods:
  34. list:
  35. endpoint: get /event
  36. paginated: false
  37. streaming:
  38. # This method is always streaming.
  39. param_discriminator: null
  40. app:
  41. models:
  42. app: App
  43. methods:
  44. get: get /app
  45. init: post /app/init
  46. find:
  47. methods:
  48. text: get /find
  49. files: get /find/file
  50. symbols: get /find/symbol
  51. file:
  52. methods:
  53. read: get /file
  54. status: get /file/status
  55. config:
  56. models:
  57. config: Config
  58. keybinds: KeybindsConfig
  59. mcpLocal: McpLocalConfig
  60. mcpRemote: McpRemoteConfig
  61. provider: Provider
  62. model: Model
  63. methods:
  64. get: get /config
  65. providers: get /config/providers
  66. session:
  67. models:
  68. session: Session
  69. message: Message
  70. toolCall: ToolCall
  71. toolPartialCall: ToolPartialCall
  72. toolResult: ToolResult
  73. textPart: TextPart
  74. reasoningPart: ReasoningPart
  75. toolInvocationPart: ToolInvocationPart
  76. sourceUrlPart: SourceUrlPart
  77. filePart: FilePart
  78. stepStartPart: StepStartPart
  79. messagePart: MessagePart
  80. methods:
  81. list: get /session
  82. create: post /session
  83. delete: delete /session/{id}
  84. init: post /session/{id}/init
  85. abort: post /session/{id}/abort
  86. share: post /session/{id}/share
  87. unshare: delete /session/{id}/share
  88. summarize: post /session/{id}/summarize
  89. messages: get /session/{id}/message
  90. chat: post /session/{id}/message
  91. settings:
  92. disable_mock_tests: true
  93. license: Apache-2.0
  94. security:
  95. - {}
  96. readme:
  97. example_requests:
  98. default:
  99. type: request
  100. endpoint: get /event
  101. params: {}
  102. headline:
  103. type: request
  104. endpoint: get /event
  105. params: {}