@onkernel/sdk 0.147.0 → 0.149.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +18 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +18 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/browsers/browsers.d.mts +4 -0
  12. package/resources/browsers/browsers.d.mts.map +1 -1
  13. package/resources/browsers/browsers.d.ts +4 -0
  14. package/resources/browsers/browsers.d.ts.map +1 -1
  15. package/resources/browsers/browsers.js +4 -0
  16. package/resources/browsers/browsers.js.map +1 -1
  17. package/resources/browsers/browsers.mjs +4 -0
  18. package/resources/browsers/browsers.mjs.map +1 -1
  19. package/resources/browsers/index.d.mts +1 -0
  20. package/resources/browsers/index.d.mts.map +1 -1
  21. package/resources/browsers/index.d.ts +1 -0
  22. package/resources/browsers/index.d.ts.map +1 -1
  23. package/resources/browsers/index.js +3 -1
  24. package/resources/browsers/index.js.map +1 -1
  25. package/resources/browsers/index.mjs +1 -0
  26. package/resources/browsers/index.mjs.map +1 -1
  27. package/resources/browsers/live-view.d.mts +74 -0
  28. package/resources/browsers/live-view.d.mts.map +1 -0
  29. package/resources/browsers/live-view.d.ts +74 -0
  30. package/resources/browsers/live-view.d.ts.map +1 -0
  31. package/resources/browsers/live-view.js +33 -0
  32. package/resources/browsers/live-view.js.map +1 -0
  33. package/resources/browsers/live-view.mjs +29 -0
  34. package/resources/browsers/live-view.mjs.map +1 -0
  35. package/resources/index.d.mts +3 -0
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +3 -0
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +7 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +3 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/report-types/index.d.mts +3 -0
  44. package/resources/report-types/index.d.mts.map +1 -0
  45. package/resources/report-types/index.d.ts +3 -0
  46. package/resources/report-types/index.d.ts.map +1 -0
  47. package/resources/report-types/index.js +9 -0
  48. package/resources/report-types/index.js.map +1 -0
  49. package/resources/report-types/index.mjs +4 -0
  50. package/resources/report-types/index.mjs.map +1 -0
  51. package/resources/report-types/report-types.d.mts +98 -0
  52. package/resources/report-types/report-types.d.mts.map +1 -0
  53. package/resources/report-types/report-types.d.ts +98 -0
  54. package/resources/report-types/report-types.d.ts.map +1 -0
  55. package/resources/report-types/report-types.js +38 -0
  56. package/resources/report-types/report-types.js.map +1 -0
  57. package/resources/report-types/report-types.mjs +33 -0
  58. package/resources/report-types/report-types.mjs.map +1 -0
  59. package/resources/report-types/versions.d.mts +47 -0
  60. package/resources/report-types/versions.d.mts.map +1 -0
  61. package/resources/report-types/versions.d.ts +47 -0
  62. package/resources/report-types/versions.d.ts.map +1 -0
  63. package/resources/report-types/versions.js +20 -0
  64. package/resources/report-types/versions.js.map +1 -0
  65. package/resources/report-types/versions.mjs +16 -0
  66. package/resources/report-types/versions.mjs.map +1 -0
  67. package/resources/report-types.d.mts +2 -0
  68. package/resources/report-types.d.mts.map +1 -0
  69. package/resources/report-types.d.ts +2 -0
  70. package/resources/report-types.d.ts.map +1 -0
  71. package/resources/report-types.js +6 -0
  72. package/resources/report-types.js.map +1 -0
  73. package/resources/report-types.mjs +3 -0
  74. package/resources/report-types.mjs.map +1 -0
  75. package/resources/reports.d.mts +136 -0
  76. package/resources/reports.d.mts.map +1 -0
  77. package/resources/reports.d.ts +136 -0
  78. package/resources/reports.d.ts.map +1 -0
  79. package/resources/reports.js +58 -0
  80. package/resources/reports.js.map +1 -0
  81. package/resources/reports.mjs +54 -0
  82. package/resources/reports.mjs.map +1 -0
  83. package/resources/tasks.d.mts +144 -0
  84. package/resources/tasks.d.mts.map +1 -0
  85. package/resources/tasks.d.ts +144 -0
  86. package/resources/tasks.d.ts.map +1 -0
  87. package/resources/tasks.js +67 -0
  88. package/resources/tasks.js.map +1 -0
  89. package/resources/tasks.mjs +63 -0
  90. package/resources/tasks.mjs.map +1 -0
  91. package/resources/vaults/items.d.mts +82 -17
  92. package/resources/vaults/items.d.mts.map +1 -1
  93. package/resources/vaults/items.d.ts +82 -17
  94. package/resources/vaults/items.d.ts.map +1 -1
  95. package/resources/vaults/items.js +4 -0
  96. package/resources/vaults/items.js.map +1 -1
  97. package/resources/vaults/items.mjs +4 -0
  98. package/resources/vaults/items.mjs.map +1 -1
  99. package/resources/vaults/vaults.d.mts +4 -1
  100. package/resources/vaults/vaults.d.mts.map +1 -1
  101. package/resources/vaults/vaults.d.ts +4 -1
  102. package/resources/vaults/vaults.d.ts.map +1 -1
  103. package/resources/vaults/vaults.js +4 -1
  104. package/resources/vaults/vaults.js.map +1 -1
  105. package/resources/vaults/vaults.mjs +4 -1
  106. package/resources/vaults/vaults.mjs.map +1 -1
  107. package/src/client.ts +66 -0
  108. package/src/resources/browsers/browsers.ts +18 -0
  109. package/src/resources/browsers/index.ts +7 -0
  110. package/src/resources/browsers/live-view.ts +97 -0
  111. package/src/resources/index.ts +24 -0
  112. package/src/resources/report-types/index.ts +11 -0
  113. package/src/resources/report-types/report-types.ts +137 -0
  114. package/src/resources/report-types/versions.ts +61 -0
  115. package/src/resources/report-types.ts +3 -0
  116. package/src/resources/reports.ts +166 -0
  117. package/src/resources/tasks.ts +183 -0
  118. package/src/resources/vaults/items.ts +86 -9
  119. package/src/resources/vaults/vaults.ts +4 -1
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
@@ -0,0 +1,166 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ /**
10
+ * Discover report types and submit typed reports against tasks.
11
+ */
12
+ export class Reports extends APIResource {
13
+ /**
14
+ * Submit a typed report against a task. The data is validated against the report
15
+ * type's schema; a validation failure returns 400 with one detail per invalid
16
+ * field. A task can have at most 500 reports.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const report = await client.reports.create({
21
+ * data: { result: 'bar', evidence: 'bar' },
22
+ * task_id: 'x',
23
+ * type: 'task.result',
24
+ * });
25
+ * ```
26
+ */
27
+ create(body: ReportCreateParams, options?: RequestOptions): APIPromise<Report> {
28
+ return this._client.post('/reports', { body, ...options });
29
+ }
30
+
31
+ /**
32
+ * Retrieve a report.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const report = await client.reports.retrieve('id');
37
+ * ```
38
+ */
39
+ retrieve(id: string, options?: RequestOptions): APIPromise<Report> {
40
+ return this._client.get(path`/reports/${id}`, options);
41
+ }
42
+
43
+ /**
44
+ * List a task's reports in the order they were submitted, oldest first.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * // Automatically fetches more pages as needed.
49
+ * for await (const report of client.reports.list({
50
+ * task_id: 'task_id',
51
+ * })) {
52
+ * // ...
53
+ * }
54
+ * ```
55
+ */
56
+ list(query: ReportListParams, options?: RequestOptions): PagePromise<ReportsOffsetPagination, Report> {
57
+ return this._client.getAPIList('/reports', OffsetPagination<Report>, { query, ...options });
58
+ }
59
+ }
60
+
61
+ export type ReportsOffsetPagination = OffsetPagination<Report>;
62
+
63
+ /**
64
+ * A typed, schema-validated report an agent submitted against a task. Reports are
65
+ * immutable.
66
+ */
67
+ export interface Report {
68
+ /**
69
+ * Unique identifier for the report
70
+ */
71
+ id: string;
72
+
73
+ /**
74
+ * When the report was submitted
75
+ */
76
+ created_at: string;
77
+
78
+ /**
79
+ * Report data, matching the report type's schema
80
+ */
81
+ data: { [key: string]: unknown };
82
+
83
+ /**
84
+ * When the reported event happened
85
+ */
86
+ occurred_at: string;
87
+
88
+ /**
89
+ * Version of the report type's schema that data was validated against
90
+ */
91
+ schema_version: number;
92
+
93
+ /**
94
+ * ID of the task the report belongs to
95
+ */
96
+ task_id: string;
97
+
98
+ /**
99
+ * Report type name
100
+ */
101
+ type: string;
102
+
103
+ /**
104
+ * ID of the browser the report was observed in, if any
105
+ */
106
+ session_id?: string | null;
107
+ }
108
+
109
+ export interface ReportCreateParams {
110
+ /**
111
+ * Report data. It must match the schema of the report type's version and encode to
112
+ * at most 16 KB of JSON.
113
+ */
114
+ data: { [key: string]: unknown };
115
+
116
+ /**
117
+ * ID of the task to report against.
118
+ */
119
+ task_id: string;
120
+
121
+ /**
122
+ * Report type name. List report types to see the available types and their
123
+ * schemas.
124
+ */
125
+ type: string;
126
+
127
+ /**
128
+ * When the reported event happened. Defaults to the time the report is submitted.
129
+ * Must be no more than 5 minutes in the future or 30 days in the past.
130
+ */
131
+ occurred_at?: string;
132
+
133
+ /**
134
+ * Version of the report type's schema to validate data against. Defaults to the
135
+ * type's latest version, which the response returns.
136
+ */
137
+ schema_version?: number;
138
+
139
+ /**
140
+ * ID of the browser the report was observed in. It must belong to the task's
141
+ * project; deleted browsers are accepted. The browser is linked to the task if it
142
+ * is not already.
143
+ */
144
+ session_id?: string;
145
+ }
146
+
147
+ export interface ReportListParams extends OffsetPaginationParams {
148
+ /**
149
+ * Task whose reports to list.
150
+ */
151
+ task_id: string;
152
+
153
+ /**
154
+ * Only return reports of this type.
155
+ */
156
+ type?: string;
157
+ }
158
+
159
+ export declare namespace Reports {
160
+ export {
161
+ type Report as Report,
162
+ type ReportsOffsetPagination as ReportsOffsetPagination,
163
+ type ReportCreateParams as ReportCreateParams,
164
+ type ReportListParams as ReportListParams,
165
+ };
166
+ }
@@ -0,0 +1,183 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ /**
10
+ * Define tasks that agents work toward and link the browsers they use.
11
+ */
12
+ export class Tasks extends APIResource {
13
+ /**
14
+ * Define a task before or while an agent works on it, optionally linking the
15
+ * browsers it uses. Submit reports against the returned task ID.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const task = await client.tasks.create({
20
+ * description: 'Book a hotel room for two nights',
21
+ * });
22
+ * ```
23
+ */
24
+ create(body: TaskCreateParams, options?: RequestOptions): APIPromise<Task> {
25
+ return this._client.post('/tasks', { body, ...options });
26
+ }
27
+
28
+ /**
29
+ * Retrieve a task and the IDs of its linked browsers.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const task = await client.tasks.retrieve('id');
34
+ * ```
35
+ */
36
+ retrieve(id: string, options?: RequestOptions): APIPromise<Task> {
37
+ return this._client.get(path`/tasks/${id}`, options);
38
+ }
39
+
40
+ /**
41
+ * List tasks in the request's project, newest first.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * // Automatically fetches more pages as needed.
46
+ * for await (const task of client.tasks.list()) {
47
+ * // ...
48
+ * }
49
+ * ```
50
+ */
51
+ list(
52
+ query: TaskListParams | null | undefined = {},
53
+ options?: RequestOptions,
54
+ ): PagePromise<TasksOffsetPagination, Task> {
55
+ return this._client.getAPIList('/tasks', OffsetPagination<Task>, { query, ...options });
56
+ }
57
+
58
+ /**
59
+ * Link browsers to an existing task. Linking a browser that is already linked has
60
+ * no effect, so the call is safe to retry. Returns the updated task.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const task = await client.tasks.linkBrowsers('id', {
65
+ * session_ids: ['x'],
66
+ * });
67
+ * ```
68
+ */
69
+ linkBrowsers(id: string, body: TaskLinkBrowsersParams, options?: RequestOptions): APIPromise<Task> {
70
+ return this._client.post(path`/tasks/${id}/browsers`, { body, ...options });
71
+ }
72
+ }
73
+
74
+ export type TasksOffsetPagination = OffsetPagination<Task>;
75
+
76
+ /**
77
+ * A goal an agent works toward. Reports are submitted against a task, and browsers
78
+ * can be linked to it. Tasks are immutable apart from added browser links.
79
+ */
80
+ export interface Task {
81
+ /**
82
+ * Unique identifier for the task
83
+ */
84
+ id: string;
85
+
86
+ /**
87
+ * When the task was created
88
+ */
89
+ created_at: string;
90
+
91
+ /**
92
+ * What the task is meant to accomplish
93
+ */
94
+ description: string;
95
+
96
+ /**
97
+ * Caller-defined string key-value pairs for grouping and filtering tasks, such as
98
+ * a user or thread ID. At most 20 keys; keys are 1-64 characters, values at most
99
+ * 256 characters, and keys and values together at most 4 KB.
100
+ */
101
+ metadata: TaskMetadata;
102
+
103
+ /**
104
+ * IDs of browsers linked to the task, oldest link first. Linked browsers may since
105
+ * have been deleted.
106
+ */
107
+ session_ids: Array<string>;
108
+
109
+ /**
110
+ * When work on the task started
111
+ */
112
+ started_at: string;
113
+
114
+ /**
115
+ * Hostname of the website the task targets
116
+ */
117
+ target_website?: string | null;
118
+ }
119
+
120
+ /**
121
+ * Caller-defined string key-value pairs for grouping and filtering tasks, such as
122
+ * a user or thread ID. At most 20 keys; keys are 1-64 characters, values at most
123
+ * 256 characters, and keys and values together at most 4 KB.
124
+ */
125
+ export type TaskMetadata = { [key: string]: string };
126
+
127
+ export interface TaskCreateParams {
128
+ /**
129
+ * What the task is meant to accomplish, at most 4 KB.
130
+ */
131
+ description: string;
132
+
133
+ /**
134
+ * Caller-defined string key-value pairs for grouping and filtering tasks, such as
135
+ * a user or thread ID. At most 20 keys; keys are 1-64 characters, values at most
136
+ * 256 characters, and keys and values together at most 4 KB.
137
+ */
138
+ metadata?: TaskMetadata;
139
+
140
+ /**
141
+ * IDs of browsers to link to the task. Each must belong to the request's project;
142
+ * deleted browsers can be linked.
143
+ */
144
+ session_ids?: Array<string>;
145
+
146
+ /**
147
+ * When work on the task started. Defaults to the time the task is created. Must be
148
+ * no more than 5 minutes in the future or 30 days in the past.
149
+ */
150
+ started_at?: string;
151
+
152
+ /**
153
+ * Hostname of the website the task targets, without a scheme or path.
154
+ */
155
+ target_website?: string;
156
+ }
157
+
158
+ export interface TaskListParams extends OffsetPaginationParams {
159
+ /**
160
+ * Only return tasks linked to this browser ID.
161
+ */
162
+ session_id?: string;
163
+ }
164
+
165
+ export interface TaskLinkBrowsersParams {
166
+ /**
167
+ * IDs of browsers to link. Each must belong to the task's project; deleted
168
+ * browsers can be linked. Browsers already linked are ignored. A task can have at
169
+ * most 100 linked browsers.
170
+ */
171
+ session_ids: Array<string>;
172
+ }
173
+
174
+ export declare namespace Tasks {
175
+ export {
176
+ type Task as Task,
177
+ type TaskMetadata as TaskMetadata,
178
+ type TasksOffsetPagination as TasksOffsetPagination,
179
+ type TaskCreateParams as TaskCreateParams,
180
+ type TaskListParams as TaskListParams,
181
+ type TaskLinkBrowsersParams as TaskLinkBrowsersParams,
182
+ };
183
+ }
@@ -98,6 +98,10 @@ export class Items extends APIResource {
98
98
  * or vault remains blocked until the card is deleted. Deleting or recreating an
99
99
  * item is not proof that a payment did not occur. Deleting a managed auth
100
100
  * credential item leaves the connection and its saved credential unchanged.
101
+ * Deleting a 1Password credential_account stops its fills at once and, when no
102
+ * other vault uses the person's connection, revokes it at 1Password; until
103
+ * 1Password confirms, this returns 409 provider_revocation_pending and Kernel
104
+ * keeps retrying.
101
105
  *
102
106
  * @example
103
107
  * ```ts
@@ -276,8 +280,19 @@ export interface AgentcardCheckoutAuthorization {
276
280
  */
277
281
  amount?: string;
278
282
 
279
- amount_authority?: 'display_only' | 'stripe_payment_intent';
283
+ /**
284
+ * Source of the approved amount. `processor` is read from the processor request or
285
+ * payment; `agent` is the item's declared amount; `page` is the checkout page
286
+ * total; `none` means no amount was named. `display_only` appears only on
287
+ * authorizations recovered without a provider read. `agent` and `display_only`
288
+ * don't prove what the processor charged.
289
+ */
290
+ amount_authority?: 'processor' | 'agent' | 'page' | 'none' | 'display_only';
280
291
 
292
+ /**
293
+ * Whether the processor charged the approved amount. Absent when there was no
294
+ * charge to compare, including tokenization checkouts.
295
+ */
281
296
  amount_verified?: boolean;
282
297
 
283
298
  approval_url?: string;
@@ -287,10 +302,24 @@ export interface AgentcardCheckoutAuthorization {
287
302
  */
288
303
  browser_id?: string;
289
304
 
305
+ /**
306
+ * Amount the processor reported collecting. Absent when the provider didn't
307
+ * observe a charge.
308
+ */
290
309
  charged_amount_cents?: number;
291
310
 
311
+ /**
312
+ * Currency of `charged_amount_cents`. Absent when the provider didn't observe a
313
+ * charge.
314
+ */
292
315
  charged_currency?: string;
293
316
 
317
+ /**
318
+ * What the processor collected. `none` means the checkout produced a token or
319
+ * payment method that the merchant charges later. Absent when the provider
320
+ * reported nothing, which is common for tokenization checkouts; use item events
321
+ * and the merchant's order record instead.
322
+ */
294
323
  charged_kind?: 'captured' | 'authorized' | 'none';
295
324
 
296
325
  expected_cents?: number;
@@ -884,6 +913,7 @@ export namespace CredentialAccountVaultItem {
884
913
  | '1pw_access_request_status'
885
914
  | '1pw_fill'
886
915
  | '1pw_recover'
916
+ | '1pw_disconnect'
887
917
  | '1pw_update_access_token'
888
918
  | 'update_access_token'
889
919
  | 'webmcp_invoke'
@@ -1170,9 +1200,10 @@ export interface CredentialVaultItem {
1170
1200
  /**
1171
1201
  * Kernel credentials advertise collect and fill when eligible. 1Password
1172
1202
  * credentials advertise 1pw_create_access_request until a request is made,
1173
- * 1pw_access_request_status while its approval is pending, and 1pw_fill after
1174
- * access is granted. Managed auth credentials advertise fill while ready and
1175
- * nothing otherwise.
1203
+ * 1pw_access_request_status while its approval is pending (and
1204
+ * 1pw_create_access_request again once the 3-minute status-check window has
1205
+ * passed), and 1pw_fill after access is granted. Managed auth credentials
1206
+ * advertise fill while ready and nothing otherwise.
1176
1207
  */
1177
1208
  available_operations: Array<CredentialVaultItem.AvailableOperation>;
1178
1209
 
@@ -1265,6 +1296,7 @@ export namespace CredentialVaultItem {
1265
1296
  | '1pw_access_request_status'
1266
1297
  | '1pw_fill'
1267
1298
  | '1pw_recover'
1299
+ | '1pw_disconnect'
1268
1300
  | '1pw_update_access_token'
1269
1301
  | 'update_access_token'
1270
1302
  | 'webmcp_invoke'
@@ -1273,6 +1305,15 @@ export namespace CredentialVaultItem {
1273
1305
  }
1274
1306
 
1275
1307
  export interface OnePasswordAccessApprovalAction {
1308
+ /**
1309
+ * The access_request_reference value from url, for approving inside your own iOS
1310
+ * or Android app with 1Password's action extension or authorization activity. Pass
1311
+ * it unchanged; the grant comes back to your app, and 1pw_access_request_status
1312
+ * records it in Kernel. Treat it like url, which carries the same request text,
1313
+ * and keep it out of logs.
1314
+ */
1315
+ access_request_reference: string;
1316
+
1276
1317
  /**
1277
1318
  * Steps for the agent to hand approval to the human and poll the resulting
1278
1319
  * decision.
@@ -1282,8 +1323,10 @@ export namespace CredentialVaultItem {
1282
1323
  name: '1password_access_approval';
1283
1324
 
1284
1325
  /**
1285
- * Native 1Password approval link. Present it to the account owner without
1286
- * modifying it; it does not grant access until they approve in their app.
1326
+ * Native 1Password approval link. Present it to the account owner unchanged,
1327
+ * except that you may append `&return_url=<URL-encoded URL>` so 1Password sends
1328
+ * them back to your app after they decide (1Password 8.12.46 or later on iOS,
1329
+ * Android and desktop). It does not grant access until they approve in their app.
1287
1330
  */
1288
1331
  url: string;
1289
1332
  }
@@ -2170,7 +2213,11 @@ export namespace OnePasswordCredentialAccountSpec {
2170
2213
  export interface OnePasswordCredentialAccountState {
2171
2214
  provider: '1password';
2172
2215
 
2173
- status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'declined';
2216
+ /**
2217
+ * revoking means the account was deleted or disconnected and Kernel is waiting for
2218
+ * 1Password to confirm the revoke; it cannot be used and Kernel keeps retrying.
2219
+ */
2220
+ status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'declined' | 'revoking';
2174
2221
 
2175
2222
  status_reason?: string;
2176
2223
  }
@@ -2395,7 +2442,9 @@ export namespace OnePasswordCredentialVaultItemState {
2395
2442
  has_autofill_token: boolean;
2396
2443
 
2397
2444
  /**
2398
- * One of pending, resolved, denied, or failed.
2445
+ * One of pending, resolved, denied, failed, expired, or unknown. expired returns
2446
+ * the item to pending_authorization so access can be requested again; unknown is a
2447
+ * state 1Password added later and is treated as failed.
2399
2448
  */
2400
2449
  state: string;
2401
2450
 
@@ -2700,6 +2749,7 @@ export namespace PaymentRequestVaultItem {
2700
2749
  | '1pw_access_request_status'
2701
2750
  | '1pw_fill'
2702
2751
  | '1pw_recover'
2752
+ | '1pw_disconnect'
2703
2753
  | '1pw_update_access_token'
2704
2754
  | 'update_access_token'
2705
2755
  | 'webmcp_invoke'
@@ -3435,6 +3485,7 @@ export namespace VaultItem {
3435
3485
  | '1pw_access_request_status'
3436
3486
  | '1pw_fill'
3437
3487
  | '1pw_recover'
3488
+ | '1pw_disconnect'
3438
3489
  | '1pw_update_access_token'
3439
3490
  | 'update_access_token'
3440
3491
  | 'webmcp_invoke'
@@ -3535,6 +3586,7 @@ export namespace VaultItem {
3535
3586
  | '1pw_access_request_status'
3536
3587
  | '1pw_fill'
3537
3588
  | '1pw_recover'
3589
+ | '1pw_disconnect'
3538
3590
  | '1pw_update_access_token'
3539
3591
  | 'update_access_token'
3540
3592
  | 'webmcp_invoke'
@@ -3727,6 +3779,7 @@ export namespace VaultItemOperationResponse {
3727
3779
  | '1pw_access_request_status'
3728
3780
  | '1pw_fill'
3729
3781
  | '1pw_recover'
3782
+ | '1pw_disconnect'
3730
3783
  | '1pw_update_access_token'
3731
3784
  | 'update_access_token'
3732
3785
  | 'webmcp_invoke'
@@ -3827,6 +3880,7 @@ export namespace VaultItemOperationResponse {
3827
3880
  | '1pw_access_request_status'
3828
3881
  | '1pw_fill'
3829
3882
  | '1pw_recover'
3883
+ | '1pw_disconnect'
3830
3884
  | '1pw_update_access_token'
3831
3885
  | 'update_access_token'
3832
3886
  | 'webmcp_invoke'
@@ -4508,6 +4562,15 @@ export interface ItemEventsParams {
4508
4562
  */
4509
4563
  after?: string;
4510
4564
 
4565
+ /**
4566
+ * Query param: When true, also finds deleted items, and deleted vaults by ID only.
4567
+ * `key` then also accepts an item ID, which takes precedence over a key with the
4568
+ * same value; the lookup order is the item ID, then the live item with that key,
4569
+ * then the most recently deleted one. `wait` is ignored for a deleted item or
4570
+ * vault.
4571
+ */
4572
+ include_deleted?: boolean;
4573
+
4511
4574
  /**
4512
4575
  * Query param: Long-poll for new events for up to this many seconds.
4513
4576
  */
@@ -4528,6 +4591,7 @@ export type ItemPerformOperationParams =
4528
4591
  | ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest
4529
4592
  | ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
4530
4593
  | ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
4594
+ | ItemPerformOperationParams.OnePasswordDisconnectVaultItemOperationRequest
4531
4595
  | ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest
4532
4596
  | ItemPerformOperationParams.UpdateAccessTokenVaultItemOperationRequest
4533
4597
  | ItemPerformOperationParams.WebmcpInvokeVaultItemOperationRequest
@@ -4822,7 +4886,8 @@ export declare namespace ItemPerformOperationParams {
4822
4886
  type: '1pw_access_request_status';
4823
4887
 
4824
4888
  /**
4825
- * Body param
4889
+ * Body param: How long to keep checking on the schedule. The call still waits for
4890
+ * its first scheduled check, at most 20 seconds, when that comes later.
4826
4891
  */
4827
4892
  timeout_seconds?: number;
4828
4893
  }
@@ -4881,6 +4946,18 @@ export declare namespace ItemPerformOperationParams {
4881
4946
  type: '1pw_recover';
4882
4947
  }
4883
4948
 
4949
+ export interface OnePasswordDisconnectVaultItemOperationRequest {
4950
+ /**
4951
+ * Path param
4952
+ */
4953
+ id_or_name: string;
4954
+
4955
+ /**
4956
+ * Body param
4957
+ */
4958
+ type: '1pw_disconnect';
4959
+ }
4960
+
4884
4961
  export interface OnePasswordUpdateAccessTokenVaultItemOperationRequest {
4885
4962
  /**
4886
4963
  * Path param
@@ -146,7 +146,10 @@ export class Vaults extends APIResource {
146
146
  * first blocks new payments on it, then removes its enrolled card. If that fails,
147
147
  * the wallet is kept and keeps refusing payments; retry the deletion. Reconcile
148
148
  * the original attempt with the provider or support first; deleting or recreating
149
- * an item is not proof that a payment did not occur.
149
+ * an item is not proof that a payment did not occur. Each 1Password
150
+ * credential_account in the vault is ended the same way as deleting it; the vault
151
+ * is kept and this returns 409 provider_revocation_pending while 1Password has not
152
+ * confirmed a revoke.
150
153
  *
151
154
  * @example
152
155
  * ```ts
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.147.0'; // x-release-please-version
1
+ export const VERSION = '0.149.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.147.0";
1
+ export declare const VERSION = "0.149.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.147.0";
1
+ export declare const VERSION = "0.149.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.147.0'; // x-release-please-version
4
+ exports.VERSION = '0.149.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.147.0'; // x-release-please-version
1
+ export const VERSION = '0.149.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map