{"_id":"@codeforge-main/safepay-sdk-preview","name":"@codeforge-main/safepay-sdk-preview","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@codeforge-main/safepay-sdk-preview","version":"2.0.0","description":"> **Unofficial SDK** — generated from Safepay SDK Preview's public OpenAPI specification by the [CodeForge platform](https://www.code-forge.net). Not affiliated with or endorsed by Safepay SDK Preview.","author":{"name":"codeforge"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"build":"tsc"},"dependencies":{},"devDependencies":{"typescript":"^5.9.2"},"_id":"@codeforge-main/safepay-sdk-preview@2.0.0","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-1LPfIDpAVwvvD3j/XpqmzWBFh4LyCkfHYTifEh0otDA215Mj+5WqLPiUfVOAWP+rtRSGcVVSS9nELHrGdxkXDg==","shasum":"ccb55551f77b4f748249423ac4bf73717273c981","tarball":"https://registry.npmjs.org/@codeforge-main/safepay-sdk-preview/-/safepay-sdk-preview-2.0.0.tgz","fileCount":1050,"unpackedSize":1180303,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGo/nhVycJFw4O5lFTd/NGTjVp+ej4F3XAQl0cFAl681AiEAqC08Z9vvXJYaHDUS1Q0wPWAQPYQZ1AjKFwNKaJSKK1s="}]},"_npmUser":{"name":"codeforge-main","email":"codeforge.info@gmail.com"},"directories":{},"maintainers":[{"name":"codeforge-main","email":"codeforge.info@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/safepay-sdk-preview_2.0.0_1787385621904_0.3266847888322155"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-22T08:00:21.762Z","2.0.0":"2026-08-22T08:00:22.034Z","modified":"2026-08-22T08:00:22.297Z"},"maintainers":[{"name":"codeforge-main","email":"codeforge.info@gmail.com"}],"description":"> **Unofficial SDK** — generated from Safepay SDK Preview's public OpenAPI specification by the [CodeForge platform](https://www.code-forge.net). Not affiliated with or endorsed by Safepay SDK Preview.","author":{"name":"codeforge"},"readme":"> **Unofficial SDK** — generated from Safepay SDK Preview's public OpenAPI specification by the [CodeForge platform](https://www.code-forge.net). Not affiliated with or endorsed by Safepay SDK Preview.\n\n---\n\n# @codeforge-main/safepay-sdk-preview\n\nVersion 2.0.0\n\n## Install\n\n```bash\nnpm install @codeforge-main/safepay-sdk-preview\n```\n\n```bash\nyarn add @codeforge-main/safepay-sdk-preview\n```\n\n```bash\npnpm add @codeforge-main/safepay-sdk-preview\n```\n\n## Usage\n\nThis SDK is exposed as a single, fully typed client class. Construct it once with your\nshared configuration and call any API operation as a method — each returns the deserialized\nresponse alongside HTTP metadata.\n\n```ts\nimport { SafepayApiV2Client } from '@codeforge-main/safepay-sdk-preview'\n\nconst client = new SafepayApiV2Client({\n\tbaseUrl: 'http://localhost:3000',\n\tauth: { type: 'bearer', token: 'YOUR_API_TOKEN' },\n})\n\nconst response = await client.getV2Documents()\n\nconsole.log(response.status) // HTTP status code\nconsole.log(response.data)   // typed as GetV2DocumentsResponse_200\n```\n\nThe client holds the shared configuration (`baseUrl`, `auth`, `retry`, `hooks`).\nEach method accepts a per-call context extending `HttpClientContext` — supply the\noperation-specific `payload` / `parameters`, and override any shared field per call.\n\n### Available operations\n\n- `postV2Connect`\n- `getV2ConnectReferenceId`\n- `postV2ConnectReferenceIdGuest`\n- `postV2ConnectReferenceIdDelete`\n- `getV2Documents`\n- `postV2Documents`\n- `getV2DocumentsDocumentId`\n- `postV2DocumentsDocumentIdSign`\n- `getV2DocumentsDocumentIdDownload`\n- `postV2DocumentsDocumentIdDelete`\n- `getV2Users`\n- `getV2UsersSafepayAccountId`\n- `getV2UsersSafepayAccountIdBanks`\n- `getV2UsersSafepayAccountIdBankAccounts`\n- `getV2UsersSafepayAccountIdBankAccountsInitialize`\n- `postV2UsersSafepayAccountIdBankAccountsInitialize`\n- `postV2UsersSafepayAccountIdBankAccountsAdd`\n- `postV2UsersSafepayAccountIdBankAccountsSetDefault`\n- `postV2UsersSafepayAccountIdBankAccountsDelete`\n- `getV2Transactions`\n- `postV2TransactionsMarketplace`\n- `postV2TransactionsAuto`\n- `getV2TransactionsTransactionId`\n- `postV2TransactionsTransactionIdDelete`\n- `postV2TransactionsTransactionIdCancel`\n- `postV2TransactionsTransactionIdPayout`\n- `postV2TransactionsTransactionIdUpdate`\n- `postV2TransactionsTransactionIdReimbursePayer`\n- `postV2TransactionsTransactionIdDebtInformation`\n- `getV2TransactionsTransactionIdDebtInformationDownload`\n- `postV2TransactionsTransactionIdBillOfSale`\n- `postV2TransactionsTransactionIdChangeAmount`\n- `postV2TransactionsTransactionIdAddPayee`\n- `postV2TransactionsTransactionIdAddPayer`\n- `postV2Payments`\n- `postV2PaymentsPaymentIdInitialize`\n- `getV2WebhooksExamples`\n\n## Validation\n\nEvery model is plain data — the shape it has on the wire. This SDK carries no schemas and\nno runtime dependency, so nothing is validated for you: `response.data` is the parsed body\ntyped as the operation declares it.\n\nRegenerate the SDK with validation schemas turned on to get a zod schema exported beside\nevery model type.\n\n> Generated by CodeForge v0.86.0.\n","readmeFilename":"README.md","_rev":"1-ce52b8f1143ed708a88a750d95adb90a"}