fix(onepassword): validate integration against API docs, add file downloads by waleedlatif1 · Pull Request #5365 · simstudioai/sim · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(onepassword): close output-parity and doc-string gaps from final …
…audit

- restore a deprecated no-op 'response' output so pre-existing saved
  workflows referencing it fail soft (empty) instead of hard-erroring
  now that per-operation outputs replace it
- add missing block outputs (urls, favorite, version, state,
  lastEditedBy) for get/create/replace/update item so all real
  FULL_ITEM fields are discoverable as <Block.field> references
- hide Connect Server credential fields for Resolve Secret (Service
  Account only) instead of leaving them selectable and silently ignored
- correct two doc-string enum lists that advertised values the API
  doesn't return (vault type TRANSFER, item state DELETED)
  • Loading branch information
waleedlatif1 committed Jul 2, 2026
commit 5a1d5359a5a03ac8b8e20aaf4d1e704be0440ac2
71 changes: 66 additions & 5 deletions apps/sim/blocks/blocks/onepassword.ts
2 changes: 1 addition & 1 deletion apps/sim/tools/onepassword/get_vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const getVaultTool: ToolConfig<OnePasswordGetVaultParams, OnePasswordGetV
items: { type: 'number', description: 'Number of items in the vault' },
type: {
type: 'string',
description: 'Vault type (USER_CREATED, PERSONAL, EVERYONE, TRANSFER)',
description: 'Vault type (USER_CREATED, PERSONAL, or EVERYONE)',
},
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
updatedAt: { type: 'string', description: 'Last update timestamp', optional: true },
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/tools/onepassword/list_items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const listItemsTool: ToolConfig<OnePasswordListItemsParams, OnePasswordLi
version: { type: 'number', description: 'Item version number' },
state: {
type: 'string',
description: 'Item state (ARCHIVED or DELETED)',
description: 'Item state (ARCHIVED, or absent/null when active)',
optional: true,
},
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/tools/onepassword/list_vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const listVaultsTool: ToolConfig<
items: { type: 'number', description: 'Number of items in the vault' },
type: {
type: 'string',
description: 'Vault type (USER_CREATED, PERSONAL, EVERYONE, TRANSFER)',
description: 'Vault type (USER_CREATED, PERSONAL, or EVERYONE)',
},
createdAt: { type: 'string', description: 'Creation timestamp', optional: true },
updatedAt: { type: 'string', description: 'Last update timestamp', optional: true },
Expand Down
6 changes: 5 additions & 1 deletion apps/sim/tools/onepassword/utils.ts
Loading