Skip to content

Commit 0771909

Browse files
committed
update 1password to support cloud & locally hosted
1 parent 9c2e61b commit 0771909

File tree

35 files changed

+1635
-855
lines changed

35 files changed

+1635
-855
lines changed

apps/docs/components/icons.tsx

Lines changed: 36 additions & 28 deletions
Large diffs are not rendered by default.

apps/docs/content/docs/en/tools/jira.mdx

Lines changed: 3 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -313,45 +313,7 @@ Retrieve multiple Jira issues from a project in bulk
313313
| Parameter | Type | Description |
314314
| --------- | ---- | ----------- |
315315
| `ts` | string | ISO 8601 timestamp of the operation |
316-
| `total` | number | Total number of issues in the project |
317-
| `issues` | array | Array of Jira issues |
318-
|`id` | string | Issue ID |
319-
|`key` | string | Issue key \(e.g., PROJ-123\) |
320-
|`self` | string | REST API URL for this issue |
321-
|`summary` | string | Issue summary |
322-
|`description` | string | Issue description text |
323-
|`status` | object | Issue status |
324-
|`id` | string | Status ID |
325-
|`name` | string | Status name |
326-
|`issuetype` | object | Issue type |
327-
|`id` | string | Issue type ID |
328-
|`name` | string | Issue type name |
329-
|`priority` | object | Issue priority |
330-
|`id` | string | Priority ID |
331-
|`name` | string | Priority name |
332-
|`assignee` | object | Assigned user |
333-
|`accountId` | string | Atlassian account ID |
334-
|`displayName` | string | Display name |
335-
|`created` | string | ISO 8601 creation timestamp |
336-
|`updated` | string | ISO 8601 last updated timestamp |
337-
338-
### `jira_bulk_read`
339-
340-
Retrieve multiple Jira issues from a project in bulk with cursor-based pagination (V2 - uses nextPageToken)
341-
342-
#### Input
343-
344-
| Parameter | Type | Required | Description |
345-
| --------- | ---- | -------- | ----------- |
346-
| `domain` | string | Yes | Your Jira domain \(e.g., yourcompany.atlassian.net\) |
347-
| `projectId` | string | Yes | Jira project key \(e.g., PROJ\) |
348-
| `cloudId` | string | No | Jira Cloud ID for the instance. If not provided, it will be fetched using the domain. |
349-
350-
#### Output
351-
352-
| Parameter | Type | Description |
353-
| --------- | ---- | ----------- |
354-
| `ts` | string | ISO 8601 timestamp of the operation |
316+
| `total` | number | Total number of issues in the project \(may not always be available\) |
355317
| `issues` | array | Array of Jira issues |
356318
|`id` | string | Issue ID |
357319
|`key` | string | Issue key \(e.g., PROJ-123\) |
@@ -374,7 +336,6 @@ Retrieve multiple Jira issues from a project in bulk with cursor-based paginatio
374336
|`updated` | string | ISO 8601 last updated timestamp |
375337
| `nextPageToken` | string | Cursor token for the next page. Null when no more results. |
376338
| `isLast` | boolean | Whether this is the last page of results |
377-
| `total` | number | Total number of issues in the project \(may not always be available\) |
378339

379340
### `jira_delete_issue`
380341

