@1password/sdk 0.1.4 → 0.1.6

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.
package/README.md CHANGED
@@ -84,8 +84,10 @@ Operations:
84
84
  - [x] [Create items](https://developer.1password.com/docs/sdks/manage-items#create-an-item)
85
85
  - [x] [Update items](https://developer.1password.com/docs/sdks/manage-items#update-an-item)
86
86
  - [x] [Delete items](https://developer.1password.com/docs/sdks/manage-items#delete-an-item)
87
+ - [x] Archive items
87
88
  - [x] [List items](https://developer.1password.com/docs/sdks/list-vaults-items/)
88
- - [x] Add & update tags on items
89
+ - [x] Share items
90
+ - [x] Generate PIN, random and memorable passwords
89
91
 
90
92
  Field types:
91
93
  - [x] API Keys
@@ -93,14 +95,18 @@ Field types:
93
95
  - [x] Concealed fields
94
96
  - [x] Text fields
95
97
  - [x] Notes
96
- - [x] SSH private keys (partially supported: supported in resolving secret references, not yet supported in item create/get/update)
97
- - [ ] SSH public keys, fingerprint and key type
98
+ - [x] SSH private keys, public keys, fingerprint and key type (partially supported: supported in resolving secret references, not yet supported in item create/get/update)
98
99
  - [x] One-time passwords
99
100
  - [x] URLs
100
101
  - [x] Websites (used to suggest and autofill logins)
101
102
  - [x] Phone numbers
102
103
  - [x] Credit card types
103
- - [ ] File attachments and Document items
104
+ - [x] Credit card numbers
105
+ - [x] Emails
106
+ - [x] References to other items
107
+ - [ ] Address
108
+ - [ ] Date / MM/YY
109
+ - [ ] Files attachments and Document items
104
110
 
105
111
  ### Vault management
106
112
  - [ ] Retrieve vaults
@@ -1,6 +1,6 @@
1
1
  import { ClientAuthConfig } from "./core.js";
2
2
  export declare const LANGUAGE = "JS";
3
- export declare const VERSION = "0010401";
3
+ export declare const VERSION = "0010601";
4
4
  export interface ClientConfiguration {
5
5
  auth: Auth;
6
6
  integrationName: string;
package/dist/items.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import { InnerClient } from "./core.js";
2
2
  import * as types from "./types.js";
3
3
  import { SdkIterable } from "./iterator.js";
4
+ import { ItemsSharesApi } from "./items_shares.js";
4
5
  /**
5
6
  * The Items API holds all operations the SDK client can perform on 1Password items.
6
7
  */
7
8
  export interface ItemsApi {
9
+ shares: ItemsSharesApi;
8
10
  /**
9
- * Create a new item
11
+ * Create a new item.
10
12
  */
11
13
  create(params: types.ItemCreateParams): Promise<types.Item>;
12
14
  /**
@@ -21,6 +23,10 @@ export interface ItemsApi {
21
23
  * Delete an item.
22
24
  */
23
25
  delete(vaultId: string, itemId: string): any;
26
+ /**
27
+ * Archive an item.
28
+ */
29
+ archive(vaultId: string, itemId: string): any;
24
30
  /**
25
31
  * List all items
26
32
  */
@@ -28,9 +34,10 @@ export interface ItemsApi {
28
34
  }
29
35
  export declare class Items implements ItemsApi {
30
36
  #private;
37
+ shares: ItemsSharesApi;
31
38
  constructor(inner: InnerClient);
32
39
  /**
33
- * Create a new item
40
+ * Create a new item.
34
41
  */
35
42
  create(params: types.ItemCreateParams): Promise<types.Item>;
36
43
  /**
@@ -45,6 +52,10 @@ export declare class Items implements ItemsApi {
45
52
  * Delete an item.
46
53
  */
47
54
  delete(vaultId: string, itemId: string): Promise<void>;
55
+ /**
56
+ * Archive an item.
57
+ */
58
+ archive(vaultId: string, itemId: string): Promise<void>;
48
59
  /**
49
60
  * List all items
50
61
  */
package/dist/items.js CHANGED
@@ -24,13 +24,15 @@ var _Items_inner;
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.Items = void 0;
26
26
  const iterator_js_1 = require("./iterator.js");
27
+ const items_shares_js_1 = require("./items_shares.js");
27
28
  class Items {
28
29
  constructor(inner) {
29
30
  _Items_inner.set(this, void 0);
30
31
  __classPrivateFieldSet(this, _Items_inner, inner, "f");
32
+ this.shares = new items_shares_js_1.ItemsShares(inner);
31
33
  }
32
34
  /**
33
- * Create a new item
35
+ * Create a new item.
34
36
  */
35
37
  create(params) {
36
38
  return __awaiter(this, void 0, void 0, function* () {
@@ -107,6 +109,26 @@ class Items {
107
109
  yield __classPrivateFieldGet(this, _Items_inner, "f").core.invoke(invocationConfig);
108
110
  });
109
111
  }
112
+ /**
113
+ * Archive an item.
114
+ */
115
+ archive(vaultId, itemId) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ const invocationConfig = {
118
+ invocation: {
119
+ clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
120
+ parameters: {
121
+ name: "ItemsArchive",
122
+ parameters: {
123
+ vault_id: vaultId,
124
+ item_id: itemId,
125
+ },
126
+ },
127
+ },
128
+ };
129
+ yield __classPrivateFieldGet(this, _Items_inner, "f").core.invoke(invocationConfig);
130
+ });
131
+ }
110
132
  /**
111
133
  * List all items
112
134
  */
@@ -0,0 +1,32 @@
1
+ import { InnerClient } from "./core.js";
2
+ import * as types from "./types.js";
3
+ export interface ItemsSharesApi {
4
+ /**
5
+ * Get the item sharing policy of your account.
6
+ */
7
+ getAccountPolicy(vaultId: string, itemId: string): Promise<types.ItemShareAccountPolicy>;
8
+ /**
9
+ * Validate the recipients of an item sharing link.
10
+ */
11
+ validateRecipients(policy: types.ItemShareAccountPolicy, recipients: string[]): Promise<types.ValidRecipient[]>;
12
+ /**
13
+ * Create a new item sharing link.
14
+ */
15
+ create(item: types.Item, policy: types.ItemShareAccountPolicy, params: types.ItemShareParams): Promise<string>;
16
+ }
17
+ export declare class ItemsShares implements ItemsSharesApi {
18
+ #private;
19
+ constructor(inner: InnerClient);
20
+ /**
21
+ * Get the item sharing policy of your account.
22
+ */
23
+ getAccountPolicy(vaultId: string, itemId: string): Promise<types.ItemShareAccountPolicy>;
24
+ /**
25
+ * Validate the recipients of an item sharing link.
26
+ */
27
+ validateRecipients(policy: types.ItemShareAccountPolicy, recipients: string[]): Promise<types.ValidRecipient[]>;
28
+ /**
29
+ * Create a new item sharing link.
30
+ */
31
+ create(item: types.Item, policy: types.ItemShareAccountPolicy, params: types.ItemShareParams): Promise<string>;
32
+ }
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ // Code generated by op-codegen - DO NOT EDIT MANUALLY
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13
+ if (kind === "m") throw new TypeError("Private method is not writable");
14
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
17
+ };
18
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
19
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
20
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
21
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
22
+ };
23
+ var _ItemsShares_inner;
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ItemsShares = void 0;
26
+ class ItemsShares {
27
+ constructor(inner) {
28
+ _ItemsShares_inner.set(this, void 0);
29
+ __classPrivateFieldSet(this, _ItemsShares_inner, inner, "f");
30
+ }
31
+ /**
32
+ * Get the item sharing policy of your account.
33
+ */
34
+ getAccountPolicy(vaultId, itemId) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ const invocationConfig = {
37
+ invocation: {
38
+ clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
39
+ parameters: {
40
+ name: "ItemsSharesGetAccountPolicy",
41
+ parameters: {
42
+ vault_id: vaultId,
43
+ item_id: itemId,
44
+ },
45
+ },
46
+ },
47
+ };
48
+ return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").core.invoke(invocationConfig));
49
+ });
50
+ }
51
+ /**
52
+ * Validate the recipients of an item sharing link.
53
+ */
54
+ validateRecipients(policy, recipients) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const invocationConfig = {
57
+ invocation: {
58
+ clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
59
+ parameters: {
60
+ name: "ItemsSharesValidateRecipients",
61
+ parameters: {
62
+ policy,
63
+ recipients,
64
+ },
65
+ },
66
+ },
67
+ };
68
+ return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").core.invoke(invocationConfig));
69
+ });
70
+ }
71
+ /**
72
+ * Create a new item sharing link.
73
+ */
74
+ create(item, policy, params) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const invocationConfig = {
77
+ invocation: {
78
+ clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
79
+ parameters: {
80
+ name: "ItemsSharesCreate",
81
+ parameters: {
82
+ item,
83
+ policy,
84
+ params,
85
+ },
86
+ },
87
+ },
88
+ };
89
+ return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").core.invoke(invocationConfig));
90
+ });
91
+ }
92
+ }
93
+ exports.ItemsShares = ItemsShares;
94
+ _ItemsShares_inner = new WeakMap();
package/dist/sdk.js CHANGED
@@ -28,6 +28,7 @@ const core_js_1 = require("./core.js");
28
28
  const client_builder_js_1 = require("./client_builder.js");
