devtools-protocol 0.0.1438564 → 0.0.1439962

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.
@@ -1583,7 +1583,8 @@
1583
1583
  "SignatureInputHeaderMissingRequiredParameters",
1584
1584
  "ValidationFailedSignatureExpired",
1585
1585
  "ValidationFailedInvalidLength",
1586
- "ValidationFailedSignatureMismatch"
1586
+ "ValidationFailedSignatureMismatch",
1587
+ "ValidationFailedIntegrityMismatch"
1587
1588
  ]
1588
1589
  },
1589
1590
  {
@@ -1682,6 +1683,13 @@
1682
1683
  "name": "signatureBase",
1683
1684
  "type": "string"
1684
1685
  },
1686
+ {
1687
+ "name": "integrityAssertions",
1688
+ "type": "array",
1689
+ "items": {
1690
+ "type": "string"
1691
+ }
1692
+ },
1685
1693
  {
1686
1694
  "name": "request",
1687
1695
  "$ref": "AffectedRequest"
@@ -14022,7 +14030,8 @@
14022
14030
  "SamePartyFromCrossPartyContext",
14023
14031
  "NameValuePairExceedsMaxSize",
14024
14032
  "PortMismatch",
14025
- "SchemeMismatch"
14033
+ "SchemeMismatch",
14034
+ "AnonymousContext"
14026
14035
  ]
14027
14036
  },
14028
14037
  {
@@ -27913,6 +27922,53 @@
27913
27922
  "$ref": "ScanRecord"
27914
27923
  }
27915
27924
  ]
27925
+ },
27926
+ {
27927
+ "id": "CharacteristicProperties",
27928
+ "description": "Describes the properties of a characteristic. This follows Bluetooth Core\nSpecification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.",
27929
+ "type": "object",
27930
+ "properties": [
27931
+ {
27932
+ "name": "broadcast",
27933
+ "optional": true,
27934
+ "type": "boolean"
27935
+ },
27936
+ {
27937
+ "name": "read",
27938
+ "optional": true,
27939
+ "type": "boolean"
27940
+ },
27941
+ {
27942
+ "name": "writeWithoutResponse",
27943
+ "optional": true,
27944
+ "type": "boolean"
27945
+ },
27946
+ {
27947
+ "name": "write",
27948
+ "optional": true,
27949
+ "type": "boolean"
27950
+ },
27951
+ {
27952
+ "name": "notify",
27953
+ "optional": true,
27954
+ "type": "boolean"
27955
+ },
27956
+ {
27957
+ "name": "indicate",
27958
+ "optional": true,
27959
+ "type": "boolean"
27960
+ },
27961
+ {
27962
+ "name": "authenticatedSignedWrites",
27963
+ "optional": true,
27964
+ "type": "boolean"
27965
+ },
27966
+ {
27967
+ "name": "extendedProperties",
27968
+ "optional": true,
27969
+ "type": "boolean"
27970
+ }
27971
+ ]
27916
27972
  }
27917
27973
  ],
27918
27974
  "commands": [
@@ -28002,6 +28058,88 @@
28002
28058
  "type": "integer"
28003
28059
  }
28004
28060
  ]
