mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
feat(credentials): add v2 credential lifecycle APIs (#6664)
* feat(credentials): add v2 OAuth connection APIs * fix(credentials): preserve active OAuth connection links * fix(credentials): bind OAuth links to connection intent * feat(credentials): complete v2 credential lifecycle * fix(credentials): make disconnect idempotent * fix(credentials): stabilize oauth draft retries * fix(credentials): bind oauth callbacks to drafts * fix(credentials): fail closed on oauth completion * fix(credentials): bind shopify completion to oauth state * fix(credentials): align custom oauth reconnects * fix(credentials): centralize application authorization * fix(credentials): keep OAuth draft intent immutable * fix(credentials): allow renamed reconnect targets * fix(credentials): close OAuth draft edge cases * fix(credentials): fail closed without breaking auth * fix(credentials): preserve migrated route behavior * feat(credentials): add provider search * fix(credentials): prevent stale secrets and drafts
This commit is contained in:
@@ -37,7 +37,7 @@ const EXPECTED_OPERATION_COUNTS = new Map<string, number>([
|
||||
['apps/docs/openapi-v2-tables.json', 44],
|
||||
['apps/docs/openapi-v2-knowledge.json', 21],
|
||||
['apps/docs/openapi-v2-billing.json', 2],
|
||||
['apps/docs/openapi-v2-resources.json', 22],
|
||||
['apps/docs/openapi-v2-resources.json', 26],
|
||||
])
|
||||
|
||||
function getOperation(spec: JsonObject, path: string, method: string): JsonObject {
|
||||
@@ -169,7 +169,7 @@ describe('generated OpenAPI documents', () => {
|
||||
})
|
||||
}
|
||||
}
|
||||
expect(totalOperations).toBe(135)
|
||||
expect(totalOperations).toBe(139)
|
||||
})
|
||||
|
||||
it('documents mixed workflow execution and resume responses', () => {
|
||||
|
||||
Reference in New Issue
Block a user