executor 1.3.0-beta.5 → 1.4.0-beta.1

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 (88) hide show
  1. package/bin/executor +24 -0
  2. package/package.json +6 -20
  3. package/postinstall.mjs +102 -0
  4. package/README.md +0 -395
  5. package/bin/deno-subprocess-worker.mjs +0 -205
  6. package/bin/emscripten-module.wasm +0 -0
  7. package/bin/executor.js +0 -42
  8. package/bin/executor.mjs +0 -367200
  9. package/bin/keyring.linux-x64-gnu-62qs1shy.node +0 -0
  10. package/bin/keyring.linux-x64-musl-n4e0vcy6.node +0 -0
  11. package/bin/sandbox-worker.mjs +0 -5850
  12. package/node_modules/@1password/sdk/README.md +0 -146
  13. package/node_modules/@1password/sdk/dist/client.d.ts +0 -14
  14. package/node_modules/@1password/sdk/dist/client.js +0 -19
  15. package/node_modules/@1password/sdk/dist/client_builder.d.ts +0 -8
  16. package/node_modules/@1password/sdk/dist/client_builder.js +0 -36
  17. package/node_modules/@1password/sdk/dist/configuration.d.ts +0 -23
  18. package/node_modules/@1password/sdk/dist/configuration.js +0 -58
  19. package/node_modules/@1password/sdk/dist/core.d.ts +0 -92
  20. package/node_modules/@1password/sdk/dist/core.js +0 -119
  21. package/node_modules/@1password/sdk/dist/environments.d.ts +0 -19
  22. package/node_modules/@1password/sdk/dist/environments.js +0 -53
  23. package/node_modules/@1password/sdk/dist/errors.d.ts +0 -9
  24. package/node_modules/@1password/sdk/dist/errors.js +0 -36
  25. package/node_modules/@1password/sdk/dist/groups.d.ts +0 -19
  26. package/node_modules/@1password/sdk/dist/groups.js +0 -54
  27. package/node_modules/@1password/sdk/dist/items.d.ts +0 -89
  28. package/node_modules/@1password/sdk/dist/items.js +0 -216
  29. package/node_modules/@1password/sdk/dist/items_files.d.ts +0 -40
  30. package/node_modules/@1password/sdk/dist/items_files.js +0 -116
  31. package/node_modules/@1password/sdk/dist/items_shares.d.ts +0 -32
  32. package/node_modules/@1password/sdk/dist/items_shares.js +0 -95
  33. package/node_modules/@1password/sdk/dist/sdk.d.ts +0 -14
  34. package/node_modules/@1password/sdk/dist/sdk.js +0 -45
  35. package/node_modules/@1password/sdk/dist/secrets.d.ts +0 -36
  36. package/node_modules/@1password/sdk/dist/secrets.js +0 -107
  37. package/node_modules/@1password/sdk/dist/shared_lib_core.d.ts +0 -16
  38. package/node_modules/@1password/sdk/dist/shared_lib_core.js +0 -177
  39. package/node_modules/@1password/sdk/dist/types.d.ts +0 -769
  40. package/node_modules/@1password/sdk/dist/types.js +0 -260
  41. package/node_modules/@1password/sdk/dist/vaults.d.ts +0 -83
  42. package/node_modules/@1password/sdk/dist/vaults.js +0 -209
  43. package/node_modules/@1password/sdk/dist/version.d.ts +0 -2
  44. package/node_modules/@1password/sdk/dist/version.js +0 -6
  45. package/node_modules/@1password/sdk/package.json +0 -47
  46. package/node_modules/@1password/sdk-core/nodejs/core.d.ts +0 -18
  47. package/node_modules/@1password/sdk-core/nodejs/core.js +0 -798
  48. package/node_modules/@1password/sdk-core/nodejs/core_bg.wasm +0 -0
  49. package/node_modules/@1password/sdk-core/nodejs/core_bg.wasm.d.ts +0 -20
  50. package/node_modules/@1password/sdk-core/package.json +0 -16
  51. package/resources/web/assets/c-BIGW1oBm.js +0 -1
  52. package/resources/web/assets/cpp-BRuaLJcg.js +0 -1
  53. package/resources/web/assets/csharp-COcwbKMJ.js +0 -1
  54. package/resources/web/assets/css-DPfMkruS.js +0 -1
  55. package/resources/web/assets/diff-D97Zzqfu.js +0 -1
  56. package/resources/web/assets/dockerfile-BcOcwvcX.js +0 -1
  57. package/resources/web/assets/go-CxLEBnE3.js +0 -1
  58. package/resources/web/assets/graphql-ChdNCCLP.js +0 -1
  59. package/resources/web/assets/highlighted-body-TPN3WLV5-46YyTVIj.js +0 -1
  60. package/resources/web/assets/html-GMplVEZG.js +0 -1
  61. package/resources/web/assets/http-jrhK8wxY.js +0 -1
  62. package/resources/web/assets/index-CRuElBS1.js +0 -1
  63. package/resources/web/assets/index-vE9OfFSV.js +0 -10
  64. package/resources/web/assets/java-CylS5w8V.js +0 -1
  65. package/resources/web/assets/javascript-wDzz0qaB.js +0 -1
  66. package/resources/web/assets/json-Cp-IABpG.js +0 -1
  67. package/resources/web/assets/jsonc-Des-eS-w.js +0 -1
  68. package/resources/web/assets/jsx-g9-lgVsj.js +0 -1
  69. package/resources/web/assets/kotlin-BdnUsdx6.js +0 -1
  70. package/resources/web/assets/log-2UxHyX5q.js +0 -1
  71. package/resources/web/assets/markdown-Cvjx9yec.js +0 -1
  72. package/resources/web/assets/mermaid-O7DHMXV3-C705YdCO.js +0 -394
  73. package/resources/web/assets/mermaid-O7DHMXV3-CQK1gbuD.css +0 -1
  74. package/resources/web/assets/php-Dhbhpdrm.js +0 -1
  75. package/resources/web/assets/proto-C7zT0LnQ.js +0 -1
  76. package/resources/web/assets/python-B6aJPvgy.js +0 -1
  77. package/resources/web/assets/ruby-xesJ3fNi.js +0 -1
  78. package/resources/web/assets/rust-B1yitclQ.js +0 -1
  79. package/resources/web/assets/shellscript-Yzrsuije.js +0 -1
  80. package/resources/web/assets/sql-BLtJtn59.js +0 -1
  81. package/resources/web/assets/swift-D82vCrfD.js +0 -1
  82. package/resources/web/assets/toml-vGWfd6FD.js +0 -1
  83. package/resources/web/assets/tsx-COt5Ahok.js +0 -1
  84. package/resources/web/assets/typescript-BPQ3VLAy.js +0 -1
  85. package/resources/web/assets/vitesse-dark-D0r3Knsf.js +0 -1
  86. package/resources/web/assets/xml-sdJ4AIDG.js +0 -1
  87. package/resources/web/assets/yaml-Buea-lGh.js +0 -1
  88. package/resources/web/index.html +0 -24
