github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/login/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/login store_SamlUserSessionProperties
    20  //go:noescape
    21  func SamlUserSessionPropertiesJSStore(
    22  	ptr unsafe.Pointer, ref js.Ref)
    23  
    24  //go:wasmimport plat/js/webext/login load_SamlUserSessionProperties
    25  //go:noescape
    26  func SamlUserSessionPropertiesJSLoad(
    27  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    28  
    29  //go:wasmimport plat/js/webext/login has_EndSharedSession
    30  //go:noescape
    31  func HasFuncEndSharedSession() js.Ref
    32  
    33  //go:wasmimport plat/js/webext/login func_EndSharedSession
    34  //go:noescape
    35  func FuncEndSharedSession(fn unsafe.Pointer)
    36  
    37  //go:wasmimport plat/js/webext/login call_EndSharedSession
    38  //go:noescape
    39  func CallEndSharedSession(
    40  	retPtr unsafe.Pointer)
    41  
    42  //go:wasmimport plat/js/webext/login try_EndSharedSession
    43  //go:noescape
    44  func TryEndSharedSession(
    45  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    46  
    47  //go:wasmimport plat/js/webext/login has_EnterSharedSession
    48  //go:noescape
    49  func HasFuncEnterSharedSession() js.Ref
    50  
    51  //go:wasmimport plat/js/webext/login func_EnterSharedSession
    52  //go:noescape
    53  func FuncEnterSharedSession(fn unsafe.Pointer)
    54  
    55  //go:wasmimport plat/js/webext/login call_EnterSharedSession
    56  //go:noescape
    57  func CallEnterSharedSession(
    58  	retPtr unsafe.Pointer,
    59  	password js.Ref)
    60  
    61  //go:wasmimport plat/js/webext/login try_EnterSharedSession
    62  //go:noescape
    63  func TryEnterSharedSession(
    64  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    65  	password js.Ref) (ok js.Ref)
    66  
    67  //go:wasmimport plat/js/webext/login has_ExitCurrentSession
    68  //go:noescape
    69  func HasFuncExitCurrentSession() js.Ref
    70  
    71  //go:wasmimport plat/js/webext/login func_ExitCurrentSession
    72  //go:noescape
    73  func FuncExitCurrentSession(fn unsafe.Pointer)
    74  
    75  //go:wasmimport plat/js/webext/login call_ExitCurrentSession
    76  //go:noescape
    77  func CallExitCurrentSession(
    78  	retPtr unsafe.Pointer,
    79  	dataForNextLoginAttempt js.Ref)
    80  
    81  //go:wasmimport plat/js/webext/login try_ExitCurrentSession
    82  //go:noescape
    83  func TryExitCurrentSession(
    84  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    85  	dataForNextLoginAttempt js.Ref) (ok js.Ref)
    86  
    87  //go:wasmimport plat/js/webext/login has_FetchDataForNextLoginAttempt
    88  //go:noescape
    89  func HasFuncFetchDataForNextLoginAttempt() js.Ref
    90  
    91  //go:wasmimport plat/js/webext/login func_FetchDataForNextLoginAttempt
    92  //go:noescape
    93  func FuncFetchDataForNextLoginAttempt(fn unsafe.Pointer)
    94  
    95  //go:wasmimport plat/js/webext/login call_FetchDataForNextLoginAttempt
    96  //go:noescape
    97  func CallFetchDataForNextLoginAttempt(
    98  	retPtr unsafe.Pointer)
    99  
   100  //go:wasmimport plat/js/webext/login try_FetchDataForNextLoginAttempt
   101  //go:noescape
   102  func TryFetchDataForNextLoginAttempt(
   103  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   104  
   105  //go:wasmimport plat/js/webext/login has_LaunchManagedGuestSession
   106  //go:noescape
   107  func HasFuncLaunchManagedGuestSession() js.Ref
   108  
   109  //go:wasmimport plat/js/webext/login func_LaunchManagedGuestSession
   110  //go:noescape
   111  func FuncLaunchManagedGuestSession(fn unsafe.Pointer)
   112  
   113  //go:wasmimport plat/js/webext/login call_LaunchManagedGuestSession
   114  //go:noescape
   115  func CallLaunchManagedGuestSession(
   116  	retPtr unsafe.Pointer,
   117  	password js.Ref)
   118  
   119  //go:wasmimport plat/js/webext/login try_LaunchManagedGuestSession
   120  //go:noescape
   121  func TryLaunchManagedGuestSession(
   122  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   123  	password js.Ref) (ok js.Ref)
   124  
   125  //go:wasmimport plat/js/webext/login has_LaunchSamlUserSession
   126  //go:noescape
   127  func HasFuncLaunchSamlUserSession() js.Ref
   128  
   129  //go:wasmimport plat/js/webext/login func_LaunchSamlUserSession
   130  //go:noescape
   131  func FuncLaunchSamlUserSession(fn unsafe.Pointer)
   132  
   133  //go:wasmimport plat/js/webext/login call_LaunchSamlUserSession
   134  //go:noescape
   135  func CallLaunchSamlUserSession(
   136  	retPtr unsafe.Pointer,
   137  	properties unsafe.Pointer)
   138  
   139  //go:wasmimport plat/js/webext/login try_LaunchSamlUserSession
   140  //go:noescape
   141  func TryLaunchSamlUserSession(
   142  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   143  	properties unsafe.Pointer) (ok js.Ref)
   144  
   145  //go:wasmimport plat/js/webext/login has_LaunchSharedManagedGuestSession
   146  //go:noescape
   147  func HasFuncLaunchSharedManagedGuestSession() js.Ref
   148  
   149  //go:wasmimport plat/js/webext/login func_LaunchSharedManagedGuestSession
   150  //go:noescape
   151  func FuncLaunchSharedManagedGuestSession(fn unsafe.Pointer)
   152  
   153  //go:wasmimport plat/js/webext/login call_LaunchSharedManagedGuestSession
   154  //go:noescape
   155  func CallLaunchSharedManagedGuestSession(
   156  	retPtr unsafe.Pointer,
   157  	password js.Ref)
   158  
   159  //go:wasmimport plat/js/webext/login try_LaunchSharedManagedGuestSession
   160  //go:noescape
   161  func TryLaunchSharedManagedGuestSession(
   162  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   163  	password js.Ref) (ok js.Ref)
   164  
   165  //go:wasmimport plat/js/webext/login has_LockCurrentSession
   166  //go:noescape
   167  func HasFuncLockCurrentSession() js.Ref
   168  
   169  //go:wasmimport plat/js/webext/login func_LockCurrentSession
   170  //go:noescape
   171  func FuncLockCurrentSession(fn unsafe.Pointer)
   172  
   173  //go:wasmimport plat/js/webext/login call_LockCurrentSession
   174  //go:noescape
   175  func CallLockCurrentSession(
   176  	retPtr unsafe.Pointer)
   177  
   178  //go:wasmimport plat/js/webext/login try_LockCurrentSession
   179  //go:noescape
   180  func TryLockCurrentSession(
   181  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   182  
   183  //go:wasmimport plat/js/webext/login has_LockManagedGuestSession
   184  //go:noescape
   185  func HasFuncLockManagedGuestSession() js.Ref
   186  
   187  //go:wasmimport plat/js/webext/login func_LockManagedGuestSession
   188  //go:noescape
   189  func FuncLockManagedGuestSession(fn unsafe.Pointer)
   190  
   191  //go:wasmimport plat/js/webext/login call_LockManagedGuestSession
   192  //go:noescape
   193  func CallLockManagedGuestSession(
   194  	retPtr unsafe.Pointer)
   195  
   196  //go:wasmimport plat/js/webext/login try_LockManagedGuestSession
   197  //go:noescape
   198  func TryLockManagedGuestSession(
   199  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   200  
   201  //go:wasmimport plat/js/webext/login has_NotifyExternalLogoutDone
   202  //go:noescape
   203  func HasFuncNotifyExternalLogoutDone() js.Ref
   204  
   205  //go:wasmimport plat/js/webext/login func_NotifyExternalLogoutDone
   206  //go:noescape
   207  func FuncNotifyExternalLogoutDone(fn unsafe.Pointer)
   208  
   209  //go:wasmimport plat/js/webext/login call_NotifyExternalLogoutDone
   210  //go:noescape
   211  func CallNotifyExternalLogoutDone(
   212  	retPtr unsafe.Pointer)
   213  
   214  //go:wasmimport plat/js/webext/login try_NotifyExternalLogoutDone
   215  //go:noescape
   216  func TryNotifyExternalLogoutDone(
   217  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   218  
   219  //go:wasmimport plat/js/webext/login has_OnExternalLogoutDone
   220  //go:noescape
   221  func HasFuncOnExternalLogoutDone() js.Ref
   222  
   223  //go:wasmimport plat/js/webext/login func_OnExternalLogoutDone
   224  //go:noescape
   225  func FuncOnExternalLogoutDone(fn unsafe.Pointer)
   226  
   227  //go:wasmimport plat/js/webext/login call_OnExternalLogoutDone
   228  //go:noescape
   229  func CallOnExternalLogoutDone(
   230  	retPtr unsafe.Pointer,
   231  	callback js.Ref)
   232  
   233  //go:wasmimport plat/js/webext/login try_OnExternalLogoutDone
   234  //go:noescape
   235  func TryOnExternalLogoutDone(
   236  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   237  	callback js.Ref) (ok js.Ref)
   238  
   239  //go:wasmimport plat/js/webext/login has_OffExternalLogoutDone
   240  //go:noescape
   241  func HasFuncOffExternalLogoutDone() js.Ref
   242  
   243  //go:wasmimport plat/js/webext/login func_OffExternalLogoutDone
   244  //go:noescape
   245  func FuncOffExternalLogoutDone(fn unsafe.Pointer)
   246  
   247  //go:wasmimport plat/js/webext/login call_OffExternalLogoutDone
   248  //go:noescape
   249  func CallOffExternalLogoutDone(
   250  	retPtr unsafe.Pointer,
   251  	callback js.Ref)
   252  
   253  //go:wasmimport plat/js/webext/login try_OffExternalLogoutDone
   254  //go:noescape
   255  func TryOffExternalLogoutDone(
   256  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   257  	callback js.Ref) (ok js.Ref)
   258  
   259  //go:wasmimport plat/js/webext/login has_HasOnExternalLogoutDone
   260  //go:noescape
   261  func HasFuncHasOnExternalLogoutDone() js.Ref
   262  
   263  //go:wasmimport plat/js/webext/login func_HasOnExternalLogoutDone
   264  //go:noescape
   265  func FuncHasOnExternalLogoutDone(fn unsafe.Pointer)
   266  
   267  //go:wasmimport plat/js/webext/login call_HasOnExternalLogoutDone
   268  //go:noescape
   269  func CallHasOnExternalLogoutDone(
   270  	retPtr unsafe.Pointer,
   271  	callback js.Ref)
   272  
   273  //go:wasmimport plat/js/webext/login try_HasOnExternalLogoutDone
   274  //go:noescape
   275  func TryHasOnExternalLogoutDone(
   276  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   277  	callback js.Ref) (ok js.Ref)
   278  
   279  //go:wasmimport plat/js/webext/login has_OnRequestExternalLogout
   280  //go:noescape
   281  func HasFuncOnRequestExternalLogout() js.Ref
   282  
   283  //go:wasmimport plat/js/webext/login func_OnRequestExternalLogout
   284  //go:noescape
   285  func FuncOnRequestExternalLogout(fn unsafe.Pointer)
   286  
   287  //go:wasmimport plat/js/webext/login call_OnRequestExternalLogout
   288  //go:noescape
   289  func CallOnRequestExternalLogout(
   290  	retPtr unsafe.Pointer,
   291  	callback js.Ref)
   292  
   293  //go:wasmimport plat/js/webext/login try_OnRequestExternalLogout
   294  //go:noescape
   295  func TryOnRequestExternalLogout(
   296  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   297  	callback js.Ref) (ok js.Ref)
   298  
   299  //go:wasmimport plat/js/webext/login has_OffRequestExternalLogout
   300  //go:noescape
   301  func HasFuncOffRequestExternalLogout() js.Ref
   302  
   303  //go:wasmimport plat/js/webext/login func_OffRequestExternalLogout
   304  //go:noescape
   305  func FuncOffRequestExternalLogout(fn unsafe.Pointer)
   306  
   307  //go:wasmimport plat/js/webext/login call_OffRequestExternalLogout
   308  //go:noescape
   309  func CallOffRequestExternalLogout(
   310  	retPtr unsafe.Pointer,
   311  	callback js.Ref)
   312  
   313  //go:wasmimport plat/js/webext/login try_OffRequestExternalLogout
   314  //go:noescape
   315  func TryOffRequestExternalLogout(
   316  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   317  	callback js.Ref) (ok js.Ref)
   318  
   319  //go:wasmimport plat/js/webext/login has_HasOnRequestExternalLogout
   320  //go:noescape
   321  func HasFuncHasOnRequestExternalLogout() js.Ref
   322  
   323  //go:wasmimport plat/js/webext/login func_HasOnRequestExternalLogout
   324  //go:noescape
   325  func FuncHasOnRequestExternalLogout(fn unsafe.Pointer)
   326  
   327  //go:wasmimport plat/js/webext/login call_HasOnRequestExternalLogout
   328  //go:noescape
   329  func CallHasOnRequestExternalLogout(
   330  	retPtr unsafe.Pointer,
   331  	callback js.Ref)
   332  
   333  //go:wasmimport plat/js/webext/login try_HasOnRequestExternalLogout
   334  //go:noescape
   335  func TryHasOnRequestExternalLogout(
   336  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   337  	callback js.Ref) (ok js.Ref)
   338  
   339  //go:wasmimport plat/js/webext/login has_RequestExternalLogout
   340  //go:noescape
   341  func HasFuncRequestExternalLogout() js.Ref
   342  
   343  //go:wasmimport plat/js/webext/login func_RequestExternalLogout
   344  //go:noescape
   345  func FuncRequestExternalLogout(fn unsafe.Pointer)
   346  
   347  //go:wasmimport plat/js/webext/login call_RequestExternalLogout
   348  //go:noescape
   349  func CallRequestExternalLogout(
   350  	retPtr unsafe.Pointer)
   351  
   352  //go:wasmimport plat/js/webext/login try_RequestExternalLogout
   353  //go:noescape
   354  func TryRequestExternalLogout(
   355  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   356  
   357  //go:wasmimport plat/js/webext/login has_SetDataForNextLoginAttempt
   358  //go:noescape
   359  func HasFuncSetDataForNextLoginAttempt() js.Ref
   360  
   361  //go:wasmimport plat/js/webext/login func_SetDataForNextLoginAttempt
   362  //go:noescape
   363  func FuncSetDataForNextLoginAttempt(fn unsafe.Pointer)
   364  
   365  //go:wasmimport plat/js/webext/login call_SetDataForNextLoginAttempt
   366  //go:noescape
   367  func CallSetDataForNextLoginAttempt(
   368  	retPtr unsafe.Pointer,
   369  	dataForNextLoginAttempt js.Ref)
   370  
   371  //go:wasmimport plat/js/webext/login try_SetDataForNextLoginAttempt
   372  //go:noescape
   373  func TrySetDataForNextLoginAttempt(
   374  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   375  	dataForNextLoginAttempt js.Ref) (ok js.Ref)
   376  
   377  //go:wasmimport plat/js/webext/login has_UnlockCurrentSession
   378  //go:noescape
   379  func HasFuncUnlockCurrentSession() js.Ref
   380  
   381  //go:wasmimport plat/js/webext/login func_UnlockCurrentSession
   382  //go:noescape
   383  func FuncUnlockCurrentSession(fn unsafe.Pointer)
   384  
   385  //go:wasmimport plat/js/webext/login call_UnlockCurrentSession
   386  //go:noescape
   387  func CallUnlockCurrentSession(
   388  	retPtr unsafe.Pointer,
   389  	password js.Ref)
   390  
   391  //go:wasmimport plat/js/webext/login try_UnlockCurrentSession
   392  //go:noescape
   393  func TryUnlockCurrentSession(
   394  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   395  	password js.Ref) (ok js.Ref)
   396  
   397  //go:wasmimport plat/js/webext/login has_UnlockManagedGuestSession
   398  //go:noescape
   399  func HasFuncUnlockManagedGuestSession() js.Ref
   400  
   401  //go:wasmimport plat/js/webext/login func_UnlockManagedGuestSession
   402  //go:noescape
   403  func FuncUnlockManagedGuestSession(fn unsafe.Pointer)
   404  
   405  //go:wasmimport plat/js/webext/login call_UnlockManagedGuestSession
   406  //go:noescape
   407  func CallUnlockManagedGuestSession(
   408  	retPtr unsafe.Pointer,
   409  	password js.Ref)
   410  
   411  //go:wasmimport plat/js/webext/login try_UnlockManagedGuestSession
   412  //go:noescape
   413  func TryUnlockManagedGuestSession(
   414  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   415  	password js.Ref) (ok js.Ref)
   416  
   417  //go:wasmimport plat/js/webext/login has_UnlockSharedSession
   418  //go:noescape
   419  func HasFuncUnlockSharedSession() js.Ref
   420  
   421  //go:wasmimport plat/js/webext/login func_UnlockSharedSession
   422  //go:noescape
   423  func FuncUnlockSharedSession(fn unsafe.Pointer)
   424  
   425  //go:wasmimport plat/js/webext/login call_UnlockSharedSession
   426  //go:noescape
   427  func CallUnlockSharedSession(
   428  	retPtr unsafe.Pointer,
   429  	password js.Ref)
   430  
   431  //go:wasmimport plat/js/webext/login try_UnlockSharedSession
   432  //go:noescape
   433  func TryUnlockSharedSession(
   434  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   435  	password js.Ref) (ok js.Ref)