28061
+ },
28062
+ {
28063
+ "name": "addService",
28064
+ "description": "Adds a service with |serviceUuid| to the peripheral with |address|.",
28065
+ "parameters": [
28066
+ {
28067
+ "name": "address",
28068
+ "type": "string"
28069
+ },
28070
+ {
28071
+ "name": "serviceUuid",
28072
+ "type": "string"
28073
+ }
28074
+ ],
28075
+ "returns": [
28076
+ {
28077
+ "name": "serviceId",
28078
+ "description": "An identifier that uniquely represents this service.",
28079
+ "type": "string"
28080
+ }
28081
+ ]
28082
+ },
28083
+ {
28084
+ "name": "removeService",
28085
+ "description": "Removes the service respresented by |serviceId| from the peripheral with\n|address|.",
28086
+ "parameters": [
28087
+ {
28088
+ "name": "address",
28089
+ "type": "string"
28090
+ },
28091
+ {
28092
+ "name": "serviceId",
28093
+ "type": "string"
28094
+ }
28095
+ ]
28096
+ },
28097
+ {
28098
+ "name": "addCharacteristic",
28099
+ "description": "Adds a characteristic with |characteristicUuid| and |properties| to the\nservice represented by |serviceId| in the peripheral with |address|.",
28100
+ "parameters": [
28101
+ {
28102
+ "name": "address",
28103
+ "type": "string"
28104
+ },
28105
+ {
28106
+ "name": "serviceId",
28107
+ "type": "string"
28108
+ },
28109
+ {
28110
+ "name": "characteristicUuid",
28111
+ "type": "string"
28112
+ },
28113
+ {
28114
+ "name": "properties",
28115
+ "$ref": "CharacteristicProperties"
28116
+ }
28117
+ ],
28118
+ "returns": [
28119
+ {
28120
+ "name": "characteristicId",
28121
+ "description": "An identifier that uniquely represents this characteristic.",
28122
+ "type": "string"
28123
+ }
28124
+ ]
28125
+ },
28126
+ {
28127
+ "name": "removeCharacteristic",
28128
+ "description": "Removes the characteristic respresented by |characteristicId| from the\nservice respresented by |serviceId| in the peripheral with |address|.",
28129
+ "parameters": [
28130
+ {
28131
+ "name": "address",
28132
+ "type": "string"
28133
+ },
28134
+ {
28135
+ "name": "serviceId",
28136
+ "type": "string"
28137
+ },
28138
+ {
28139
+ "name": "characteristicId",
28140
+ "type": "string"
28141
+ }
28142
+ ]
28005
28143
  }
28006
28144
  ],
28007
28145
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1438564",
3
+ "version": "0.0.1439962",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -823,6 +823,7 @@ experimental domain Audits
823
823
  ValidationFailedSignatureExpired
824
824
  ValidationFailedInvalidLength
825
825
  ValidationFailedSignatureMismatch
826
+ ValidationFailedIntegrityMismatch
826
827
 
827
828
  # Details for issues around "Attribution Reporting API" usage.
828
829
  # Explainer: https://github.com/WICG/attribution-reporting-api
@@ -859,6 +860,7 @@ experimental domain Audits
859
860
  properties
860
861
  SRIMessageSignatureError error
861
862
  string signatureBase
863
+ array of string integrityAssertions
862
864
  AffectedRequest request
863
865
 
864
866
  type GenericIssueErrorType extends string
@@ -6640,6 +6642,8 @@ domain Network
6640
6642
  PortMismatch
6641
6643
  # The cookie's source scheme value does not match the request origin's scheme.
6642
6644
  SchemeMismatch
6645
+ # Unpartitioned cookie access from an anonymous context was blocked.
6646
+ AnonymousContext
6643
6647
 
6644
6648
  # Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
6645
6649
  experimental type CookieExemptionReason extends string
@@ -13262,6 +13266,19 @@ experimental domain BluetoothEmulation
13262
13266
  integer rssi
13263
13267
  ScanRecord scanRecord
13264
13268
 
13269
+ # Describes the properties of a characteristic. This follows Bluetooth Core
13270
+ # Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
13271
+ type CharacteristicProperties extends object
13272
+ properties
13273
+ optional boolean broadcast
13274
+ optional boolean read
13275
+ optional boolean writeWithoutResponse
13276
+ optional boolean write
13277
+ optional boolean notify
13278
+ optional boolean indicate
13279
+ optional boolean authenticatedSignedWrites
13280
+ optional boolean extendedProperties
13281
+
13265
13282
  # Enable the BluetoothEmulation domain.
13266
13283
  command enable
13267
13284
  parameters
@@ -13303,6 +13320,42 @@ experimental domain BluetoothEmulation
13303
13320
  GATTOperationType type
13304
13321
  integer code
13305
13322
 