@@ -1,769 +0,0 @@
1
- export type ErrorMessage = string;
2
- /** Additional attributes for OTP fields. */
3
- export interface AddressFieldDetails {
4
- /** The street address */
5
- street: string;
6
- /** The city */
7
- city: string;
8
- /** The country */
9
- country: string;
10
- /** The ZIP code */
11
- zip: string;
12
- /** The state */
13
- state: string;
14
- }
15
- export interface DocumentCreateParams {
16
- /** The name of the file */
17
- name: string;
18
- /** The content of the file */
19
- content: Uint8Array;
20
- }
21
- /** Represents an environment variable (name:value pair) and its masked state */
22
- export interface EnvironmentVariable {
23
- /** An environment variable's name */
24
- name: string;
25
- /** An environment variable's value */
26
- value: string;
27
- /** An environment variable's masked state */
28
- masked: boolean;
29
- }
30
- export interface FileAttributes {
31
- /** The name of the file */
32
- name: string;
33
- /** The ID of the file retrieved from the server */
34
- id: string;
35
- /** The size of the file in bytes */
36
- size: number;
37
- }
38
- export interface FileCreateParams {
39
- /** The name of the file */
40
- name: string;
41
- /** The content of the file */
42
- content: Uint8Array;
43
- /** The section id where the file should be stored */
44
- sectionId: string;
45
- /** The field id where the file should be stored */
46
- fieldId: string;
47
- }
48
- /**
49
- * For future use, if we want to return more information about the generated password.
50
- * Currently, it only returns the password itself.
51
- */
52
- export interface GeneratePasswordResponse {
53
- /** The generated password. */
54
- password: string;
55
- }
56
- /** Response containing the full set of environment variables from an Environment. */
57
- export interface GetVariablesResponse {
58
- /** List of environment variables. */
59
- variables: EnvironmentVariable[];
60
- }
61
- export declare enum GroupType {
62
- /**
63
- * The owners group, which gives the following permissions:
64
- * - Do everything the Admin group can do
65
- * - See every vault other than the personal vaults
66
- * - Change people's names
67
- * - See billing
68
- * - Change billing
69
- * - Make other people owners
70
- * - Delete a person
71
- */
72
- Owners = "owners",
73
- /**
74
- * The administrators group, which gives the following permissions:
75
- * - Perform recovery
76
- * - Create new vaults
77
- * - Invite new members
78
- * - See vault metadata, including the vault name and who has access.
79
- * - Make other people admins
80
- */
81
- Administrators = "administrators",
82
- /**
83
- * The recovery group. It contains recovery keysets, and is added to every vault to allow for recovery.
84
- *
85
- * No one is added to this.
86
- */
87
- Recovery = "recovery",
88
- /**
89
- * The external account managers group or EAM is a mandatory group for managed accounts that has
90
- * same permissions as the owners.
91
- */
92
- ExternalAccountManagers = "externalAccountManagers",
93
- /** Members of a team that a user is on. */
94
- TeamMembers = "teamMembers",
95
- /** A custom, user defined group. */
96
- UserDefined = "userDefined",
97
- /** Support for new or renamed group types */
98
- Unsupported = "unsupported"
99
- }
100
- export declare enum GroupState {
101
- /** This group is active */
102
- Active = "active",
103
- /** This group has been deleted */
104
- Deleted = "deleted",
105
- /** This group is in an unknown state */
106
- Unsupported = "unsupported"
107
- }
108
- export declare enum VaultAccessorType {
109
- User = "user",
110
- Group = "group"
111
- }
112
- /** Represents the vault access information. */
113
- export interface VaultAccess {
114
- /** The vault's UUID. */
115
- vaultUuid: string;
116
- /** The vault's accessor type. */
117
- accessorType: VaultAccessorType;
118
- /** The vault's accessor UUID. */
119
- accessorUuid: string;
120
- /** The permissions granted to this vault */
121
- permissions: number;
122
- }
123
- export interface Group {
124
- id: string;
125
- title: string;
126
- description: string;
127
- groupType: GroupType;
128
- state: GroupState;
129
- vaultAccess?: VaultAccess[];
130
- }
131
- /**
132
- * Represents a group's access to a 1Password vault.
133
- * This is used for granting permissions
134
- */
135
- export interface GroupAccess {
136
- /** The group's ID */
137
- groupId: string;
138
- /** The group's set of permissions for the vault */
139
- permissions: number;
140
- }
141
- export interface GroupGetParams {
142
- vaultPermissions?: boolean;
143
- }
144
- /** Represents a group's access to a 1Password vault. */
145
- export interface GroupVaultAccess {
146
- /** The vault's ID */
147
- vaultId: string;
148
- /** The group's ID */
149
- groupId: string;
150
- /** The group's set of permissions for the vault */
151
- permissions: number;
152
- }
153
- export declare enum ItemCategory {
154
- Login = "Login",
155
- SecureNote = "SecureNote",
156
- CreditCard = "CreditCard",
157
- CryptoWallet = "CryptoWallet",
158
- Identity = "Identity",
159
- Password = "Password",
160
- Document = "Document",
161
- ApiCredentials = "ApiCredentials",
162
- BankAccount = "BankAccount",
163
- Database = "Database",
164
- DriverLicense = "DriverLicense",
165
- Email = "Email",
166
- MedicalRecord = "MedicalRecord",
167
- Membership = "Membership",
168
- OutdoorLicense = "OutdoorLicense",
169
- Passport = "Passport",
170
- Rewards = "Rewards",
171
- Router = "Router",
172
- Server = "Server",
173
- SshKey = "SshKey",
174
- SocialSecurityNumber = "SocialSecurityNumber",
175
- SoftwareLicense = "SoftwareLicense",
176
- Person = "Person",
177
- Unsupported = "Unsupported"
178
- }
179
- export declare enum ItemFieldType {
180
- Text = "Text",
181
- Concealed = "Concealed",
182
- CreditCardType = "CreditCardType",
183
- CreditCardNumber = "CreditCardNumber",
184
- Phone = "Phone",
185
- Url = "Url",
186
- Totp = "Totp",
187
- Email = "Email",
188
- Reference = "Reference",
189
- SshKey = "SshKey",
190
- Menu = "Menu",
191
- MonthYear = "MonthYear",
192
- Address = "Address",
193
- Date = "Date",
194
- Unsupported = "Unsupported"
195
- }
196
- /** Field type-specific attributes. */
197
- export type ItemFieldDetails =
198
- /** The computed OTP code and other details */
199
- {
200
- type: "Otp";
201
- content: OtpFieldDetails;
202
- }
203
- /** Computed SSH Key attributes */
204
- | {
205
- type: "SshKey";
206
- content?: SshKeyAttributes;
207
- }
208
- /** Address components */
209
- | {
210
- type: "Address";
211
- content?: AddressFieldDetails;
212
- };
213
- /** Represents a field within an item. */
214
- export interface ItemField {
215
- /** The field's ID */
216
- id: string;
217
- /** The field's title */
218
- title: string;
219
- /** The ID of the section containing the field. Built-in fields such as usernames and passwords don't require a section. */
220
- sectionId?: string;
221
- /** The field's type */
222
- fieldType: ItemFieldType;
223
- /** The string representation of the field's value */
224
- value: string;
225
- /** Field type-specific attributes. */
226
- details?: ItemFieldDetails;
227
- }
228
- /** A section groups together multiple fields in an item. */
229
- export interface ItemSection {
230
- /** The section's unique ID */
231
- id: string;
232
- /** The section's title */
233
- title: string;
234
- }
235
- /**
236
- * Controls the auto-fill behavior of a website.
237
- *
238
- *
239
- * For more information, visit <https://support.1password.com/autofill-behavior/>
240
- */
241
- export declare enum AutofillBehavior {
242
- /** Auto-fill any page that’s part of the website, including subdomains */
243
- AnywhereOnWebsite = "AnywhereOnWebsite",
244
- /** Auto-fill only if the domain (hostname and port) is an exact match. */
245
- ExactDomain = "ExactDomain",
246
- /** Never auto-fill on this website */
247
- Never = "Never"
248
- }
249
- export interface Website {
250
- /** The website URL */
251
- url: string;
252
- /** The label of the website, e.g. 'website', 'sign-in address' */
253
- label: string;
254
- /**
255
- * The auto-fill behavior of the website
256
- *
257
- * For more information, visit <https://support.1password.com/autofill-behavior/>
258
- */
259
- autofillBehavior: AutofillBehavior;
260
- }
261
- export interface ItemFile {
262
- /** the attributes of the file */
263
- attributes: FileAttributes;
264
- /** the section id where the file should be stored */
265
- sectionId: string;
266
- /** the field id where the file should be stored */
267
- fieldId: string;
268
- }
269
- /** Represents an active 1Password item. */
270
- export interface Item {
271
- /** The item's ID */
272
- id: string;
273
- /** The item's title */
274
- title: string;
275
- /** The item's category */
276
- category: ItemCategory;
277
- /** The ID of the vault where the item is saved */
278
- vaultId: string;
279
- /** The item's fields */
280
- fields: ItemField[];
281
- /** The item's sections */
282
- sections: ItemSection[];
283
- /** The notes of the item */
284
- notes: string;
285
- /** The item's tags */
286
- tags: string[];
287
- /** The websites used for autofilling for items of the Login and Password categories. */
288
- websites: Website[];
289
- /** The item's version */
290
- version: number;
291
- /** The item's file fields */
292
- files: ItemFile[];
293
- /** The document file for the Document item category */
294
- document?: FileAttributes;
295
- /** The time the item was created at */
296
- createdAt: Date;
297
- /** The time the item was updated at */
298
- updatedAt: Date;
299
- }
300
- export interface ItemCreateParams {
301
- /** The item's category */
302
- category: ItemCategory;
303
- /** The ID of the vault where the item is saved */
304
- vaultId: string;
305
- /** The item's title */
306
- title: string;
307
- /** The item's fields */
308
- fields?: ItemField[];
309
- /** The item's sections */
310
- sections?: ItemSection[];
311
- /** The item's notes */
312
- notes?: string;
313
- /** The item's tags */
314
- tags?: string[];
315
- /** The websites used for autofilling for items of the Login and Password categories. */
316
- websites?: Website[];
317
- /** The item's files stored as fields */
318
- files?: FileCreateParams[];
319
- /** The document file for the Document item type. Empty when the item isn't of Document type. */
320
- document?: DocumentCreateParams;
321
- }
322
- /** Represents the state of an item in the SDK. */
323
- export declare enum ItemState {
324
- /** The item is active */
325
- Active = "active",
326
- /** The item is archived meaning it's hidden from regular view and stored in the archive. */
327
- Archived = "archived"
328
- }
329
- /** Represents a decrypted 1Password item overview. */
330
- export interface ItemOverview {
331
- /** The item's ID */
332
- id: string;
333
- /** The item's title */
334
- title: string;
335
- /** The item's category */
336
- category: ItemCategory;
337
- /** The ID of the vault where the item is saved */
338
- vaultId: string;
339
- /** The websites used for autofilling for items of the Login and Password categories. */
340
- websites: Website[];
341
- /** The item tags */
342
- tags: string[];
343
- /** The time the item was created at */
344
- createdAt: Date;
345
- /** The time the item was updated at */
346
- updatedAt: Date;
347
- /** Indicates the state of the item */
348
- state: ItemState;
349
- }
350
- /** The valid duration options for sharing an item */
351
- export declare enum ItemShareDuration {
352
- /** The share will expire in one hour */
353
- OneHour = "OneHour",
354
- /** The share will expire in one day */
355
- OneDay = "OneDay",
356
- /** The share will expire in seven days */
357
- SevenDays = "SevenDays",
358
- /** The share will expire in fourteen days */
359
- FourteenDays = "FourteenDays",
360
- /** The share will expire in thirty days */
361
- ThirtyDays = "ThirtyDays"
362
- }
363
- /** The allowed types of item sharing, enforced by account policy */
364
- export declare enum AllowedType {
365
- /** Allows creating share links with specific recipients */
366
- Authenticated = "Authenticated",
367
- /** Allows creating public share links */
368
- Public = "Public"
369
- }
370
- /** The allowed recipient types of item sharing, enforced by account policy */
371
- export declare enum AllowedRecipientType {
372
- /** Recipients can be specified by email address */
373
- Email = "Email",
374
- /** Recipients can be specified by domain */
375
- Domain = "Domain"
376
- }
377
- /** The file sharing policy */
378
- export interface ItemShareFiles {
379
- /** Whether files can be included in item shares */
380
- allowed: boolean;
381
- /** The maximum encrypted size (in bytes) an included file can be */
382
- maxSize: number;
383
- /** The allowed types of item sharing - either "Authenticated" (share to specific users) or "Public" (share to anyone with a link) */
384
- allowedTypes?: AllowedType[];
385
- /** The allowed recipient types of item sharing - either "Email" or "Domain" */
386
- allowedRecipientTypes?: AllowedRecipientType[];
387
- /** The maximum duration that an item can be shared for */
388
- maxExpiry?: ItemShareDuration;
389
- /** The default duration that an item is shared for */
390
- defaultExpiry?: ItemShareDuration;
391
- /** The maximum number of times an item can be viewed. A null value means unlimited views */
392
- maxViews?: number;
393
- }
394
- /**
395
- * The account policy for sharing items, set by your account owner/admin
396
- * This policy is enforced server-side when sharing items
397
- */
398
- export interface ItemShareAccountPolicy {
399
- /** The maximum duration that an item can be shared for */
400
- maxExpiry: ItemShareDuration;
401
- /** The default duration that an item is shared for */
402
- defaultExpiry: ItemShareDuration;
403
- /** The maximum number of times an item can be viewed. A null value means unlimited views */
404
- maxViews?: number;
405
- /** The allowed types of item sharing - either "Authenticated" (share to specific users) or "Public" (share to anyone with a link) */
406
- allowedTypes: AllowedType[];
407
- /** The allowed recipient types of item sharing - either "Email" or "Domain" */
408
- allowedRecipientTypes: AllowedRecipientType[];
409
- /** The file sharing policy */
410
- files: ItemShareFiles;
411
- }
412
- /** The validated recipient of an item share */
413
- export type ValidRecipient =
414
- /** This exact email address */
415
- {
416
- type: "Email";
417
- parameters: {
418
- email: string;
419
- };
420
- }
421
- /** Anyone with an email address from the specified domain */
422
- | {
423
- type: "Domain";
424
- parameters: {
425
- domain: string;
426
- };
427
- };
428
- /**
429
- * The configuration options for sharing an item
430
- * These must respect the account policy on item sharing
431
- */
432
- export interface ItemShareParams {
433
- /** Emails or domains of the item share recipients. If not provided, everyone with the share link will have access */
434
- recipients?: ValidRecipient[];
435
- /** The duration of the share in seconds. If not provided, defaults to the account policy's default expiry */
436
- expireAfter?: ItemShareDuration;
437
- /** Whether the item can only be viewed once per recipient */
438
- oneTimeOnly: boolean;
439
- }
440
- export interface Response<T, E> {
441
- content?: T;
442
- error?: E;
443
- }
444
- export type ItemUpdateFailureReason =
445
- /** Item update operation failed due to bad user input. */
446
- {
447
- type: "itemValidationError";
448
- message: ErrorMessage;
449
- }
450
- /** Item update operation is forbidden, permission issue. Make sure you have the correct permissions to update items in this vault. */
451
- | {
452
- type: "itemStatusPermissionError";
453
- message?: undefined;
454
- }
455
- /** Item update operation failed due to incorrect version. */
456
- | {
457
- type: "itemStatusIncorrectItemVersion";
458
- message?: undefined;
459
- }
460
- /** Item update operation failed because a file reference didn't match a known file. */
461
- | {
462
- type: "itemStatusFileNotFound";
463
- message?: undefined;
464
- }
465
- /** Item update request is too big to be sent to the server. */
466
- | {
467
- type: "itemStatusTooBig";
468
- message?: undefined;
469
- }
470
- /** The item was not found */
471
- | {
472
- type: "itemNotFound";
473
- message?: undefined;
474
- }
475
- /** Item update operation experienced an internal error. */
476
- | {
477
- type: "internal";
478
- message: ErrorMessage;
479
- };
480
- export interface ItemsDeleteAllResponse {
481
- individualResponses: Record<string, Response<undefined, ItemUpdateFailureReason>>;
482
- }
483
- export type ItemsGetAllError = {
484
- type: "itemNotFound";
485
- message?: undefined;
486
- } | {
487
- type: "internal";
488
- message: ErrorMessage;
489
- };
490
- export interface ItemsGetAllResponse {
491
- individualResponses: Response<Item, ItemsGetAllError>[];
492
- }
493
- export interface ItemsUpdateAllResponse {
494
- individualResponses: Response<Item, ItemUpdateFailureReason>[];
495
- }
496
- /** Additional attributes for OTP fields. */
497
- export interface OtpFieldDetails {
498
- /** The OTP code, if successfully computed */
499
- code?: string;
500
- /** The error message, if the OTP code could not be computed */
501
- errorMessage?: string;
502
- }
503
- export interface ResolvedReference {
504
- secret: string;
505
- itemId: string;
506
- vaultId: string;
507
- }
508
- export type ResolveReferenceError =
509
- /** Error parsing the secret reference */
510
- {
511
- type: "parsing";
512
- message: ErrorMessage;
513
- }
514
- /** The specified reference cannot be found within the item */
515
- | {
516
- type: "fieldNotFound";
517
- message?: undefined;
518
- }
519
- /** No vault matched the secret reference query */
520
- | {
521
- type: "vaultNotFound";
522
- message?: undefined;
523
- }
524
- /** More than one vault matched the secret reference query */
525
- | {
526
- type: "tooManyVaults";
527
- message?: undefined;
528
- }
529
- /** No item matched the secret reference query */
530
- | {
531
- type: "itemNotFound";
532
- message?: undefined;
533
- }
534
- /** More than one item matched the secret reference query */
535
- | {
536
- type: "tooManyItems";
537
- message?: undefined;
538
- }
539
- /** More than one field matched the provided secret reference */
540
- | {
541
- type: "tooManyMatchingFields";
542
- message?: undefined;
543
- }
544
- /** No section found within the item for the provided identifier */
545
- | {
546
- type: "noMatchingSections";
547
- message?: undefined;
548
- }
549
- /** Incompatiable TOTP query parameters */
550
- | {
551
- type: "incompatibleTOTPQueryParameterField";
552
- message?: undefined;
553
- }
554
- /** The totp was not able to be generated */
555
- | {
556
- type: "unableToGenerateTotpCode";
557
- message: ErrorMessage;
558
- }
559
- /** Couldn't find attributes specific to an SSH Key field */
560
- | {
561
- type: "sSHKeyMetadataNotFound";
562
- message?: undefined;
563
- }
564
- /** Currently only support text files */
565
- | {
566
- type: "unsupportedFileFormat";
567
- message?: undefined;
568
- }
569
- /** Trying to convert a non-private key to a private key format */
570
- | {
571
- type: "incompatibleSshKeyQueryParameterField";
572
- message?: undefined;
573
- }
574
- /** Unable to properly parse a private key string to convert to an internal Private Key type */
575
- | {
576
- type: "unableToParsePrivateKey";
577
- message?: undefined;
578
- }
579
- /** Unable to format a private key to OpenSSH format */
580
- | {
581
- type: "unableToFormatPrivateKeyToOpenSsh";
582
- message?: undefined;
583
- }
584
- /** Other type */
585
- | {
586
- type: "other";
587
- message?: undefined;
588
- };
589
- export interface ResolveAllResponse {
590
- individualResponses: Record<string, Response<ResolvedReference, ResolveReferenceError>>;
591
- }
592
- export interface SshKeyAttributes {
593
- /** The public part of the SSH Key */
594
- publicKey: string;
595
- /** The fingerprint of the SSH Key */
596
- fingerprint: string;
597
- /** The key type ("Ed25519" or "RSA, {length}-bit") */
598
- keyType: string;
599
- }
600
- /** Represents the vault type. */
601
- export declare enum VaultType {
602
- Personal = "personal",
603
- Everyone = "everyone",
604
- Transfer = "transfer",
605
- UserCreated = "userCreated",
606
- Unsupported = "unsupported"
607
- }
608
- /** Represents regular vault information together with the vault's access information. */
609
- export interface Vault {
610
- /** The vault's ID. */
611
- id: string;
612
- /** The vault's title. */
613
- title: string;
614
- /** The description of the vault. */
615
- description: string;
616
- /** The type of the vault. */
617
- vaultType: VaultType;
618
- /** The number of active items within the vault. */
619
- activeItemCount: number;
620
- /** The content version number of the vault. It gets incremented whenever the state of the vault's contents changes (e.g. items from within the vault get created or updated). */
621
- contentVersion: number;
622
- /** The attribute version number of the vault. It gets incremented whenever vault presentation information changes, such as its title or icon. */
623
- attributeVersion: number;
624
- /** The access information associated with the vault. */
625
- access?: VaultAccess[];
626
- }
627
- export interface VaultCreateParams {
628
- title: string;
629
- description?: string;
630
- allowAdminsAccess?: boolean;
631
- }
632
- /** Represents the possible query parameters used for retrieving extra information about a vault. */
633
- export interface VaultGetParams {
634
- /** The vault's accessor params. */
635
- accessors?: boolean;
636
- }
637
- export interface VaultListParams {
638
- decryptDetails?: boolean;
639
- }
640
- /** Holds information about a 1Password Vault. */
641
- export interface VaultOverview {
642
- /** The vault's ID. */
643
- id: string;
644
- /** The vault's title. */
645
- title: string;
646
- /** The description of this vault. */
647
- description: string;
648
- /** The type of the vault. */
649
- vaultType: VaultType;
650
- /** The number of active items within the vault. */
651
- activeItemCount: number;
652
- /** The content version number of the vault. It gets incremented whenever the state of the vault's contents changes (e.g. items from within the vault get created or updated). */
653
- contentVersion: number;
654
- /** The attribute version number of the vault. It gets incremented whenever vault presentation information changes, such as its title or icon. */
655
- attributeVersion: number;
656
- /** The time the vault was created at */
657
- createdAt: Date;
658
- /** The time the vault was updated at */
659
- updatedAt: Date;
660
- }
661
- export interface VaultUpdateParams {
662
- title?: string;
663
- description?: string;
664
- }
665
- export type ItemListFilter = {
666
- type: "ByState";
667
- content: {
668
- active: boolean;
669
- archived: boolean;
670
- };
671
- };
672
- export type PasswordRecipe = {
673
- type: "Memorable";
674
- parameters: {
675
- /** The type of separator between chunks. */
676
- separatorType: SeparatorType;
677
- /** Uppercase one randomly selected chunk. */
678
- capitalize: boolean;
679
- /** The type of word list used. */
680
- wordListType: WordListType;
681
- /** The number of "words" (words or syllables). */
682
- wordCount: number;
683
- };
684
- } | {
685
- type: "Pin";
686
- parameters: {
687
- /** Number of digits in the PIN. */
688
- length: number;
689
- };
690
- } | {
691
- type: "Random";
692
- parameters: {
693
- /** Include at least one digit in the password. */
694
- includeDigits: boolean;
695
- /** Include at least one symbol in the password. */
696
- includeSymbols: boolean;
697
- /** The length of the password. */
698
- length: number;
699
- };
700
- };
701
- export declare enum SeparatorType {
702
- /**
703
- * Randomly selected digits.
704
- * E.g, "`correct4horse0battery1staple`"
705
- */
706
- Digits = "digits",
707
- /**
708
- * Randomly selected digits and symbols.
709
- * This is useful to get word-based passwords to meet complexity requirements
710
- * E.g, "`correct4horse-battery1staple`"
711
- */
712
- DigitsAndSymbols = "digitsAndSymbols",
713
- /**
714
- * Spaces, like the original Diceware.
715
- * Great for mobile keyboards, not so great when people can overhear you type the password.
716
- * E.g, "`correct horse battery staple`"
717
- */
718
- Spaces = "spaces",
719
- /**
720
- * Hyphens "`-`".
721
- * E.g, "`correct-horse-battery-staple`"
722
- */
723
- Hyphens = "hyphens",
724
- /**
725
- * "`_`".
726
- * E.g, "`correct_horse_battery_staple`"
727
- */
728
- Underscores = "underscores",
729
- /**
730
- * Period (full stop) "`.`".
731
- * E.g, "`correct.horse.battery.staple`"
732
- */
733
- Periods = "periods",
734
- /**
735
- * Comma "`,`".
736
- * E.g, "`correct,horse,battery,staple`"
737
- */
738
- Commas = "commas"
739
- }
740
- export declare enum WordListType {
741
- /** Agile wordlist */
742
- FullWords = "fullWords",
743
- /** English-like syllables */
744
- Syllables = "syllables",
745
- /** Three (random) letter "words" */
746
- ThreeLetters = "threeLetters"
747
- }
748
- export declare const ARCHIVE_ITEMS: number;
749
- export declare const CREATE_ITEMS: number;
750
- export declare const DELETE_ITEMS: number;
751
- export declare const EXPORT_ITEMS: number;
752
- export declare const IMPORT_ITEMS: number;
753
- export declare const MANAGE_VAULT: number;
754
- export declare const NO_ACCESS: number;
755
- export declare const PRINT_ITEMS: number;
756
- export declare const READ_ITEMS: number;
757
- export declare const RECOVER_VAULT: number;
758
- export declare const REVEAL_ITEM_PASSWORD: number;
759
- export declare const SEND_ITEMS: number;
760
- export declare const UPDATE_ITEMS: number;
761
- export declare const UPDATE_ITEM_HISTORY: number;
762
- /**
763
- * Custom JSON reviver and replacer functions for dynamic data transformation
764
- * ReviverFunc is used during JSON parsing to detect and transform specific data structures
765
- * ReplacerFunc is used during JSON serialization to modify certain values before stringifying.
766
- * These functions allow for flexible encoding and decoding of data, ensuring that complex types are properly handled when converting between TS objects and JSON
767
- */
768
- export declare const ReviverFunc: (key: string, value: unknown) => unknown;
769
- export declare const ReplacerFunc: (key: string, value: unknown) => unknown;