@spicyapi/sdk 0.1.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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/SECURITY.md +4 -0
  4. package/contracts/openapi.yaml +752 -0
  5. package/dist/src/docs/index.d.ts +10 -0
  6. package/dist/src/docs/index.d.ts.map +1 -0
  7. package/dist/src/docs/index.js +181 -0
  8. package/dist/src/docs/index.js.map +1 -0
  9. package/dist/src/generated/openapi.d.ts +888 -0
  10. package/dist/src/generated/openapi.d.ts.map +1 -0
  11. package/dist/src/generated/openapi.js +6 -0
  12. package/dist/src/generated/openapi.js.map +1 -0
  13. package/dist/src/index.d.ts +6 -0
  14. package/dist/src/index.d.ts.map +1 -0
  15. package/dist/src/index.js +5 -0
  16. package/dist/src/index.js.map +1 -0
  17. package/dist/src/openapi.d.ts +2 -0
  18. package/dist/src/openapi.d.ts.map +1 -0
  19. package/dist/src/openapi.js +18 -0
  20. package/dist/src/openapi.js.map +1 -0
  21. package/dist/src/sdk/client.d.ts +41 -0
  22. package/dist/src/sdk/client.d.ts.map +1 -0
  23. package/dist/src/sdk/client.js +407 -0
  24. package/dist/src/sdk/client.js.map +1 -0
  25. package/dist/src/sdk/errors.d.ts +36 -0
  26. package/dist/src/sdk/errors.d.ts.map +1 -0
  27. package/dist/src/sdk/errors.js +53 -0
  28. package/dist/src/sdk/errors.js.map +1 -0
  29. package/dist/src/sdk/index.d.ts +4 -0
  30. package/dist/src/sdk/index.d.ts.map +1 -0
  31. package/dist/src/sdk/index.js +3 -0
  32. package/dist/src/sdk/index.js.map +1 -0
  33. package/dist/src/sdk/types.d.ts +73 -0
  34. package/dist/src/sdk/types.d.ts.map +1 -0
  35. package/dist/src/sdk/types.js +2 -0
  36. package/dist/src/sdk/types.js.map +1 -0
  37. package/dist/src/webhooks/index.d.ts +28 -0
  38. package/dist/src/webhooks/index.d.ts.map +1 -0
  39. package/dist/src/webhooks/index.js +83 -0
  40. package/dist/src/webhooks/index.js.map +1 -0
  41. package/package.json +49 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SpicyAPI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @spicyapi/sdk
2
+
3
+ Official TypeScript SDK for the SpicyAPI public API. It contains the typed client, webhook
4
+ verification helpers, documentation index, and generated OpenAPI types. It does not install the CLI,
5
+ MCP server, or Codex Skill.
6
+
7
+ ```bash
8
+ npm install @spicyapi/sdk
9
+ ```
10
+
11
+ ```ts
12
+ import { SpicyClient } from "@spicyapi/sdk";
13
+
14
+ const client = new SpicyClient();
15
+ const models = await client.listModels({ includeSchema: true });
16
+ ```
17
+
18
+ Set `SPICY_API_KEY` with your process secret manager. Task creation and retry may reserve funds; use
19
+ stable idempotency keys and explicit user confirmation.
20
+
21
+ Documentation: <https://spicyapi.ai/en/docs>
package/SECURITY.md ADDED
@@ -0,0 +1,4 @@
1
+ # Security
2
+
3
+ Report suspected vulnerabilities privately at <https://spicyapi.ai/security>. Never include API
4
+ keys, private media, signed URLs, recovery codes, or customer data in a public issue.