29
29
  exports.DEFAULT_INTEGRATION_NAME = "Unknown";
30
30
  exports.DEFAULT_INTEGRATION_VERSION = "Unknown";
31
+ // auto-generated static exports
31
32
  var secrets_js_1 = require("./secrets.js");
32
33
  Object.defineProperty(exports, "Secrets", { enumerable: true, get: function () { return secrets_js_1.Secrets; } });
33
34
  __exportStar(require("./client.js"), exports);
package/dist/secrets.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { InnerClient } from "./core.js";
2
+ import * as types from "./types.js";
2
3
  /**
3
4
  * The Secrets API includes all operations the SDK client can perform on secrets.
4
5
  * Use secret reference URIs to securely load secrets from 1Password: op://<vault-name>/<item-name>[/<section-name>]/<field-name>
@@ -20,4 +21,5 @@ export declare class Secrets implements SecretsApi {
20
21
  * Validate the secret reference to ensure there are no syntax errors.
21
22
  */
22
23
  static validateSecretReference(secretReference: string): void;
24
+ static generatePassword(recipe: types.PasswordRecipe): types.GeneratePasswordResponse;
23
25
  }
package/dist/secrets.js CHANGED
@@ -65,6 +65,20 @@ class Secrets {
65
65
  };
66
66
  sharedCore.invoke_sync(invocationConfig);
