github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/identity/bindings/import_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build wasm 5 6 package bindings 7 8 import ( 9 "unsafe" 10 11 "github.com/primecitizens/pcz/std/ffi/js" 12 ) 13 14 type ( 15 _ unsafe.Pointer 16 _ js.Ref 17 ) 18 19 //go:wasmimport plat/js/webext/identity store_AccountInfo 20 //go:noescape 21 func AccountInfoJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/identity load_AccountInfo 25 //go:noescape 26 func AccountInfoJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/identity constof_AccountStatus 30 //go:noescape 31 func ConstOfAccountStatus(str js.Ref) uint32 32 33 //go:wasmimport plat/js/webext/identity store_GetAuthTokenResult 34 //go:noescape 35 func GetAuthTokenResultJSStore( 36 ptr unsafe.Pointer, ref js.Ref) 37 38 //go:wasmimport plat/js/webext/identity load_GetAuthTokenResult 39 //go:noescape 40 func GetAuthTokenResultJSLoad( 41 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 42 43 //go:wasmimport plat/js/webext/identity store_ProfileUserInfo 44 //go:noescape 45 func ProfileUserInfoJSStore( 46 ptr unsafe.Pointer, ref js.Ref) 47 48 //go:wasmimport plat/js/webext/identity load_ProfileUserInfo 49 //go:noescape 50 func ProfileUserInfoJSLoad( 51 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 52 53 //go:wasmimport plat/js/webext/identity store_InvalidTokenDetails 54 //go:noescape 55 func InvalidTokenDetailsJSStore( 56 ptr unsafe.Pointer, ref js.Ref) 57 58 //go:wasmimport plat/js/webext/identity load_InvalidTokenDetails 59 //go:noescape 60 func InvalidTokenDetailsJSLoad( 61 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 62 63 //go:wasmimport plat/js/webext/identity store_ProfileDetails 64 //go:noescape 65 func ProfileDetailsJSStore( 66 ptr unsafe.Pointer, ref js.Ref) 67 68 //go:wasmimport plat/js/webext/identity load_ProfileDetails 69 //go:noescape 70 func ProfileDetailsJSLoad( 71 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 72 73 //go:wasmimport plat/js/webext/identity store_TokenDetails 74 //go:noescape 75 func TokenDetailsJSStore( 76 ptr unsafe.Pointer, ref js.Ref) 77 78 //go:wasmimport plat/js/webext/identity load_TokenDetails 79 //go:noescape 80 func TokenDetailsJSLoad( 81 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 82 83 //go:wasmimport plat/js/webext/identity store_WebAuthFlowDetails 84 //go:noescape 85 func WebAuthFlowDetailsJSStore( 86 ptr unsafe.Pointer, ref js.Ref) 87 88 //go:wasmimport plat/js/webext/identity load_WebAuthFlowDetails 89 //go:noescape 90 func WebAuthFlowDetailsJSLoad( 91 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 92 93 //go:wasmimport plat/js/webext/identity has_ClearAllCachedAuthTokens 94 //go:noescape 95 func HasFuncClearAllCachedAuthTokens() js.Ref 96 97 //go:wasmimport plat/js/webext/identity func_ClearAllCachedAuthTokens 98 //go:noescape 99 func FuncClearAllCachedAuthTokens(fn unsafe.Pointer) 100 101 //go:wasmimport plat/js/webext/identity call_ClearAllCachedAuthTokens 102 //go:noescape 103 func CallClearAllCachedAuthTokens( 104 retPtr unsafe.Pointer) 105 106 //go:wasmimport plat/js/webext/identity try_ClearAllCachedAuthTokens 107 //go:noescape 108 func TryClearAllCachedAuthTokens( 109 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 110 111 //go:wasmimport plat/js/webext/identity has_GetAccounts 112 //go:noescape 113 func HasFuncGetAccounts() js.Ref 114 115 //go:wasmimport plat/js/webext/identity func_GetAccounts 116 //go:noescape 117 func FuncGetAccounts(fn unsafe.Pointer) 118 119 //go:wasmimport plat/js/webext/identity call_GetAccounts 120 //go:noescape 121 func CallGetAccounts( 122 retPtr unsafe.Pointer) 123 124 //go:wasmimport plat/js/webext/identity try_GetAccounts 125 //go:noescape 126 func TryGetAccounts( 127 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 128 129 //go:wasmimport plat/js/webext/identity has_GetAuthToken 130 //go:noescape 131 func HasFuncGetAuthToken() js.Ref 132 133 //go:wasmimport plat/js/webext/identity func_GetAuthToken 134 //go:noescape 135 func FuncGetAuthToken(fn unsafe.Pointer) 136 137 //go:wasmimport plat/js/webext/identity call_GetAuthToken 138 //go:noescape 139 func CallGetAuthToken( 140 retPtr unsafe.Pointer, 141 details unsafe.Pointer) 142 143 //go:wasmimport plat/js/webext/identity try_GetAuthToken 144 //go:noescape 145 func TryGetAuthToken( 146 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 147 details unsafe.Pointer) (ok js.Ref) 148 149 //go:wasmimport plat/js/webext/identity has_GetProfileUserInfo 150 //go:noescape 151 func HasFuncGetProfileUserInfo() js.Ref 152 153 //go:wasmimport plat/js/webext/identity func_GetProfileUserInfo 154 //go:noescape 155 func FuncGetProfileUserInfo(fn unsafe.Pointer) 156 157 //go:wasmimport plat/js/webext/identity call_GetProfileUserInfo 158 //go:noescape 159 func CallGetProfileUserInfo( 160 retPtr unsafe.Pointer, 161 details unsafe.Pointer) 162 163 //go:wasmimport plat/js/webext/identity try_GetProfileUserInfo 164 //go:noescape 165 func TryGetProfileUserInfo( 166 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 167 details unsafe.Pointer) (ok js.Ref) 168 169 //go:wasmimport plat/js/webext/identity has_GetRedirectURL 170 //go:noescape 171 func HasFuncGetRedirectURL() js.Ref 172 173 //go:wasmimport plat/js/webext/identity func_GetRedirectURL 174 //go:noescape 175 func FuncGetRedirectURL(fn unsafe.Pointer) 176 177 //go:wasmimport plat/js/webext/identity call_GetRedirectURL 178 //go:noescape 179 func CallGetRedirectURL( 180 retPtr unsafe.Pointer, 181 path js.Ref) 182 183 //go:wasmimport plat/js/webext/identity try_GetRedirectURL 184 //go:noescape 185 func TryGetRedirectURL( 186 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 187 path js.Ref) (ok js.Ref) 188 189 //go:wasmimport plat/js/webext/identity has_LaunchWebAuthFlow 190 //go:noescape 191 func HasFuncLaunchWebAuthFlow() js.Ref 192 193 //go:wasmimport plat/js/webext/identity func_LaunchWebAuthFlow 194 //go:noescape 195 func FuncLaunchWebAuthFlow(fn unsafe.Pointer) 196 197 //go:wasmimport plat/js/webext/identity call_LaunchWebAuthFlow 198 //go:noescape 199 func CallLaunchWebAuthFlow( 200 retPtr unsafe.Pointer, 201 details unsafe.Pointer) 202 203 //go:wasmimport plat/js/webext/identity try_LaunchWebAuthFlow 204 //go:noescape 205 func TryLaunchWebAuthFlow( 206 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 207 details unsafe.Pointer) (ok js.Ref) 208 209 //go:wasmimport plat/js/webext/identity has_OnSignInChanged 210 //go:noescape 211 func HasFuncOnSignInChanged() js.Ref 212 213 //go:wasmimport plat/js/webext/identity func_OnSignInChanged 214 //go:noescape 215 func FuncOnSignInChanged(fn unsafe.Pointer) 216 217 //go:wasmimport plat/js/webext/identity call_OnSignInChanged 218 //go:noescape 219 func CallOnSignInChanged( 220 retPtr unsafe.Pointer, 221 callback js.Ref) 222 223 //go:wasmimport plat/js/webext/identity try_OnSignInChanged 224 //go:noescape 225 func TryOnSignInChanged( 226 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 227 callback js.Ref) (ok js.Ref) 228 229 //go:wasmimport plat/js/webext/identity has_OffSignInChanged 230 //go:noescape 231 func HasFuncOffSignInChanged() js.Ref 232 233 //go:wasmimport plat/js/webext/identity func_OffSignInChanged 234 //go:noescape 235 func FuncOffSignInChanged(fn unsafe.Pointer) 236 237 //go:wasmimport plat/js/webext/identity call_OffSignInChanged 238 //go:noescape 239 func CallOffSignInChanged( 240 retPtr unsafe.Pointer, 241 callback js.Ref) 242 243 //go:wasmimport plat/js/webext/identity try_OffSignInChanged 244 //go:noescape 245 func TryOffSignInChanged( 246 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 247 callback js.Ref) (ok js.Ref) 248 249 //go:wasmimport plat/js/webext/identity has_HasOnSignInChanged 250 //go:noescape 251 func HasFuncHasOnSignInChanged() js.Ref 252 253 //go:wasmimport plat/js/webext/identity func_HasOnSignInChanged 254 //go:noescape 255 func FuncHasOnSignInChanged(fn unsafe.Pointer) 256 257 //go:wasmimport plat/js/webext/identity call_HasOnSignInChanged 258 //go:noescape 259 func CallHasOnSignInChanged( 260 retPtr unsafe.Pointer, 261 callback js.Ref) 262 263 //go:wasmimport plat/js/webext/identity try_HasOnSignInChanged 264 //go:noescape 265 func TryHasOnSignInChanged( 266 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 267 callback js.Ref) (ok js.Ref) 268 269 //go:wasmimport plat/js/webext/identity has_RemoveCachedAuthToken 270 //go:noescape 271 func HasFuncRemoveCachedAuthToken() js.Ref 272 273 //go:wasmimport plat/js/webext/identity func_RemoveCachedAuthToken 274 //go:noescape 275 func FuncRemoveCachedAuthToken(fn unsafe.Pointer) 276 277 //go:wasmimport plat/js/webext/identity call_RemoveCachedAuthToken 278 //go:noescape 279 func CallRemoveCachedAuthToken( 280 retPtr unsafe.Pointer, 281 details unsafe.Pointer) 282 283 //go:wasmimport plat/js/webext/identity try_RemoveCachedAuthToken 284 //go:noescape 285 func TryRemoveCachedAuthToken( 286 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 287 details unsafe.Pointer) (ok js.Ref)