@@ -454,90 +415,8 @@ Search for Jira issues using JQL (Jira Query Language)
454415
| --------- | ---- | -------- | ----------- |
455416
| `domain` | string | Yes | Your Jira domain \(e.g., yourcompany.atlassian.net\) |
456417
| `jql` | string | Yes | JQL query string to search for issues \(e.g., "project = PROJ AND status = Open"\) |
457-
| `startAt` | number | No | The index of the first result to return \(for pagination\) |
458-
| `maxResults` | number | No | Maximum number of results to return \(default: 50\) |
459-
| `fields` | array | No | Array of field names to return \(default: all navigable\). Use "*all" for every field. |
460-
| `cloudId` | string | No | Jira Cloud ID for the instance. If not provided, it will be fetched using the domain. |
461-
462-
#### Output
463-
464-
| Parameter | Type | Description |
465-
| --------- | ---- | ----------- |
466-
| `ts` | string | ISO 8601 timestamp of the operation |
467-
| `total` | number | Total number of matching issues |
468-
| `startAt` | number | Pagination start index |
469-
| `maxResults` | number | Maximum results per page |
470-
| `issues` | array | Array of matching issues |
471-
|`id` | string | Issue ID |
472-
|`key` | string | Issue key \(e.g., PROJ-123\) |
473-
|`self` | string | REST API URL for this issue |
474-
|`summary` | string | Issue summary |
475-
|`description` | string | Issue description text \(extracted from ADF\) |
476-
|`status` | object | Issue status |
477-
|`id` | string | Status ID |
478-
|`name` | string | Status name \(e.g., Open, In Progress, Done\) |
479-
|`description` | string | Status description |
480-
|`statusCategory` | object | Status category grouping |
481-
|`id` | number | Status category ID |
482-
|`key` | string | Status category key \(e.g., new, indeterminate, done\) |
483-
|`name` | string | Status category name \(e.g., To Do, In Progress, Done\) |
484-
|`colorName` | string | Status category color \(e.g., blue-gray, yellow, green\) |
485-
|`issuetype` | object | Issue type |
486-
|`id` | string | Issue type ID |
487-
|`name` | string | Issue type name \(e.g., Task, Bug, Story, Epic\) |
488-
|`description` | string | Issue type description |
489-
|`subtask` | boolean | Whether this is a subtask type |
490-
|`iconUrl` | string | URL to the issue type icon |
491-
|`project` | object | Project the issue belongs to |
492-
|`id` | string | Project ID |
493-
|`key` | string | Project key \(e.g., PROJ\) |
494-
|`name` | string | Project name |
495-
|`projectTypeKey` | string | Project type key \(e.g., software, business\) |
496-
|`priority` | object | Issue priority |
497-
|`id` | string | Priority ID |
498-
|`name` | string | Priority name \(e.g., Highest, High, Medium, Low, Lowest\) |
499-
|`iconUrl` | string | URL to the priority icon |
500-
|`assignee` | object | Assigned user |
501-
|`accountId` | string | Atlassian account ID of the user |
502-
|`displayName` | string | Display name of the user |
503-
|`active` | boolean | Whether the user account is active |
504-
|`emailAddress` | string | Email address of the user |
505-
|`accountType` | string | Type of account \(e.g., atlassian, app, customer\) |
506-
|`avatarUrl` | string | URL to the user avatar \(48x48\) |
507-
|`timeZone` | string | User timezone |
508-
|`reporter` | object | Reporter user |
509-
|`accountId` | string | Atlassian account ID of the user |
510-
|`displayName` | string | Display name of the user |
511-
|`active` | boolean | Whether the user account is active |
512-
|`emailAddress` | string | Email address of the user |
513-
|`accountType` | string | Type of account \(e.g., atlassian, app, customer\) |
514-
|`avatarUrl` | string | URL to the user avatar \(48x48\) |
515-
|`timeZone` | string | User timezone |
516-
|`labels` | array | Issue labels |
517-
|`components` | array | Issue components |
518-
|`id` | string | Component ID |
519-
|`name` | string | Component name |
520-
|`description` | string | Component description |
521-
|`resolution` | object | Issue resolution |
522-
|`id` | string | Resolution ID |
523-
|`name` | string | Resolution name \(e.g., Fixed, Duplicate, Won't Fix\) |
524-
|`description` | string | Resolution description |
525-
|`duedate` | string | Due date \(YYYY-MM-DD\) |
526-
|`created` | string | ISO 8601 timestamp when the issue was created |
527-
|`updated` | string | ISO 8601 timestamp when the issue was last updated |
528-
529-
### `jira_search_issues`
530-
531-
Search for Jira issues using JQL with cursor-based pagination (V2 - uses nextPageToken)
532-
533-
#### Input
534-
535-
| Parameter | Type | Required | Description |
536-
| --------- | ---- | -------- | ----------- |
537-
| `domain` | string | Yes | Your Jira domain \(e.g., yourcompany.atlassian.net\) |
538-
| `jql` | string | Yes | JQL query string to search for issues \(e.g., "project = PROJ AND status = Open"\) |
539-
| `startAt` | number | No | The index of the first result to return \(for pagination\) |
540-
| `maxResults` | number | No | Maximum number of results to return \(default: 50\) |
418+
| `nextPageToken` | string | No | Cursor token for the next page of results. Omit for the first page. |
419+
| `maxResults` | number | No | Maximum number of results to return per page \(default: 50\) |
541420
| `fields` | array | No | Array of field names to return \(default: all navigable\). Use "*all" for every field. |
542421
| `cloudId` | string | No | Jira Cloud ID for the instance. If not provided, it will be fetched using the domain. |
543422

apps/docs/content/docs/en/tools/onepassword.mdx

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,24 @@ By connecting Sim with 1Password, you empower your agents to securely manage sec
2929

3030
## Usage Instructions
3131

32-
Access and manage secrets stored in 1Password vaults using the Connect API. List vaults, retrieve items with their fields and secrets, create new items, update existing ones, and delete items.
32+
Access and manage secrets stored in 1Password vaults using the Connect API or Service Account SDK. List vaults, retrieve items with their fields and secrets, create new items, update existing ones, delete items, and resolve secret references.
3333

3434

3535

3636
## Tools
3737

3838
### `onepassword_list_vaults`
3939

40-
List all vaults accessible by the Connect token
40+
List all vaults accessible by the Connect token or Service Account
4141

4242
#### Input
4343

4444
| Parameter | Type | Required | Description |
4545
| --------- | ---- | -------- | ----------- |
46-
| `apiKey` | string | Yes | 1Password Connect API token |
47-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
46+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
47+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
48+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
49+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
4850
| `filter` | string | No | SCIM filter expression \(e.g., name eq "My Vault"\) |
4951

5052
#### Output
@@ -69,8 +71,10 @@ Get details of a specific vault by ID
6971

7072
| Parameter | Type | Required | Description |
7173
| --------- | ---- | -------- | ----------- |
72-
| `apiKey` | string | Yes | 1Password Connect API token |
73-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
74+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
75+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
76+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
77+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
7478
| `vaultId` | string | Yes | The vault UUID |
7579

7680
#### Output
@@ -95,8 +99,10 @@ List items in a vault. Returns summaries without field values.
9599

96100
| Parameter | Type | Required | Description |
97101
| --------- | ---- | -------- | ----------- |
98-
| `apiKey` | string | Yes | 1Password Connect API token |
99-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
102+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
103+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
104+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
105+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
100106
| `vaultId` | string | Yes | The vault UUID to list items from |
101107
| `filter` | string | No | SCIM filter expression \(e.g., title eq "API Key" or tag eq "production"\) |
102108

@@ -130,8 +136,10 @@ Get full details of an item including all fields and secrets
130136

131137
| Parameter | Type | Required | Description |
132138
| --------- | ---- | -------- | ----------- |
133-
| `apiKey` | string | Yes | 1Password Connect API token |
134-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
139+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
140+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
141+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
142+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
135143
| `vaultId` | string | Yes | The vault UUID |
136144
| `itemId` | string | Yes | The item UUID to retrieve |
137145

@@ -149,8 +157,10 @@ Create a new item in a vault
149157

150158
| Parameter | Type | Required | Description |
151159
| --------- | ---- | -------- | ----------- |
152-
| `apiKey` | string | Yes | 1Password Connect API token |
153-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
160+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
161+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
162+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
163+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
154164
| `vaultId` | string | Yes | The vault UUID to create the item in |
155165
| `category` | string | Yes | Item category \(e.g., LOGIN, PASSWORD, API_CREDENTIAL, SECURE_NOTE, SERVER, DATABASE\) |
156166
| `title` | string | No | Item title |
@@ -171,8 +181,10 @@ Replace an entire item with new data (full update)
171181

172182
| Parameter | Type | Required | Description |
173183
| --------- | ---- | -------- | ----------- |
174-
| `apiKey` | string | Yes | 1Password Connect API token |
175-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
184+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
185+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
186+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
187+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
176188
| `vaultId` | string | Yes | The vault UUID |
177189
| `itemId` | string | Yes | The item UUID to replace |
178190
| `item` | string | Yes | JSON object representing the full item \(e.g., \{"vault":\{"id":"..."\},"category":"LOGIN","title":"My Item","fields":\[...\]\}\) |
@@ -191,8 +203,10 @@ Update an existing item using JSON Patch operations (RFC6902)
191203

192204
| Parameter | Type | Required | Description |
193205
| --------- | ---- | -------- | ----------- |
194-
| `apiKey` | string | Yes | 1Password Connect API token |
195-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
206+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
207+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
208+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
209+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
196210
| `vaultId` | string | Yes | The vault UUID |
197211
| `itemId` | string | Yes | The item UUID to update |
198212
| `operations` | string | Yes | JSON array of RFC6902 patch operations \(e.g., \[\{"op":"replace","path":"/title","value":"New Title"\}\]\) |
@@ -211,8 +225,10 @@ Delete an item from a vault
211225

212226
| Parameter | Type | Required | Description |
213227
| --------- | ---- | -------- | ----------- |
214-
| `apiKey` | string | Yes | 1Password Connect API token |
215-
| `serverUrl` | string | Yes | 1Password Connect server URL \(e.g., http://localhost:8080\) |
228+
| `connectionMode` | string | No | Connection mode: "service_account" or "connect" |
229+
| `serviceAccountToken` | string | No | 1Password Service Account token \(for Service Account mode\) |
230+
| `apiKey` | string | No | 1Password Connect API token \(for Connect Server mode\) |
231+
| `serverUrl` | string | No | 1Password Connect server URL \(for Connect Server mode\) |
216232
| `vaultId` | string | Yes | The vault UUID |
217233
| `itemId` | string | Yes | The item UUID to delete |
218234

@@ -222,4 +238,23 @@ Delete an item from a vault
222238
| --------- | ---- | ----------- |
223239
| `success` | boolean | Whether the item was successfully deleted |
224240

241+
### `onepassword_resolve_secret`
242+
243+
Resolve a secret reference (op://vault/item/field) to its value. Service Account mode only.
244+
245+
#### Input
246+
247+
| Parameter | Type | Required | Description |
248+
| --------- | ---- | -------- | ----------- |
249+
| `connectionMode` | string | No | Connection mode: must be "service_account" for this operation |
250+
| `serviceAccountToken` | string | Yes | 1Password Service Account token |
251+
| `secretReference` | string | Yes | Secret reference URI \(e.g., op://vault-name/item-name/field-name or op://vault-name/item-name/section-name/field-name\) |
252+
253+
#### Output
254+
255+
| Parameter | Type | Description |
256+
| --------- | ---- | ----------- |
257+
| `secret` | string | The resolved secret value |
258+
| `reference` | string | The original secret reference URI |
259+
225260

0 commit comments

Comments
 (0)