13323
+ # Adds a service with |serviceUuid| to the peripheral with |address|.
13324
+ command addService
13325
+ parameters
13326
+ string address
13327
+ string serviceUuid
13328
+ returns
13329
+ # An identifier that uniquely represents this service.
13330
+ string serviceId
13331
+
13332
+ # Removes the service respresented by |serviceId| from the peripheral with
13333
+ # |address|.
13334
+ command removeService
13335
+ parameters
13336
+ string address
13337
+ string serviceId
13338
+
13339
+ # Adds a characteristic with |characteristicUuid| and |properties| to the
13340
+ # service represented by |serviceId| in the peripheral with |address|.
13341
+ command addCharacteristic
13342
+ parameters
13343
+ string address
13344
+ string serviceId
13345
+ string characteristicUuid
13346
+ CharacteristicProperties properties
13347
+ returns
13348
+ # An identifier that uniquely represents this characteristic.
13349
+ string characteristicId
13350
+
13351
+ # Removes the characteristic respresented by |characteristicId| from the
13352
+ # service respresented by |serviceId| in the peripheral with |address|.
13353
+ command removeCharacteristic
13354
+ parameters
13355
+ string address
13356
+ string serviceId
13357
+ string characteristicId
13358
+
13306
13359
  # Event for when a GATT operation of |type| to the peripheral with |address|
13307
13360
  # happened.
13308
13361
  event gattOperationReceived
@@ -5311,6 +5311,37 @@ export namespace ProtocolMapping {
5311
5311
  paramsType: [Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest];
5312
5312
  returnType: void;
5313
5313
  };
5314
+ /**
5315
+ * Adds a service with |serviceUuid| to the peripheral with |address|.
5316
+ */
5317
+ 'BluetoothEmulation.addService': {
5318
+ paramsType: [Protocol.BluetoothEmulation.AddServiceRequest];
5319
+ returnType: Protocol.BluetoothEmulation.AddServiceResponse;
5320
+ };
5321
+ /**
5322
+ * Removes the service respresented by |serviceId| from the peripheral with
5323
+ * |address|.
5324
+ */
5325
+ 'BluetoothEmulation.removeService': {
5326
+ paramsType: [Protocol.BluetoothEmulation.RemoveServiceRequest];
5327
+ returnType: void;
5328
+ };
5329
+ /**
5330
+ * Adds a characteristic with |characteristicUuid| and |properties| to the
5331
+ * service represented by |serviceId| in the peripheral with |address|.
5332
+ */
5333
+ 'BluetoothEmulation.addCharacteristic': {
5334
+ paramsType: [Protocol.BluetoothEmulation.AddCharacteristicRequest];
5335
+ returnType: Protocol.BluetoothEmulation.AddCharacteristicResponse;
5336
+ };
5337
+ /**
5338
+ * Removes the characteristic respresented by |characteristicId| from the
5339
+ * service respresented by |serviceId| in the peripheral with |address|.
5340
+ */
5341
+ 'BluetoothEmulation.removeCharacteristic': {
5342
+ paramsType: [Protocol.BluetoothEmulation.RemoveCharacteristicRequest];
5343
+ returnType: void;
5344
+ };
5314
5345
  }
5315
5346
  }
5316
5347
 
