devtools-protocol 0.0.1138800 → 0.0.1139346
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.
@@ -1913,6 +1913,62 @@
|
|
1913
1913
|
}
|
1914
1914
|
]
|
1915
1915
|
},
|
1916
|
+
{
|
1917
|
+
"domain": "Autofill",
|
1918
|
+
"description": "Defines commands and events for Autofill.",
|
1919
|
+
"experimental": true,
|
1920
|
+
"types": [
|
1921
|
+
{
|
1922
|
+
"id": "CreditCard",
|
1923
|
+
"type": "object",
|
1924
|
+
"properties": [
|
1925
|
+
{
|
1926
|
+
"name": "number",
|
1927
|
+
"description": "16-digit credit card number.",
|
1928
|
+
"type": "string"
|
1929
|
+
},
|
1930
|
+
{
|
1931
|
+
"name": "name",
|
1932
|
+
"description": "Name of the credit card owner.",
|
1933
|
+
"type": "string"
|
1934
|
+
},
|
1935
|
+
{
|
1936
|
+
"name": "expiryMonth",
|
1937
|
+
"description": "2-digit expiry month.",
|
1938
|
+
"type": "string"
|
1939
|
+
},
|
1940
|
+
{
|
1941
|
+
"name": "expiryYear",
|
1942
|
+
"description": "4-digit expiry year.",
|
1943
|
+
"type": "string"
|
1944
|
+
},
|
1945
|
+
{
|
1946
|
+
"name": "cvc",
|
1947
|
+
"description": "3-digit card verification code.",
|
1948
|
+
"type": "string"
|
1949
|
+
}
|
1950
|
+
]
|
1951
|
+
}
|
1952
|
+
],
|
1953
|
+
"commands": [
|
1954
|
+
{
|
1955
|
+
"name": "trigger",
|
1956
|
+
"description": "Trigger autofill on a form identified by the fieldId.\nIf the field and related form cannot be autofilled, returns an error.",
|
1957
|
+
"parameters": [
|
1958
|
+
{
|
1959
|
+
"name": "fieldId",
|
1960
|
+
"description": "Identifies a field that serves as an anchor for autofill.",
|
1961
|
+
"$ref": "DOM.BackendNodeId"
|
1962
|
+
},
|
1963
|
+
{
|
1964
|
+
"name": "card",
|
1965
|
+
"description": "Credit card information to fill out the form. Credit card data is not saved.",
|
1966
|
+
"$ref": "CreditCard"
|
1967
|
+
}
|
1968
|
+
]
|
1969
|
+
}
|
1970
|
+
]
|
1971
|
+
},
|
1916
1972
|
{
|
1917
1973
|
"domain": "BackgroundService",
|
1918
1974
|
"description": "Defines events for background web platform features.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -944,6 +944,30 @@ experimental domain Audits
|
|
944
944
|
parameters
|
945
945
|
InspectorIssue issue
|
946
946
|
|
947
|
+
# Defines commands and events for Autofill.
|
948
|
+
experimental domain Autofill
|
949
|
+
type CreditCard extends object
|
950
|
+
properties
|
951
|
+
# 16-digit credit card number.
|
952
|
+
string number
|
953
|
+
# Name of the credit card owner.
|
954
|
+
string name
|
955
|
+
# 2-digit expiry month.
|
956
|
+
string expiryMonth
|
957
|
+
# 4-digit expiry year.
|
958
|
+
string expiryYear
|
959
|
+
# 3-digit card verification code.
|
960
|
+
string cvc
|
961
|
+
|
962
|
+
# Trigger autofill on a form identified by the fieldId.
|
963
|
+
# If the field and related form cannot be autofilled, returns an error.
|
964
|
+
command trigger
|
965
|
+
parameters
|
966
|
+
# Identifies a field that serves as an anchor for autofill.
|
967
|
+
DOM.BackendNodeId fieldId
|
968
|
+
# Credit card information to fill out the form. Credit card data is not saved.
|
969
|
+
CreditCard card
|
970
|
+
|
947
971
|
# Defines events for background web platform features.
|
948
972
|
experimental domain BackgroundService
|
949
973
|
# The Background Service that will be associated with the commands/events.
|
@@ -1459,6 +1459,14 @@ export namespace ProtocolMapping {
|
|
1459
1459
|
paramsType: [Protocol.Audits.CheckContrastRequest?];
|
1460
1460
|
returnType: void;
|
1461
1461
|
};
|
1462
|
+
/**
|
1463
|
+
* Trigger autofill on a form identified by the fieldId.
|
1464
|
+
* If the field and related form cannot be autofilled, returns an error.
|
1465
|
+
*/
|
1466
|
+
'Autofill.trigger': {
|
1467
|
+
paramsType: [Protocol.Autofill.TriggerRequest];
|
1468
|
+
returnType: void;
|
1469
|
+
};
|
1462
1470
|
/**
|
1463
1471
|
* Enables event updates for the service.
|
1464
1472
|
*/
|
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
|
|
28
28
|
|
29
29
|
Audits: AuditsApi;
|
30
30
|
|
31
|
+
Autofill: AutofillApi;
|
32
|
+
|
31
33
|
BackgroundService: BackgroundServiceApi;
|
32
34
|
|
33
35
|
Browser: BrowserApi;
|
@@ -790,6 +792,15 @@ export namespace ProtocolProxyApi {
|
|
790
792
|
|
791
793
|
}
|
792
794
|
|
795
|
+
export interface AutofillApi {
|
796
|
+
/**
|
797
|
+
* Trigger autofill on a form identified by the fieldId.
|
798
|
+
* If the field and related form cannot be autofilled, returns an error.
|
799
|
+
*/
|
800
|
+
trigger(params: Protocol.Autofill.TriggerRequest): Promise<void>;
|
801
|
+
|
802
|
+
}
|
803
|
+
|
793
804
|
export interface BackgroundServiceApi {
|
794
805
|
/**
|
795
806
|
* Enables event updates for the service.
|
package/types/protocol.d.ts
CHANGED
@@ -3615,6 +3615,46 @@ export namespace Protocol {
|
|
3615
3615
|
}
|
3616
3616
|
}
|
3617
3617
|
|
3618
|
+
/**
|
3619
|
+
* Defines commands and events for Autofill.
|
3620
|
+
*/
|
3621
|
+
export namespace Autofill {
|
3622
|
+
|
3623
|
+
export interface CreditCard {
|
3624
|
+
/**
|
3625
|
+
* 16-digit credit card number.
|
3626
|
+
*/
|
3627
|
+
number: string;
|
3628
|
+
/**
|
3629
|
+
* Name of the credit card owner.
|
3630
|
+
*/
|
3631
|
+
name: string;
|
3632
|
+
/**
|
3633
|
+
* 2-digit expiry month.
|
3634
|
+
*/
|
3635
|
+
expiryMonth: string;
|
3636
|
+
/**
|
3637
|
+
* 4-digit expiry year.
|
3638
|
+
*/
|
3639
|
+
expiryYear: string;
|
3640
|
+
/**
|
3641
|
+
* 3-digit card verification code.
|
3642
|
+
*/
|
3643
|
+
cvc: string;
|
3644
|
+
}
|
3645
|
+
|
3646
|
+
export interface TriggerRequest {
|
3647
|
+
/**
|
3648
|
+
* Identifies a field that serves as an anchor for autofill.
|
3649
|
+
*/
|
3650
|
+
fieldId: DOM.BackendNodeId;
|
3651
|
+
/**
|
3652
|
+
* Credit card information to fill out the form. Credit card data is not saved.
|
3653
|
+
*/
|
3654
|
+
card: CreditCard;
|
3655
|
+
}
|
3656
|
+
}
|
3657
|
+
|
3618
3658
|
/**
|
3619
3659
|
* Defines events for background web platform features.
|
3620
3660
|
*/
|