@grabjs/superapp-sdk 2.0.0-beta.23 → 2.0.0-beta.29

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.
Files changed (167) hide show
  1. package/README.md +14 -155
  2. package/api-reference/api.json +43962 -0
  3. package/dist/index.d.ts +2140 -2608
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +1 -1
  6. package/package.json +14 -9
  7. package/skills/SKILL.md +405 -0
  8. package/api-reference/json/api.json +0 -27688
  9. package/api-reference/markdown/README.md +0 -194
  10. package/api-reference/markdown/classes/BaseModule.md +0 -123
  11. package/api-reference/markdown/classes/CameraModule.md +0 -177
  12. package/api-reference/markdown/classes/CheckoutModule.md +0 -181
  13. package/api-reference/markdown/classes/ContainerModule.md +0 -751
  14. package/api-reference/markdown/classes/DeviceCapabilityModule.md +0 -161
  15. package/api-reference/markdown/classes/FileModule.md +0 -178
  16. package/api-reference/markdown/classes/IdentityModule.md +0 -299
  17. package/api-reference/markdown/classes/LocaleModule.md +0 -161
  18. package/api-reference/markdown/classes/LocationModule.md +0 -239
  19. package/api-reference/markdown/classes/MediaModule.md +0 -219
  20. package/api-reference/markdown/classes/PlatformModule.md +0 -162
  21. package/api-reference/markdown/classes/ProfileModule.md +0 -224
  22. package/api-reference/markdown/classes/ScopeModule.md +0 -219
  23. package/api-reference/markdown/classes/StorageModule.md +0 -608
  24. package/api-reference/markdown/classes/SystemWebViewKitModule.md +0 -177
  25. package/api-reference/markdown/classes/UserAttributesModule.md +0 -164
  26. package/api-reference/markdown/functions/isClientError.md +0 -37
  27. package/api-reference/markdown/functions/isErrorResponse.md +0 -40
  28. package/api-reference/markdown/functions/isRedirection.md +0 -37
  29. package/api-reference/markdown/functions/isServerError.md +0 -37
  30. package/api-reference/markdown/functions/isSuccess.md +0 -39
  31. package/api-reference/markdown/globals.md +0 -176
  32. package/api-reference/markdown/interfaces/GrabAppInfo.md +0 -23
  33. package/api-reference/markdown/interfaces/InvokeOptions.md +0 -63
  34. package/api-reference/markdown/interfaces/Version.md +0 -23
  35. package/api-reference/markdown/interfaces/WrappedModule.md +0 -51
  36. package/api-reference/markdown/type-aliases/AuthorizeRequest.md +0 -79
  37. package/api-reference/markdown/type-aliases/AuthorizeResponse.md +0 -58
  38. package/api-reference/markdown/type-aliases/AuthorizeResult.md +0 -33
  39. package/api-reference/markdown/type-aliases/BackResponse.md +0 -37
  40. package/api-reference/markdown/type-aliases/BackResult.md +0 -8
  41. package/api-reference/markdown/type-aliases/BridgeClientError.md +0 -9
  42. package/api-reference/markdown/type-aliases/BridgeError.md +0 -8
  43. package/api-reference/markdown/type-aliases/BridgeRedirection.md +0 -8
  44. package/api-reference/markdown/type-aliases/BridgeResponse.md +0 -40
  45. package/api-reference/markdown/type-aliases/BridgeServerError.md +0 -8
  46. package/api-reference/markdown/type-aliases/BridgeStatusCode.md +0 -7
  47. package/api-reference/markdown/type-aliases/BridgeStream.md +0 -29
  48. package/api-reference/markdown/type-aliases/BridgeStreamHandlers.md +0 -25
  49. package/api-reference/markdown/type-aliases/BridgeSuccessResponse.md +0 -14
  50. package/api-reference/markdown/type-aliases/ClearAuthorizationArtifactsResponse.md +0 -18
  51. package/api-reference/markdown/type-aliases/ClearAuthorizationArtifactsResult.md +0 -8
  52. package/api-reference/markdown/type-aliases/CloseResponse.md +0 -37
  53. package/api-reference/markdown/type-aliases/CloseResult.md +0 -8
  54. package/api-reference/markdown/type-aliases/DRMContentConfig.md +0 -34
  55. package/api-reference/markdown/type-aliases/DRMPlaybackEvent.md +0 -43
  56. package/api-reference/markdown/type-aliases/DownloadFileRequest.md +0 -32
  57. package/api-reference/markdown/type-aliases/DownloadFileResponse.md +0 -48
  58. package/api-reference/markdown/type-aliases/DownloadFileResult.md +0 -11
  59. package/api-reference/markdown/type-aliases/ErrorResponse.md +0 -32
  60. package/api-reference/markdown/type-aliases/FetchEmailResponse.md +0 -58
  61. package/api-reference/markdown/type-aliases/FetchEmailResult.md +0 -21
  62. package/api-reference/markdown/type-aliases/GetAuthorizationArtifactsResponse.md +0 -42
  63. package/api-reference/markdown/type-aliases/GetAuthorizationArtifactsResult.md +0 -57
  64. package/api-reference/markdown/type-aliases/GetBooleanRequest.md +0 -21
  65. package/api-reference/markdown/type-aliases/GetBooleanResponse.md +0 -57
  66. package/api-reference/markdown/type-aliases/GetBooleanResult.md +0 -27
  67. package/api-reference/markdown/type-aliases/GetCoordinateResponse.md +0 -49
  68. package/api-reference/markdown/type-aliases/GetCoordinateResult.md +0 -29
  69. package/api-reference/markdown/type-aliases/GetCountryCodeResponse.md +0 -57
  70. package/api-reference/markdown/type-aliases/GetCountryCodeResult.md +0 -25
  71. package/api-reference/markdown/type-aliases/GetDoubleRequest.md +0 -21
  72. package/api-reference/markdown/type-aliases/GetDoubleResponse.md +0 -57
  73. package/api-reference/markdown/type-aliases/GetDoubleResult.md +0 -27
  74. package/api-reference/markdown/type-aliases/GetIntRequest.md +0 -21
  75. package/api-reference/markdown/type-aliases/GetIntResponse.md +0 -57
  76. package/api-reference/markdown/type-aliases/GetIntResult.md +0 -27
  77. package/api-reference/markdown/type-aliases/GetLanguageLocaleIdentifierResponse.md +0 -48
  78. package/api-reference/markdown/type-aliases/GetLanguageLocaleIdentifierResult.md +0 -31
  79. package/api-reference/markdown/type-aliases/GetSelectedTravelDestinationResponse.md +0 -48
  80. package/api-reference/markdown/type-aliases/GetSelectedTravelDestinationResult.md +0 -17
  81. package/api-reference/markdown/type-aliases/GetSessionParamsResponse.md +0 -40
  82. package/api-reference/markdown/type-aliases/GetSessionParamsResult.md +0 -27
  83. package/api-reference/markdown/type-aliases/GetStringRequest.md +0 -21
  84. package/api-reference/markdown/type-aliases/GetStringResponse.md +0 -57
  85. package/api-reference/markdown/type-aliases/GetStringResult.md +0 -27
  86. package/api-reference/markdown/type-aliases/HasAccessToResponse.md +0 -66
  87. package/api-reference/markdown/type-aliases/HasAccessToResult.md +0 -27
  88. package/api-reference/markdown/type-aliases/HideBackButtonResponse.md +0 -37
  89. package/api-reference/markdown/type-aliases/HideBackButtonResult.md +0 -8
  90. package/api-reference/markdown/type-aliases/HideLoaderResponse.md +0 -37
  91. package/api-reference/markdown/type-aliases/HideLoaderResult.md +0 -8
  92. package/api-reference/markdown/type-aliases/HideRefreshButtonResponse.md +0 -37
  93. package/api-reference/markdown/type-aliases/HideRefreshButtonResult.md +0 -8
  94. package/api-reference/markdown/type-aliases/IsConnectedResponse.md +0 -31
  95. package/api-reference/markdown/type-aliases/IsConnectedResult.md +0 -27
  96. package/api-reference/markdown/type-aliases/IsEsimSupportedResponse.md +0 -48
  97. package/api-reference/markdown/type-aliases/IsEsimSupportedResult.md +0 -17
  98. package/api-reference/markdown/type-aliases/ObserveDRMPlaybackResponse.md +0 -15
  99. package/api-reference/markdown/type-aliases/ObserveLocationChangeResponse.md +0 -15
  100. package/api-reference/markdown/type-aliases/OnContentLoadedResponse.md +0 -37
  101. package/api-reference/markdown/type-aliases/OnContentLoadedResult.md +0 -8
  102. package/api-reference/markdown/type-aliases/OnCtaTapRequest.md +0 -13
  103. package/api-reference/markdown/type-aliases/OnCtaTapResponse.md +0 -37
  104. package/api-reference/markdown/type-aliases/OnCtaTapResult.md +0 -8
  105. package/api-reference/markdown/type-aliases/OpenExternalLinkRequest.md +0 -13
  106. package/api-reference/markdown/type-aliases/OpenExternalLinkResponse.md +0 -46
  107. package/api-reference/markdown/type-aliases/OpenExternalLinkResult.md +0 -8
  108. package/api-reference/markdown/type-aliases/Platform.md +0 -7
  109. package/api-reference/markdown/type-aliases/PlayDRMContentResponse.md +0 -43
  110. package/api-reference/markdown/type-aliases/PlayDRMContentResult.md +0 -8
  111. package/api-reference/markdown/type-aliases/RedirectToSystemWebViewRequest.md +0 -23
  112. package/api-reference/markdown/type-aliases/RedirectToSystemWebViewResponse.md +0 -55
  113. package/api-reference/markdown/type-aliases/RedirectToSystemWebViewResult.md +0 -8
  114. package/api-reference/markdown/type-aliases/ReloadScopesResponse.md +0 -46
  115. package/api-reference/markdown/type-aliases/ReloadScopesResult.md +0 -8
  116. package/api-reference/markdown/type-aliases/RemoveAllResponse.md +0 -37
  117. package/api-reference/markdown/type-aliases/RemoveAllResult.md +0 -8
  118. package/api-reference/markdown/type-aliases/RemoveResponse.md +0 -46
  119. package/api-reference/markdown/type-aliases/RemoveResult.md +0 -8
  120. package/api-reference/markdown/type-aliases/ResponseStatusCode200.md +0 -34
  121. package/api-reference/markdown/type-aliases/ResponseStatusCode204.md +0 -20
  122. package/api-reference/markdown/type-aliases/ResponseStatusCode302.md +0 -20
  123. package/api-reference/markdown/type-aliases/ResponseStatusCode400.md +0 -7
  124. package/api-reference/markdown/type-aliases/ResponseStatusCode401.md +0 -7
  125. package/api-reference/markdown/type-aliases/ResponseStatusCode403.md +0 -7
  126. package/api-reference/markdown/type-aliases/ResponseStatusCode404.md +0 -7
  127. package/api-reference/markdown/type-aliases/ResponseStatusCode424.md +0 -7
  128. package/api-reference/markdown/type-aliases/ResponseStatusCode426.md +0 -12
  129. package/api-reference/markdown/type-aliases/ResponseStatusCode500.md +0 -7
  130. package/api-reference/markdown/type-aliases/ResponseStatusCode501.md +0 -12
  131. package/api-reference/markdown/type-aliases/ScanQRCodeRequest.md +0 -27
  132. package/api-reference/markdown/type-aliases/ScanQRCodeResponse.md +0 -64
  133. package/api-reference/markdown/type-aliases/ScanQRCodeResult.md +0 -21
  134. package/api-reference/markdown/type-aliases/SendAnalyticsEventRequest.md +0 -56
  135. package/api-reference/markdown/type-aliases/SendAnalyticsEventResponse.md +0 -46
  136. package/api-reference/markdown/type-aliases/SendAnalyticsEventResult.md +0 -8
  137. package/api-reference/markdown/type-aliases/SetBackgroundColorRequest.md +0 -13
  138. package/api-reference/markdown/type-aliases/SetBackgroundColorResponse.md +0 -46
  139. package/api-reference/markdown/type-aliases/SetBackgroundColorResult.md +0 -8
  140. package/api-reference/markdown/type-aliases/SetBooleanResponse.md +0 -46
  141. package/api-reference/markdown/type-aliases/SetBooleanResult.md +0 -8
  142. package/api-reference/markdown/type-aliases/SetDoubleResponse.md +0 -46
  143. package/api-reference/markdown/type-aliases/SetDoubleResult.md +0 -8
  144. package/api-reference/markdown/type-aliases/SetIntResponse.md +0 -46
  145. package/api-reference/markdown/type-aliases/SetIntResult.md +0 -8
  146. package/api-reference/markdown/type-aliases/SetStringResponse.md +0 -46
  147. package/api-reference/markdown/type-aliases/SetStringResult.md +0 -8
  148. package/api-reference/markdown/type-aliases/SetTitleRequest.md +0 -13
  149. package/api-reference/markdown/type-aliases/SetTitleResponse.md +0 -46
  150. package/api-reference/markdown/type-aliases/SetTitleResult.md +0 -8
  151. package/api-reference/markdown/type-aliases/ShowBackButtonResponse.md +0 -37
  152. package/api-reference/markdown/type-aliases/ShowBackButtonResult.md +0 -8
  153. package/api-reference/markdown/type-aliases/ShowLoaderResponse.md +0 -37
  154. package/api-reference/markdown/type-aliases/ShowLoaderResult.md +0 -8
  155. package/api-reference/markdown/type-aliases/ShowRefreshButtonResponse.md +0 -37
  156. package/api-reference/markdown/type-aliases/ShowRefreshButtonResult.md +0 -8
  157. package/api-reference/markdown/type-aliases/StatusCodeMap.md +0 -80
  158. package/api-reference/markdown/type-aliases/Subscription.md +0 -12
  159. package/api-reference/markdown/type-aliases/TriggerCheckoutRequest.md +0 -26
  160. package/api-reference/markdown/type-aliases/TriggerCheckoutResponse.md +0 -76
  161. package/api-reference/markdown/type-aliases/TriggerCheckoutResult.md +0 -75
  162. package/api-reference/markdown/type-aliases/VerifyEmailRequest.md +0 -32
  163. package/api-reference/markdown/type-aliases/VerifyEmailResponse.md +0 -55
  164. package/api-reference/markdown/type-aliases/VerifyEmailResult.md +0 -8
  165. package/api-reference/markdown/variables/ContainerAnalyticsEventData.md +0 -21
  166. package/api-reference/markdown/variables/ContainerAnalyticsEventName.md +0 -13
  167. package/api-reference/markdown/variables/ContainerAnalyticsEventState.md +0 -25
