Commit c43171d
committed
fix(types): add SDK method name aliases to operations type
Added type aliases in operations interface to map SDK v3 method names
to their underlying OpenAPI operation names:
- listOrganizations → getOrganizations
- listRepositories → getOrgRepoList
- createRepository → createOrgRepo
- deleteRepository → deleteOrgRepo
- updateRepository → updateOrgRepo
- getRepository → getOrgRepo
- listFullScans → getOrgFullScanList
- createFullScan → CreateOrgFullScan
- getFullScan → getOrgFullScan
- streamFullScan → getOrgFullScan
- deleteFullScan → deleteOrgFullScan
- getFullScanMetadata → getOrgFullScanMetadata
Updated FileValidationCallback to use 'createFullScan' instead of
'createOrgFullScan' for consistency with SDK v3 method names.
This fixes TypeScript errors when using SocketSdkSuccessResult with
SDK method names like SocketSdkSuccessResult<'listOrganizations'>.1 parent c8e1778 commit c43171d
3 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
| 957 | + | |
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15278 | 15278 | | |
15279 | 15279 | | |
15280 | 15280 | | |
| 15281 | + | |
| 15282 | + | |
| 15283 | + | |
| 15284 | + | |
| 15285 | + | |
| 15286 | + | |
| 15287 | + | |
| 15288 | + | |
| 15289 | + | |
| 15290 | + | |
| 15291 | + | |
| 15292 | + | |
| 15293 | + | |
| 15294 | + | |
15281 | 15295 | | |
0 commit comments