@1password/sdk 0.1.2 → 0.1.3

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
@@ -97,7 +97,7 @@ Field types:
97
97
  - [ ] SSH public keys, fingerprint and key type
98
98
  - [x] One-time passwords
99
99
  - [x] URLs
100
- - [ ] Websites (used to suggest and autofill logins)
100
+ - [x] Websites (used to suggest and autofill logins)
101
101
  - [x] Phone numbers
102
102
  - [x] Credit card types
103
103
  - [ ] File attachments and Document items
@@ -1,6 +1,6 @@
1
1
  import { ClientAuthConfig } from "./core.js";
2
2
  export declare const LANGUAGE = "JS";
3
- export declare const VERSION = "0010200";
3
+ export declare const VERSION = "0010301";
4
4
  export interface ClientConfiguration {
5
5
  auth: Auth;
6
6
  integrationName: string;
package/dist/types.d.ts CHANGED
@@ -62,6 +62,32 @@ export interface ItemSection {
62
62
  /** The section's title */
63
63
  title: string;
64
64
  }
65
+ /**
66
+ * Controls the auto-fill behavior of a website.
67
+ *
68
+ *
69
+ * For more information, visit https://support.1password.com/autofill-behavior/
70
+ */
71
+ export declare enum AutofillBehavior {
72
+ /** Auto-fill any page that’s part of the website, including subdomains */
73
+ AnywhereOnWebsite = "AnywhereOnWebsite",
74
+ /** Auto-fill only if the domain (hostname and port) is an exact match. */
75
+ ExactDomain = "ExactDomain",
76
+ /** Never auto-fill on this website */
77
+ Never = "Never"
78
+ }
79
+ export interface Website {
80
+ /** The website URL */
81
+ url: string;
82
+ /** The label of the website, e.g. 'website', 'sign-in address' */
83
+ label: string;
84
+ /**
85
+ * The auto-fill behavior of the website
86
+ *
87
+ * For more information, visit https://support.1password.com/autofill-behavior/
88
+ */
89
+ autofillBehavior: AutofillBehavior;
90
+ }
65
91
  /** Represents a 1Password item. */
66
92
  export interface Item {
67
93
  /** The item's ID */
@@ -78,6 +104,8 @@ export interface Item {
78
104
  sections: ItemSection[];
79
105
  /** The item's tags */
80
106
  tags: string[];
107
+ /** The websites used for autofilling for items of the Login and Password categories. */
108
+ websites: Website[];
81
109
  /** The item's version */
82
110
  version: number;
83
111
  }
@@ -94,6 +122,8 @@ export interface ItemCreateParams {
94
122
  sections?: ItemSection[];
95
123
  /** The item's tags */
96
124
  tags?: string[];
125
+ /** The websites used for autofilling for items of the Login and Password categories. */
126
+ websites?: Website[];
97
127
  }
98
128
  /** Represents a decrypted 1Password item. */
99
129
  export interface ItemOverview {
@@ -105,6 +135,8 @@ export interface ItemOverview {
105
135
  category: ItemCategory;
106
136
  /** The ID of the vault where the item is saved */
107
137
  vaultId: string;
138
+ /** The websites used for autofilling for items of the Login and Password categories. */
139
+ websites: Website[];
108
140
  }
109
141
  /** Additional attributes for OTP fields. */
110
142
  export interface OtpFieldDetails {
package/dist/types.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Generated by typeshare 1.11.0
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ItemFieldType = exports.ItemCategory = void 0;
6
+ exports.AutofillBehavior = exports.ItemFieldType = exports.ItemCategory = void 0;
7
7
  var ItemCategory;
8
8
  (function (ItemCategory) {
9
9
  ItemCategory["Login"] = "Login";
@@ -41,3 +41,18 @@ var ItemFieldType;
41
41
  ItemFieldType["Totp"] = "Totp";
42
42
  ItemFieldType["Unsupported"] = "Unsupported";
43
43
  })(ItemFieldType || (exports.ItemFieldType = ItemFieldType = {}));
44
+ /**
45
+ * Controls the auto-fill behavior of a website.
46
+ *
47
+ *
48
+ * For more information, visit https://support.1password.com/autofill-behavior/
49
+ */
50
+ var AutofillBehavior;
51
+ (function (AutofillBehavior) {
52
+ /** Auto-fill any page that’s part of the website, including subdomains */
53
+ AutofillBehavior["AnywhereOnWebsite"] = "AnywhereOnWebsite";
54
+ /** Auto-fill only if the domain (hostname and port) is an exact match. */
55
+ AutofillBehavior["ExactDomain"] = "ExactDomain";
56
+ /** Never auto-fill on this website */
57
+ AutofillBehavior["Never"] = "Never";
58
+ })(AutofillBehavior || (exports.AutofillBehavior = AutofillBehavior = {}));
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "0.1.2";
2
- export declare const SDK_BUILD_NUMBER = "0010200";
1
+ export declare const SDK_VERSION = "0.1.3";
2
+ export declare const SDK_BUILD_NUMBER = "0010301";
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.2";
5
- exports.SDK_BUILD_NUMBER = "0010200";
6
- const SDK_CORE_VERSION = "0.1.2";
4
+ exports.SDK_VERSION = "0.1.3";
5
+ exports.SDK_BUILD_NUMBER = "0010301";
6
+ const SDK_CORE_VERSION = "0.1.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1password/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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.2"
29
+ "@1password/sdk-core": "0.1.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@1password/eslint-config": "^4.0.0",