67
67
  }
68
+ static generatePassword(recipe) {
69
+ const sharedCore = new core_js_1.SharedCore();
70
+ const invocationConfig = {
71
+ invocation: {
72
+ parameters: {
73
+ name: "GeneratePassword",
74
+ parameters: {
75
+ recipe,
76
+ },
77
+ },
78
+ },
79
+ };
80
+ return JSON.parse(sharedCore.invoke_sync(invocationConfig));
81
+ }
68
82
  }
69
83
  exports.Secrets = Secrets;
70
84
  _Secrets_inner = new WeakMap();
package/dist/types.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /**
2
+ * For future use, if we want to return more information about the generated password.
3
+ * Currently, it only returns the password itself.
4
+ */
5
+ export interface GeneratePasswordResponse {
6
+ /** The generated password. */
7
+ password: string;
8
+ }
1
9
  export declare enum ItemCategory {
2
10
  Login = "Login",
3
11
  SecureNote = "SecureNote",
@@ -28,9 +36,12 @@ export declare enum ItemFieldType {
28
36
  Text = "Text",
29
37
  Concealed = "Concealed",
30
38
  CreditCardType = "CreditCardType",
39
+ CreditCardNumber = "CreditCardNumber",
31
40
  Phone = "Phone",
32
41
  Url = "Url",
33
42
  Totp = "Totp",
43
+ Email = "Email",
44
+ Reference = "Reference",
34
45
  Unsupported = "Unsupported"
35
46
  }
36
47
  /** Field type-specific attributes. */
@@ -102,6 +113,8 @@ export interface Item {
102
113
  fields: ItemField[];
103
114
  /** The item's sections */
104
115
  sections: ItemSection[];
116
+ /** The notes of the item */
117
+ notes: string;
105
118
  /** The item's tags */
106
119
  tags: string[];
107
120
  /** The websites used for autofilling for items of the Login and Password categories. */
@@ -120,6 +133,8 @@ export interface ItemCreateParams {
120
133
  fields?: ItemField[];
121
134
  /** The item's sections */
122
135
  sections?: ItemSection[];
136
+ /** The item's notes */
137
+ notes?: string;
123
138
  /** The item's tags */
124
139
  tags?: string[];
125
140
  /** The websites used for autofilling for items of the Login and Password categories. */
@@ -138,6 +153,77 @@ export interface ItemOverview {
138
153
  /** The websites used for autofilling for items of the Login and Password categories. */
139
154
  websites: Website[];
140
155
  }
156
+ /** The valid duration options for sharing an item */
157
+ export declare enum ItemShareDuration {
158
+ /** The share will expire in one hour */
159
+ OneHour = "OneHour",
160
+ /** The share will expire in one day */
161
+ OneDay = "OneDay",
162
+ /** The share will expire in seven days */
163
+ SevenDays = "SevenDays",
164
+ /** The share will expire in fourteen days */
165
+ FourteenDays = "FourteenDays",
166
+ /** The share will expire in thirty days */
167
+ ThirtyDays = "ThirtyDays"
168
+ }
169
+ /** The allowed types of item sharing, enforced by account policy */
170
+ export declare enum AllowedType {
171
+ /** Allows creating share links with specific recipients */
172
+ Authenticated = "Authenticated",
173
+ /** Allows creating public share links */
174
+ Public = "Public"
175
+ }
176
+ /** The allowed recipient types of item sharing, enforced by account policy */
177
+ export declare enum AllowedRecipientType {
178
+ /** Recipients can be specified by email address */
179
+ Email = "Email",
180
+ /** Recipients can be specified by domain */
181
+ Domain = "Domain"
182
+ }
183
+ /**
184
+ * The account policy for sharing items, set by your account owner/admin
185
+ * This policy is enforced server-side when sharing items
186
+ */
187
+ export interface ItemShareAccountPolicy {
188
+ /** The maximum duration that an item can be shared for */
189
+ maxExpiry: ItemShareDuration;
190
+ /** The default duration that an item is shared for */
191
+ defaultExpiry: ItemShareDuration;
192
+ /** The maximum number of times an item can be viewed. A null value means unlimited views */
193
+ maxViews?: number;
194
+ /** The allowed types of item sharing - either "Authenticated" (share to specific users) or "Public" (share to anyone with a link) */
195
+ allowedTypes: AllowedType[];
196
+ /** The allowed recipient types of item sharing - either "Email" or "Domain" */
197
+ allowedRecipientTypes: AllowedRecipientType[];
198
+ }
199
+ /** The validated recipient of an item share */
200
+ export type ValidRecipient =
201
+ /** This exact email address */
202
+ {
203
+ type: "Email";
204
+ parameters: {
205
+ email: string;
206
+ };
207
+ }
208
+ /** Anyone with an email address from the specified domain */
209
+ | {
210
+ type: "Domain";
211
+ parameters: {
212
+ domain: string;
213
+ };
214
+ };
215
+ /**
216
+ * The configuration options for sharing an item
217
+ * These must respect the account policy on item sharing
218
+ */
219
+ export interface ItemShareParams {
220
+ /** Emails or domains of the item share recipients. If not provided, everyone with the share link will have access */
221
+ recipients?: ValidRecipient[];
222
+ /** The duration of the share in seconds. If not provided, defaults to the account policy's default expiry */
223
+ expireAfter?: ItemShareDuration;
224
+ /** Whether the item can only be viewed once per recipient */
225
+ oneTimeOnly: boolean;
226
+ }
141
227
  /** Additional attributes for OTP fields. */
142
228
  export interface OtpFieldDetails {
143
229
  /** The OTP code, if successfully computed */
@@ -152,3 +238,79 @@ export interface VaultOverview {
152
238
  /** The vault's title */
153
239
  title: string;
154
240
  }
241
+ export type PasswordRecipe = {
242
+ type: "Memorable";
243
+ parameters: {
244
+ /** The type of separator between chunks. */
245
+ separatorType: SeparatorType;
246
+ /** Uppercase one randomly selected chunk. */
247
+ capitalize: boolean;
248
+ /** The type of word list used. */
249
+ wordListType: WordListType;
250
+ /** The number of "words" (words or syllables). */
251
+ wordCount: number;
252
+ };
253
+ } | {
254
+ type: "Pin";
255
+ parameters: {
256
+ /** Number of digits in the PIN. */
257
+ length: number;
258
+ };
259
+ } | {
260
+ type: "Random";
261
+ parameters: {
262
+ /** Include at least one digit in the password. */
263
+ includeDigits: boolean;
264
+ /** Include at least one symbol in the password. */
265
+ includeSymbols: boolean;
266
+ /** The length of the password. */
267
+ length: number;
268
+ };
269
+ };
270
+ export declare enum SeparatorType {
271
+ /**
272
+ * Randomly selected digits.
273
+ * E.g, "`correct4horse0battery1staple`"
274
+ */
275
+ Digits = "digits",
276
+ /**
277
+ * Randomly selected digits and symbols.
278
+ * This is useful to get word-based passwords to meet complexity requirements
279
+ * E.g, "`correct4horse-battery1staple`"
280
+ */
281
+ DigitsAndSymbols = "digitsAndSymbols",
282
+ /**
283
+ * Spaces, like the original Diceware.
284
+ * Great for mobile keyboards, not so great when people can overhear you type the password.
285
+ * E.g, "`correct horse battery staple`"
286
+ */
287
+ Spaces = "spaces",
288
+ /**
289
+ * Hyphens "`-`".
290
+ * E.g, "`correct-horse-battery-staple`"
291
+ */
292
+ Hyphens = "hyphens",
293
+ /**
294
+ * "`_`".
295
+ * E.g, "`correct_horse_battery_staple`"
296
+ */
297
+ Underscores = "underscores",
298
+ /**
299
+ * Period (full stop) "`.`".
300
+ * E.g, "`correct.horse.battery.staple`"
301
+ */
302
+ Periods = "periods",
303
+ /**
304
+ * Comma "`,`".
305
+ * E.g, "`correct,horse,battery,staple`"
306
+ */
307
+ Commas = "commas"
308
+ }
309
+ export declare enum WordListType {
310
+ /** Agile wordlist */
311
+ FullWords = "fullWords",
312
+ /** English-like syllables */
313
+ Syllables = "syllables",
314
+ /** Three (random) letter "words" */
315
+ ThreeLetters = "threeLetters"
316
+ }
package/dist/types.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /*
3
- Generated by typeshare 1.12.0
3
+ Generated by typeshare 1.13.2
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AutofillBehavior = exports.ItemFieldType = exports.ItemCategory = void 0;
6
+ exports.WordListType = exports.SeparatorType = exports.AllowedRecipientType = exports.AllowedType = exports.ItemShareDuration = exports.AutofillBehavior = exports.ItemFieldType = exports.ItemCategory = void 0;
7
7
  var ItemCategory;
8
8
  (function (ItemCategory) {
9
9
  ItemCategory["Login"] = "Login";
@@ -36,9 +36,12 @@ var ItemFieldType;
36
36
  ItemFieldType["Text"] = "Text";
37
37
  ItemFieldType["Concealed"] = "Concealed";
38
38
  ItemFieldType["CreditCardType"] = "CreditCardType";
39
+ ItemFieldType["CreditCardNumber"] = "CreditCardNumber";
39
40
  ItemFieldType["Phone"] = "Phone";
40
41
  ItemFieldType["Url"] = "Url";
41
42
  ItemFieldType["Totp"] = "Totp";
43
+ ItemFieldType["Email"] = "Email";
44
+ ItemFieldType["Reference"] = "Reference";
42
45
  ItemFieldType["Unsupported"] = "Unsupported";
43
46
  })(ItemFieldType || (exports.ItemFieldType = ItemFieldType = {}));
44
47
  /**
@@ -56,3 +59,82 @@ var AutofillBehavior;
56
59
  /** Never auto-fill on this website */
57
60
  AutofillBehavior["Never"] = "Never";
58
61
  })(AutofillBehavior || (exports.AutofillBehavior = AutofillBehavior = {}));
62
+ /** The valid duration options for sharing an item */
63
+ var ItemShareDuration;
64
+ (function (ItemShareDuration) {
65
+ /** The share will expire in one hour */
66
+ ItemShareDuration["OneHour"] = "OneHour";
67
+ /** The share will expire in one day */
68
+ ItemShareDuration["OneDay"] = "OneDay";
69
+ /** The share will expire in seven days */
70
+ ItemShareDuration["SevenDays"] = "SevenDays";
71
+ /** The share will expire in fourteen days */
72
+ ItemShareDuration["FourteenDays"] = "FourteenDays";
73
+ /** The share will expire in thirty days */
74
+ ItemShareDuration["ThirtyDays"] = "ThirtyDays";
75
+ })(ItemShareDuration || (exports.ItemShareDuration = ItemShareDuration = {}));
76
+ /** The allowed types of item sharing, enforced by account policy */
77
+ var AllowedType;
78
+ (function (AllowedType) {
79
+ /** Allows creating share links with specific recipients */
80
+ AllowedType["Authenticated"] = "Authenticated";
81
+ /** Allows creating public share links */
82
+ AllowedType["Public"] = "Public";
83
+ })(AllowedType || (exports.AllowedType = AllowedType = {}));
84
+ /** The allowed recipient types of item sharing, enforced by account policy */
85
+ var AllowedRecipientType;
86
+ (function (AllowedRecipientType) {
87
+ /** Recipients can be specified by email address */
88
+ AllowedRecipientType["Email"] = "Email";
89
+ /** Recipients can be specified by domain */
90
+ AllowedRecipientType["Domain"] = "Domain";
91
+ })(AllowedRecipientType || (exports.AllowedRecipientType = AllowedRecipientType = {}));
92
+ var SeparatorType;
93
+ (function (SeparatorType) {
94
+ /**
95
+ * Randomly selected digits.
96
+ * E.g, "`correct4horse0battery1staple`"
97
+ */
98
+ SeparatorType["Digits"] = "digits";
99
+ /**
100
+ * Randomly selected digits and symbols.
101
+ * This is useful to get word-based passwords to meet complexity requirements
102
+ * E.g, "`correct4horse-battery1staple`"
103
+ */
104
+ SeparatorType["DigitsAndSymbols"] = "digitsAndSymbols";
105
+ /**
106
+ * Spaces, like the original Diceware.
107
+ * Great for mobile keyboards, not so great when people can overhear you type the password.
108
+ * E.g, "`correct horse battery staple`"
109
+ */
110
+ SeparatorType["Spaces"] = "spaces";
111
+ /**
112
+ * Hyphens "`-`".
113
+ * E.g, "`correct-horse-battery-staple`"
114
+ */
115
+ SeparatorType["Hyphens"] = "hyphens";
116
+ /**
117
+ * "`_`".
118
+ * E.g, "`correct_horse_battery_staple`"
119
+ */
120
+ SeparatorType["Underscores"] = "underscores";
121
+ /**
122
+ * Period (full stop) "`.`".
123
+ * E.g, "`correct.horse.battery.staple`"
124
+ */
125
+ SeparatorType["Periods"] = "periods";
126
+ /**
127
+ * Comma "`,`".
128
+ * E.g, "`correct,horse,battery,staple`"
129
+ */
130
+ SeparatorType["Commas"] = "commas";
131
+ })(SeparatorType || (exports.SeparatorType = SeparatorType = {}));
132
+ var WordListType;
133
+ (function (WordListType) {
134
+ /** Agile wordlist */
135
+ WordListType["FullWords"] = "fullWords";
136
+ /** English-like syllables */
137
+ WordListType["Syllables"] = "syllables";
138
+ /** Three (random) letter "words" */
139
+ WordListType["ThreeLetters"] = "threeLetters";
140
+ })(WordListType || (exports.WordListType = WordListType = {}));
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "0.1.4";
2
- export declare const SDK_BUILD_NUMBER = "0010401";
1
+ export declare const SDK_VERSION = "0.1.6";
2
+ export declare const SDK_BUILD_NUMBER = "0010601";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_BUILD_NUMBER = exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.4";
5
- exports.SDK_BUILD_NUMBER = "0010401";
6
- const SDK_CORE_VERSION = "0.1.4";
4
+ exports.SDK_VERSION = "0.1.6";
5
+ exports.SDK_BUILD_NUMBER = "0010601";
6
+ const SDK_CORE_VERSION = "0.1.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1password/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "The 1Password JavaScript SDK offers programmatic read access to your secrets in 1Password in an interface native to JavaScript. The SDK currently supports `Node.JS`",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -26,7 +26,7 @@
26
26
  "main": "./dist/sdk.js",
27
27
  "types": "./dist/sdk.d.ts",
28
28
  "dependencies": {
29
- "@1password/sdk-core": "0.1.4"
29
+ "@1password/sdk-core": "0.1.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@1password/eslint-config": "^4.0.0",