@dynamic-labs/sdk-api 0.0.1028 → 0.0.1029
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/package.json
CHANGED
|
@@ -17,6 +17,9 @@ function GrantPeekResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
return {
|
|
18
18
|
'clientType': ClientTypeEnum.ClientTypeEnumFromJSON(json['client_type']),
|
|
19
19
|
'clientMetadata': !runtime.exists(json, 'client_metadata') ? undefined : ClientMetadata.ClientMetadataFromJSON(json['client_metadata']),
|
|
20
|
+
'requesterLocation': !runtime.exists(json, 'requester_location') ? undefined : json['requester_location'],
|
|
21
|
+
'approverLocation': !runtime.exists(json, 'approver_location') ? undefined : json['approver_location'],
|
|
22
|
+
'countryMismatch': !runtime.exists(json, 'country_mismatch') ? undefined : json['country_mismatch'],
|
|
20
23
|
};
|
|
21
24
|
}
|
|
22
25
|
function GrantPeekResponseToJSON(value) {
|
|
@@ -29,6 +32,9 @@ function GrantPeekResponseToJSON(value) {
|
|
|
29
32
|
return {
|
|
30
33
|
'client_type': ClientTypeEnum.ClientTypeEnumToJSON(value.clientType),
|
|
31
34
|
'client_metadata': ClientMetadata.ClientMetadataToJSON(value.clientMetadata),
|
|
35
|
+
'requester_location': value.requesterLocation,
|
|
36
|
+
'approver_location': value.approverLocation,
|
|
37
|
+
'country_mismatch': value.countryMismatch,
|
|
32
38
|
};
|
|
33
39
|
}
|
|
34
40
|
|
|
@@ -31,6 +31,28 @@ export interface GrantPeekResponse {
|
|
|
31
31
|
* @memberof GrantPeekResponse
|
|
32
32
|
*/
|
|
33
33
|
clientMetadata?: ClientMetadata;
|
|
34
|
+
/**
|
|
35
|
+
* CF-geolocated `city, region, country` of the `/auth/grant/code`
|
|
36
|
+
* requester. Omitted off-edge (preview / local).
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GrantPeekResponse
|
|
39
|
+
*/
|
|
40
|
+
requesterLocation?: string;
|
|
41
|
+
/**
|
|
42
|
+
* CF-geolocated `city, region, country` of the dashboard user
|
|
43
|
+
* viewing the consent screen. Omitted off-edge.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GrantPeekResponse
|
|
46
|
+
*/
|
|
47
|
+
approverLocation?: string;
|
|
48
|
+
/**
|
|
49
|
+
* `true` when both `cf-ipcountry` values are known and differ.
|
|
50
|
+
* Omitted (not `false`) when either country is unknown — callers
|
|
51
|
+
* must treat omitted as "do not warn".
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof GrantPeekResponse
|
|
54
|
+
*/
|
|
55
|
+
countryMismatch?: boolean;
|
|
34
56
|
}
|
|
35
57
|
export declare function GrantPeekResponseFromJSON(json: any): GrantPeekResponse;
|
|
36
58
|
export declare function GrantPeekResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantPeekResponse;
|
|
@@ -13,6 +13,9 @@ function GrantPeekResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return {
|
|
14
14
|
'clientType': ClientTypeEnumFromJSON(json['client_type']),
|
|
15
15
|
'clientMetadata': !exists(json, 'client_metadata') ? undefined : ClientMetadataFromJSON(json['client_metadata']),
|
|
16
|
+
'requesterLocation': !exists(json, 'requester_location') ? undefined : json['requester_location'],
|
|
17
|
+
'approverLocation': !exists(json, 'approver_location') ? undefined : json['approver_location'],
|
|
18
|
+
'countryMismatch': !exists(json, 'country_mismatch') ? undefined : json['country_mismatch'],
|
|
16
19
|
};
|
|
17
20
|
}
|
|
18
21
|
function GrantPeekResponseToJSON(value) {
|
|
@@ -25,6 +28,9 @@ function GrantPeekResponseToJSON(value) {
|
|
|
25
28
|
return {
|
|
26
29
|
'client_type': ClientTypeEnumToJSON(value.clientType),
|
|
27
30
|
'client_metadata': ClientMetadataToJSON(value.clientMetadata),
|
|
31
|
+
'requester_location': value.requesterLocation,
|
|
32
|
+
'approver_location': value.approverLocation,
|
|
33
|
+
'country_mismatch': value.countryMismatch,
|
|
28
34
|
};
|
|
29
35
|
}
|
|
30
36
|
|