@grabjs/superapp-sdk 2.0.0-beta.23 → 2.0.0-beta.28
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 +55 -55
- package/api-reference/api.json +44309 -0
- package/dist/index.d.ts +2163 -2607
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +14 -9
- package/skills/SKILL.md +368 -0
- package/api-reference/json/api.json +0 -27688
- package/api-reference/markdown/README.md +0 -194
- package/api-reference/markdown/classes/BaseModule.md +0 -123
- package/api-reference/markdown/classes/CameraModule.md +0 -177
- package/api-reference/markdown/classes/CheckoutModule.md +0 -181
- package/api-reference/markdown/classes/ContainerModule.md +0 -751
- package/api-reference/markdown/classes/DeviceCapabilityModule.md +0 -161
- package/api-reference/markdown/classes/FileModule.md +0 -178
- package/api-reference/markdown/classes/IdentityModule.md +0 -299
- package/api-reference/markdown/classes/LocaleModule.md +0 -161
- package/api-reference/markdown/classes/LocationModule.md +0 -239
- package/api-reference/markdown/classes/MediaModule.md +0 -219
- package/api-reference/markdown/classes/PlatformModule.md +0 -162
- package/api-reference/markdown/classes/ProfileModule.md +0 -224
- package/api-reference/markdown/classes/ScopeModule.md +0 -219
- package/api-reference/markdown/classes/StorageModule.md +0 -608
- package/api-reference/markdown/classes/SystemWebViewKitModule.md +0 -177
- package/api-reference/markdown/classes/UserAttributesModule.md +0 -164
- package/api-reference/markdown/functions/isClientError.md +0 -37
- package/api-reference/markdown/functions/isErrorResponse.md +0 -40
- package/api-reference/markdown/functions/isRedirection.md +0 -37
- package/api-reference/markdown/functions/isServerError.md +0 -37
- package/api-reference/markdown/functions/isSuccess.md +0 -39
- package/api-reference/markdown/globals.md +0 -176
- package/api-reference/markdown/interfaces/GrabAppInfo.md +0 -23
- package/api-reference/markdown/interfaces/InvokeOptions.md +0 -63
- package/api-reference/markdown/interfaces/Version.md +0 -23
- package/api-reference/markdown/interfaces/WrappedModule.md +0 -51
- package/api-reference/markdown/type-aliases/AuthorizeRequest.md +0 -79
- package/api-reference/markdown/type-aliases/AuthorizeResponse.md +0 -58
- package/api-reference/markdown/type-aliases/AuthorizeResult.md +0 -33
- package/api-reference/markdown/type-aliases/BackResponse.md +0 -37
- package/api-reference/markdown/type-aliases/BackResult.md +0 -8
- package/api-reference/markdown/type-aliases/BridgeClientError.md +0 -9
- package/api-reference/markdown/type-aliases/BridgeError.md +0 -8
- package/api-reference/markdown/type-aliases/BridgeRedirection.md +0 -8
- package/api-reference/markdown/type-aliases/BridgeResponse.md +0 -40
- package/api-reference/markdown/type-aliases/BridgeServerError.md +0 -8
- package/api-reference/markdown/type-aliases/BridgeStatusCode.md +0 -7
- package/api-reference/markdown/type-aliases/BridgeStream.md +0 -29
- package/api-reference/markdown/type-aliases/BridgeStreamHandlers.md +0 -25
- package/api-reference/markdown/type-aliases/BridgeSuccessResponse.md +0 -14
- package/api-reference/markdown/type-aliases/ClearAuthorizationArtifactsResponse.md +0 -18
- package/api-reference/markdown/type-aliases/ClearAuthorizationArtifactsResult.md +0 -8
- package/api-reference/markdown/type-aliases/CloseResponse.md +0 -37
- package/api-reference/markdown/type-aliases/CloseResult.md +0 -8
- package/api-reference/markdown/type-aliases/DRMContentConfig.md +0 -34
- package/api-reference/markdown/type-aliases/DRMPlaybackEvent.md +0 -43
- package/api-reference/markdown/type-aliases/DownloadFileRequest.md +0 -32
- package/api-reference/markdown/type-aliases/DownloadFileResponse.md +0 -48
- package/api-reference/markdown/type-aliases/DownloadFileResult.md +0 -11
- package/api-reference/markdown/type-aliases/ErrorResponse.md +0 -32
- package/api-reference/markdown/type-aliases/FetchEmailResponse.md +0 -58
- package/api-reference/markdown/type-aliases/FetchEmailResult.md +0 -21
- package/api-reference/markdown/type-aliases/GetAuthorizationArtifactsResponse.md +0 -42
- package/api-reference/markdown/type-aliases/GetAuthorizationArtifactsResult.md +0 -57
- package/api-reference/markdown/type-aliases/GetBooleanRequest.md +0 -21
- package/api-reference/markdown/type-aliases/GetBooleanResponse.md +0 -57
- package/api-reference/markdown/type-aliases/GetBooleanResult.md +0 -27
- package/api-reference/markdown/type-aliases/GetCoordinateResponse.md +0 -49
- package/api-reference/markdown/type-aliases/GetCoordinateResult.md +0 -29
- package/api-reference/markdown/type-aliases/GetCountryCodeResponse.md +0 -57
- package/api-reference/markdown/type-aliases/GetCountryCodeResult.md +0 -25
- package/api-reference/markdown/type-aliases/GetDoubleRequest.md +0 -21
- package/api-reference/markdown/type-aliases/GetDoubleResponse.md +0 -57
- package/api-reference/markdown/type-aliases/GetDoubleResult.md +0 -27
- package/api-reference/markdown/type-aliases/GetIntRequest.md +0 -21
- package/api-reference/markdown/type-aliases/GetIntResponse.md +0 -57
- package/api-reference/markdown/type-aliases/GetIntResult.md +0 -27
- package/api-reference/markdown/type-aliases/GetLanguageLocaleIdentifierResponse.md +0 -48
- package/api-reference/markdown/type-aliases/GetLanguageLocaleIdentifierResult.md +0 -31
- package/api-reference/markdown/type-aliases/GetSelectedTravelDestinationResponse.md +0 -48
- package/api-reference/markdown/type-aliases/GetSelectedTravelDestinationResult.md +0 -17
- package/api-reference/markdown/type-aliases/GetSessionParamsResponse.md +0 -40
- package/api-reference/markdown/type-aliases/GetSessionParamsResult.md +0 -27
- package/api-reference/markdown/type-aliases/GetStringRequest.md +0 -21
- package/api-reference/markdown/type-aliases/GetStringResponse.md +0 -57
- package/api-reference/markdown/type-aliases/GetStringResult.md +0 -27
- package/api-reference/markdown/type-aliases/HasAccessToResponse.md +0 -66
- package/api-reference/markdown/type-aliases/HasAccessToResult.md +0 -27
- package/api-reference/markdown/type-aliases/HideBackButtonResponse.md +0 -37
- package/api-reference/markdown/type-aliases/HideBackButtonResult.md +0 -8
- package/api-reference/markdown/type-aliases/HideLoaderResponse.md +0 -37
- package/api-reference/markdown/type-aliases/HideLoaderResult.md +0 -8
- package/api-reference/markdown/type-aliases/HideRefreshButtonResponse.md +0 -37
- package/api-reference/markdown/type-aliases/HideRefreshButtonResult.md +0 -8
- package/api-reference/markdown/type-aliases/IsConnectedResponse.md +0 -31
- package/api-reference/markdown/type-aliases/IsConnectedResult.md +0 -27
- package/api-reference/markdown/type-aliases/IsEsimSupportedResponse.md +0 -48
- package/api-reference/markdown/type-aliases/IsEsimSupportedResult.md +0 -17
- package/api-reference/markdown/type-aliases/ObserveDRMPlaybackResponse.md +0 -15
- package/api-reference/markdown/type-aliases/ObserveLocationChangeResponse.md +0 -15
- package/api-reference/markdown/type-aliases/OnContentLoadedResponse.md +0 -37
- package/api-reference/markdown/type-aliases/OnContentLoadedResult.md +0 -8
- package/api-reference/markdown/type-aliases/OnCtaTapRequest.md +0 -13
- package/api-reference/markdown/type-aliases/OnCtaTapResponse.md +0 -37
- package/api-reference/markdown/type-aliases/OnCtaTapResult.md +0 -8
- package/api-reference/markdown/type-aliases/OpenExternalLinkRequest.md +0 -13
- package/api-reference/markdown/type-aliases/OpenExternalLinkResponse.md +0 -46
- package/api-reference/markdown/type-aliases/OpenExternalLinkResult.md +0 -8
- package/api-reference/markdown/type-aliases/Platform.md +0 -7
- package/api-reference/markdown/type-aliases/PlayDRMContentResponse.md +0 -43
- package/api-reference/markdown/type-aliases/PlayDRMContentResult.md +0 -8
- package/api-reference/markdown/type-aliases/RedirectToSystemWebViewRequest.md +0 -23
- package/api-reference/markdown/type-aliases/RedirectToSystemWebViewResponse.md +0 -55
- package/api-reference/markdown/type-aliases/RedirectToSystemWebViewResult.md +0 -8
- package/api-reference/markdown/type-aliases/ReloadScopesResponse.md +0 -46
- package/api-reference/markdown/type-aliases/ReloadScopesResult.md +0 -8
- package/api-reference/markdown/type-aliases/RemoveAllResponse.md +0 -37
- package/api-reference/markdown/type-aliases/RemoveAllResult.md +0 -8
- package/api-reference/markdown/type-aliases/RemoveResponse.md +0 -46
- package/api-reference/markdown/type-aliases/RemoveResult.md +0 -8
- package/api-reference/markdown/type-aliases/ResponseStatusCode200.md +0 -34
- package/api-reference/markdown/type-aliases/ResponseStatusCode204.md +0 -20
- package/api-reference/markdown/type-aliases/ResponseStatusCode302.md +0 -20
- package/api-reference/markdown/type-aliases/ResponseStatusCode400.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode401.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode403.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode404.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode424.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode426.md +0 -12
- package/api-reference/markdown/type-aliases/ResponseStatusCode500.md +0 -7
- package/api-reference/markdown/type-aliases/ResponseStatusCode501.md +0 -12
- package/api-reference/markdown/type-aliases/ScanQRCodeRequest.md +0 -27
- package/api-reference/markdown/type-aliases/ScanQRCodeResponse.md +0 -64
- package/api-reference/markdown/type-aliases/ScanQRCodeResult.md +0 -21
- package/api-reference/markdown/type-aliases/SendAnalyticsEventRequest.md +0 -56
- package/api-reference/markdown/type-aliases/SendAnalyticsEventResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SendAnalyticsEventResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetBackgroundColorRequest.md +0 -13
- package/api-reference/markdown/type-aliases/SetBackgroundColorResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetBackgroundColorResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetBooleanResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetBooleanResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetDoubleResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetDoubleResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetIntResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetIntResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetStringResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetStringResult.md +0 -8
- package/api-reference/markdown/type-aliases/SetTitleRequest.md +0 -13
- package/api-reference/markdown/type-aliases/SetTitleResponse.md +0 -46
- package/api-reference/markdown/type-aliases/SetTitleResult.md +0 -8
- package/api-reference/markdown/type-aliases/ShowBackButtonResponse.md +0 -37
- package/api-reference/markdown/type-aliases/ShowBackButtonResult.md +0 -8
- package/api-reference/markdown/type-aliases/ShowLoaderResponse.md +0 -37
- package/api-reference/markdown/type-aliases/ShowLoaderResult.md +0 -8
- package/api-reference/markdown/type-aliases/ShowRefreshButtonResponse.md +0 -37
- package/api-reference/markdown/type-aliases/ShowRefreshButtonResult.md +0 -8
- package/api-reference/markdown/type-aliases/StatusCodeMap.md +0 -80
- package/api-reference/markdown/type-aliases/Subscription.md +0 -12
- package/api-reference/markdown/type-aliases/TriggerCheckoutRequest.md +0 -26
- package/api-reference/markdown/type-aliases/TriggerCheckoutResponse.md +0 -76
- package/api-reference/markdown/type-aliases/TriggerCheckoutResult.md +0 -75
- package/api-reference/markdown/type-aliases/VerifyEmailRequest.md +0 -32
- package/api-reference/markdown/type-aliases/VerifyEmailResponse.md +0 -55
- package/api-reference/markdown/type-aliases/VerifyEmailResult.md +0 -8
- package/api-reference/markdown/variables/ContainerAnalyticsEventData.md +0 -21
- package/api-reference/markdown/variables/ContainerAnalyticsEventName.md +0 -13
- package/api-reference/markdown/variables/ContainerAnalyticsEventState.md +0 -25
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / HasAccessToResult
|
|
2
|
-
|
|
3
|
-
# Type Alias: HasAccessToResult
|
|
4
|
-
|
|
5
|
-
> **HasAccessToResult** = \{ `hasAccess`: `boolean`; \}
|
|
6
|
-
|
|
7
|
-
Result object containing the access check result.
|
|
8
|
-
|
|
9
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
**Has access:**
|
|
12
|
-
```typescript
|
|
13
|
-
{ hasAccess: true }
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
**No access:**
|
|
17
|
-
```typescript
|
|
18
|
-
{ hasAccess: false }
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Properties
|
|
22
|
-
|
|
23
|
-
### hasAccess
|
|
24
|
-
|
|
25
|
-
> **hasAccess**: `boolean`
|
|
26
|
-
|
|
27
|
-
True if the current client has access to the specified API, false otherwise.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / HideBackButtonResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: HideBackButtonResponse
|
|
4
|
-
|
|
5
|
-
> **HideBackButtonResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`HideBackButtonResult`](HideBackButtonResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when hiding the back button.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Back button hidden successfully.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200):**
|
|
19
|
-
```typescript
|
|
20
|
-
{ status_code: 200 }
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Not implemented response (501) - outside Grab app:**
|
|
24
|
-
```typescript
|
|
25
|
-
{
|
|
26
|
-
status_code: 501,
|
|
27
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Internal server error response (500):**
|
|
32
|
-
```typescript
|
|
33
|
-
{
|
|
34
|
-
status_code: 500,
|
|
35
|
-
error: 'Internal server error'
|
|
36
|
-
}
|
|
37
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / HideLoaderResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: HideLoaderResponse
|
|
4
|
-
|
|
5
|
-
> **HideLoaderResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`HideLoaderResult`](HideLoaderResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when hiding the loader.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Loader hidden successfully.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200):**
|
|
19
|
-
```typescript
|
|
20
|
-
{ status_code: 200 }
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Not implemented response (501) - outside Grab app:**
|
|
24
|
-
```typescript
|
|
25
|
-
{
|
|
26
|
-
status_code: 501,
|
|
27
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Internal server error response (500):**
|
|
32
|
-
```typescript
|
|
33
|
-
{
|
|
34
|
-
status_code: 500,
|
|
35
|
-
error: 'Internal server error'
|
|
36
|
-
}
|
|
37
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / HideRefreshButtonResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: HideRefreshButtonResponse
|
|
4
|
-
|
|
5
|
-
> **HideRefreshButtonResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`HideRefreshButtonResult`](HideRefreshButtonResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when hiding the refresh button.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Refresh button hidden successfully.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200):**
|
|
19
|
-
```typescript
|
|
20
|
-
{ status_code: 200 }
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Not implemented response (501) - outside Grab app:**
|
|
24
|
-
```typescript
|
|
25
|
-
{
|
|
26
|
-
status_code: 501,
|
|
27
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Internal server error response (500):**
|
|
32
|
-
```typescript
|
|
33
|
-
{
|
|
34
|
-
status_code: 500,
|
|
35
|
-
error: 'Internal server error'
|
|
36
|
-
}
|
|
37
|
-
```
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / IsConnectedResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: IsConnectedResponse
|
|
4
|
-
|
|
5
|
-
> **IsConnectedResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `404`, [`IsConnectedResult`](IsConnectedResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when checking connection status.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Connected to Grab SuperApp. The `result` contains the connection status.
|
|
13
|
-
- `404`: Not connected to Grab SuperApp.
|
|
14
|
-
|
|
15
|
-
## Examples
|
|
16
|
-
|
|
17
|
-
**Connected response (200):**
|
|
18
|
-
```typescript
|
|
19
|
-
{
|
|
20
|
-
status_code: 200,
|
|
21
|
-
result: { connected: true }
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**Not connected response (404):**
|
|
26
|
-
```typescript
|
|
27
|
-
{
|
|
28
|
-
status_code: 404,
|
|
29
|
-
error: 'Not connected to Grab app'
|
|
30
|
-
}
|
|
31
|
-
```
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / IsConnectedResult
|
|
2
|
-
|
|
3
|
-
# Type Alias: IsConnectedResult
|
|
4
|
-
|
|
5
|
-
> **IsConnectedResult** = \{ `connected`: `boolean`; \}
|
|
6
|
-
|
|
7
|
-
Result object containing the connection status.
|
|
8
|
-
|
|
9
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
**Connected to Grab SuperApp:**
|
|
12
|
-
```typescript
|
|
13
|
-
{ connected: true }
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
**Not connected:**
|
|
17
|
-
```typescript
|
|
18
|
-
{ connected: false }
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Properties
|
|
22
|
-
|
|
23
|
-
### connected
|
|
24
|
-
|
|
25
|
-
> **connected**: `boolean`
|
|
26
|
-
|
|
27
|
-
Whether the MiniApp is connected to the Grab SuperApp.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / IsEsimSupportedResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: IsEsimSupportedResponse
|
|
4
|
-
|
|
5
|
-
> **IsEsimSupportedResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`IsEsimSupportedResult`](IsEsimSupportedResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when checking whether the current device supports eSIM.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: eSIM capability was checked successfully. The `result` contains `true` or `false`.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200) - eSIM supported:**
|
|
19
|
-
```typescript
|
|
20
|
-
{
|
|
21
|
-
status_code: 200,
|
|
22
|
-
result: true
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Success response (200) - eSIM not supported:**
|
|
27
|
-
```typescript
|
|
28
|
-
{
|
|
29
|
-
status_code: 200,
|
|
30
|
-
result: false
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
**Not implemented response (501) - outside Grab app:**
|
|
35
|
-
```typescript
|
|
36
|
-
{
|
|
37
|
-
status_code: 501,
|
|
38
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
**Internal server error response (500):**
|
|
43
|
-
```typescript
|
|
44
|
-
{
|
|
45
|
-
status_code: 500,
|
|
46
|
-
error: 'Internal server error'
|
|
47
|
-
}
|
|
48
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / IsEsimSupportedResult
|
|
2
|
-
|
|
3
|
-
# Type Alias: IsEsimSupportedResult
|
|
4
|
-
|
|
5
|
-
> **IsEsimSupportedResult** = `boolean`
|
|
6
|
-
|
|
7
|
-
Result indicating whether the current device supports eSIM.
|
|
8
|
-
|
|
9
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
true
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
false
|
|
17
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / ObserveDRMPlaybackResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: ObserveDRMPlaybackResponse
|
|
4
|
-
|
|
5
|
-
> **ObserveDRMPlaybackResponse** = [`BridgeStream`](BridgeStream.md)\<`200` \| `500` \| `501`, [`DRMPlaybackEvent`](DRMPlaybackEvent.md)\>
|
|
6
|
-
|
|
7
|
-
Response stream for observing DRM playback events.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This is a `BridgeStream` that can be:
|
|
12
|
-
- Subscribed to via `.subscribe()` for continuous updates
|
|
13
|
-
- Awaited via `await` to get the first value only
|
|
14
|
-
|
|
15
|
-
The stream can emit status codes 200 (event data), 500 (server error), or 501 (not implemented).
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / ObserveLocationChangeResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: ObserveLocationChangeResponse
|
|
4
|
-
|
|
5
|
-
> **ObserveLocationChangeResponse** = [`BridgeStream`](BridgeStream.md)\<`200` \| `424` \| `500` \| `501`, [`GetCoordinateResult`](GetCoordinateResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when observing the device coordinates.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This is a `BridgeStream` that can be:
|
|
12
|
-
- Subscribed to via `.subscribe()` for continuous updates
|
|
13
|
-
- Awaited via `await` to get the first value only
|
|
14
|
-
|
|
15
|
-
The stream can emit the same status codes as [GetCoordinateResponse](GetCoordinateResponse.md).
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / OnContentLoadedResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: OnContentLoadedResponse
|
|
4
|
-
|
|
5
|
-
> **OnContentLoadedResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`OnContentLoadedResult`](OnContentLoadedResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when notifying content loaded.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Notification sent successfully.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200):**
|
|
19
|
-
```typescript
|
|
20
|
-
{ status_code: 200 }
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Not implemented response (501) - outside Grab app:**
|
|
24
|
-
```typescript
|
|
25
|
-
{
|
|
26
|
-
status_code: 501,
|
|
27
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Internal server error response (500):**
|
|
32
|
-
```typescript
|
|
33
|
-
{
|
|
34
|
-
status_code: 500,
|
|
35
|
-
error: 'Internal server error'
|
|
36
|
-
}
|
|
37
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / OnCtaTapResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: OnCtaTapResponse
|
|
4
|
-
|
|
5
|
-
> **OnCtaTapResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`OnCtaTapResult`](OnCtaTapResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when notifying CTA tap.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: CTA tap notification sent successfully.
|
|
13
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
14
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
15
|
-
|
|
16
|
-
## Examples
|
|
17
|
-
|
|
18
|
-
**Success response (200):**
|
|
19
|
-
```typescript
|
|
20
|
-
{ status_code: 200 }
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Not implemented response (501) - outside Grab app:**
|
|
24
|
-
```typescript
|
|
25
|
-
{
|
|
26
|
-
status_code: 501,
|
|
27
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Internal server error response (500):**
|
|
32
|
-
```typescript
|
|
33
|
-
{
|
|
34
|
-
status_code: 500,
|
|
35
|
-
error: 'Internal server error'
|
|
36
|
-
}
|
|
37
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / OpenExternalLinkRequest
|
|
2
|
-
|
|
3
|
-
# Type Alias: OpenExternalLinkRequest
|
|
4
|
-
|
|
5
|
-
> **OpenExternalLinkRequest** = `string`
|
|
6
|
-
|
|
7
|
-
Request parameters for opening an external link.
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
'https://example.com'
|
|
13
|
-
```
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / OpenExternalLinkResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: OpenExternalLinkResponse
|
|
4
|
-
|
|
5
|
-
> **OpenExternalLinkResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `500` \| `501`, [`OpenExternalLinkResult`](OpenExternalLinkResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when opening an external link.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: External link opened successfully.
|
|
13
|
-
- `400`: Invalid URL parameter.
|
|
14
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
15
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
16
|
-
|
|
17
|
-
## Examples
|
|
18
|
-
|
|
19
|
-
**Success response (200):**
|
|
20
|
-
```typescript
|
|
21
|
-
{ status_code: 200 }
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**Bad request response (400):**
|
|
25
|
-
```typescript
|
|
26
|
-
{
|
|
27
|
-
status_code: 400,
|
|
28
|
-
error: 'URL parameter not found'
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Not implemented response (501) - outside Grab app:**
|
|
33
|
-
```typescript
|
|
34
|
-
{
|
|
35
|
-
status_code: 501,
|
|
36
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
37
|
-
}
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Internal server error response (500):**
|
|
41
|
-
```typescript
|
|
42
|
-
{
|
|
43
|
-
status_code: 500,
|
|
44
|
-
error: 'Internal server error'
|
|
45
|
-
}
|
|
46
|
-
```
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / PlayDRMContentResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: PlayDRMContentResponse
|
|
4
|
-
|
|
5
|
-
> **PlayDRMContentResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `204` \| `500` \| `501`, [`PlayDRMContentResult`](PlayDRMContentResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when initiating DRM content playback.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Playback initiated successfully (streaming content).
|
|
13
|
-
- `204`: Invalid parameters - the DRM configuration is malformed or missing required fields.
|
|
14
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
15
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
16
|
-
|
|
17
|
-
## Examples
|
|
18
|
-
|
|
19
|
-
**Success response (200):**
|
|
20
|
-
```typescript
|
|
21
|
-
{ status_code: 200 }
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**Invalid parameters response (204):**
|
|
25
|
-
```typescript
|
|
26
|
-
{ status_code: 204 }
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**Not implemented response (501) - outside Grab app:**
|
|
30
|
-
```typescript
|
|
31
|
-
{
|
|
32
|
-
status_code: 501,
|
|
33
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
34
|
-
}
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Internal server error response (500):**
|
|
38
|
-
```typescript
|
|
39
|
-
{
|
|
40
|
-
status_code: 500,
|
|
41
|
-
error: 'Internal server error'
|
|
42
|
-
}
|
|
43
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / RedirectToSystemWebViewRequest
|
|
2
|
-
|
|
3
|
-
# Type Alias: RedirectToSystemWebViewRequest
|
|
4
|
-
|
|
5
|
-
> **RedirectToSystemWebViewRequest** = \{ `url`: `string`; \}
|
|
6
|
-
|
|
7
|
-
Request parameters for redirecting to the system web view.
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
{
|
|
13
|
-
url: 'https://www.example.com'
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Properties
|
|
18
|
-
|
|
19
|
-
### url
|
|
20
|
-
|
|
21
|
-
> **url**: `string`
|
|
22
|
-
|
|
23
|
-
The URL to open in the system web view.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / RedirectToSystemWebViewResponse
|
|
2
|
-
|
|
3
|
-
# Type Alias: RedirectToSystemWebViewResponse
|
|
4
|
-
|
|
5
|
-
> **RedirectToSystemWebViewResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `424` \| `500` \| `501`, [`RedirectToSystemWebViewResult`](RedirectToSystemWebViewResult.md)\>
|
|
6
|
-
|
|
7
|
-
Response when redirecting to the system web view.
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
This response can have the following status codes:
|
|
12
|
-
- `200`: Redirect initiated successfully.
|
|
13
|
-
- `400`: Invalid URL, domain not whitelisted, or missing callback URL.
|
|
14
|
-
- `424`: ASWebAuthenticationSession error - dependency error on iOS.
|
|
15
|
-
- `500`: Internal server error - an unexpected error occurred on the native side.
|
|
16
|
-
- `501`: Not implemented - this method requires the Grab app environment.
|
|
17
|
-
|
|
18
|
-
## Examples
|
|
19
|
-
|
|
20
|
-
**Success response (200):**
|
|
21
|
-
```typescript
|
|
22
|
-
{ status_code: 200 }
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**Bad request response (400):**
|
|
26
|
-
```typescript
|
|
27
|
-
{
|
|
28
|
-
status_code: 400,
|
|
29
|
-
error: 'Invalid URL or domain not whitelisted'
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**Failed dependency response (424):**
|
|
34
|
-
```typescript
|
|
35
|
-
{
|
|
36
|
-
status_code: 424,
|
|
37
|
-
error: 'ASWebAuthenticationSession error'
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**Not implemented response (501) - outside Grab app:**
|
|
42
|
-
```typescript
|
|
43
|
-
{
|
|
44
|
-
status_code: 501,
|
|
45
|
-
error: 'Not implemented: This method requires the Grab app environment'
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Internal server error response (500):**
|
|
50
|
-
```typescript
|
|
51
|
-
{
|
|
52
|
-
status_code: 500,
|
|
53
|
-
error: 'Internal server error'
|
|
54
|
-
}
|
|
55
|
-
```
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
[@grabjs/superapp-sdk](../globals.md) / RedirectToSystemWebViewResult
|
|
2
|
-
|
|
3
|
-
# Type Alias: RedirectToSystemWebViewResult
|
|
4
|
-
|
|
5
|
-
> **RedirectToSystemWebViewResult** = `void`
|
|
6
|
-
|
|
7
|
-
Result object for redirecting to the system web view.
|
|
8
|
-
This operation returns no data on success.
|