@onkernel/sdk 0.113.0 → 0.115.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.
- package/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +113 -1
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +113 -1
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/browser-pools.d.mts +45 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +45 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +32 -2
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +32 -2
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +17 -1
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +17 -1
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/search/contents.d.mts +85 -56
- package/resources/search/contents.d.mts.map +1 -1
- package/resources/search/contents.d.ts +85 -56
- package/resources/search/contents.d.ts.map +1 -1
- package/resources/search/contents.js +13 -10
- package/resources/search/contents.js.map +1 -1
- package/resources/search/contents.mjs +13 -10
- package/resources/search/contents.mjs.map +1 -1
- package/resources/search/search.d.mts +65 -51
- package/resources/search/search.d.mts.map +1 -1
- package/resources/search/search.d.ts +65 -51
- package/resources/search/search.d.ts.map +1 -1
- package/resources/search/search.js.map +1 -1
- package/resources/search/search.mjs.map +1 -1
- package/resources/vault-provider-configs.d.mts +18 -0
- package/resources/vault-provider-configs.d.mts.map +1 -1
- package/resources/vault-provider-configs.d.ts +18 -0
- package/resources/vault-provider-configs.d.ts.map +1 -1
- package/resources/vault-provider-configs.js +1 -0
- package/resources/vault-provider-configs.js.map +1 -1
- package/resources/vault-provider-configs.mjs +1 -0
- package/resources/vault-provider-configs.mjs.map +1 -1
- package/resources/vaults/index.d.mts +1 -1
- package/resources/vaults/index.d.mts.map +1 -1
- package/resources/vaults/index.d.ts +1 -1
- package/resources/vaults/index.d.ts.map +1 -1
- package/resources/vaults/index.js.map +1 -1
- package/resources/vaults/index.mjs.map +1 -1
- package/resources/vaults/items.d.mts +573 -72
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +573 -72
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/vaults.d.mts +2 -2
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +2 -2
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/resources/auth/connections.ts +128 -1
- package/src/resources/browser-pools.ts +51 -0
- package/src/resources/browsers/browsers.ts +36 -0
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/browsers/telemetry.ts +19 -0
- package/src/resources/search/contents.ts +86 -62
- package/src/resources/search/search.ts +65 -51
- package/src/resources/vault-provider-configs.ts +21 -0
- package/src/resources/vaults/index.ts +15 -0
- package/src/resources/vaults/items.ts +787 -70
- package/src/resources/vaults/vaults.ts +30 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -569,6 +569,75 @@ export interface CollectVaultItemOperationRequest {
|
|
|
569
569
|
type: 'collect';
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
+
export interface CredentialAccountVaultItem {
|
|
573
|
+
id: string;
|
|
574
|
+
|
|
575
|
+
available_expansions: Array<CredentialAccountVaultItem.AvailableExpansion>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Advertises 1pw_recover when Kernel can recover a failed account link. Recovery
|
|
579
|
+
* is unavailable while authorization is pending or after the connection has
|
|
580
|
+
* already been reset.
|
|
581
|
+
*/
|
|
582
|
+
available_operations: Array<CredentialAccountVaultItem.AvailableOperation>;
|
|
583
|
+
|
|
584
|
+
created_at: string;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Immutable item key assigned when the item is created.
|
|
588
|
+
*/
|
|
589
|
+
key: string;
|
|
590
|
+
|
|
591
|
+
spec: OnePasswordCredentialAccountSpec;
|
|
592
|
+
|
|
593
|
+
state: OnePasswordCredentialAccountState;
|
|
594
|
+
|
|
595
|
+
type: 'credential_account';
|
|
596
|
+
|
|
597
|
+
updated_at: string;
|
|
598
|
+
|
|
599
|
+
action?: OnePasswordOAuthAction;
|
|
600
|
+
|
|
601
|
+
expires_at?: string;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export namespace CredentialAccountVaultItem {
|
|
605
|
+
/**
|
|
606
|
+
* Live data that can currently be requested by passing its type to the item GET
|
|
607
|
+
* expand parameter.
|
|
608
|
+
*/
|
|
609
|
+
export interface AvailableExpansion {
|
|
610
|
+
description: string;
|
|
611
|
+
|
|
612
|
+
type: 'payment_methods';
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* An operation that is currently valid for this item. Read the description before
|
|
617
|
+
* invoking it through the item operations endpoint.
|
|
618
|
+
*/
|
|
619
|
+
export interface AvailableOperation {
|
|
620
|
+
description: string;
|
|
621
|
+
|
|
622
|
+
type:
|
|
623
|
+
| 'authorize'
|
|
624
|
+
| 'collect'
|
|
625
|
+
| 'prepare_checkout'
|
|
626
|
+
| 'fill'
|
|
627
|
+
| '1pw_create_access_request'
|
|
628
|
+
| '1pw_access_request_status'
|
|
629
|
+
| '1pw_fill'
|
|
630
|
+
| '1pw_recover'
|
|
631
|
+
| '1pw_update_access_token';
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export interface CredentialAccountVaultItemRequest {
|
|
636
|
+
spec: OnePasswordCredentialAccountSpec;
|
|
637
|
+
|
|
638
|
+
type: 'credential_account';
|
|
639
|
+
}
|
|
640
|
+
|
|
572
641
|
/**
|
|
573
642
|
* One schema-derived form for the item, available in ready or pending_collection
|
|
574
643
|
* state. Render every form-supported field as editable; omit totp fields and
|
|
@@ -736,8 +805,10 @@ export interface CredentialVaultItem {
|
|
|
736
805
|
available_expansions: Array<CredentialVaultItem.AvailableExpansion>;
|
|
737
806
|
|
|
738
807
|
/**
|
|
739
|
-
*
|
|
740
|
-
*
|
|
808
|
+
* Kernel credentials advertise collect and fill when eligible. 1Password
|
|
809
|
+
* credentials advertise 1pw_create_access_request until a request is made,
|
|
810
|
+
* 1pw_access_request_status while its approval is pending, and 1pw_fill after
|
|
811
|
+
* access is granted.
|
|
741
812
|
*/
|
|
742
813
|
available_operations: Array<CredentialVaultItem.AvailableOperation>;
|
|
743
814
|
|
|
@@ -748,6 +819,10 @@ export interface CredentialVaultItem {
|
|
|
748
819
|
*/
|
|
749
820
|
key: string;
|
|
750
821
|
|
|
822
|
+
/**
|
|
823
|
+
* Stored-token credentials omit account and never return access_token or
|
|
824
|
+
* integration_key.
|
|
825
|
+
*/
|
|
751
826
|
spec: CredentialVaultItemSpec;
|
|
752
827
|
|
|
753
828
|
state: CredentialVaultItemState;
|
|
@@ -789,7 +864,7 @@ export interface CredentialVaultItem {
|
|
|
789
864
|
* authenticate the customer's end users. Treat URLs and submitted values as
|
|
790
865
|
* secrets and exclude them from logs, traces, and errors.
|
|
791
866
|
*/
|
|
792
|
-
action?: CredentialCollectionAction;
|
|
867
|
+
action?: CredentialCollectionAction | CredentialVaultItem.OnePasswordAccessApprovalAction;
|
|
793
868
|
}
|
|
794
869
|
|
|
795
870
|
export namespace CredentialVaultItem {
|
|
@@ -810,23 +885,47 @@ export namespace CredentialVaultItem {
|
|
|
810
885
|
export interface AvailableOperation {
|
|
811
886
|
description: string;
|
|
812
887
|
|
|
813
|
-
type:
|
|
888
|
+
type:
|
|
889
|
+
| 'authorize'
|
|
890
|
+
| 'collect'
|
|
891
|
+
| 'prepare_checkout'
|
|
892
|
+
| 'fill'
|
|
893
|
+
| '1pw_create_access_request'
|
|
894
|
+
| '1pw_access_request_status'
|
|
895
|
+
| '1pw_fill'
|
|
896
|
+
| '1pw_recover'
|
|
897
|
+
| '1pw_update_access_token';
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface OnePasswordAccessApprovalAction {
|
|
901
|
+
/**
|
|
902
|
+
* Steps for the agent to hand approval to the human and poll the resulting
|
|
903
|
+
* decision.
|
|
904
|
+
*/
|
|
905
|
+
instructions: string;
|
|
906
|
+
|
|
907
|
+
name: '1password_access_approval';
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Native 1Password approval link. Present it to the account owner without
|
|
911
|
+
* modifying it; it does not grant access until they approve in their app.
|
|
912
|
+
*/
|
|
913
|
+
url: string;
|
|
814
914
|
}
|
|
815
915
|
}
|
|
816
916
|
|
|
817
917
|
/**
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
* collect it. Optional totp fields may be unset and populated later through PATCH.
|
|
918
|
+
* Ask the end-user whether to link their site credential through 1Password. If
|
|
919
|
+
* they choose 1Password, connect their account and request access to a login in
|
|
920
|
+
* their own non-shared vault; passkeys are not supported. If they decline or that
|
|
921
|
+
* path fails, collect a Kernel-hosted credential item instead. Never automatically
|
|
922
|
+
* retry an uncertain 1Password request or fill. Do not use credential items for
|
|
923
|
+
* credit card data. Use wallet and card item types instead. Kernel credentials
|
|
924
|
+
* declare fields and may enter pending_collection. 1Password credentials either
|
|
925
|
+
* reference a connected credential_account or store a supplied access token and
|
|
926
|
+
* integration key encrypted on the item. They store no login values or selectors.
|
|
927
|
+
* Repeating the original creation request returns the current item without
|
|
928
|
+
* overwriting later state. A different request at the same key returns 409.
|
|
830
929
|
*/
|
|
831
930
|
export interface CredentialVaultItemRequest {
|
|
832
931
|
/**
|
|
@@ -841,19 +940,11 @@ export interface CredentialVaultItemRequest {
|
|
|
841
940
|
type: 'credential';
|
|
842
941
|
}
|
|
843
942
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Recognizable site or service name displayed verbatim as the form title, without
|
|
852
|
-
* suffixes such as sign-in credentials. Display text only, not an enforced
|
|
853
|
-
* destination policy.
|
|
854
|
-
*/
|
|
855
|
-
description?: string;
|
|
856
|
-
}
|
|
943
|
+
/**
|
|
944
|
+
* Stored-token credentials omit account and never return access_token or
|
|
945
|
+
* integration_key.
|
|
946
|
+
*/
|
|
947
|
+
export type CredentialVaultItemSpec = KernelCredentialVaultItemSpec | OnePasswordCredentialVaultItemSpec;
|
|
857
948
|
|
|
858
949
|
/**
|
|
859
950
|
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
@@ -862,21 +953,9 @@ export interface CredentialVaultItemSpec {
|
|
|
862
953
|
* the user-facing collection form, so list fields in the same top-to-bottom order
|
|
863
954
|
* as the website.
|
|
864
955
|
*/
|
|
865
|
-
export
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
* collection form renders this order unchanged.
|
|
869
|
-
*/
|
|
870
|
-
fields: Array<CredentialVaultFieldInput>;
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* The site's recognizable display name, used verbatim as the user-facing form
|
|
874
|
-
* title (for example, Hacker News). Use only the site or service name; do not
|
|
875
|
-
* append sign-in, login, credentials, or task instructions. This is display text,
|
|
876
|
-
* not an enforced destination policy. At most 16 KiB in UTF-8 bytes.
|
|
877
|
-
*/
|
|
878
|
-
description?: string;
|
|
879
|
-
}
|
|
956
|
+
export type CredentialVaultItemSpecInput =
|
|
957
|
+
| KernelCredentialVaultItemSpecInput
|
|
958
|
+
| OnePasswordCredentialVaultItemSpecInput;
|
|
880
959
|
|
|
881
960
|
export interface CredentialVaultItemSpecUpdate {
|
|
882
961
|
/**
|
|
@@ -889,18 +968,7 @@ export interface CredentialVaultItemSpecUpdate {
|
|
|
889
968
|
fields?: { [key: string]: CredentialVaultFieldUpdate };
|
|
890
969
|
}
|
|
891
970
|
|
|
892
|
-
export
|
|
893
|
-
/**
|
|
894
|
-
* Exactly one entry for each declared field.
|
|
895
|
-
*/
|
|
896
|
-
fields: { [key: string]: CredentialVaultFieldState };
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Ready means all required fields have values, not that a login succeeded.
|
|
900
|
-
* Optional fields may remain unset.
|
|
901
|
-
*/
|
|
902
|
-
status: 'pending_collection' | 'ready';
|
|
903
|
-
}
|
|
971
|
+
export type CredentialVaultItemState = KernelCredentialVaultItemState | OnePasswordCredentialVaultItemState;
|
|
904
972
|
|
|
905
973
|
/**
|
|
906
974
|
* Atomically update description and selected values. Omitted properties are
|
|
@@ -1006,6 +1074,452 @@ export interface FillVaultItemOperationResult {
|
|
|
1006
1074
|
type: 'fill';
|
|
1007
1075
|
}
|
|
1008
1076
|
|
|
1077
|
+
export interface KernelCredentialVaultItemSpec {
|
|
1078
|
+
/**
|
|
1079
|
+
* Ordered field definitions rendered in this order by credential collection forms.
|
|
1080
|
+
*/
|
|
1081
|
+
fields: Array<CredentialVaultFieldDefinition>;
|
|
1082
|
+
|
|
1083
|
+
provider: 'kernel';
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Recognizable site or service name displayed verbatim as the form title, without
|
|
1087
|
+
* suffixes such as sign-in credentials. Display text only, not an enforced
|
|
1088
|
+
* destination policy.
|
|
1089
|
+
*/
|
|
1090
|
+
description?: string;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
1095
|
+
* collect, or fill credit card data in credential items. Use wallet and card item
|
|
1096
|
+
* types for credit cards and payment checkout instead. Field order is preserved in
|
|
1097
|
+
* the user-facing collection form, so list fields in the same top-to-bottom order
|
|
1098
|
+
* as the website.
|
|
1099
|
+
*/
|
|
1100
|
+
export interface KernelCredentialVaultItemSpecInput {
|
|
1101
|
+
/**
|
|
1102
|
+
* Ordered field definitions. Use the website's top-to-bottom field order; the
|
|
1103
|
+
* collection form renders this order unchanged.
|
|
1104
|
+
*/
|
|
1105
|
+
fields: Array<CredentialVaultFieldInput>;
|
|
1106
|
+
|
|
1107
|
+
provider: 'kernel';
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* The site's recognizable display name, used verbatim as the user-facing form
|
|
1111
|
+
* title (for example, Hacker News). Use only the site or service name; do not
|
|
1112
|
+
* append sign-in, login, credentials, or task instructions. This is display text,
|
|
1113
|
+
* not an enforced destination policy. At most 16 KiB in UTF-8 bytes.
|
|
1114
|
+
*/
|
|
1115
|
+
description?: string;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export interface KernelCredentialVaultItemState {
|
|
1119
|
+
/**
|
|
1120
|
+
* Exactly one entry for each declared field.
|
|
1121
|
+
*/
|
|
1122
|
+
fields: { [key: string]: CredentialVaultFieldState };
|
|
1123
|
+
|
|
1124
|
+
provider: 'kernel';
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Ready means all required fields have values, not that a login succeeded.
|
|
1128
|
+
* Optional fields may remain unset.
|
|
1129
|
+
*/
|
|
1130
|
+
status: 'pending_collection' | 'ready';
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export interface OnePasswordCredentialAccountSpec {
|
|
1134
|
+
authorization: OnePasswordCredentialAccountSpec.Authorization;
|
|
1135
|
+
|
|
1136
|
+
provider: '1password';
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export namespace OnePasswordCredentialAccountSpec {
|
|
1140
|
+
export interface Authorization {
|
|
1141
|
+
client: Authorization.Client;
|
|
1142
|
+
|
|
1143
|
+
method: 'oauth';
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export namespace Authorization {
|
|
1147
|
+
export interface Client {
|
|
1148
|
+
type: 'kernel_managed';
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export interface OnePasswordCredentialAccountState {
|
|
1154
|
+
provider: '1password';
|
|
1155
|
+
|
|
1156
|
+
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'declined';
|
|
1157
|
+
|
|
1158
|
+
status_reason?: string;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Stored-token credentials omit account and never return access_token or
|
|
1163
|
+
* integration_key.
|
|
1164
|
+
*/
|
|
1165
|
+
export interface OnePasswordCredentialVaultItemSpec {
|
|
1166
|
+
provider: '1password';
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Credential Request v2 input sent to the extension. A credential item may request
|
|
1170
|
+
* up to five login entries.
|
|
1171
|
+
*/
|
|
1172
|
+
requests: OnePasswordCredentialVaultItemSpec.Requests;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Customer-supplied expiry metadata, if provided.
|
|
1176
|
+
*/
|
|
1177
|
+
access_token_expires_at?: string;
|
|
1178
|
+
|
|
1179
|
+
account?: string;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
export namespace OnePasswordCredentialVaultItemSpec {
|
|
1183
|
+
/**
|
|
1184
|
+
* Credential Request v2 input sent to the extension. A credential item may request
|
|
1185
|
+
* up to five login entries.
|
|
1186
|
+
*/
|
|
1187
|
+
export interface Requests {
|
|
1188
|
+
entries: Array<Requests.Entry>;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Must be 2.
|
|
1192
|
+
*/
|
|
1193
|
+
version: number;
|
|
1194
|
+
|
|
1195
|
+
goal?: string;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export namespace Requests {
|
|
1199
|
+
export interface Entry {
|
|
1200
|
+
parameters: Entry.Parameters;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Must be login.
|
|
1204
|
+
*/
|
|
1205
|
+
type: string;
|
|
1206
|
+
|
|
1207
|
+
keywords?: Array<string>;
|
|
1208
|
+
|
|
1209
|
+
reason?: string;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
export namespace Entry {
|
|
1213
|
+
export interface Parameters {
|
|
1214
|
+
website: string;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* A login request backed by a connected 1Password account or by a
|
|
1222
|
+
* customer-supplied access token and matching integration key. Supply either
|
|
1223
|
+
* account or both secrets, never both. Supplied secrets are write-only and never
|
|
1224
|
+
* returned. Supply requests for new items; website remains supported for existing
|
|
1225
|
+
* account-backed callers.
|
|
1226
|
+
*/
|
|
1227
|
+
export interface OnePasswordCredentialVaultItemSpecInput {
|
|
1228
|
+
provider: '1password';
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Customer-supplied 1Password broker token. Requires integration_key; stored
|
|
1232
|
+
* encrypted on this item. Omit if providing a connected credential_account item
|
|
1233
|
+
* via the account field.
|
|
1234
|
+
*/
|
|
1235
|
+
access_token?: string;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Optional supplied token expiry metadata for stored-token credentials. Omit if
|
|
1239
|
+
* providing a connected credential_account item via the account field.
|
|
1240
|
+
*/
|
|
1241
|
+
access_token_expires_at?: string;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Key of a connected credential_account item in the same vault. Omit for
|
|
1245
|
+
* stored-token credentials.
|
|
1246
|
+
*/
|
|
1247
|
+
account?: string;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Matching customer-supplied integration key. Requires access_token; stored
|
|
1251
|
+
* encrypted on this item. Omit if providing a connected credential_account item
|
|
1252
|
+
* via the account field.
|
|
1253
|
+
*/
|
|
1254
|
+
integration_key?: string;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Credential Request v2 input sent to the extension. A credential item may request
|
|
1258
|
+
* up to five login entries.
|
|
1259
|
+
*/
|
|
1260
|
+
requests?: OnePasswordCredentialVaultItemSpecInput.Requests;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* @deprecated Legacy single-login shorthand. Supply requests instead.
|
|
1264
|
+
*/
|
|
1265
|
+
website?: string;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
export namespace OnePasswordCredentialVaultItemSpecInput {
|
|
1269
|
+
/**
|
|
1270
|
+
* Credential Request v2 input sent to the extension. A credential item may request
|
|
1271
|
+
* up to five login entries.
|
|
1272
|
+
*/
|
|
1273
|
+
export interface Requests {
|
|
1274
|
+
entries: Array<Requests.Entry>;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Must be 2.
|
|
1278
|
+
*/
|
|
1279
|
+
version: number;
|
|
1280
|
+
|
|
1281
|
+
goal?: string;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export namespace Requests {
|
|
1285
|
+
export interface Entry {
|
|
1286
|
+
parameters: Entry.Parameters;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Must be login.
|
|
1290
|
+
*/
|
|
1291
|
+
type: string;
|
|
1292
|
+
|
|
1293
|
+
keywords?: Array<string>;
|
|
1294
|
+
|
|
1295
|
+
reason?: string;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
export namespace Entry {
|
|
1299
|
+
export interface Parameters {
|
|
1300
|
+
website: string;
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export interface OnePasswordCredentialVaultItemState {
|
|
1307
|
+
provider: '1password';
|
|
1308
|
+
|
|
1309
|
+
status: 'pending_authorization' | 'ready' | 'declined' | 'failed';
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* Non-secret broker state. Granted credential references stay encrypted
|
|
1313
|
+
* server-side and can only be used by the fill operation.
|
|
1314
|
+
*/
|
|
1315
|
+
access_request?: OnePasswordCredentialVaultItemState.AccessRequest;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Opaque request ID returned by the 1Password broker after a successful
|
|
1319
|
+
* createAccessRequest call.
|
|
1320
|
+
*/
|
|
1321
|
+
access_request_id?: string;
|
|
1322
|
+
|
|
1323
|
+
status_reason?: string;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
export namespace OnePasswordCredentialVaultItemState {
|
|
1327
|
+
/**
|
|
1328
|
+
* Non-secret broker state. Granted credential references stay encrypted
|
|
1329
|
+
* server-side and can only be used by the fill operation.
|
|
1330
|
+
*/
|
|
1331
|
+
export interface AccessRequest {
|
|
1332
|
+
id: string;
|
|
1333
|
+
|
|
1334
|
+
has_autofill_token: boolean;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* One of pending, resolved, denied, or failed.
|
|
1338
|
+
*/
|
|
1339
|
+
state: string;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Provider-created timestamp as returned by the broker.
|
|
1343
|
+
*/
|
|
1344
|
+
createdAt?: string;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Login entries returned directly on accessRequest by the observed extension
|
|
1348
|
+
* build. Omitted when the provider does not supply them.
|
|
1349
|
+
*/
|
|
1350
|
+
entries?: Array<AccessRequest.Entry>;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Goal echoed by the observed createAccessRequest response when present.
|
|
1354
|
+
*/
|
|
1355
|
+
goal?: string;
|
|
1356
|
+
|
|
1357
|
+
granted_count?: number;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Opaque provider identity returned by the broker.
|
|
1361
|
+
*/
|
|
1362
|
+
identity?: string;
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Provider path if supplied in the broker response.
|
|
1366
|
+
*/
|
|
1367
|
+
path?: string;
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* The request object if returned by the extension. The observed create response
|
|
1371
|
+
* may omit entries; no entry IDs are invented.
|
|
1372
|
+
*/
|
|
1373
|
+
request?: AccessRequest.Request;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
export namespace AccessRequest {
|
|
1377
|
+
export interface Entry {
|
|
1378
|
+
id?: string;
|
|
1379
|
+
|
|
1380
|
+
keywords?: Array<string>;
|
|
1381
|
+
|
|
1382
|
+
parameters?: Entry.Parameters;
|
|
1383
|
+
|
|
1384
|
+
reason?: string;
|
|
1385
|
+
|
|
1386
|
+
type?: string;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
export namespace Entry {
|
|
1390
|
+
export interface Parameters {
|
|
1391
|
+
website?: string;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* The request object if returned by the extension. The observed create response
|
|
1397
|
+
* may omit entries; no entry IDs are invented.
|
|
1398
|
+
*/
|
|
1399
|
+
export interface Request {
|
|
1400
|
+
entries?: Array<Request.Entry>;
|
|
1401
|
+
|
|
1402
|
+
goal?: string;
|
|
1403
|
+
|
|
1404
|
+
version?: number;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export namespace Request {
|
|
1408
|
+
export interface Entry {
|
|
1409
|
+
id?: string;
|
|
1410
|
+
|
|
1411
|
+
keywords?: Array<string>;
|
|
1412
|
+
|
|
1413
|
+
parameters?: Entry.Parameters;
|
|
1414
|
+
|
|
1415
|
+
reason?: string;
|
|
1416
|
+
|
|
1417
|
+
type?: string;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export namespace Entry {
|
|
1421
|
+
export interface Parameters {
|
|
1422
|
+
website?: string;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Fill and submit an approved 1Password login in the selected browser page. The
|
|
1431
|
+
* page must share the selected entry's login origin. Supply entry_id when more
|
|
1432
|
+
* than one approved entry matches the page origin. The extension selects fields;
|
|
1433
|
+
* callers cannot supply selectors or secret values. Submission does not confirm
|
|
1434
|
+
* website authentication.
|
|
1435
|
+
*/
|
|
1436
|
+
export interface OnePasswordFillVaultItemOperationRequest {
|
|
1437
|
+
/**
|
|
1438
|
+
* Browser session ID, not a reusable browser name.
|
|
1439
|
+
*/
|
|
1440
|
+
browser_id: string;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Exact current top-level page URL. Must match exactly one open page in the
|
|
1444
|
+
* browser.
|
|
1445
|
+
*/
|
|
1446
|
+
page_url: string;
|
|
1447
|
+
|
|
1448
|
+
type: '1pw_fill';
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* ID of an approved request entry. Required when several approved entries have the
|
|
1452
|
+
* page's origin.
|
|
1453
|
+
*/
|
|
1454
|
+
entry_id?: string;
|
|
1455
|
+
|
|
1456
|
+
timeout_ms?: number;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
/**
|
|
1460
|
+
* The submission result reported by the 1Password extension when available. Kernel
|
|
1461
|
+
* returns fill_unknown if the extension call has no conclusive result. Inspect the
|
|
1462
|
+
* page to determine successful authentication on the website.
|
|
1463
|
+
*/
|
|
1464
|
+
export interface OnePasswordFillVaultItemOperationResult {
|
|
1465
|
+
/**
|
|
1466
|
+
* Kernel's outcome of the extension call. fill_submitted means the extension
|
|
1467
|
+
* reported submission, not website authentication. fill_failed means the extension
|
|
1468
|
+
* returned a known failure and may include error_code. fill_unknown means
|
|
1469
|
+
* submission may have happened without a conclusive response; it has no error_code
|
|
1470
|
+
* and must not be retried in the same browser.
|
|
1471
|
+
*/
|
|
1472
|
+
status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
|
|
1473
|
+
|
|
1474
|
+
type: '1pw_fill';
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Present only for a conclusive fill_failed response. These are allowlisted
|
|
1478
|
+
* 1Password extension codes, never raw errors, secrets, or page content.
|
|
1479
|
+
*/
|
|
1480
|
+
error_code?: 'fillFailed' | 'autosubmitFailed' | 'noExistingCredentials' | 'authenticationFailed';
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
export interface OnePasswordOAuthAction {
|
|
1484
|
+
name: '1password_oauth';
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* 1Password-hosted OAuth authorization URL for the human to open.
|
|
1488
|
+
*/
|
|
1489
|
+
url: string;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Kernel encountered a recoverable error while linking this 1Password account. Use
|
|
1494
|
+
* this action to get a new link to recover the connection. After recovery
|
|
1495
|
+
* completes, start a new authorization on the same item.
|
|
1496
|
+
*/
|
|
1497
|
+
export interface OnePasswordRecoverVaultItemOperationRequest {
|
|
1498
|
+
type: '1pw_recover';
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Request access to login entries in the end-user's own, non-shared 1Password
|
|
1503
|
+
* vault through the browser extension, auto-loaded into the browser. The end-user
|
|
1504
|
+
* approves access in the 1Password app. Shared-vault items and passkeys are not
|
|
1505
|
+
* supported. Per-entry reason and keywords overrides are only supported for a
|
|
1506
|
+
* single login entry.
|
|
1507
|
+
*/
|
|
1508
|
+
export interface OnePasswordRequestAccessVaultItemOperationRequest {
|
|
1509
|
+
/**
|
|
1510
|
+
* Kernel browser session used to invoke the extension.
|
|
1511
|
+
*/
|
|
1512
|
+
browser_id: string;
|
|
1513
|
+
|
|
1514
|
+
type: '1pw_create_access_request';
|
|
1515
|
+
|
|
1516
|
+
goal?: string;
|
|
1517
|
+
|
|
1518
|
+
keywords?: Array<string>;
|
|
1519
|
+
|
|
1520
|
+
reason?: string;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1009
1523
|
/**
|
|
1010
1524
|
* Prepare an unused AgentCard card for a supported checkout. Deliver the returned
|
|
1011
1525
|
* approval URL and keep the approval page open. Poll the item until
|
|
@@ -1171,7 +1685,11 @@ export interface VaultFillFieldResult {
|
|
|
1171
1685
|
| 'execution_failed';
|
|
1172
1686
|
}
|
|
1173
1687
|
|
|
1174
|
-
export type VaultItem =
|
|
1688
|
+
export type VaultItem =
|
|
1689
|
+
| VaultItem.WalletVaultItem
|
|
1690
|
+
| VaultItem.CardVaultItem
|
|
1691
|
+
| CredentialAccountVaultItem
|
|
1692
|
+
| CredentialVaultItem;
|
|
1175
1693
|
|
|
1176
1694
|
export namespace VaultItem {
|
|
1177
1695
|
export interface WalletVaultItem {
|
|
@@ -1232,7 +1750,16 @@ export namespace VaultItem {
|
|
|
1232
1750
|
export interface AvailableOperation {
|
|
1233
1751
|
description: string;
|
|
1234
1752
|
|
|
1235
|
-
type:
|
|
1753
|
+
type:
|
|
1754
|
+
| 'authorize'
|
|
1755
|
+
| 'collect'
|
|
1756
|
+
| 'prepare_checkout'
|
|
1757
|
+
| 'fill'
|
|
1758
|
+
| '1pw_create_access_request'
|
|
1759
|
+
| '1pw_access_request_status'
|
|
1760
|
+
| '1pw_fill'
|
|
1761
|
+
| '1pw_recover'
|
|
1762
|
+
| '1pw_update_access_token';
|
|
1236
1763
|
}
|
|
1237
1764
|
|
|
1238
1765
|
/**
|
|
@@ -1295,13 +1822,23 @@ export namespace VaultItem {
|
|
|
1295
1822
|
export interface AvailableOperation {
|
|
1296
1823
|
description: string;
|
|
1297
1824
|
|
|
1298
|
-
type:
|
|
1825
|
+
type:
|
|
1826
|
+
| 'authorize'
|
|
1827
|
+
| 'collect'
|
|
1828
|
+
| 'prepare_checkout'
|
|
1829
|
+
| 'fill'
|
|
1830
|
+
| '1pw_create_access_request'
|
|
1831
|
+
| '1pw_access_request_status'
|
|
1832
|
+
| '1pw_fill'
|
|
1833
|
+
| '1pw_recover'
|
|
1834
|
+
| '1pw_update_access_token';
|
|
1299
1835
|
}
|
|
1300
1836
|
}
|
|
1301
1837
|
}
|
|
1302
1838
|
|
|
1303
1839
|
export type VaultItemAction =
|
|
1304
1840
|
| VaultItemAction.LinkOAuthAction
|
|
1841
|
+
| OnePasswordOAuthAction
|
|
1305
1842
|
| VaultItemAction.SpendApprovalAction
|
|
1306
1843
|
| VaultItemAction.PushApprovalAction
|
|
1307
1844
|
| VaultItemAction.CollectAction
|
|
@@ -1361,15 +1898,17 @@ export interface VaultItemEvent {
|
|
|
1361
1898
|
}
|
|
1362
1899
|
|
|
1363
1900
|
/**
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
1901
|
+
* The submission result reported by the 1Password extension when available. Kernel
|
|
1902
|
+
* returns fill_unknown if the extension call has no conclusive result. Inspect the
|
|
1903
|
+
* page to determine successful authentication on the website.
|
|
1367
1904
|
*/
|
|
1368
1905
|
export type VaultItemOperationResponse =
|
|
1369
1906
|
| VaultItemOperationResponse.WalletVaultItem
|
|
1370
1907
|
| VaultItemOperationResponse.CardVaultItem
|
|
1908
|
+
| CredentialAccountVaultItem
|
|
1371
1909
|
| CredentialVaultItem
|
|
1372
|
-
| FillVaultItemOperationResult
|
|
1910
|
+
| FillVaultItemOperationResult
|
|
1911
|
+
| OnePasswordFillVaultItemOperationResult;
|
|
1373
1912
|
|
|
1374
1913
|
export namespace VaultItemOperationResponse {
|
|
1375
1914
|
export interface WalletVaultItem {
|
|
@@ -1430,7 +1969,16 @@ export namespace VaultItemOperationResponse {
|
|
|
1430
1969
|
export interface AvailableOperation {
|
|
1431
1970
|
description: string;
|
|
1432
1971
|
|
|
1433
|
-
type:
|
|
1972
|
+
type:
|
|
1973
|
+
| 'authorize'
|
|
1974
|
+
| 'collect'
|
|
1975
|
+
| 'prepare_checkout'
|
|
1976
|
+
| 'fill'
|
|
1977
|
+
| '1pw_create_access_request'
|
|
1978
|
+
| '1pw_access_request_status'
|
|
1979
|
+
| '1pw_fill'
|
|
1980
|
+
| '1pw_recover'
|
|
1981
|
+
| '1pw_update_access_token';
|
|
1434
1982
|
}
|
|
1435
1983
|
|
|
1436
1984
|
/**
|
|
@@ -1493,7 +2041,16 @@ export namespace VaultItemOperationResponse {
|
|
|
1493
2041
|
export interface AvailableOperation {
|
|
1494
2042
|
description: string;
|
|
1495
2043
|
|
|
1496
|
-
type:
|
|
2044
|
+
type:
|
|
2045
|
+
| 'authorize'
|
|
2046
|
+
| 'collect'
|
|
2047
|
+
| 'prepare_checkout'
|
|
2048
|
+
| 'fill'
|
|
2049
|
+
| '1pw_create_access_request'
|
|
2050
|
+
| '1pw_access_request_status'
|
|
2051
|
+
| '1pw_fill'
|
|
2052
|
+
| '1pw_recover'
|
|
2053
|
+
| '1pw_update_access_token';
|
|
1497
2054
|
}
|
|
1498
2055
|
}
|
|
1499
2056
|
}
|
|
@@ -1582,7 +2139,7 @@ export namespace WalletVaultItemSpec {
|
|
|
1582
2139
|
export interface CustomerManagedOAuthClient {
|
|
1583
2140
|
/**
|
|
1584
2141
|
* Select a provider config by ID or name. Responses return the ID. Renaming a
|
|
1585
|
-
* config does not change existing wallet bindings;
|
|
2142
|
+
* config does not change existing wallet bindings; an item cannot switch to a
|
|
1586
2143
|
* different config after creation.
|
|
1587
2144
|
*/
|
|
1588
2145
|
provider_config: CustomerManagedOAuthClient.ProviderConfig;
|
|
@@ -1593,7 +2150,7 @@ export namespace WalletVaultItemSpec {
|
|
|
1593
2150
|
export namespace CustomerManagedOAuthClient {
|
|
1594
2151
|
/**
|
|
1595
2152
|
* Select a provider config by ID or name. Responses return the ID. Renaming a
|
|
1596
|
-
* config does not change existing wallet bindings;
|
|
2153
|
+
* config does not change existing wallet bindings; an item cannot switch to a
|
|
1597
2154
|
* different config after creation.
|
|
1598
2155
|
*/
|
|
1599
2156
|
export interface ProviderConfig {
|
|
@@ -1769,7 +2326,12 @@ export type ItemPerformOperationParams =
|
|
|
1769
2326
|
| ItemPerformOperationParams.AuthorizeVaultItemOperationRequest
|
|
1770
2327
|
| ItemPerformOperationParams.CollectVaultItemOperationRequest
|
|
1771
2328
|
| ItemPerformOperationParams.PrepareCheckoutVaultItemOperationRequest
|
|
1772
|
-
| ItemPerformOperationParams.FillVaultItemOperationRequest
|
|
2329
|
+
| ItemPerformOperationParams.FillVaultItemOperationRequest
|
|
2330
|
+
| ItemPerformOperationParams.OnePasswordRequestAccessVaultItemOperationRequest
|
|
2331
|
+
| ItemPerformOperationParams.OnePasswordPollAccessVaultItemOperationRequest
|
|
2332
|
+
| ItemPerformOperationParams.OnePasswordFillVaultItemOperationRequest
|
|
2333
|
+
| ItemPerformOperationParams.OnePasswordRecoverVaultItemOperationRequest
|
|
2334
|
+
| ItemPerformOperationParams.OnePasswordUpdateAccessTokenVaultItemOperationRequest;
|
|
1773
2335
|
|
|
1774
2336
|
export declare namespace ItemPerformOperationParams {
|
|
1775
2337
|
export interface AuthorizeVaultItemOperationRequest {
|
|
@@ -1854,11 +2416,134 @@ export declare namespace ItemPerformOperationParams {
|
|
|
1854
2416
|
*/
|
|
1855
2417
|
timeout_ms?: number;
|
|
1856
2418
|
}
|
|
2419
|
+
|
|
2420
|
+
export interface OnePasswordRequestAccessVaultItemOperationRequest {
|
|
2421
|
+
/**
|
|
2422
|
+
* Path param
|
|
2423
|
+
*/
|
|
2424
|
+
id_or_name: string;
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* Body param: Kernel browser session used to invoke the extension.
|
|
2428
|
+
*/
|
|
2429
|
+
browser_id: string;
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* Body param
|
|
2433
|
+
*/
|
|
2434
|
+
type: '1pw_create_access_request';
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* Body param
|
|
2438
|
+
*/
|
|
2439
|
+
goal?: string;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Body param
|
|
2443
|
+
*/
|
|
2444
|
+
keywords?: Array<string>;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Body param
|
|
2448
|
+
*/
|
|
2449
|
+
reason?: string;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
export interface OnePasswordPollAccessVaultItemOperationRequest {
|
|
2453
|
+
/**
|
|
2454
|
+
* Path param
|
|
2455
|
+
*/
|
|
2456
|
+
id_or_name: string;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Body param
|
|
2460
|
+
*/
|
|
2461
|
+
browser_id: string;
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* Body param
|
|
2465
|
+
*/
|
|
2466
|
+
type: '1pw_access_request_status';
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* Body param
|
|
2470
|
+
*/
|
|
2471
|
+
timeout_seconds?: number;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
export interface OnePasswordFillVaultItemOperationRequest {
|
|
2475
|
+
/**
|
|
2476
|
+
* Path param
|
|
2477
|
+
*/
|
|
2478
|
+
id_or_name: string;
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Body param: Browser session ID, not a reusable browser name.
|
|
2482
|
+
*/
|
|
2483
|
+
browser_id: string;
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* Body param: Exact current top-level page URL. Must match exactly one open page
|
|
2487
|
+
* in the browser.
|
|
2488
|
+
*/
|
|
2489
|
+
page_url: string;
|
|
2490
|
+
|
|
2491
|
+
/**
|
|
2492
|
+
* Body param
|
|
2493
|
+
*/
|
|
2494
|
+
type: '1pw_fill';
|
|
2495
|
+
|
|
2496
|
+
/**
|
|
2497
|
+
* Body param: ID of an approved request entry. Required when several approved
|
|
2498
|
+
* entries have the page's origin.
|
|
2499
|
+
*/
|
|
2500
|
+
entry_id?: string;
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Body param
|
|
2504
|
+
*/
|
|
2505
|
+
timeout_ms?: number;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export interface OnePasswordRecoverVaultItemOperationRequest {
|
|
2509
|
+
/**
|
|
2510
|
+
* Path param
|
|
2511
|
+
*/
|
|
2512
|
+
id_or_name: string;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* Body param
|
|
2516
|
+
*/
|
|
2517
|
+
type: '1pw_recover';
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
export interface OnePasswordUpdateAccessTokenVaultItemOperationRequest {
|
|
2521
|
+
/**
|
|
2522
|
+
* Path param
|
|
2523
|
+
*/
|
|
2524
|
+
id_or_name: string;
|
|
2525
|
+
|
|
2526
|
+
/**
|
|
2527
|
+
* Body param
|
|
2528
|
+
*/
|
|
2529
|
+
access_token: string;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Body param
|
|
2533
|
+
*/
|
|
2534
|
+
type: '1pw_update_access_token';
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* Body param: Optional supplied expiry. Omit to clear the old expiry.
|
|
2538
|
+
*/
|
|
2539
|
+
access_token_expires_at?: string;
|
|
2540
|
+
}
|
|
1857
2541
|
}
|
|
1858
2542
|
|
|
1859
2543
|
export type ItemUpsertParams =
|
|
1860
2544
|
| ItemUpsertParams.WalletVaultItemRequest
|
|
1861
2545
|
| ItemUpsertParams.CardVaultItemRequest
|
|
2546
|
+
| ItemUpsertParams.CredentialAccountVaultItemRequest
|
|
1862
2547
|
| ItemUpsertParams.CredentialVaultItemRequest;
|
|
1863
2548
|
|
|
1864
2549
|
export declare namespace ItemUpsertParams {
|
|
@@ -1961,7 +2646,7 @@ export declare namespace ItemUpsertParams {
|
|
|
1961
2646
|
export interface Client {
|
|
1962
2647
|
/**
|
|
1963
2648
|
* Select a provider config by ID or name. Responses return the ID. Renaming a
|
|
1964
|
-
* config does not change existing wallet bindings;
|
|
2649
|
+
* config does not change existing wallet bindings; an item cannot switch to a
|
|
1965
2650
|
* different config after creation.
|
|
1966
2651
|
*/
|
|
1967
2652
|
provider_config: Client.ProviderConfig;
|
|
@@ -1972,7 +2657,7 @@ export declare namespace ItemUpsertParams {
|
|
|
1972
2657
|
export namespace Client {
|
|
1973
2658
|
/**
|
|
1974
2659
|
* Select a provider config by ID or name. Responses return the ID. Renaming a
|
|
1975
|
-
* config does not change existing wallet bindings;
|
|
2660
|
+
* config does not change existing wallet bindings; an item cannot switch to a
|
|
1976
2661
|
* different config after creation.
|
|
1977
2662
|
*/
|
|
1978
2663
|
export interface ProviderConfig {
|
|
@@ -2047,6 +2732,23 @@ export declare namespace ItemUpsertParams {
|
|
|
2047
2732
|
type: 'card';
|
|
2048
2733
|
}
|
|
2049
2734
|
|
|
2735
|
+
export interface CredentialAccountVaultItemRequest {
|
|
2736
|
+
/**
|
|
2737
|
+
* Path param
|
|
2738
|
+
*/
|
|
2739
|
+
id_or_name: string;
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Body param
|
|
2743
|
+
*/
|
|
2744
|
+
spec: OnePasswordCredentialAccountSpec;
|
|
2745
|
+
|
|
2746
|
+
/**
|
|
2747
|
+
* Body param
|
|
2748
|
+
*/
|
|
2749
|
+
type: 'credential_account';
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2050
2752
|
export interface CredentialVaultItemRequest {
|
|
2051
2753
|
/**
|
|
2052
2754
|
* Path param
|
|
@@ -2078,6 +2780,8 @@ export declare namespace Items {
|
|
|
2078
2780
|
type CardVaultItemSpec as CardVaultItemSpec,
|
|
2079
2781
|
type CardVaultItemState as CardVaultItemState,
|
|
2080
2782
|
type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest,
|
|
2783
|
+
type CredentialAccountVaultItem as CredentialAccountVaultItem,
|
|
2784
|
+
type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest,
|
|
2081
2785
|
type CredentialCollectionAction as CredentialCollectionAction,
|
|
2082
2786
|
type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition,
|
|
2083
2787
|
type CredentialVaultFieldInput as CredentialVaultFieldInput,
|
|
@@ -2093,6 +2797,19 @@ export declare namespace Items {
|
|
|
2093
2797
|
type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest,
|
|
2094
2798
|
type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
|
|
2095
2799
|
type FillVaultItemOperationResult as FillVaultItemOperationResult,
|
|
2800
|
+
type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec,
|
|
2801
|
+
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
2802
|
+
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
2803
|
+
type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec,
|
|
2804
|
+
type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState,
|
|
2805
|
+
type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec,
|
|
2806
|
+
type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput,
|
|
2807
|
+
type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState,
|
|
2808
|
+
type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest,
|
|
2809
|
+
type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult,
|
|
2810
|
+
type OnePasswordOAuthAction as OnePasswordOAuthAction,
|
|
2811
|
+
type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest,
|
|
2812
|
+
type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest,
|
|
2096
2813
|
type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest,
|
|
2097
2814
|
type VaultCardAliases as VaultCardAliases,
|
|
2098
2815
|
type VaultCardFillField as VaultCardFillField,
|