github.com/primecitizens/pcz/std@v0.2.1/plat/js/web/apis11_js_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package web
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/ffi/js"
     8  	"github.com/primecitizens/pcz/std/plat/js/web/bindings"
     9  )
    10  
    11  type COSEAlgorithmIdentifier int32
    12  
    13  type AuthenticatorAttestationResponse struct {
    14  	AuthenticatorResponse
    15  }
    16  
    17  func (this AuthenticatorAttestationResponse) Once() AuthenticatorAttestationResponse {
    18  	this.ref.Once()
    19  	return this
    20  }
    21  
    22  func (this AuthenticatorAttestationResponse) Ref() js.Ref {
    23  	return this.AuthenticatorResponse.Ref()
    24  }
    25  
    26  func (this AuthenticatorAttestationResponse) FromRef(ref js.Ref) AuthenticatorAttestationResponse {
    27  	this.AuthenticatorResponse = this.AuthenticatorResponse.FromRef(ref)
    28  	return this
    29  }
    30  
    31  func (this AuthenticatorAttestationResponse) Free() {
    32  	this.ref.Free()
    33  }
    34  
    35  // AttestationObject returns the value of property "AuthenticatorAttestationResponse.attestationObject".
    36  //
    37  // It returns ok=false if there is no such property.
    38  func (this AuthenticatorAttestationResponse) AttestationObject() (ret js.ArrayBuffer, ok bool) {
    39  	ok = js.True == bindings.GetAuthenticatorAttestationResponseAttestationObject(
    40  		this.ref, js.Pointer(&ret),
    41  	)
    42  	return
    43  }
    44  
    45  // HasFuncGetTransports returns true if the method "AuthenticatorAttestationResponse.getTransports" exists.
    46  func (this AuthenticatorAttestationResponse) HasFuncGetTransports() bool {
    47  	return js.True == bindings.HasFuncAuthenticatorAttestationResponseGetTransports(
    48  		this.ref,
    49  	)
    50  }
    51  
    52  // FuncGetTransports returns the method "AuthenticatorAttestationResponse.getTransports".
    53  func (this AuthenticatorAttestationResponse) FuncGetTransports() (fn js.Func[func() js.Array[js.String]]) {
    54  	bindings.FuncAuthenticatorAttestationResponseGetTransports(
    55  		this.ref, js.Pointer(&fn),
    56  	)
    57  	return
    58  }
    59  
    60  // GetTransports calls the method "AuthenticatorAttestationResponse.getTransports".
    61  func (this AuthenticatorAttestationResponse) GetTransports() (ret js.Array[js.String]) {
    62  	bindings.CallAuthenticatorAttestationResponseGetTransports(
    63  		this.ref, js.Pointer(&ret),
    64  	)
    65  
    66  	return
    67  }
    68  
    69  // TryGetTransports calls the method "AuthenticatorAttestationResponse.getTransports"
    70  // in a try/catch block and returns (_, err, ok = false) when it went through
    71  // the catch clause.
    72  func (this AuthenticatorAttestationResponse) TryGetTransports() (ret js.Array[js.String], exception js.Any, ok bool) {
    73  	ok = js.True == bindings.TryAuthenticatorAttestationResponseGetTransports(
    74  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
    75  	)
    76  
    77  	return
    78  }
    79  
    80  // HasFuncGetAuthenticatorData returns true if the method "AuthenticatorAttestationResponse.getAuthenticatorData" exists.
    81  func (this AuthenticatorAttestationResponse) HasFuncGetAuthenticatorData() bool {
    82  	return js.True == bindings.HasFuncAuthenticatorAttestationResponseGetAuthenticatorData(
    83  		this.ref,
    84  	)
    85  }
    86  
    87  // FuncGetAuthenticatorData returns the method "AuthenticatorAttestationResponse.getAuthenticatorData".
    88  func (this AuthenticatorAttestationResponse) FuncGetAuthenticatorData() (fn js.Func[func() js.ArrayBuffer]) {
    89  	bindings.FuncAuthenticatorAttestationResponseGetAuthenticatorData(
    90  		this.ref, js.Pointer(&fn),
    91  	)
    92  	return
    93  }
    94  
    95  // GetAuthenticatorData calls the method "AuthenticatorAttestationResponse.getAuthenticatorData".
    96  func (this AuthenticatorAttestationResponse) GetAuthenticatorData() (ret js.ArrayBuffer) {
    97  	bindings.CallAuthenticatorAttestationResponseGetAuthenticatorData(
    98  		this.ref, js.Pointer(&ret),
    99  	)
   100  
   101  	return
   102  }
   103  
   104  // TryGetAuthenticatorData calls the method "AuthenticatorAttestationResponse.getAuthenticatorData"
   105  // in a try/catch block and returns (_, err, ok = false) when it went through
   106  // the catch clause.
   107  func (this AuthenticatorAttestationResponse) TryGetAuthenticatorData() (ret js.ArrayBuffer, exception js.Any, ok bool) {
   108  	ok = js.True == bindings.TryAuthenticatorAttestationResponseGetAuthenticatorData(
   109  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   110  	)
   111  
   112  	return
   113  }
   114  
   115  // HasFuncGetPublicKey returns true if the method "AuthenticatorAttestationResponse.getPublicKey" exists.
   116  func (this AuthenticatorAttestationResponse) HasFuncGetPublicKey() bool {
   117  	return js.True == bindings.HasFuncAuthenticatorAttestationResponseGetPublicKey(
   118  		this.ref,
   119  	)
   120  }
   121  
   122  // FuncGetPublicKey returns the method "AuthenticatorAttestationResponse.getPublicKey".
   123  func (this AuthenticatorAttestationResponse) FuncGetPublicKey() (fn js.Func[func() js.ArrayBuffer]) {
   124  	bindings.FuncAuthenticatorAttestationResponseGetPublicKey(
   125  		this.ref, js.Pointer(&fn),
   126  	)
   127  	return
   128  }
   129  
   130  // GetPublicKey calls the method "AuthenticatorAttestationResponse.getPublicKey".
   131  func (this AuthenticatorAttestationResponse) GetPublicKey() (ret js.ArrayBuffer) {
   132  	bindings.CallAuthenticatorAttestationResponseGetPublicKey(
   133  		this.ref, js.Pointer(&ret),
   134  	)
   135  
   136  	return
   137  }
   138  
   139  // TryGetPublicKey calls the method "AuthenticatorAttestationResponse.getPublicKey"
   140  // in a try/catch block and returns (_, err, ok = false) when it went through
   141  // the catch clause.
   142  func (this AuthenticatorAttestationResponse) TryGetPublicKey() (ret js.ArrayBuffer, exception js.Any, ok bool) {
   143  	ok = js.True == bindings.TryAuthenticatorAttestationResponseGetPublicKey(
   144  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   145  	)
   146  
   147  	return
   148  }
   149  
   150  // HasFuncGetPublicKeyAlgorithm returns true if the method "AuthenticatorAttestationResponse.getPublicKeyAlgorithm" exists.
   151  func (this AuthenticatorAttestationResponse) HasFuncGetPublicKeyAlgorithm() bool {
   152  	return js.True == bindings.HasFuncAuthenticatorAttestationResponseGetPublicKeyAlgorithm(
   153  		this.ref,
   154  	)
   155  }
   156  
   157  // FuncGetPublicKeyAlgorithm returns the method "AuthenticatorAttestationResponse.getPublicKeyAlgorithm".
   158  func (this AuthenticatorAttestationResponse) FuncGetPublicKeyAlgorithm() (fn js.Func[func() COSEAlgorithmIdentifier]) {
   159  	bindings.FuncAuthenticatorAttestationResponseGetPublicKeyAlgorithm(
   160  		this.ref, js.Pointer(&fn),
   161  	)
   162  	return
   163  }
   164  
   165  // GetPublicKeyAlgorithm calls the method "AuthenticatorAttestationResponse.getPublicKeyAlgorithm".
   166  func (this AuthenticatorAttestationResponse) GetPublicKeyAlgorithm() (ret COSEAlgorithmIdentifier) {
   167  	bindings.CallAuthenticatorAttestationResponseGetPublicKeyAlgorithm(
   168  		this.ref, js.Pointer(&ret),
   169  	)
   170  
   171  	return
   172  }
   173  
   174  // TryGetPublicKeyAlgorithm calls the method "AuthenticatorAttestationResponse.getPublicKeyAlgorithm"
   175  // in a try/catch block and returns (_, err, ok = false) when it went through
   176  // the catch clause.
   177  func (this AuthenticatorAttestationResponse) TryGetPublicKeyAlgorithm() (ret COSEAlgorithmIdentifier, exception js.Any, ok bool) {
   178  	ok = js.True == bindings.TryAuthenticatorAttestationResponseGetPublicKeyAlgorithm(
   179  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   180  	)
   181  
   182  	return
   183  }
   184  
   185  type AuthenticatorAttestationResponseJSON struct {
   186  	// ClientDataJSON is "AuthenticatorAttestationResponseJSON.clientDataJSON"
   187  	//
   188  	// Required
   189  	ClientDataJSON Base64URLString
   190  	// AuthenticatorData is "AuthenticatorAttestationResponseJSON.authenticatorData"
   191  	//
   192  	// Required
   193  	AuthenticatorData Base64URLString
   194  	// Transports is "AuthenticatorAttestationResponseJSON.transports"
   195  	//
   196  	// Required
   197  	Transports js.Array[js.String]
   198  	// PublicKey is "AuthenticatorAttestationResponseJSON.publicKey"
   199  	//
   200  	// Optional
   201  	PublicKey Base64URLString
   202  	// PublicKeyAlgorithm is "AuthenticatorAttestationResponseJSON.publicKeyAlgorithm"
   203  	//
   204  	// Required
   205  	PublicKeyAlgorithm int64
   206  	// AttestationObject is "AuthenticatorAttestationResponseJSON.attestationObject"
   207  	//
   208  	// Required
   209  	AttestationObject Base64URLString
   210  
   211  	FFI_USE bool
   212  }
   213  
   214  // FromRef calls UpdateFrom and returns a AuthenticatorAttestationResponseJSON with all fields set.
   215  func (p AuthenticatorAttestationResponseJSON) FromRef(ref js.Ref) AuthenticatorAttestationResponseJSON {
   216  	p.UpdateFrom(ref)
   217  	return p
   218  }
   219  
   220  // New creates a new AuthenticatorAttestationResponseJSON in the application heap.
   221  func (p AuthenticatorAttestationResponseJSON) New() js.Ref {
   222  	return bindings.AuthenticatorAttestationResponseJSONJSLoad(
   223  		js.Pointer(&p), js.True, 0,
   224  	)
   225  }
   226  
   227  // UpdateFrom copies value of all fields of the heap object to p.
   228  func (p *AuthenticatorAttestationResponseJSON) UpdateFrom(ref js.Ref) {
   229  	bindings.AuthenticatorAttestationResponseJSONJSStore(
   230  		js.Pointer(p), ref,
   231  	)
   232  }
   233  
   234  // Update writes all fields of the p to the heap object referenced by ref.
   235  func (p *AuthenticatorAttestationResponseJSON) Update(ref js.Ref) {
   236  	bindings.AuthenticatorAttestationResponseJSONJSLoad(
   237  		js.Pointer(p), js.False, ref,
   238  	)
   239  }
   240  
   241  // FreeMembers frees fields with heap reference, if recursive is true
   242  // free all heap references reachable from p.
   243  func (p *AuthenticatorAttestationResponseJSON) FreeMembers(recursive bool) {
   244  	js.Free(
   245  		p.ClientDataJSON.Ref(),
   246  		p.AuthenticatorData.Ref(),
   247  		p.Transports.Ref(),
   248  		p.PublicKey.Ref(),
   249  		p.AttestationObject.Ref(),
   250  	)
   251  	p.ClientDataJSON = p.ClientDataJSON.FromRef(js.Undefined)
   252  	p.AuthenticatorData = p.AuthenticatorData.FromRef(js.Undefined)
   253  	p.Transports = p.Transports.FromRef(js.Undefined)
   254  	p.PublicKey = p.PublicKey.FromRef(js.Undefined)
   255  	p.AttestationObject = p.AttestationObject.FromRef(js.Undefined)
   256  }
   257  
   258  type AuthenticatorResponse struct {
   259  	ref js.Ref
   260  }
   261  
   262  func (this AuthenticatorResponse) Once() AuthenticatorResponse {
   263  	this.ref.Once()
   264  	return this
   265  }
   266  
   267  func (this AuthenticatorResponse) Ref() js.Ref {
   268  	return this.ref
   269  }
   270  
   271  func (this AuthenticatorResponse) FromRef(ref js.Ref) AuthenticatorResponse {
   272  	this.ref = ref
   273  	return this
   274  }
   275  
   276  func (this AuthenticatorResponse) Free() {
   277  	this.ref.Free()
   278  }
   279  
   280  // ClientDataJSON returns the value of property "AuthenticatorResponse.clientDataJSON".
   281  //
   282  // It returns ok=false if there is no such property.
   283  func (this AuthenticatorResponse) ClientDataJSON() (ret js.ArrayBuffer, ok bool) {
   284  	ok = js.True == bindings.GetAuthenticatorResponseClientDataJSON(
   285  		this.ref, js.Pointer(&ret),
   286  	)
   287  	return
   288  }
   289  
   290  type AuthenticatorSelectionCriteria struct {
   291  	// AuthenticatorAttachment is "AuthenticatorSelectionCriteria.authenticatorAttachment"
   292  	//
   293  	// Optional
   294  	AuthenticatorAttachment js.String
   295  	// ResidentKey is "AuthenticatorSelectionCriteria.residentKey"
   296  	//
   297  	// Optional
   298  	ResidentKey js.String
   299  	// RequireResidentKey is "AuthenticatorSelectionCriteria.requireResidentKey"
   300  	//
   301  	// Optional, defaults to false.
   302  	//
   303  	// NOTE: FFI_USE_RequireResidentKey MUST be set to true to make this field effective.
   304  	RequireResidentKey bool
   305  	// UserVerification is "AuthenticatorSelectionCriteria.userVerification"
   306  	//
   307  	// Optional, defaults to "preferred".
   308  	UserVerification js.String
   309  
   310  	FFI_USE_RequireResidentKey bool // for RequireResidentKey.
   311  
   312  	FFI_USE bool
   313  }
   314  
   315  // FromRef calls UpdateFrom and returns a AuthenticatorSelectionCriteria with all fields set.
   316  func (p AuthenticatorSelectionCriteria) FromRef(ref js.Ref) AuthenticatorSelectionCriteria {
   317  	p.UpdateFrom(ref)
   318  	return p
   319  }
   320  
   321  // New creates a new AuthenticatorSelectionCriteria in the application heap.
   322  func (p AuthenticatorSelectionCriteria) New() js.Ref {
   323  	return bindings.AuthenticatorSelectionCriteriaJSLoad(
   324  		js.Pointer(&p), js.True, 0,
   325  	)
   326  }
   327  
   328  // UpdateFrom copies value of all fields of the heap object to p.
   329  func (p *AuthenticatorSelectionCriteria) UpdateFrom(ref js.Ref) {
   330  	bindings.AuthenticatorSelectionCriteriaJSStore(
   331  		js.Pointer(p), ref,
   332  	)
   333  }
   334  
   335  // Update writes all fields of the p to the heap object referenced by ref.
   336  func (p *AuthenticatorSelectionCriteria) Update(ref js.Ref) {
   337  	bindings.AuthenticatorSelectionCriteriaJSLoad(
   338  		js.Pointer(p), js.False, ref,
   339  	)
   340  }
   341  
   342  // FreeMembers frees fields with heap reference, if recursive is true
   343  // free all heap references reachable from p.
   344  func (p *AuthenticatorSelectionCriteria) FreeMembers(recursive bool) {
   345  	js.Free(
   346  		p.AuthenticatorAttachment.Ref(),
   347  		p.ResidentKey.Ref(),
   348  		p.UserVerification.Ref(),
   349  	)
   350  	p.AuthenticatorAttachment = p.AuthenticatorAttachment.FromRef(js.Undefined)
   351  	p.ResidentKey = p.ResidentKey.FromRef(js.Undefined)
   352  	p.UserVerification = p.UserVerification.FromRef(js.Undefined)
   353  }
   354  
   355  type AuthenticatorTransport uint32
   356  
   357  const (
   358  	_ AuthenticatorTransport = iota
   359  
   360  	AuthenticatorTransport_USB
   361  	AuthenticatorTransport_NFC
   362  	AuthenticatorTransport_BLE
   363  	AuthenticatorTransport_SMART_CARD
   364  	AuthenticatorTransport_HYBRID
   365  	AuthenticatorTransport_INTERNAL
   366  )
   367  
   368  func (AuthenticatorTransport) FromRef(str js.Ref) AuthenticatorTransport {
   369  	return AuthenticatorTransport(bindings.ConstOfAuthenticatorTransport(str))
   370  }
   371  
   372  func (x AuthenticatorTransport) String() (string, bool) {
   373  	switch x {
   374  	case AuthenticatorTransport_USB:
   375  		return "usb", true
   376  	case AuthenticatorTransport_NFC:
   377  		return "nfc", true
   378  	case AuthenticatorTransport_BLE:
   379  		return "ble", true
   380  	case AuthenticatorTransport_SMART_CARD:
   381  		return "smart-card", true
   382  	case AuthenticatorTransport_HYBRID:
   383  		return "hybrid", true
   384  	case AuthenticatorTransport_INTERNAL:
   385  		return "internal", true
   386  	default:
   387  		return "", false
   388  	}
   389  }
   390  
   391  type AutoKeyword uint32
   392  
   393  const (
   394  	_ AutoKeyword = iota
   395  
   396  	AutoKeyword_AUTO
   397  )
   398  
   399  func (AutoKeyword) FromRef(str js.Ref) AutoKeyword {
   400  	return AutoKeyword(bindings.ConstOfAutoKeyword(str))
   401  }
   402  
   403  func (x AutoKeyword) String() (string, bool) {
   404  	switch x {
   405  	case AutoKeyword_AUTO:
   406  		return "auto", true
   407  	default:
   408  		return "", false
   409  	}
   410  }
   411  
   412  type AutoplayPolicy uint32
   413  
   414  const (
   415  	_ AutoplayPolicy = iota
   416  
   417  	AutoplayPolicy_ALLOWED
   418  	AutoplayPolicy_ALLOWED_MUTED
   419  	AutoplayPolicy_DISALLOWED
   420  )
   421  
   422  func (AutoplayPolicy) FromRef(str js.Ref) AutoplayPolicy {
   423  	return AutoplayPolicy(bindings.ConstOfAutoplayPolicy(str))
   424  }
   425  
   426  func (x AutoplayPolicy) String() (string, bool) {
   427  	switch x {
   428  	case AutoplayPolicy_ALLOWED:
   429  		return "allowed", true
   430  	case AutoplayPolicy_ALLOWED_MUTED:
   431  		return "allowed-muted", true
   432  	case AutoplayPolicy_DISALLOWED:
   433  		return "disallowed", true
   434  	default:
   435  		return "", false
   436  	}
   437  }
   438  
   439  type AutoplayPolicyMediaType uint32
   440  
   441  const (
   442  	_ AutoplayPolicyMediaType = iota
   443  
   444  	AutoplayPolicyMediaType_MEDIAELEMENT
   445  	AutoplayPolicyMediaType_AUDIOCONTEXT
   446  )
   447  
   448  func (AutoplayPolicyMediaType) FromRef(str js.Ref) AutoplayPolicyMediaType {
   449  	return AutoplayPolicyMediaType(bindings.ConstOfAutoplayPolicyMediaType(str))
   450  }
   451  
   452  func (x AutoplayPolicyMediaType) String() (string, bool) {
   453  	switch x {
   454  	case AutoplayPolicyMediaType_MEDIAELEMENT:
   455  		return "mediaelement", true
   456  	case AutoplayPolicyMediaType_AUDIOCONTEXT:
   457  		return "audiocontext", true
   458  	default:
   459  		return "", false
   460  	}
   461  }
   462  
   463  type AvcBitstreamFormat uint32
   464  
   465  const (
   466  	_ AvcBitstreamFormat = iota
   467  
   468  	AvcBitstreamFormat_ANNEXB
   469  	AvcBitstreamFormat_AVC
   470  )
   471  
   472  func (AvcBitstreamFormat) FromRef(str js.Ref) AvcBitstreamFormat {
   473  	return AvcBitstreamFormat(bindings.ConstOfAvcBitstreamFormat(str))
   474  }
   475  
   476  func (x AvcBitstreamFormat) String() (string, bool) {
   477  	switch x {
   478  	case AvcBitstreamFormat_ANNEXB:
   479  		return "annexb", true
   480  	case AvcBitstreamFormat_AVC:
   481  		return "avc", true
   482  	default:
   483  		return "", false
   484  	}
   485  }
   486  
   487  type AvcEncoderConfig struct {
   488  	// Format is "AvcEncoderConfig.format"
   489  	//
   490  	// Optional, defaults to "avc".
   491  	Format AvcBitstreamFormat
   492  
   493  	FFI_USE bool
   494  }
   495  
   496  // FromRef calls UpdateFrom and returns a AvcEncoderConfig with all fields set.
   497  func (p AvcEncoderConfig) FromRef(ref js.Ref) AvcEncoderConfig {
   498  	p.UpdateFrom(ref)
   499  	return p
   500  }
   501  
   502  // New creates a new AvcEncoderConfig in the application heap.
   503  func (p AvcEncoderConfig) New() js.Ref {
   504  	return bindings.AvcEncoderConfigJSLoad(
   505  		js.Pointer(&p), js.True, 0,
   506  	)
   507  }
   508  
   509  // UpdateFrom copies value of all fields of the heap object to p.
   510  func (p *AvcEncoderConfig) UpdateFrom(ref js.Ref) {
   511  	bindings.AvcEncoderConfigJSStore(
   512  		js.Pointer(p), ref,
   513  	)
   514  }
   515  
   516  // Update writes all fields of the p to the heap object referenced by ref.
   517  func (p *AvcEncoderConfig) Update(ref js.Ref) {
   518  	bindings.AvcEncoderConfigJSLoad(
   519  		js.Pointer(p), js.False, ref,
   520  	)
   521  }
   522  
   523  // FreeMembers frees fields with heap reference, if recursive is true
   524  // free all heap references reachable from p.
   525  func (p *AvcEncoderConfig) FreeMembers(recursive bool) {
   526  }
   527  
   528  type OneOf_Request_String struct {
   529  	ref js.Ref
   530  }
   531  
   532  func (x OneOf_Request_String) Ref() js.Ref {
   533  	return x.ref
   534  }
   535  
   536  func (x OneOf_Request_String) Free() {
   537  	x.ref.Free()
   538  }
   539  
   540  func (x OneOf_Request_String) FromRef(ref js.Ref) OneOf_Request_String {
   541  	return OneOf_Request_String{
   542  		ref: ref,
   543  	}
   544  }
   545  
   546  func (x OneOf_Request_String) Request() Request {
   547  	return Request{}.FromRef(x.ref)
   548  }
   549  
   550  func (x OneOf_Request_String) String() js.String {
   551  	return js.String{}.FromRef(x.ref)
   552  }
   553  
   554  type RequestInfo = OneOf_Request_String
   555  
   556  type OneOf_ArrayArrayString_RecordString struct {
   557  	ref js.Ref
   558  }
   559  
   560  func (x OneOf_ArrayArrayString_RecordString) Ref() js.Ref {
   561  	return x.ref
   562  }
   563  
   564  func (x OneOf_ArrayArrayString_RecordString) Free() {
   565  	x.ref.Free()
   566  }
   567  
   568  func (x OneOf_ArrayArrayString_RecordString) FromRef(ref js.Ref) OneOf_ArrayArrayString_RecordString {
   569  	return OneOf_ArrayArrayString_RecordString{
   570  		ref: ref,
   571  	}
   572  }
   573  
   574  func (x OneOf_ArrayArrayString_RecordString) ArrayArrayString() js.Array[js.Array[js.String]] {
   575  	return js.Array[js.Array[js.String]]{}.FromRef(x.ref)
   576  }
   577  
   578  func (x OneOf_ArrayArrayString_RecordString) RecordString() js.Record[js.String] {
   579  	return js.Record[js.String]{}.FromRef(x.ref)
   580  }
   581  
   582  type HeadersInit = OneOf_ArrayArrayString_RecordString
   583  
   584  type OneOf_ArrayArrayString_RecordString_String struct {
   585  	ref js.Ref
   586  }
   587  
   588  func (x OneOf_ArrayArrayString_RecordString_String) Ref() js.Ref {
   589  	return x.ref
   590  }
   591  
   592  func (x OneOf_ArrayArrayString_RecordString_String) Free() {
   593  	x.ref.Free()
   594  }
   595  
   596  func (x OneOf_ArrayArrayString_RecordString_String) FromRef(ref js.Ref) OneOf_ArrayArrayString_RecordString_String {
   597  	return OneOf_ArrayArrayString_RecordString_String{
   598  		ref: ref,
   599  	}
   600  }
   601  
   602  func (x OneOf_ArrayArrayString_RecordString_String) ArrayArrayString() js.Array[js.Array[js.String]] {
   603  	return js.Array[js.Array[js.String]]{}.FromRef(x.ref)
   604  }
   605  
   606  func (x OneOf_ArrayArrayString_RecordString_String) RecordString() js.Record[js.String] {
   607  	return js.Record[js.String]{}.FromRef(x.ref)
   608  }
   609  
   610  func (x OneOf_ArrayArrayString_RecordString_String) String() js.String {
   611  	return js.String{}.FromRef(x.ref)
   612  }
   613  
   614  func NewURLSearchParams(init OneOf_ArrayArrayString_RecordString_String) (ret URLSearchParams) {
   615  	ret.ref = bindings.NewURLSearchParamsByURLSearchParams(
   616  		init.Ref())
   617  	return
   618  }
   619  
   620  func NewURLSearchParamsByURLSearchParams1() (ret URLSearchParams) {
   621  	ret.ref = bindings.NewURLSearchParamsByURLSearchParams1()
   622  	return
   623  }
   624  
   625  type URLSearchParams struct {
   626  	ref js.Ref
   627  }
   628  
   629  func (this URLSearchParams) Once() URLSearchParams {
   630  	this.ref.Once()
   631  	return this
   632  }
   633  
   634  func (this URLSearchParams) Ref() js.Ref {
   635  	return this.ref
   636  }
   637  
   638  func (this URLSearchParams) FromRef(ref js.Ref) URLSearchParams {
   639  	this.ref = ref
   640  	return this
   641  }
   642  
   643  func (this URLSearchParams) Free() {
   644  	this.ref.Free()
   645  }
   646  
   647  // Size returns the value of property "URLSearchParams.size".
   648  //
   649  // It returns ok=false if there is no such property.
   650  func (this URLSearchParams) Size() (ret uint32, ok bool) {
   651  	ok = js.True == bindings.GetURLSearchParamsSize(
   652  		this.ref, js.Pointer(&ret),
   653  	)
   654  	return
   655  }
   656  
   657  // HasFuncAppend returns true if the method "URLSearchParams.append" exists.
   658  func (this URLSearchParams) HasFuncAppend() bool {
   659  	return js.True == bindings.HasFuncURLSearchParamsAppend(
   660  		this.ref,
   661  	)
   662  }
   663  
   664  // FuncAppend returns the method "URLSearchParams.append".
   665  func (this URLSearchParams) FuncAppend() (fn js.Func[func(name js.String, value js.String)]) {
   666  	bindings.FuncURLSearchParamsAppend(
   667  		this.ref, js.Pointer(&fn),
   668  	)
   669  	return
   670  }
   671  
   672  // Append calls the method "URLSearchParams.append".
   673  func (this URLSearchParams) Append(name js.String, value js.String) (ret js.Void) {
   674  	bindings.CallURLSearchParamsAppend(
   675  		this.ref, js.Pointer(&ret),
   676  		name.Ref(),
   677  		value.Ref(),
   678  	)
   679  
   680  	return
   681  }
   682  
   683  // TryAppend calls the method "URLSearchParams.append"
   684  // in a try/catch block and returns (_, err, ok = false) when it went through
   685  // the catch clause.
   686  func (this URLSearchParams) TryAppend(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
   687  	ok = js.True == bindings.TryURLSearchParamsAppend(
   688  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   689  		name.Ref(),
   690  		value.Ref(),
   691  	)
   692  
   693  	return
   694  }
   695  
   696  // HasFuncDelete returns true if the method "URLSearchParams.delete" exists.
   697  func (this URLSearchParams) HasFuncDelete() bool {
   698  	return js.True == bindings.HasFuncURLSearchParamsDelete(
   699  		this.ref,
   700  	)
   701  }
   702  
   703  // FuncDelete returns the method "URLSearchParams.delete".
   704  func (this URLSearchParams) FuncDelete() (fn js.Func[func(name js.String, value js.String)]) {
   705  	bindings.FuncURLSearchParamsDelete(
   706  		this.ref, js.Pointer(&fn),
   707  	)
   708  	return
   709  }
   710  
   711  // Delete calls the method "URLSearchParams.delete".
   712  func (this URLSearchParams) Delete(name js.String, value js.String) (ret js.Void) {
   713  	bindings.CallURLSearchParamsDelete(
   714  		this.ref, js.Pointer(&ret),
   715  		name.Ref(),
   716  		value.Ref(),
   717  	)
   718  
   719  	return
   720  }
   721  
   722  // TryDelete calls the method "URLSearchParams.delete"
   723  // in a try/catch block and returns (_, err, ok = false) when it went through
   724  // the catch clause.
   725  func (this URLSearchParams) TryDelete(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
   726  	ok = js.True == bindings.TryURLSearchParamsDelete(
   727  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   728  		name.Ref(),
   729  		value.Ref(),
   730  	)
   731  
   732  	return
   733  }
   734  
   735  // HasFuncDelete1 returns true if the method "URLSearchParams.delete" exists.
   736  func (this URLSearchParams) HasFuncDelete1() bool {
   737  	return js.True == bindings.HasFuncURLSearchParamsDelete1(
   738  		this.ref,
   739  	)
   740  }
   741  
   742  // FuncDelete1 returns the method "URLSearchParams.delete".
   743  func (this URLSearchParams) FuncDelete1() (fn js.Func[func(name js.String)]) {
   744  	bindings.FuncURLSearchParamsDelete1(
   745  		this.ref, js.Pointer(&fn),
   746  	)
   747  	return
   748  }
   749  
   750  // Delete1 calls the method "URLSearchParams.delete".
   751  func (this URLSearchParams) Delete1(name js.String) (ret js.Void) {
   752  	bindings.CallURLSearchParamsDelete1(
   753  		this.ref, js.Pointer(&ret),
   754  		name.Ref(),
   755  	)
   756  
   757  	return
   758  }
   759  
   760  // TryDelete1 calls the method "URLSearchParams.delete"
   761  // in a try/catch block and returns (_, err, ok = false) when it went through
   762  // the catch clause.
   763  func (this URLSearchParams) TryDelete1(name js.String) (ret js.Void, exception js.Any, ok bool) {
   764  	ok = js.True == bindings.TryURLSearchParamsDelete1(
   765  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   766  		name.Ref(),
   767  	)
   768  
   769  	return
   770  }
   771  
   772  // HasFuncGet returns true if the method "URLSearchParams.get" exists.
   773  func (this URLSearchParams) HasFuncGet() bool {
   774  	return js.True == bindings.HasFuncURLSearchParamsGet(
   775  		this.ref,
   776  	)
   777  }
   778  
   779  // FuncGet returns the method "URLSearchParams.get".
   780  func (this URLSearchParams) FuncGet() (fn js.Func[func(name js.String) js.String]) {
   781  	bindings.FuncURLSearchParamsGet(
   782  		this.ref, js.Pointer(&fn),
   783  	)
   784  	return
   785  }
   786  
   787  // Get calls the method "URLSearchParams.get".
   788  func (this URLSearchParams) Get(name js.String) (ret js.String) {
   789  	bindings.CallURLSearchParamsGet(
   790  		this.ref, js.Pointer(&ret),
   791  		name.Ref(),
   792  	)
   793  
   794  	return
   795  }
   796  
   797  // TryGet calls the method "URLSearchParams.get"
   798  // in a try/catch block and returns (_, err, ok = false) when it went through
   799  // the catch clause.
   800  func (this URLSearchParams) TryGet(name js.String) (ret js.String, exception js.Any, ok bool) {
   801  	ok = js.True == bindings.TryURLSearchParamsGet(
   802  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   803  		name.Ref(),
   804  	)
   805  
   806  	return
   807  }
   808  
   809  // HasFuncGetAll returns true if the method "URLSearchParams.getAll" exists.
   810  func (this URLSearchParams) HasFuncGetAll() bool {
   811  	return js.True == bindings.HasFuncURLSearchParamsGetAll(
   812  		this.ref,
   813  	)
   814  }
   815  
   816  // FuncGetAll returns the method "URLSearchParams.getAll".
   817  func (this URLSearchParams) FuncGetAll() (fn js.Func[func(name js.String) js.Array[js.String]]) {
   818  	bindings.FuncURLSearchParamsGetAll(
   819  		this.ref, js.Pointer(&fn),
   820  	)
   821  	return
   822  }
   823  
   824  // GetAll calls the method "URLSearchParams.getAll".
   825  func (this URLSearchParams) GetAll(name js.String) (ret js.Array[js.String]) {
   826  	bindings.CallURLSearchParamsGetAll(
   827  		this.ref, js.Pointer(&ret),
   828  		name.Ref(),
   829  	)
   830  
   831  	return
   832  }
   833  
   834  // TryGetAll calls the method "URLSearchParams.getAll"
   835  // in a try/catch block and returns (_, err, ok = false) when it went through
   836  // the catch clause.
   837  func (this URLSearchParams) TryGetAll(name js.String) (ret js.Array[js.String], exception js.Any, ok bool) {
   838  	ok = js.True == bindings.TryURLSearchParamsGetAll(
   839  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   840  		name.Ref(),
   841  	)
   842  
   843  	return
   844  }
   845  
   846  // HasFuncHas returns true if the method "URLSearchParams.has" exists.
   847  func (this URLSearchParams) HasFuncHas() bool {
   848  	return js.True == bindings.HasFuncURLSearchParamsHas(
   849  		this.ref,
   850  	)
   851  }
   852  
   853  // FuncHas returns the method "URLSearchParams.has".
   854  func (this URLSearchParams) FuncHas() (fn js.Func[func(name js.String, value js.String) bool]) {
   855  	bindings.FuncURLSearchParamsHas(
   856  		this.ref, js.Pointer(&fn),
   857  	)
   858  	return
   859  }
   860  
   861  // Has calls the method "URLSearchParams.has".
   862  func (this URLSearchParams) Has(name js.String, value js.String) (ret bool) {
   863  	bindings.CallURLSearchParamsHas(
   864  		this.ref, js.Pointer(&ret),
   865  		name.Ref(),
   866  		value.Ref(),
   867  	)
   868  
   869  	return
   870  }
   871  
   872  // TryHas calls the method "URLSearchParams.has"
   873  // in a try/catch block and returns (_, err, ok = false) when it went through
   874  // the catch clause.
   875  func (this URLSearchParams) TryHas(name js.String, value js.String) (ret bool, exception js.Any, ok bool) {
   876  	ok = js.True == bindings.TryURLSearchParamsHas(
   877  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   878  		name.Ref(),
   879  		value.Ref(),
   880  	)
   881  
   882  	return
   883  }
   884  
   885  // HasFuncHas1 returns true if the method "URLSearchParams.has" exists.
   886  func (this URLSearchParams) HasFuncHas1() bool {
   887  	return js.True == bindings.HasFuncURLSearchParamsHas1(
   888  		this.ref,
   889  	)
   890  }
   891  
   892  // FuncHas1 returns the method "URLSearchParams.has".
   893  func (this URLSearchParams) FuncHas1() (fn js.Func[func(name js.String) bool]) {
   894  	bindings.FuncURLSearchParamsHas1(
   895  		this.ref, js.Pointer(&fn),
   896  	)
   897  	return
   898  }
   899  
   900  // Has1 calls the method "URLSearchParams.has".
   901  func (this URLSearchParams) Has1(name js.String) (ret bool) {
   902  	bindings.CallURLSearchParamsHas1(
   903  		this.ref, js.Pointer(&ret),
   904  		name.Ref(),
   905  	)
   906  
   907  	return
   908  }
   909  
   910  // TryHas1 calls the method "URLSearchParams.has"
   911  // in a try/catch block and returns (_, err, ok = false) when it went through
   912  // the catch clause.
   913  func (this URLSearchParams) TryHas1(name js.String) (ret bool, exception js.Any, ok bool) {
   914  	ok = js.True == bindings.TryURLSearchParamsHas1(
   915  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   916  		name.Ref(),
   917  	)
   918  
   919  	return
   920  }
   921  
   922  // HasFuncSet returns true if the method "URLSearchParams.set" exists.
   923  func (this URLSearchParams) HasFuncSet() bool {
   924  	return js.True == bindings.HasFuncURLSearchParamsSet(
   925  		this.ref,
   926  	)
   927  }
   928  
   929  // FuncSet returns the method "URLSearchParams.set".
   930  func (this URLSearchParams) FuncSet() (fn js.Func[func(name js.String, value js.String)]) {
   931  	bindings.FuncURLSearchParamsSet(
   932  		this.ref, js.Pointer(&fn),
   933  	)
   934  	return
   935  }
   936  
   937  // Set calls the method "URLSearchParams.set".
   938  func (this URLSearchParams) Set(name js.String, value js.String) (ret js.Void) {
   939  	bindings.CallURLSearchParamsSet(
   940  		this.ref, js.Pointer(&ret),
   941  		name.Ref(),
   942  		value.Ref(),
   943  	)
   944  
   945  	return
   946  }
   947  
   948  // TrySet calls the method "URLSearchParams.set"
   949  // in a try/catch block and returns (_, err, ok = false) when it went through
   950  // the catch clause.
   951  func (this URLSearchParams) TrySet(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
   952  	ok = js.True == bindings.TryURLSearchParamsSet(
   953  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   954  		name.Ref(),
   955  		value.Ref(),
   956  	)
   957  
   958  	return
   959  }
   960  
   961  // HasFuncSort returns true if the method "URLSearchParams.sort" exists.
   962  func (this URLSearchParams) HasFuncSort() bool {
   963  	return js.True == bindings.HasFuncURLSearchParamsSort(
   964  		this.ref,
   965  	)
   966  }
   967  
   968  // FuncSort returns the method "URLSearchParams.sort".
   969  func (this URLSearchParams) FuncSort() (fn js.Func[func()]) {
   970  	bindings.FuncURLSearchParamsSort(
   971  		this.ref, js.Pointer(&fn),
   972  	)
   973  	return
   974  }
   975  
   976  // Sort calls the method "URLSearchParams.sort".
   977  func (this URLSearchParams) Sort() (ret js.Void) {
   978  	bindings.CallURLSearchParamsSort(
   979  		this.ref, js.Pointer(&ret),
   980  	)
   981  
   982  	return
   983  }
   984  
   985  // TrySort calls the method "URLSearchParams.sort"
   986  // in a try/catch block and returns (_, err, ok = false) when it went through
   987  // the catch clause.
   988  func (this URLSearchParams) TrySort() (ret js.Void, exception js.Any, ok bool) {
   989  	ok = js.True == bindings.TryURLSearchParamsSort(
   990  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
   991  	)
   992  
   993  	return
   994  }
   995  
   996  // HasFuncToString returns true if the method "URLSearchParams.toString" exists.
   997  func (this URLSearchParams) HasFuncToString() bool {
   998  	return js.True == bindings.HasFuncURLSearchParamsToString(
   999  		this.ref,
  1000  	)
  1001  }
  1002  
  1003  // FuncToString returns the method "URLSearchParams.toString".
  1004  func (this URLSearchParams) FuncToString() (fn js.Func[func() js.String]) {
  1005  	bindings.FuncURLSearchParamsToString(
  1006  		this.ref, js.Pointer(&fn),
  1007  	)
  1008  	return
  1009  }
  1010  
  1011  // ToString calls the method "URLSearchParams.toString".
  1012  func (this URLSearchParams) ToString() (ret js.String) {
  1013  	bindings.CallURLSearchParamsToString(
  1014  		this.ref, js.Pointer(&ret),
  1015  	)
  1016  
  1017  	return
  1018  }
  1019  
  1020  // TryToString calls the method "URLSearchParams.toString"
  1021  // in a try/catch block and returns (_, err, ok = false) when it went through
  1022  // the catch clause.
  1023  func (this URLSearchParams) TryToString() (ret js.String, exception js.Any, ok bool) {
  1024  	ok = js.True == bindings.TryURLSearchParamsToString(
  1025  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1026  	)
  1027  
  1028  	return
  1029  }
  1030  
  1031  type OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String struct {
  1032  	ref js.Ref
  1033  }
  1034  
  1035  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) Ref() js.Ref {
  1036  	return x.ref
  1037  }
  1038  
  1039  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) Free() {
  1040  	x.ref.Free()
  1041  }
  1042  
  1043  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) FromRef(ref js.Ref) OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String {
  1044  	return OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String{
  1045  		ref: ref,
  1046  	}
  1047  }
  1048  
  1049  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) ReadableStream() ReadableStream {
  1050  	return ReadableStream{}.FromRef(x.ref)
  1051  }
  1052  
  1053  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) Blob() Blob {
  1054  	return Blob{}.FromRef(x.ref)
  1055  }
  1056  
  1057  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayInt8() js.TypedArray[int8] {
  1058  	return js.TypedArray[int8]{}.FromRef(x.ref)
  1059  }
  1060  
  1061  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayInt16() js.TypedArray[int16] {
  1062  	return js.TypedArray[int16]{}.FromRef(x.ref)
  1063  }
  1064  
  1065  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayInt32() js.TypedArray[int32] {
  1066  	return js.TypedArray[int32]{}.FromRef(x.ref)
  1067  }
  1068  
  1069  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayUint8() js.TypedArray[uint8] {
  1070  	return js.TypedArray[uint8]{}.FromRef(x.ref)
  1071  }
  1072  
  1073  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayUint16() js.TypedArray[uint16] {
  1074  	return js.TypedArray[uint16]{}.FromRef(x.ref)
  1075  }
  1076  
  1077  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayUint32() js.TypedArray[uint32] {
  1078  	return js.TypedArray[uint32]{}.FromRef(x.ref)
  1079  }
  1080  
  1081  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayInt64() js.TypedArray[int64] {
  1082  	return js.TypedArray[int64]{}.FromRef(x.ref)
  1083  }
  1084  
  1085  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayUint64() js.TypedArray[uint64] {
  1086  	return js.TypedArray[uint64]{}.FromRef(x.ref)
  1087  }
  1088  
  1089  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayFloat32() js.TypedArray[float32] {
  1090  	return js.TypedArray[float32]{}.FromRef(x.ref)
  1091  }
  1092  
  1093  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) TypedArrayFloat64() js.TypedArray[float64] {
  1094  	return js.TypedArray[float64]{}.FromRef(x.ref)
  1095  }
  1096  
  1097  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) DataView() js.DataView {
  1098  	return js.DataView{}.FromRef(x.ref)
  1099  }
  1100  
  1101  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) ArrayBuffer() js.ArrayBuffer {
  1102  	return js.ArrayBuffer{}.FromRef(x.ref)
  1103  }
  1104  
  1105  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) FormData() FormData {
  1106  	return FormData{}.FromRef(x.ref)
  1107  }
  1108  
  1109  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) URLSearchParams() URLSearchParams {
  1110  	return URLSearchParams{}.FromRef(x.ref)
  1111  }
  1112  
  1113  func (x OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String) String() js.String {
  1114  	return js.String{}.FromRef(x.ref)
  1115  }
  1116  
  1117  type BodyInit = OneOf_ReadableStream_Blob_TypedArrayInt8_TypedArrayInt16_TypedArrayInt32_TypedArrayUint8_TypedArrayUint16_TypedArrayUint32_TypedArrayInt64_TypedArrayUint64_TypedArrayFloat32_TypedArrayFloat64_DataView_ArrayBuffer_FormData_URLSearchParams_String
  1118  
  1119  type ReferrerPolicy uint32
  1120  
  1121  const (
  1122  	_ ReferrerPolicy = iota
  1123  
  1124  	ReferrerPolicy_
  1125  	ReferrerPolicy_NO_REFERRER
  1126  	ReferrerPolicy_NO_REFERRER_WHEN_DOWNGRADE
  1127  	ReferrerPolicy_SAME_ORIGIN
  1128  	ReferrerPolicy_ORIGIN
  1129  	ReferrerPolicy_STRICT_ORIGIN
  1130  	ReferrerPolicy_ORIGIN_WHEN_CROSS_ORIGIN
  1131  	ReferrerPolicy_STRICT_ORIGIN_WHEN_CROSS_ORIGIN
  1132  	ReferrerPolicy_UNSAFE_URL
  1133  )
  1134  
  1135  func (ReferrerPolicy) FromRef(str js.Ref) ReferrerPolicy {
  1136  	return ReferrerPolicy(bindings.ConstOfReferrerPolicy(str))
  1137  }
  1138  
  1139  func (x ReferrerPolicy) String() (string, bool) {
  1140  	switch x {
  1141  	case ReferrerPolicy_:
  1142  		return "", true
  1143  	case ReferrerPolicy_NO_REFERRER:
  1144  		return "no-referrer", true
  1145  	case ReferrerPolicy_NO_REFERRER_WHEN_DOWNGRADE:
  1146  		return "no-referrer-when-downgrade", true
  1147  	case ReferrerPolicy_SAME_ORIGIN:
  1148  		return "same-origin", true
  1149  	case ReferrerPolicy_ORIGIN:
  1150  		return "origin", true
  1151  	case ReferrerPolicy_STRICT_ORIGIN:
  1152  		return "strict-origin", true
  1153  	case ReferrerPolicy_ORIGIN_WHEN_CROSS_ORIGIN:
  1154  		return "origin-when-cross-origin", true
  1155  	case ReferrerPolicy_STRICT_ORIGIN_WHEN_CROSS_ORIGIN:
  1156  		return "strict-origin-when-cross-origin", true
  1157  	case ReferrerPolicy_UNSAFE_URL:
  1158  		return "unsafe-url", true
  1159  	default:
  1160  		return "", false
  1161  	}
  1162  }
  1163  
  1164  type RequestMode uint32
  1165  
  1166  const (
  1167  	_ RequestMode = iota
  1168  
  1169  	RequestMode_NAVIGATE
  1170  	RequestMode_SAME_ORIGIN
  1171  	RequestMode_NO_CORS
  1172  	RequestMode_CORS
  1173  )
  1174  
  1175  func (RequestMode) FromRef(str js.Ref) RequestMode {
  1176  	return RequestMode(bindings.ConstOfRequestMode(str))
  1177  }
  1178  
  1179  func (x RequestMode) String() (string, bool) {
  1180  	switch x {
  1181  	case RequestMode_NAVIGATE:
  1182  		return "navigate", true
  1183  	case RequestMode_SAME_ORIGIN:
  1184  		return "same-origin", true
  1185  	case RequestMode_NO_CORS:
  1186  		return "no-cors", true
  1187  	case RequestMode_CORS:
  1188  		return "cors", true
  1189  	default:
  1190  		return "", false
  1191  	}
  1192  }
  1193  
  1194  type RequestCredentials uint32
  1195  
  1196  const (
  1197  	_ RequestCredentials = iota
  1198  
  1199  	RequestCredentials_OMIT
  1200  	RequestCredentials_SAME_ORIGIN
  1201  	RequestCredentials_INCLUDE
  1202  )
  1203  
  1204  func (RequestCredentials) FromRef(str js.Ref) RequestCredentials {
  1205  	return RequestCredentials(bindings.ConstOfRequestCredentials(str))
  1206  }
  1207  
  1208  func (x RequestCredentials) String() (string, bool) {
  1209  	switch x {
  1210  	case RequestCredentials_OMIT:
  1211  		return "omit", true
  1212  	case RequestCredentials_SAME_ORIGIN:
  1213  		return "same-origin", true
  1214  	case RequestCredentials_INCLUDE:
  1215  		return "include", true
  1216  	default:
  1217  		return "", false
  1218  	}
  1219  }
  1220  
  1221  type RequestCache uint32
  1222  
  1223  const (
  1224  	_ RequestCache = iota
  1225  
  1226  	RequestCache_DEFAULT
  1227  	RequestCache_NO_STORE
  1228  	RequestCache_RELOAD
  1229  	RequestCache_NO_CACHE
  1230  	RequestCache_FORCE_CACHE
  1231  	RequestCache_ONLY_IF_CACHED
  1232  )
  1233  
  1234  func (RequestCache) FromRef(str js.Ref) RequestCache {
  1235  	return RequestCache(bindings.ConstOfRequestCache(str))
  1236  }
  1237  
  1238  func (x RequestCache) String() (string, bool) {
  1239  	switch x {
  1240  	case RequestCache_DEFAULT:
  1241  		return "default", true
  1242  	case RequestCache_NO_STORE:
  1243  		return "no-store", true
  1244  	case RequestCache_RELOAD:
  1245  		return "reload", true
  1246  	case RequestCache_NO_CACHE:
  1247  		return "no-cache", true
  1248  	case RequestCache_FORCE_CACHE:
  1249  		return "force-cache", true
  1250  	case RequestCache_ONLY_IF_CACHED:
  1251  		return "only-if-cached", true
  1252  	default:
  1253  		return "", false
  1254  	}
  1255  }
  1256  
  1257  type RequestRedirect uint32
  1258  
  1259  const (
  1260  	_ RequestRedirect = iota
  1261  
  1262  	RequestRedirect_FOLLOW
  1263  	RequestRedirect_ERROR
  1264  	RequestRedirect_MANUAL
  1265  )
  1266  
  1267  func (RequestRedirect) FromRef(str js.Ref) RequestRedirect {
  1268  	return RequestRedirect(bindings.ConstOfRequestRedirect(str))
  1269  }
  1270  
  1271  func (x RequestRedirect) String() (string, bool) {
  1272  	switch x {
  1273  	case RequestRedirect_FOLLOW:
  1274  		return "follow", true
  1275  	case RequestRedirect_ERROR:
  1276  		return "error", true
  1277  	case RequestRedirect_MANUAL:
  1278  		return "manual", true
  1279  	default:
  1280  		return "", false
  1281  	}
  1282  }
  1283  
  1284  type RequestDuplex uint32
  1285  
  1286  const (
  1287  	_ RequestDuplex = iota
  1288  
  1289  	RequestDuplex_HALF
  1290  )
  1291  
  1292  func (RequestDuplex) FromRef(str js.Ref) RequestDuplex {
  1293  	return RequestDuplex(bindings.ConstOfRequestDuplex(str))
  1294  }
  1295  
  1296  func (x RequestDuplex) String() (string, bool) {
  1297  	switch x {
  1298  	case RequestDuplex_HALF:
  1299  		return "half", true
  1300  	default:
  1301  		return "", false
  1302  	}
  1303  }
  1304  
  1305  type RequestPriority uint32
  1306  
  1307  const (
  1308  	_ RequestPriority = iota
  1309  
  1310  	RequestPriority_HIGH
  1311  	RequestPriority_LOW
  1312  	RequestPriority_AUTO
  1313  )
  1314  
  1315  func (RequestPriority) FromRef(str js.Ref) RequestPriority {
  1316  	return RequestPriority(bindings.ConstOfRequestPriority(str))
  1317  }
  1318  
  1319  func (x RequestPriority) String() (string, bool) {
  1320  	switch x {
  1321  	case RequestPriority_HIGH:
  1322  		return "high", true
  1323  	case RequestPriority_LOW:
  1324  		return "low", true
  1325  	case RequestPriority_AUTO:
  1326  		return "auto", true
  1327  	default:
  1328  		return "", false
  1329  	}
  1330  }
  1331  
  1332  type TokenVersion uint32
  1333  
  1334  const (
  1335  	_ TokenVersion = iota
  1336  
  1337  	TokenVersion_1
  1338  )
  1339  
  1340  func (TokenVersion) FromRef(str js.Ref) TokenVersion {
  1341  	return TokenVersion(bindings.ConstOfTokenVersion(str))
  1342  }
  1343  
  1344  func (x TokenVersion) String() (string, bool) {
  1345  	switch x {
  1346  	case TokenVersion_1:
  1347  		return "1", true
  1348  	default:
  1349  		return "", false
  1350  	}
  1351  }
  1352  
  1353  type OperationType uint32
  1354  
  1355  const (
  1356  	_ OperationType = iota
  1357  
  1358  	OperationType_TOKEN_REQUEST
  1359  	OperationType_SEND_REDEMPTION_RECORD
  1360  	OperationType_TOKEN_REDEMPTION
  1361  )
  1362  
  1363  func (OperationType) FromRef(str js.Ref) OperationType {
  1364  	return OperationType(bindings.ConstOfOperationType(str))
  1365  }
  1366  
  1367  func (x OperationType) String() (string, bool) {
  1368  	switch x {
  1369  	case OperationType_TOKEN_REQUEST:
  1370  		return "token-request", true
  1371  	case OperationType_SEND_REDEMPTION_RECORD:
  1372  		return "send-redemption-record", true
  1373  	case OperationType_TOKEN_REDEMPTION:
  1374  		return "token-redemption", true
  1375  	default:
  1376  		return "", false
  1377  	}
  1378  }
  1379  
  1380  type RefreshPolicy uint32
  1381  
  1382  const (
  1383  	_ RefreshPolicy = iota
  1384  
  1385  	RefreshPolicy_NONE
  1386  	RefreshPolicy_REFRESH
  1387  )
  1388  
  1389  func (RefreshPolicy) FromRef(str js.Ref) RefreshPolicy {
  1390  	return RefreshPolicy(bindings.ConstOfRefreshPolicy(str))
  1391  }
  1392  
  1393  func (x RefreshPolicy) String() (string, bool) {
  1394  	switch x {
  1395  	case RefreshPolicy_NONE:
  1396  		return "none", true
  1397  	case RefreshPolicy_REFRESH:
  1398  		return "refresh", true
  1399  	default:
  1400  		return "", false
  1401  	}
  1402  }
  1403  
  1404  type PrivateToken struct {
  1405  	// Version is "PrivateToken.version"
  1406  	//
  1407  	// Required
  1408  	Version TokenVersion
  1409  	// Operation is "PrivateToken.operation"
  1410  	//
  1411  	// Required
  1412  	Operation OperationType
  1413  	// RefreshPolicy is "PrivateToken.refreshPolicy"
  1414  	//
  1415  	// Optional, defaults to "none".
  1416  	RefreshPolicy RefreshPolicy
  1417  	// Issuers is "PrivateToken.issuers"
  1418  	//
  1419  	// Optional
  1420  	Issuers js.Array[js.String]
  1421  
  1422  	FFI_USE bool
  1423  }
  1424  
  1425  // FromRef calls UpdateFrom and returns a PrivateToken with all fields set.
  1426  func (p PrivateToken) FromRef(ref js.Ref) PrivateToken {
  1427  	p.UpdateFrom(ref)
  1428  	return p
  1429  }
  1430  
  1431  // New creates a new PrivateToken in the application heap.
  1432  func (p PrivateToken) New() js.Ref {
  1433  	return bindings.PrivateTokenJSLoad(
  1434  		js.Pointer(&p), js.True, 0,
  1435  	)
  1436  }
  1437  
  1438  // UpdateFrom copies value of all fields of the heap object to p.
  1439  func (p *PrivateToken) UpdateFrom(ref js.Ref) {
  1440  	bindings.PrivateTokenJSStore(
  1441  		js.Pointer(p), ref,
  1442  	)
  1443  }
  1444  
  1445  // Update writes all fields of the p to the heap object referenced by ref.
  1446  func (p *PrivateToken) Update(ref js.Ref) {
  1447  	bindings.PrivateTokenJSLoad(
  1448  		js.Pointer(p), js.False, ref,
  1449  	)
  1450  }
  1451  
  1452  // FreeMembers frees fields with heap reference, if recursive is true
  1453  // free all heap references reachable from p.
  1454  func (p *PrivateToken) FreeMembers(recursive bool) {
  1455  	js.Free(
  1456  		p.Issuers.Ref(),
  1457  	)
  1458  	p.Issuers = p.Issuers.FromRef(js.Undefined)
  1459  }
  1460  
  1461  type RequestTargetAddressSpace uint32
  1462  
  1463  const (
  1464  	_ RequestTargetAddressSpace = iota
  1465  
  1466  	RequestTargetAddressSpace_PRIVATE
  1467  	RequestTargetAddressSpace_LOCAL
  1468  )
  1469  
  1470  func (RequestTargetAddressSpace) FromRef(str js.Ref) RequestTargetAddressSpace {
  1471  	return RequestTargetAddressSpace(bindings.ConstOfRequestTargetAddressSpace(str))
  1472  }
  1473  
  1474  func (x RequestTargetAddressSpace) String() (string, bool) {
  1475  	switch x {
  1476  	case RequestTargetAddressSpace_PRIVATE:
  1477  		return "private", true
  1478  	case RequestTargetAddressSpace_LOCAL:
  1479  		return "local", true
  1480  	default:
  1481  		return "", false
  1482  	}
  1483  }
  1484  
  1485  type RequestInit struct {
  1486  	// Method is "RequestInit.method"
  1487  	//
  1488  	// Optional
  1489  	Method js.String
  1490  	// Headers is "RequestInit.headers"
  1491  	//
  1492  	// Optional
  1493  	Headers HeadersInit
  1494  	// Body is "RequestInit.body"
  1495  	//
  1496  	// Optional
  1497  	Body BodyInit
  1498  	// Referrer is "RequestInit.referrer"
  1499  	//
  1500  	// Optional
  1501  	Referrer js.String
  1502  	// ReferrerPolicy is "RequestInit.referrerPolicy"
  1503  	//
  1504  	// Optional
  1505  	ReferrerPolicy ReferrerPolicy
  1506  	// Mode is "RequestInit.mode"
  1507  	//
  1508  	// Optional
  1509  	Mode RequestMode
  1510  	// Credentials is "RequestInit.credentials"
  1511  	//
  1512  	// Optional
  1513  	Credentials RequestCredentials
  1514  	// Cache is "RequestInit.cache"
  1515  	//
  1516  	// Optional
  1517  	Cache RequestCache
  1518  	// Redirect is "RequestInit.redirect"
  1519  	//
  1520  	// Optional
  1521  	Redirect RequestRedirect
  1522  	// Integrity is "RequestInit.integrity"
  1523  	//
  1524  	// Optional
  1525  	Integrity js.String
  1526  	// Keepalive is "RequestInit.keepalive"
  1527  	//
  1528  	// Optional
  1529  	//
  1530  	// NOTE: FFI_USE_Keepalive MUST be set to true to make this field effective.
  1531  	Keepalive bool
  1532  	// Signal is "RequestInit.signal"
  1533  	//
  1534  	// Optional
  1535  	Signal AbortSignal
  1536  	// Duplex is "RequestInit.duplex"
  1537  	//
  1538  	// Optional
  1539  	Duplex RequestDuplex
  1540  	// Priority is "RequestInit.priority"
  1541  	//
  1542  	// Optional
  1543  	Priority RequestPriority
  1544  	// Window is "RequestInit.window"
  1545  	//
  1546  	// Optional
  1547  	Window js.Any
  1548  	// PrivateToken is "RequestInit.privateToken"
  1549  	//
  1550  	// Optional
  1551  	//
  1552  	// NOTE: PrivateToken.FFI_USE MUST be set to true to get PrivateToken used.
  1553  	PrivateToken PrivateToken
  1554  	// TargetAddressSpace is "RequestInit.targetAddressSpace"
  1555  	//
  1556  	// Optional
  1557  	TargetAddressSpace RequestTargetAddressSpace
  1558  	// AttributionReporting is "RequestInit.attributionReporting"
  1559  	//
  1560  	// Optional
  1561  	//
  1562  	// NOTE: AttributionReporting.FFI_USE MUST be set to true to get AttributionReporting used.
  1563  	AttributionReporting AttributionReportingRequestOptions
  1564  
  1565  	FFI_USE_Keepalive bool // for Keepalive.
  1566  
  1567  	FFI_USE bool
  1568  }
  1569  
  1570  // FromRef calls UpdateFrom and returns a RequestInit with all fields set.
  1571  func (p RequestInit) FromRef(ref js.Ref) RequestInit {
  1572  	p.UpdateFrom(ref)
  1573  	return p
  1574  }
  1575  
  1576  // New creates a new RequestInit in the application heap.
  1577  func (p RequestInit) New() js.Ref {
  1578  	return bindings.RequestInitJSLoad(
  1579  		js.Pointer(&p), js.True, 0,
  1580  	)
  1581  }
  1582  
  1583  // UpdateFrom copies value of all fields of the heap object to p.
  1584  func (p *RequestInit) UpdateFrom(ref js.Ref) {
  1585  	bindings.RequestInitJSStore(
  1586  		js.Pointer(p), ref,
  1587  	)
  1588  }
  1589  
  1590  // Update writes all fields of the p to the heap object referenced by ref.
  1591  func (p *RequestInit) Update(ref js.Ref) {
  1592  	bindings.RequestInitJSLoad(
  1593  		js.Pointer(p), js.False, ref,
  1594  	)
  1595  }
  1596  
  1597  // FreeMembers frees fields with heap reference, if recursive is true
  1598  // free all heap references reachable from p.
  1599  func (p *RequestInit) FreeMembers(recursive bool) {
  1600  	js.Free(
  1601  		p.Method.Ref(),
  1602  		p.Headers.Ref(),
  1603  		p.Body.Ref(),
  1604  		p.Referrer.Ref(),
  1605  		p.Integrity.Ref(),
  1606  		p.Signal.Ref(),
  1607  		p.Window.Ref(),
  1608  	)
  1609  	p.Method = p.Method.FromRef(js.Undefined)
  1610  	p.Headers = p.Headers.FromRef(js.Undefined)
  1611  	p.Body = p.Body.FromRef(js.Undefined)
  1612  	p.Referrer = p.Referrer.FromRef(js.Undefined)
  1613  	p.Integrity = p.Integrity.FromRef(js.Undefined)
  1614  	p.Signal = p.Signal.FromRef(js.Undefined)
  1615  	p.Window = p.Window.FromRef(js.Undefined)
  1616  	if recursive {
  1617  		p.PrivateToken.FreeMembers(true)
  1618  		p.AttributionReporting.FreeMembers(true)
  1619  	}
  1620  }
  1621  
  1622  func NewHeaders(init HeadersInit) (ret Headers) {
  1623  	ret.ref = bindings.NewHeadersByHeaders(
  1624  		init.Ref())
  1625  	return
  1626  }
  1627  
  1628  func NewHeadersByHeaders1() (ret Headers) {
  1629  	ret.ref = bindings.NewHeadersByHeaders1()
  1630  	return
  1631  }
  1632  
  1633  type Headers struct {
  1634  	ref js.Ref
  1635  }
  1636  
  1637  func (this Headers) Once() Headers {
  1638  	this.ref.Once()
  1639  	return this
  1640  }
  1641  
  1642  func (this Headers) Ref() js.Ref {
  1643  	return this.ref
  1644  }
  1645  
  1646  func (this Headers) FromRef(ref js.Ref) Headers {
  1647  	this.ref = ref
  1648  	return this
  1649  }
  1650  
  1651  func (this Headers) Free() {
  1652  	this.ref.Free()
  1653  }
  1654  
  1655  // HasFuncAppend returns true if the method "Headers.append" exists.
  1656  func (this Headers) HasFuncAppend() bool {
  1657  	return js.True == bindings.HasFuncHeadersAppend(
  1658  		this.ref,
  1659  	)
  1660  }
  1661  
  1662  // FuncAppend returns the method "Headers.append".
  1663  func (this Headers) FuncAppend() (fn js.Func[func(name js.String, value js.String)]) {
  1664  	bindings.FuncHeadersAppend(
  1665  		this.ref, js.Pointer(&fn),
  1666  	)
  1667  	return
  1668  }
  1669  
  1670  // Append calls the method "Headers.append".
  1671  func (this Headers) Append(name js.String, value js.String) (ret js.Void) {
  1672  	bindings.CallHeadersAppend(
  1673  		this.ref, js.Pointer(&ret),
  1674  		name.Ref(),
  1675  		value.Ref(),
  1676  	)
  1677  
  1678  	return
  1679  }
  1680  
  1681  // TryAppend calls the method "Headers.append"
  1682  // in a try/catch block and returns (_, err, ok = false) when it went through
  1683  // the catch clause.
  1684  func (this Headers) TryAppend(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
  1685  	ok = js.True == bindings.TryHeadersAppend(
  1686  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1687  		name.Ref(),
  1688  		value.Ref(),
  1689  	)
  1690  
  1691  	return
  1692  }
  1693  
  1694  // HasFuncDelete returns true if the method "Headers.delete" exists.
  1695  func (this Headers) HasFuncDelete() bool {
  1696  	return js.True == bindings.HasFuncHeadersDelete(
  1697  		this.ref,
  1698  	)
  1699  }
  1700  
  1701  // FuncDelete returns the method "Headers.delete".
  1702  func (this Headers) FuncDelete() (fn js.Func[func(name js.String)]) {
  1703  	bindings.FuncHeadersDelete(
  1704  		this.ref, js.Pointer(&fn),
  1705  	)
  1706  	return
  1707  }
  1708  
  1709  // Delete calls the method "Headers.delete".
  1710  func (this Headers) Delete(name js.String) (ret js.Void) {
  1711  	bindings.CallHeadersDelete(
  1712  		this.ref, js.Pointer(&ret),
  1713  		name.Ref(),
  1714  	)
  1715  
  1716  	return
  1717  }
  1718  
  1719  // TryDelete calls the method "Headers.delete"
  1720  // in a try/catch block and returns (_, err, ok = false) when it went through
  1721  // the catch clause.
  1722  func (this Headers) TryDelete(name js.String) (ret js.Void, exception js.Any, ok bool) {
  1723  	ok = js.True == bindings.TryHeadersDelete(
  1724  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1725  		name.Ref(),
  1726  	)
  1727  
  1728  	return
  1729  }
  1730  
  1731  // HasFuncGet returns true if the method "Headers.get" exists.
  1732  func (this Headers) HasFuncGet() bool {
  1733  	return js.True == bindings.HasFuncHeadersGet(
  1734  		this.ref,
  1735  	)
  1736  }
  1737  
  1738  // FuncGet returns the method "Headers.get".
  1739  func (this Headers) FuncGet() (fn js.Func[func(name js.String) js.String]) {
  1740  	bindings.FuncHeadersGet(
  1741  		this.ref, js.Pointer(&fn),
  1742  	)
  1743  	return
  1744  }
  1745  
  1746  // Get calls the method "Headers.get".
  1747  func (this Headers) Get(name js.String) (ret js.String) {
  1748  	bindings.CallHeadersGet(
  1749  		this.ref, js.Pointer(&ret),
  1750  		name.Ref(),
  1751  	)
  1752  
  1753  	return
  1754  }
  1755  
  1756  // TryGet calls the method "Headers.get"
  1757  // in a try/catch block and returns (_, err, ok = false) when it went through
  1758  // the catch clause.
  1759  func (this Headers) TryGet(name js.String) (ret js.String, exception js.Any, ok bool) {
  1760  	ok = js.True == bindings.TryHeadersGet(
  1761  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1762  		name.Ref(),
  1763  	)
  1764  
  1765  	return
  1766  }
  1767  
  1768  // HasFuncGetSetCookie returns true if the method "Headers.getSetCookie" exists.
  1769  func (this Headers) HasFuncGetSetCookie() bool {
  1770  	return js.True == bindings.HasFuncHeadersGetSetCookie(
  1771  		this.ref,
  1772  	)
  1773  }
  1774  
  1775  // FuncGetSetCookie returns the method "Headers.getSetCookie".
  1776  func (this Headers) FuncGetSetCookie() (fn js.Func[func() js.Array[js.String]]) {
  1777  	bindings.FuncHeadersGetSetCookie(
  1778  		this.ref, js.Pointer(&fn),
  1779  	)
  1780  	return
  1781  }
  1782  
  1783  // GetSetCookie calls the method "Headers.getSetCookie".
  1784  func (this Headers) GetSetCookie() (ret js.Array[js.String]) {
  1785  	bindings.CallHeadersGetSetCookie(
  1786  		this.ref, js.Pointer(&ret),
  1787  	)
  1788  
  1789  	return
  1790  }
  1791  
  1792  // TryGetSetCookie calls the method "Headers.getSetCookie"
  1793  // in a try/catch block and returns (_, err, ok = false) when it went through
  1794  // the catch clause.
  1795  func (this Headers) TryGetSetCookie() (ret js.Array[js.String], exception js.Any, ok bool) {
  1796  	ok = js.True == bindings.TryHeadersGetSetCookie(
  1797  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1798  	)
  1799  
  1800  	return
  1801  }
  1802  
  1803  // HasFuncHas returns true if the method "Headers.has" exists.
  1804  func (this Headers) HasFuncHas() bool {
  1805  	return js.True == bindings.HasFuncHeadersHas(
  1806  		this.ref,
  1807  	)
  1808  }
  1809  
  1810  // FuncHas returns the method "Headers.has".
  1811  func (this Headers) FuncHas() (fn js.Func[func(name js.String) bool]) {
  1812  	bindings.FuncHeadersHas(
  1813  		this.ref, js.Pointer(&fn),
  1814  	)
  1815  	return
  1816  }
  1817  
  1818  // Has calls the method "Headers.has".
  1819  func (this Headers) Has(name js.String) (ret bool) {
  1820  	bindings.CallHeadersHas(
  1821  		this.ref, js.Pointer(&ret),
  1822  		name.Ref(),
  1823  	)
  1824  
  1825  	return
  1826  }
  1827  
  1828  // TryHas calls the method "Headers.has"
  1829  // in a try/catch block and returns (_, err, ok = false) when it went through
  1830  // the catch clause.
  1831  func (this Headers) TryHas(name js.String) (ret bool, exception js.Any, ok bool) {
  1832  	ok = js.True == bindings.TryHeadersHas(
  1833  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1834  		name.Ref(),
  1835  	)
  1836  
  1837  	return
  1838  }
  1839  
  1840  // HasFuncSet returns true if the method "Headers.set" exists.
  1841  func (this Headers) HasFuncSet() bool {
  1842  	return js.True == bindings.HasFuncHeadersSet(
  1843  		this.ref,
  1844  	)
  1845  }
  1846  
  1847  // FuncSet returns the method "Headers.set".
  1848  func (this Headers) FuncSet() (fn js.Func[func(name js.String, value js.String)]) {
  1849  	bindings.FuncHeadersSet(
  1850  		this.ref, js.Pointer(&fn),
  1851  	)
  1852  	return
  1853  }
  1854  
  1855  // Set calls the method "Headers.set".
  1856  func (this Headers) Set(name js.String, value js.String) (ret js.Void) {
  1857  	bindings.CallHeadersSet(
  1858  		this.ref, js.Pointer(&ret),
  1859  		name.Ref(),
  1860  		value.Ref(),
  1861  	)
  1862  
  1863  	return
  1864  }
  1865  
  1866  // TrySet calls the method "Headers.set"
  1867  // in a try/catch block and returns (_, err, ok = false) when it went through
  1868  // the catch clause.
  1869  func (this Headers) TrySet(name js.String, value js.String) (ret js.Void, exception js.Any, ok bool) {
  1870  	ok = js.True == bindings.TryHeadersSet(
  1871  		this.ref, js.Pointer(&ret), js.Pointer(&exception),
  1872  		name.Ref(),
  1873  		value.Ref(),
  1874  	)
  1875  
  1876  	return
  1877  }
  1878  
  1879  type RequestDestination uint32