@@ -1,57 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetCountryCodeResponse
2
-
3
- # Type Alias: GetCountryCodeResponse
4
-
5
- > **GetCountryCodeResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `424` \| `500` \| `501`, [`GetCountryCodeResult`](GetCountryCodeResult.md)\>
6
-
7
- Response when getting the country code.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Country code retrieved successfully. The `result` contains the ISO country code.
13
- - `424`: GeoKit/Resolver error - location services unavailable.
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) - Singapore:**
20
- ```typescript
21
- {
22
- status_code: 200,
23
- result: { countryCode: 'SG' }
24
- }
25
- ```
26
-
27
- **Success response (200) - Indonesia:**
28
- ```typescript
29
- {
30
- status_code: 200,
31
- result: { countryCode: 'ID' }
32
- }
33
- ```
34
-
35
- **Failed dependency response (424):**
36
- ```typescript
37
- {
38
- status_code: 424,
39
- error: 'GeoKit/Resolver error'
40
- }
41
- ```
42
-
43
- **Not implemented response (501) - outside Grab app:**
44
- ```typescript
45
- {
46
- status_code: 501,
47
- error: 'Not implemented: This method requires the Grab app environment'
48
- }
49
- ```
50
-
51
- **Internal server error response (500):**
52
- ```typescript
53
- {
54
- status_code: 500,
55
- error: 'Internal server error'
56
- }
57
- ```
@@ -1,25 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetCountryCodeResult
2
-
3
- # Type Alias: GetCountryCodeResult
4
-
5
- > **GetCountryCodeResult** = \{ `countryCode`: `string`; \}
6
-
7
- Result object containing the country code.
8
-
9
- ## Examples
10
-
11
- ```typescript
12
- { countryCode: 'SG' }
13
- ```
14
-
15
- ```typescript
16
- { countryCode: 'ID' }
17
- ```
18
-
19
- ## Properties
20
-
21
- ### countryCode
22
-
23
- > **countryCode**: `string`
24
-
25
- ISO country code (e.g., "SG", "ID", "MY")
@@ -1,21 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetDoubleRequest
2
-
3
- # Type Alias: GetDoubleRequest
4
-
5
- > **GetDoubleRequest** = \{ `key`: `string`; \}
6
-
7
- Request parameters for getting a double value from storage.
8
-
9
- ## Example
10
-
11
- ```typescript
12
- { key: 'price' }
13
- ```
14
-
15
- ## Properties
16
-
17
- ### key
18
-
19
- > **key**: `string`
20
-
21
- The key to retrieve the value for.
@@ -1,57 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetDoubleResponse
2
-
3
- # Type Alias: GetDoubleResponse
4
-
5
- > **GetDoubleResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `500` \| `501`, [`GetDoubleResult`](GetDoubleResult.md)\>
6
-
7
- Response when getting a double value.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Value retrieved successfully. The `result` contains the double value or null if not found.
13
- - `400`: Missing required parameters - key not provided.
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) - value exists:**
20
- ```typescript
21
- {
22
- status_code: 200,
23
- result: { value: 19.99 }
24
- }
25
- ```
26
-
27
- **Success response (200) - value not found:**
28
- ```typescript
29
- {
30
- status_code: 200,
31
- result: { value: null }
32
- }
33
- ```
34
-
35
- **Bad request response (400):**
36
- ```typescript
37
- {
38
- status_code: 400,
39
- error: 'Missing required parameters'
40
- }
41
- ```
42
-
43
- **Not implemented response (501) - outside Grab app:**
44
- ```typescript
45
- {
46
- status_code: 501,
47
- error: 'Not implemented: This method requires the Grab app environment'
48
- }
49
- ```
50
-
51
- **Internal server error response (500):**
52
- ```typescript
53
- {
54
- status_code: 500,
55
- error: 'Internal server error'
56
- }
57
- ```
@@ -1,27 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetDoubleResult
2
-
3
- # Type Alias: GetDoubleResult
4
-
5
- > **GetDoubleResult** = \{ `value`: `number` \| `null`; \}
6
-
7
- Result object containing the double value.
8
-
9
- ## Examples
10
-
11
- **Value exists:**
12
- ```typescript
13
- { value: 19.99 }
14
- ```
15
-
16
- **Value not found:**
17
- ```typescript
18
- { value: null }
19
- ```
20
-
21
- ## Properties
22
-
23
- ### value
24
-
25
- > **value**: `number` \| `null`
26
-
27
- The stored double value, or null if not found.
@@ -1,21 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetIntRequest
2
-
3
- # Type Alias: GetIntRequest
4
-
5
- > **GetIntRequest** = \{ `key`: `string`; \}
6
-
7
- Request parameters for getting an integer value from storage.
8
-
9
- ## Example
10
-
11
- ```typescript
12
- { key: 'userCount' }
13
- ```
14
-
15
- ## Properties
16
-
17
- ### key
18
-
19
- > **key**: `string`
20
-
21
- The key to retrieve the value for.
@@ -1,57 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetIntResponse
2
-
3
- # Type Alias: GetIntResponse
4
-
5
- > **GetIntResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `500` \| `501`, [`GetIntResult`](GetIntResult.md)\>
6
-
7
- Response when getting an integer value.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Value retrieved successfully. The `result` contains the integer value or null if not found.
13
- - `400`: Missing required parameters - key not provided.
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) - value exists:**
20
- ```typescript
21
- {
22
- status_code: 200,
23
- result: { value: 42 }
24
- }
25
- ```
26
-
27
- **Success response (200) - value not found:**
28
- ```typescript
29
- {
30
- status_code: 200,
31
- result: { value: null }
32
- }
33
- ```
34
-
35
- **Bad request response (400):**
36
- ```typescript
37
- {
38
- status_code: 400,
39
- error: 'Missing required parameters'
40
- }
41
- ```
42
-
43
- **Not implemented response (501) - outside Grab app:**
44
- ```typescript
45
- {
46
- status_code: 501,
47
- error: 'Not implemented: This method requires the Grab app environment'
48
- }
49
- ```
50
-
51
- **Internal server error response (500):**
52
- ```typescript
53
- {
54
- status_code: 500,
55
- error: 'Internal server error'
56
- }
57
- ```
@@ -1,27 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetIntResult
2
-
3
- # Type Alias: GetIntResult
4
-
5
- > **GetIntResult** = \{ `value`: `number` \| `null`; \}
6
-
7
- Result object containing the integer value.
8
-
9
- ## Examples
10
-
11
- **Value exists:**
12
- ```typescript
13
- { value: 42 }
14
- ```
15
-
16
- **Value not found:**
17
- ```typescript
18
- { value: null }
19
- ```
20
-
21
- ## Properties
22
-
23
- ### value
24
-
25
- > **value**: `number` \| `null`
26
-
27
- The stored integer value, or null if not found.
@@ -1,48 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetLanguageLocaleIdentifierResponse
2
-
3
- # Type Alias: GetLanguageLocaleIdentifierResponse
4
-
5
- > **GetLanguageLocaleIdentifierResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`GetLanguageLocaleIdentifierResult`](GetLanguageLocaleIdentifierResult.md)\>
6
-
7
- Response when getting the language locale identifier from the device.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Locale identifier retrieved 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) - English locale:**
19
- ```typescript
20
- {
21
- status_code: 200,
22
- result: 'en'
23
- }
24
- ```
25
-
26
- **Success response (200) - Indonesian locale:**
27
- ```typescript
28
- {
29
- status_code: 200,
30
- result: 'id'
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,31 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetLanguageLocaleIdentifierResult
2
-
3
- # Type Alias: GetLanguageLocaleIdentifierResult
4
-
5
- > **GetLanguageLocaleIdentifierResult** = `string`
6
-
7
- Result object containing the language locale identifier.
8
-
9
- ## Remarks
10
-
11
- The locale identifier is the language code of the device's language settings.
12
- Common values include:
13
- - "en" (English)
14
- - "id" (Indonesian)
15
- - "zh" (Chinese)
16
- - "ms" (Malay)
17
- - "th" (Thai)
18
- - "vi" (Vietnamese)
19
- - "zg" (Burmese Zawgyi)
20
- - "my" (Burmese Unicode)
21
- - "km" (Khmer)
22
-
23
- ## Examples
24
-
25
- ```typescript
26
- 'en'
27
- ```
28
-
29
- ```typescript
30
- 'id'
31
- ```
@@ -1,48 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetSelectedTravelDestinationResponse
2
-
3
- # Type Alias: GetSelectedTravelDestinationResponse
4
-
5
- > **GetSelectedTravelDestinationResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `204` \| `500` \| `501`, [`GetSelectedTravelDestinationResult`](GetSelectedTravelDestinationResult.md)\>
6
-
7
- Response when reading the selected travel destination lowercase ISO 3166-1 alpha-2 country code.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: The selected travel destination lowercase ISO 3166-1 alpha-2 country code was returned successfully.
13
- - `204`: No selected travel destination is currently available.
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
- {
22
- status_code: 200,
23
- result: 'id'
24
- }
25
- ```
26
-
27
- **No content response (204):**
28
- ```typescript
29
- {
30
- status_code: 204
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) / GetSelectedTravelDestinationResult
2
-
3
- # Type Alias: GetSelectedTravelDestinationResult
4
-
5
- > **GetSelectedTravelDestinationResult** = `string`
6
-
7
- Result containing the selected travel destination lowercase ISO 3166-1 alpha-2 country code.
8
-
9
- ## Examples
10
-
11
- ```typescript
12
- 'id'
13
- ```
14
-
15
- ```typescript
16
- 'sg'
17
- ```
@@ -1,40 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetSessionParamsResponse
2
-
3
- # Type Alias: GetSessionParamsResponse
4
-
5
- > **GetSessionParamsResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `500` \| `501`, [`GetSessionParamsResult`](GetSessionParamsResult.md)\>
6
-
7
- Response when getting session parameters.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Session parameters retrieved 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
- {
21
- status_code: 200,
22
- result: { result: '{"userId": "123", "sessionToken": "abc"}' }
23
- }
24
- ```
25
-
26
- **Not implemented response (501) - outside Grab app:**
27
- ```typescript
28
- {
29
- status_code: 501,
30
- error: 'Not implemented: This method requires the Grab app environment'
31
- }
32
- ```
33
-
34
- **Internal server error response (500):**
35
- ```typescript
36
- {
37
- status_code: 500,
38
- error: 'Internal server error'
39
- }
40
- ```
@@ -1,27 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetSessionParamsResult
2
-
3
- # Type Alias: GetSessionParamsResult
4
-
5
- > **GetSessionParamsResult** = \{ `result`: `string`; \}
6
-
7
- Result object containing session parameters as a JSON string.
8
-
9
- ## Remarks
10
-
11
- The `result` field contains a JSON string that must be parsed with `JSON.parse()` to use as an object.
12
- Session parameters can contain primitives, base64 encoded strings, or nested objects depending on the
13
- SuperApp's configuration.
14
-
15
- ## Example
16
-
17
- ```typescript
18
- { result: '{"userId": "123", "sessionToken": "abc"}' }
19
- ```
20
-
21
- ## Properties
22
-
23
- ### result
24
-
25
- > **result**: `string`
26
-
27
- JSON string containing session parameters.
@@ -1,21 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetStringRequest
2
-
3
- # Type Alias: GetStringRequest
4
-
5
- > **GetStringRequest** = \{ `key`: `string`; \}
6
-
7
- Request parameters for getting a string value from storage.
8
-
9
- ## Example
10
-
11
- ```typescript
12
- { key: 'username' }
13
- ```
14
-
15
- ## Properties
16
-
17
- ### key
18
-
19
- > **key**: `string`
20
-
21
- The key to retrieve the value for.
@@ -1,57 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetStringResponse
2
-
3
- # Type Alias: GetStringResponse
4
-
5
- > **GetStringResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `500` \| `501`, [`GetStringResult`](GetStringResult.md)\>
6
-
7
- Response when getting a string value.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Value retrieved successfully. The `result` contains the string value or null if not found.
13
- - `400`: Missing required parameters - key not provided.
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) - value exists:**
20
- ```typescript
21
- {
22
- status_code: 200,
23
- result: { value: 'john_doe' }
24
- }
25
- ```
26
-
27
- **Success response (200) - value not found:**
28
- ```typescript
29
- {
30
- status_code: 200,
31
- result: { value: null }
32
- }
33
- ```
34
-
35
- **Bad request response (400):**
36
- ```typescript
37
- {
38
- status_code: 400,
39
- error: 'Missing required parameters'
40
- }
41
- ```
42
-
43
- **Not implemented response (501) - outside Grab app:**
44
- ```typescript
45
- {
46
- status_code: 501,
47
- error: 'Not implemented: This method requires the Grab app environment'
48
- }
49
- ```
50
-
51
- **Internal server error response (500):**
52
- ```typescript
53
- {
54
- status_code: 500,
55
- error: 'Internal server error'
56
- }
57
- ```
@@ -1,27 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / GetStringResult
2
-
3
- # Type Alias: GetStringResult
4
-
5
- > **GetStringResult** = \{ `value`: `string` \| `null`; \}
6
-
7
- Result object containing the string value.
8
-
9
- ## Examples
10
-
11
- **Value exists:**
12
- ```typescript
13
- { value: 'john_doe' }
14
- ```
15
-
16
- **Value not found:**
17
- ```typescript
18
- { value: null }
19
- ```
20
-
21
- ## Properties
22
-
23
- ### value
24
-
25
- > **value**: `string` \| `null`
26
-
27
- The stored string value, or null if not found.
@@ -1,66 +0,0 @@
1
- [@grabjs/superapp-sdk](../globals.md) / HasAccessToResponse
2
-
3
- # Type Alias: HasAccessToResponse
4
-
5
- > **HasAccessToResponse** = [`BridgeResponse`](BridgeResponse.md)\<`200` \| `400` \| `424` \| `500` \| `501`, [`HasAccessToResult`](HasAccessToResult.md)\>
6
-
7
- Response when checking API access permissions.
8
-
9
- ## Remarks
10
-
11
- This response can have the following status codes:
12
- - `200`: Access check completed successfully. The `result` contains the access status.
13
- - `400`: Missing required parameters - module or method not provided.
14
- - `424`: ScopeKit error - unable to check access due to a dependency error.
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) - has access:**
21
- ```typescript
22
- {
23
- status_code: 200,
24
- result: { hasAccess: true }
25
- }
26
- ```
27
-
28
- **Success response (200) - no access:**
29
- ```typescript
30
- {
31
- status_code: 200,
32
- result: { hasAccess: false }
33
- }
34
- ```
35
-
36
- **Bad request response (400):**
37
- ```typescript
38
- {
39
- status_code: 400,
40
- error: 'Missing required parameters'
41
- }
42
- ```
43
-
44
- **Failed dependency response (424):**
45
- ```typescript
46
- {
47
- status_code: 424,
48
- error: 'ScopeKit error'
49
- }
50
- ```
51
-
52
- **Not implemented response (501) - outside Grab app:**
53
- ```typescript
54
- {
55
- status_code: 501,
56
- error: 'Not implemented: This method requires the Grab app environment'
57
- }
58
- ```
59
-
60
- **Internal server error response (500):**
61
- ```typescript
62
- {
63
- status_code: 500,
64
- error: 'Internal server error'
65
- }
66
- ```