@@ -4534,6 +4534,29 @@ export namespace ProtocolProxyApi {
4534
4534
  */
4535
4535
  simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<void>;
4536
4536
 
4537
+ /**
4538
+ * Adds a service with |serviceUuid| to the peripheral with |address|.
4539
+ */
4540
+ addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<Protocol.BluetoothEmulation.AddServiceResponse>;
4541
+
4542
+ /**
4543
+ * Removes the service respresented by |serviceId| from the peripheral with
4544
+ * |address|.
4545
+ */
4546
+ removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<void>;
4547
+
4548
+ /**
4549
+ * Adds a characteristic with |characteristicUuid| and |properties| to the
4550
+ * service represented by |serviceId| in the peripheral with |address|.
4551
+ */
4552
+ addCharacteristic(params: Protocol.BluetoothEmulation.AddCharacteristicRequest): Promise<Protocol.BluetoothEmulation.AddCharacteristicResponse>;
4553
+
4554
+ /**
4555
+ * Removes the characteristic respresented by |characteristicId| from the
4556
+ * service respresented by |serviceId| in the peripheral with |address|.
4557
+ */
4558
+ removeCharacteristic(params: Protocol.BluetoothEmulation.RemoveCharacteristicRequest): Promise<void>;
4559
+
4537
4560
  /**
4538
4561
  * Event for when a GATT operation of |type| to the peripheral with |address|
4539
4562
  * happened.
@@ -4938,6 +4938,29 @@ export namespace ProtocolTestsProxyApi {
4938
4938
  */
4939
4939
  simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<{id: number, result: void, sessionId: string}>;
4940
4940
 
4941
+ /**
4942
+ * Adds a service with |serviceUuid| to the peripheral with |address|.
4943
+ */
4944
+ addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<{id: number, result: Protocol.BluetoothEmulation.AddServiceResponse, sessionId: string}>;
4945
+
4946
+ /**
4947
+ * Removes the service respresented by |serviceId| from the peripheral with
4948
+ * |address|.
4949
+ */
4950
+ removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<{id: number, result: void, sessionId: string}>;
4951
+
4952
+ /**
4953
+ * Adds a characteristic with |characteristicUuid| and |properties| to the
4954
+ * service represented by |serviceId| in the peripheral with |address|.
4955
+ */
4956
+ addCharacteristic(params: Protocol.BluetoothEmulation.AddCharacteristicRequest): Promise<{id: number, result: Protocol.BluetoothEmulation.AddCharacteristicResponse, sessionId: string}>;
4957
+
4958
+ /**
4959
+ * Removes the characteristic respresented by |characteristicId| from the
4960
+ * service respresented by |serviceId| in the peripheral with |address|.
4961
+ */
4962
+ removeCharacteristic(params: Protocol.BluetoothEmulation.RemoveCharacteristicRequest): Promise<{id: number, result: void, sessionId: string}>;
4963
+
4941
4964
  /**
4942
4965
  * Event for when a GATT operation of |type| to the peripheral with |address|
4943
4966
  * happened.
@@ -3540,7 +3540,7 @@ export namespace Protocol {
3540
3540
 
3541
3541
  export type SharedDictionaryError = ('UseErrorCrossOriginNoCorsRequest' | 'UseErrorDictionaryLoadFailure' | 'UseErrorMatchingDictionaryNotUsed' | 'UseErrorUnexpectedContentDictionaryHeader' | 'WriteErrorCossOriginNoCorsRequest' | 'WriteErrorDisallowedBySettings' | 'WriteErrorExpiredResponse' | 'WriteErrorFeatureDisabled' | 'WriteErrorInsufficientResources' | 'WriteErrorInvalidMatchField' | 'WriteErrorInvalidStructuredHeader' | 'WriteErrorNavigationRequest' | 'WriteErrorNoMatchField' | 'WriteErrorNonListMatchDestField' | 'WriteErrorNonSecureContext' | 'WriteErrorNonStringIdField' | 'WriteErrorNonStringInMatchDestList' | 'WriteErrorNonStringMatchField' | 'WriteErrorNonTokenTypeField' | 'WriteErrorRequestAborted' | 'WriteErrorShuttingDown' | 'WriteErrorTooLongIdField' | 'WriteErrorUnsupportedType');
3542
3542
 
3543
- export type SRIMessageSignatureError = ('MissingSignatureHeader' | 'MissingSignatureInputHeader' | 'InvalidSignatureHeader' | 'InvalidSignatureInputHeader' | 'SignatureHeaderValueIsNotByteSequence' | 'SignatureHeaderValueIsParameterized' | 'SignatureHeaderValueIsIncorrectLength' | 'SignatureInputHeaderMissingLabel' | 'SignatureInputHeaderValueNotInnerList' | 'SignatureInputHeaderValueMissingComponents' | 'SignatureInputHeaderInvalidComponentType' | 'SignatureInputHeaderInvalidComponentName' | 'SignatureInputHeaderInvalidHeaderComponentParameter' | 'SignatureInputHeaderInvalidDerivedComponentParameter' | 'SignatureInputHeaderKeyIdLength' | 'SignatureInputHeaderInvalidParameter' | 'SignatureInputHeaderMissingRequiredParameters' | 'ValidationFailedSignatureExpired' | 'ValidationFailedInvalidLength' | 'ValidationFailedSignatureMismatch');
3543
+ export type SRIMessageSignatureError = ('MissingSignatureHeader' | 'MissingSignatureInputHeader' | 'InvalidSignatureHeader' | 'InvalidSignatureInputHeader' | 'SignatureHeaderValueIsNotByteSequence' | 'SignatureHeaderValueIsParameterized' | 'SignatureHeaderValueIsIncorrectLength' | 'SignatureInputHeaderMissingLabel' | 'SignatureInputHeaderValueNotInnerList' | 'SignatureInputHeaderValueMissingComponents' | 'SignatureInputHeaderInvalidComponentType' | 'SignatureInputHeaderInvalidComponentName' | 'SignatureInputHeaderInvalidHeaderComponentParameter' | 'SignatureInputHeaderInvalidDerivedComponentParameter' | 'SignatureInputHeaderKeyIdLength' | 'SignatureInputHeaderInvalidParameter' | 'SignatureInputHeaderMissingRequiredParameters' | 'ValidationFailedSignatureExpired' | 'ValidationFailedInvalidLength' | 'ValidationFailedSignatureMismatch' | 'ValidationFailedIntegrityMismatch');
3544
3544
 
3545
3545
  /**
3546
3546
  * Details for issues around "Attribution Reporting API" usage.
@@ -3582,6 +3582,7 @@ export namespace Protocol {
3582
3582
  export interface SRIMessageSignatureIssueDetails {
3583
3583
  error: SRIMessageSignatureError;
3584
3584
  signatureBase: string;
3585
+ integrityAssertions: string[];
3585
3586
  request: AffectedRequest;
3586
3587
  }
3587
3588
 
@@ -11321,7 +11322,7 @@ export namespace Protocol {
11321
11322
  /**
11322
11323
  * Types of reasons why a cookie may not be sent with a request.
11323
11324
  */
11324
- export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize' | 'PortMismatch' | 'SchemeMismatch');
11325
+ export type CookieBlockedReason = ('SecureOnly' | 'NotOnPath' | 'DomainMismatch' | 'SameSiteStrict' | 'SameSiteLax' | 'SameSiteUnspecifiedTreatedAsLax' | 'SameSiteNoneInsecure' | 'UserPreferences' | 'ThirdPartyPhaseout' | 'ThirdPartyBlockedInFirstPartySet' | 'UnknownError' | 'SchemefulSameSiteStrict' | 'SchemefulSameSiteLax' | 'SchemefulSameSiteUnspecifiedTreatedAsLax' | 'SamePartyFromCrossPartyContext' | 'NameValuePairExceedsMaxSize' | 'PortMismatch' | 'SchemeMismatch' | 'AnonymousContext');
11325
11326
 
11326
11327
  /**
11327
11328
  * Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
@@ -19535,6 +19536,21 @@ export namespace Protocol {
19535
19536
  scanRecord: ScanRecord;
19536
19537
  }
19537
19538
 
19539
+ /**
19540
+ * Describes the properties of a characteristic. This follows Bluetooth Core
19541
+ * Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
19542
+ */
19543
+ export interface CharacteristicProperties {
19544
+ broadcast?: boolean;
19545
+ read?: boolean;
19546
+ writeWithoutResponse?: boolean;
19547
+ write?: boolean;
19548
+ notify?: boolean;
19549
+ indicate?: boolean;
19550
+ authenticatedSignedWrites?: boolean;
19551
+ extendedProperties?: boolean;
19552
+ }
19553
+
19538
19554
  export interface EnableRequest {
19539
19555
  /**
19540
19556
  * State of the simulated central.
@@ -19570,6 +19586,43 @@ export namespace Protocol {
19570
19586
  code: integer;
19571
19587
  }
19572
19588
 
19589
+ export interface AddServiceRequest {
19590
+ address: string;
19591
+ serviceUuid: string;
19592
+ }
19593
+
19594
+ export interface AddServiceResponse {
19595
+ /**
19596
+ * An identifier that uniquely represents this service.
19597
+ */
19598
+ serviceId: string;
19599
+ }
19600
+
19601
+ export interface RemoveServiceRequest {
19602
+ address: string;
19603
+ serviceId: string;
19604
+ }
19605
+
19606
+ export interface AddCharacteristicRequest {
19607
+ address: string;
19608
+ serviceId: string;
19609
+ characteristicUuid: string;
19610
+ properties: CharacteristicProperties;
19611
+ }
19612
+
19613
+ export interface AddCharacteristicResponse {
19614
+ /**
19615
+ * An identifier that uniquely represents this characteristic.
19616
+ */
19617
+ characteristicId: string;
19618
+ }
19619
+
19620
+ export interface RemoveCharacteristicRequest {
19621
+ address: string;
19622
+ serviceId: string;
19623
+ characteristicId: string;
19624
+ }
19625
+
19573
19626
  /**
19574
19627
  * Event for when a GATT operation of |type| to the peripheral with |address|
19575
19628
  * happened.