githubcomlightfldlightfieldgo

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

README

Lightfield Go API Library

Go Reference

The Lightfield Go library provides convenient access to the Lightfield REST API from applications written in Go.

It is generated with Stainless.

Installation

import (
	"github.com/Lightfld/lightfield-go" // imported as githubcomlightfldlightfieldgo
)

Or to pin the version:

go get -u 'github.com/Lightfld/lightfield-go@v0.2.0'

Requirements

This library requires Go 1.22+.

Usage

The full API of this library can be found in api.md.

package main

import (
	"context"
	"fmt"

	"github.com/Lightfld/lightfield-go"
	"github.com/Lightfld/lightfield-go/option"
)

func main() {
	client := githubcomlightfldlightfieldgo.NewClient(
		option.WithAPIKey("My API Key"),
	)
	account, err := client.Account.New(context.TODO(), githubcomlightfldlightfieldgo.AccountNewParams{
		Fields: githubcomlightfldlightfieldgo.AccountNewParamsFields{
			Name:     "Acme Corp",
			Industry: []string{"opt_01j0x6q3m9v2p4t7k8n5r1s2u"},
		},
	})
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", account.ID)
}

Request fields

The githubcomlightfldlightfieldgo library uses the omitzero semantics from the Go 1.24+ encoding/json release for request fields.

Required primitive fields (int64, string, etc.) feature the tag `json:"...,required"`. These fields are always serialized, even their zero values.

Optional primitive types are wrapped in a param.Opt[T]. These fields can be set with the provided constructors, githubcomlightfldlightfieldgo.String(string), githubcomlightfldlightfieldgo.Int(int64), etc.

Any param.Opt[T], map, slice, struct or string enum uses the tag `json:"...,omitzero"`. Its zero value is considered omitted.

The param.IsOmitted(any) function can confirm the presence of any omitzero field.

p := githubcomlightfldlightfieldgo.ExampleParams{
	ID:   "id_xxx",                                    // required property
	Name: githubcomlightfldlightfieldgo.String("..."), // optional property

	Point: githubcomlightfldlightfieldgo.Point{
		X: 0,                                    // required field will serialize as 0
		Y: githubcomlightfldlightfieldgo.Int(1), // optional field will serialize as 1
		// ... omitted non-required fields will not be serialized
	},

	Origin: githubcomlightfldlightfieldgo.Origin{}, // the zero value of [Origin] is considered omitted
}

To send null instead of a param.Opt[T], use param.Null[T](). To send null instead of a struct T, use param.NullStruct[T]().

p.Name = param.Null[string]()       // 'null' instead of string
p.Point = param.NullStruct[Point]() // 'null' instead of struct

param.IsNull(p.Name)  // true
param.IsNull(p.Point) // true

Request structs contain a .SetExtraFields(map[string]any) method which can send non-conforming fields in the request body. Extra fields overwrite any struct fields with a matching key. For security reasons, only use SetExtraFields with trusted data.

To send a custom value instead of a struct, use param.Override[T](value).

// In cases where the API specifies a given type,
// but you want to send something else, use [SetExtraFields]:
p.SetExtraFields(map[string]any{
	"x": 0.01, // send "x" as a float instead of int
})

// Send a number instead of an object
custom := param.Override[githubcomlightfldlightfieldgo.FooParams](12)
Request unions

Unions are represented as a struct with fields prefixed by "Of" for each of its variants, only one field can be non-zero. The non-zero field will be serialized.

Sub-properties of the union can be accessed via methods on the union struct. These methods return a mutable pointer to the underlying data, if present.

// Only one field can be non-zero, use param.IsOmitted() to check if a field is set
type AnimalUnionParam struct {
	OfCat *Cat `json:",omitzero,inline`
	OfDog *Dog `json:",omitzero,inline`
}

animal := AnimalUnionParam{
	OfCat: &Cat{
		Name: "Whiskers",
		Owner: PersonParam{
			Address: AddressParam{Street: "3333 Coyote Hill Rd", Zip: 0},
		},
	},
}

// Mutating a field
if address := animal.GetOwner().GetAddress(); address != nil {
	address.ZipCode = 94304
}
Response objects

All fields in response structs are ordinary value types (not pointers or wrappers). Response structs also include a special JSON field containing metadata about each property.

type Animal struct {
	Name   string `json:"name,nullable"`
	Owners int    `json:"owners"`
	Age    int    `json:"age"`
	JSON   struct {
		Name        respjson.Field
		Owner       respjson.Field
		Age         respjson.Field
		ExtraFields map[string]respjson.Field
	} `json:"-"`
}

To handle optional data, use the .Valid() method on the JSON field. .Valid() returns true if a field is not null, not present, or couldn't be marshaled.

If .Valid() is false, the corresponding field will simply be its zero value.

raw := `{"owners": 1, "name": null}`

var res Animal
json.Unmarshal([]byte(raw), &res)

// Accessing regular fields

res.Owners // 1
res.Name   // ""
res.Age    // 0

// Optional field checks

res.JSON.Owners.Valid() // true
res.JSON.Name.Valid()   // false
res.JSON.Age.Valid()    // false

// Raw JSON values

res.JSON.Owners.Raw()                  // "1"
res.JSON.Name.Raw() == "null"          // true
res.JSON.Name.Raw() == respjson.Null   // true
res.JSON.Age.Raw() == ""               // true
res.JSON.Age.Raw() == respjson.Omitted // true

These .JSON structs also include an ExtraFields map containing any properties in the json response that were not specified in the struct. This can be useful for API features not yet present in the SDK.

body := res.JSON.ExtraFields["my_unexpected_field"].Raw()
Response Unions

In responses, unions are represented by a flattened struct containing all possible fields from each of the object variants. To convert it to a variant use the .AsFooVariant() method or the .AsAny() method if present.

If a response value union contains primitive values, primitive fields will be alongside the properties but prefixed with Of and feature the tag json:"...,inline".

type AnimalUnion struct {
	// From variants [Dog], [Cat]
	Owner Person `json:"owner"`
	// From variant [Dog]
	DogBreed string `json:"dog_breed"`
	// From variant [Cat]
	CatBreed string `json:"cat_breed"`
	// ...

	JSON struct {
		Owner respjson.Field
		// ...
	} `json:"-"`
}

// If animal variant
if animal.Owner.Address.ZipCode == "" {
	panic("missing zip code")
}

// Switch on the variant
switch variant := animal.AsAny().(type) {
case Dog:
case Cat:
default:
	panic("unexpected type")
}
RequestOptions

This library uses the functional options pattern. Functions defined in the option package return a RequestOption, which is a closure that mutates a RequestConfig. These options can be supplied to the client or at individual requests. For example:

client := githubcomlightfldlightfieldgo.NewClient(
	// Adds a header to every request made by the client
	option.WithHeader("X-Some-Header", "custom_header_info"),
)

client.Account.New(context.TODO(), ...,
	// Override the header
	option.WithHeader("X-Some-Header", "some_other_custom_header_info"),
	// Add an undocumented field to the request body, using sjson syntax
	option.WithJSONSet("some.json.path", map[string]string{"my": "object"}),
)

The request option option.WithDebugLog(nil) may be helpful while debugging.

See the full list of request options.

Pagination

This library provides some conveniences for working with paginated list endpoints.

You can use .ListAutoPaging() methods to iterate through items across all pages:

Or you can use simple .List() methods to fetch a single page and receive a standard response object with additional helper methods like .GetNextPage(), e.g.:

Errors

When the API returns a non-success status code, we return an error with type *githubcomlightfldlightfieldgo.Error. This contains the StatusCode, *http.Request, and *http.Response values of the request, as well as the JSON of the error body (much like other response objects in the SDK).

To handle errors, we recommend that you use the errors.As pattern:

_, err := client.Opportunity.New(context.TODO(), githubcomlightfldlightfieldgo.OpportunityNewParams{
	Fields: githubcomlightfldlightfieldgo.OpportunityNewParamsFields{
		Name:  "Enterprise Platform Deal",
		Stage: "opt_01abc2def3ghi4jkl5mno6pqr",
	},
	Relationships: githubcomlightfldlightfieldgo.OpportunityNewParamsRelationships{
		Account: githubcomlightfldlightfieldgo.OpportunityNewParamsRelationshipsAccountUnion{
			OfString: githubcomlightfldlightfieldgo.String("acc_cm4stu901uvw234"),
		},
	},
})
if err != nil {
	var apierr *githubcomlightfldlightfieldgo.Error
	if errors.As(err, &apierr) {
		println(string(apierr.DumpRequest(true)))  // Prints the serialized HTTP request
		println(string(apierr.DumpResponse(true))) // Prints the serialized HTTP response
	}
	panic(err.Error()) // GET "/v1/opportunities": 400 Bad Request { ... }
}

When other errors occur, they are returned unwrapped; for example, if HTTP transport fails, you might receive *url.Error wrapping *net.OpError.

Timeouts

Requests do not time out by default; use context to configure a timeout for a request lifecycle.

Note that if a request is retried, the context timeout does not start over. To set a per-retry timeout, use option.WithRequestTimeout().

// This sets the timeout for the request, including all the retries.
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
client.Account.New(
	ctx,
	githubcomlightfldlightfieldgo.AccountNewParams{
		Fields: githubcomlightfldlightfieldgo.AccountNewParamsFields{
			Name:      "Acme Corp",
			Website:   []string{"https://acme.com"},
			Industry:  []string{"opt_01j0x6q3m9v2p4t7k8n5r1s2u", "opt_01h4b7c9d2e5f8g1j3k6m0n4p"},
			Headcount: githubcomlightfldlightfieldgo.String("opt_01r5t8y2u6i9o3p7a1s4d6f8g"),
			LinkedIn:  githubcomlightfldlightfieldgo.String("https://linkedin.com/company/acme"),
			PrimaryAddress: map[string]string{
				"street":  "123 Market St",
				"city":    "San Francisco",
				"state":   "CA",
				"zip":     "94105",
				"country": "US",
			},
		},
		Relationships: githubcomlightfldlightfieldgo.AccountNewParamsRelationships{
			Owner: githubcomlightfldlightfieldgo.AccountNewParamsRelationshipsOwnerUnion{
				OfString: githubcomlightfldlightfieldgo.String("mem_cm1abc123def456"),
			},
			Contacts: githubcomlightfldlightfieldgo.AccountNewParamsRelationshipsContactsUnion{
				OfStringArray: []string{"con_cm2ghi789jkl012", "con_cm3mno345pqr678"},
			},
		},
	},
	// This sets the per-retry timeout
	option.WithRequestTimeout(20*time.Second),
)
File uploads

Request parameters that correspond to file uploads in multipart requests are typed as io.Reader. The contents of the io.Reader will by default be sent as a multipart form part with the file name of "anonymous_file" and content-type of "application/octet-stream".

The file name and content-type can be customized by implementing Name() string or ContentType() string on the run-time type of io.Reader. Note that os.File implements Name() string, so a file returned by os.Open will be sent with the file name on disk.

We also provide a helper githubcomlightfldlightfieldgo.File(reader io.Reader, filename string, contentType string) which can be used to wrap any io.Reader with the appropriate file name and content type.

Retries

Certain errors will be automatically retried 2 times by default, with a short exponential backoff. We retry by default all connection errors, 408 Request Timeout, 409 Conflict, 429 Rate Limit, and >=500 Internal errors.

You can use the WithMaxRetries option to configure or disable this:

// Configure the default for all requests:
client := githubcomlightfldlightfieldgo.NewClient(
	option.WithMaxRetries(0), // default is 2
)

// Override per-request:
client.Opportunity.Get(
	context.TODO(),
	"opp_cm9uvw890xyz123",
	option.WithMaxRetries(5),
)
Accessing raw response data (e.g. response headers)

You can access the raw HTTP response data by using the option.WithResponseInto() request option. This is useful when you need to examine response headers, status codes, or other details.

// Create a variable to store the HTTP response
var response *http.Response
account, err := client.Account.Get(
	context.TODO(),
	"acc_cm4stu901uvw234",
	option.WithResponseInto(&response),
)
if err != nil {
	// handle error
}
fmt.Printf("%+v\n", account)

fmt.Printf("Status Code: %d\n", response.StatusCode)
fmt.Printf("Headers: %+#v\n", response.Header)
Making custom/undocumented requests

This library is typed for convenient access to the documented API. If you need to access undocumented endpoints, params, or response properties, the library can still be used.

Undocumented endpoints

To make requests to undocumented endpoints, you can use client.Get, client.Post, and other HTTP verbs. RequestOptions on the client, such as retries, will be respected when making these requests.

var (
    // params can be an io.Reader, a []byte, an encoding/json serializable object,
    // or a "…Params" struct defined in this library.
    params map[string]any

    // result can be an []byte, *http.Response, a encoding/json deserializable object,
    // or a model defined in this library.
    result *http.Response
)
err := client.Post(context.Background(), "/unspecified", params, &result)
if err != nil {
    …
}
Undocumented request params

To make requests using undocumented parameters, you may use either the option.WithQuerySet() or the option.WithJSONSet() methods.

params := FooNewParams{
    ID:   "id_xxxx",
    Data: FooNewParamsData{
        FirstName: githubcomlightfldlightfieldgo.String("John"),
    },
}
client.Foo.New(context.Background(), params, option.WithJSONSet("data.last_name", "Doe"))
Undocumented response properties

To access undocumented response properties, you may either access the raw JSON of the response as a string with result.JSON.RawJSON(), or get the raw JSON of a particular field on the result with result.JSON.Foo.Raw().

Any fields that are not present on the response struct will be saved and can be accessed by result.JSON.ExtraFields() which returns the extra fields as a map[string]Field.

Middleware

We provide option.WithMiddleware which applies the given middleware to requests.

func Logger(req *http.Request, next option.MiddlewareNext) (res *http.Response, err error) {
	// Before the request
	start := time.Now()
	LogReq(req)

	// Forward the request to the next handler
	res, err = next(req)

	// Handle stuff after the request
	end := time.Now()
	LogRes(res, err, start - end)

    return res, err
}

client := githubcomlightfldlightfieldgo.NewClient(
	option.WithMiddleware(Logger),
)

When multiple middlewares are provided as variadic arguments, the middlewares are applied left to right. If option.WithMiddleware is given multiple times, for example first in the client then the method, the middleware in the client will run first and the middleware given in the method will run next.

You may also replace the default http.Client with option.WithHTTPClient(client). Only one http client is accepted (this overwrites any previous client) and receives requests after any middleware has been applied.

Semantic versioning

This package generally follows SemVer conventions, though certain backwards-incompatible changes may be released as minor versions:

  1. Changes to library internals which are technically public but not intended or documented for external use. (Please open a GitHub issue to let us know if you are relying on such internals.)
  2. Changes that we do not expect to impact the vast majority of users in practice.

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an issue with questions, bugs, or suggestions.

Contributing

See the contributing documentation.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) param.Opt[bool]

func BoolPtr

func BoolPtr(v bool) *bool

func DefaultClientOptions

func DefaultClientOptions() []option.RequestOption

DefaultClientOptions read from the environment (LIGHTFIELD_BASE_URL). This should be used to initialize new clients.

func File

func File(rdr io.Reader, filename string, contentType string) file

func Float

func Float(f float64) param.Opt[float64]

func FloatPtr

func FloatPtr(v float64) *float64

func Int

func Int(i int64) param.Opt[int64]

func IntPtr

func IntPtr(v int64) *int64

func Opt

func Opt[T comparable](v T) param.Opt[T]

func Ptr

func Ptr[T any](v T) *T

func String

func String(s string) param.Opt[string]

func StringPtr

func StringPtr(v string) *string

func Time

func Time(t time.Time) param.Opt[time.Time]

func TimePtr

func TimePtr(v time.Time) *time.Time

Types

type AccountDefinitionsResponse added in v0.2.0

type AccountDefinitionsResponse struct {
	FieldDefinitions        map[string]AccountDefinitionsResponseFieldDefinition        `json:"fieldDefinitions" api:"required"`
	ObjectType              string                                                      `json:"objectType" api:"required"`
	RelationshipDefinitions map[string]AccountDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		FieldDefinitions        respjson.Field
		ObjectType              respjson.Field
		RelationshipDefinitions respjson.Field
		ExtraFields             map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountDefinitionsResponse) RawJSON added in v0.2.0

func (r AccountDefinitionsResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponse) UnmarshalJSON added in v0.2.0

func (r *AccountDefinitionsResponse) UnmarshalJSON(data []byte) error

type AccountDefinitionsResponseFieldDefinition added in v0.2.0

type AccountDefinitionsResponseFieldDefinition struct {
	Description       string                                                                     `json:"description" api:"required"`
	Label             string                                                                     `json:"label" api:"required"`
	TypeConfiguration map[string]AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
	ValueType         string                                                                     `json:"valueType" api:"required"`
	ID                string                                                                     `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Description       respjson.Field
		Label             respjson.Field
		TypeConfiguration respjson.Field
		ValueType         respjson.Field
		ID                respjson.Field
		ExtraFields       map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountDefinitionsResponseFieldDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponseFieldDefinition) UnmarshalJSON added in v0.2.0

func (r *AccountDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion added in v0.2.0

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
	JSON                                                                         struct {
		OfString                                                                     respjson.Field
		OfFloat                                                                      respjson.Field
		OfBool                                                                       respjson.Field
		OfAnyArray                                                                   respjson.Field
		OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON added in v0.2.0

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion added in v0.2.0

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                       struct {
		OfString                                                                   respjson.Field
		OfFloat                                                                    respjson.Field
		OfBool                                                                     respjson.Field
		OfAnyArray                                                                 respjson.Field
		OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON added in v0.2.0

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion added in v0.2.0

type AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
	// instead of an object.
	OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray []AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                       struct {
		OfString                                                                   respjson.Field
		OfFloat                                                                    respjson.Field
		OfBool                                                                     respjson.Field
		OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray          respjson.Field
		OfAnyArray                                                                 respjson.Field
		OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]AccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationArray added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsAccountDefinitionsResponseFieldDefinitionTypeConfigurationMapMap added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString added in v0.2.0

func (AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON added in v0.2.0

type AccountDefinitionsResponseRelationshipDefinition added in v0.2.0

type AccountDefinitionsResponseRelationshipDefinition struct {
	// Any of "HAS_ONE", "HAS_MANY".
	Cardinality string `json:"cardinality" api:"required"`
	Description string `json:"description" api:"required"`
	Label       string `json:"label" api:"required"`
	ObjectType  string `json:"objectType" api:"required"`
	ID          string `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		Description respjson.Field
		Label       respjson.Field
		ObjectType  respjson.Field
		ID          respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountDefinitionsResponseRelationshipDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*AccountDefinitionsResponseRelationshipDefinition) UnmarshalJSON added in v0.2.0

type AccountGetResponse

type AccountGetResponse struct {
	ID            string                                    `json:"id" api:"required"`
	CreatedAt     string                                    `json:"createdAt" api:"required"`
	Fields        map[string]AccountGetResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                    `json:"httpLink" api:"required"`
	Relationships map[string]AccountGetResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]AccountGetResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountGetResponse) RawJSON

func (r AccountGetResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountGetResponse) UnmarshalJSON

func (r *AccountGetResponse) UnmarshalJSON(data []byte) error

type AccountGetResponseArrayItemUnion

type AccountGetResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseArrayItemMapItem any `json:",inline"`
	JSON                                 struct {
		OfString                             respjson.Field
		OfFloat                              respjson.Field
		OfBool                               respjson.Field
		OfAnyArray                           respjson.Field
		OfAccountGetResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountGetResponseArrayItemMapItem]

func (AccountGetResponseArrayItemUnion) AsAnyArray

func (u AccountGetResponseArrayItemUnion) AsAnyArray() (v []any)

func (AccountGetResponseArrayItemUnion) AsAnyMap

func (u AccountGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (AccountGetResponseArrayItemUnion) AsBool

func (u AccountGetResponseArrayItemUnion) AsBool() (v bool)

func (AccountGetResponseArrayItemUnion) AsFloat

func (u AccountGetResponseArrayItemUnion) AsFloat() (v float64)

func (AccountGetResponseArrayItemUnion) AsString

func (u AccountGetResponseArrayItemUnion) AsString() (v string)

func (AccountGetResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseArrayItemUnion) UnmarshalJSON

func (r *AccountGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountGetResponseField

type AccountGetResponseField struct {
	Value     AccountGetResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                            `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountGetResponseField) RawJSON

func (r AccountGetResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountGetResponseField) UnmarshalJSON

func (r *AccountGetResponseField) UnmarshalJSON(data []byte) error

type AccountGetResponseFieldValueArrayItemUnion

type AccountGetResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                           struct {
		OfString                                       respjson.Field
		OfFloat                                        respjson.Field
		OfBool                                         respjson.Field
		OfAnyArray                                     respjson.Field
		OfAccountGetResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountGetResponseFieldValueArrayItemMapItem]

func (AccountGetResponseFieldValueArrayItemUnion) AsAnyArray

func (u AccountGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)

func (AccountGetResponseFieldValueArrayItemUnion) AsAnyMap

func (AccountGetResponseFieldValueArrayItemUnion) AsBool

func (AccountGetResponseFieldValueArrayItemUnion) AsFloat

func (AccountGetResponseFieldValueArrayItemUnion) AsString

func (AccountGetResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *AccountGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountGetResponseFieldValueMapItemUnion

type AccountGetResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAnyArray                                   respjson.Field
		OfAccountGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountGetResponseFieldValueMapItemMapItem]

func (AccountGetResponseFieldValueMapItemUnion) AsAnyArray

func (u AccountGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (AccountGetResponseFieldValueMapItemUnion) AsAnyMap

func (AccountGetResponseFieldValueMapItemUnion) AsBool

func (AccountGetResponseFieldValueMapItemUnion) AsFloat

func (AccountGetResponseFieldValueMapItemUnion) AsString

func (AccountGetResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *AccountGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type AccountGetResponseFieldValueUnion

type AccountGetResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountGetResponseFieldValueArrayItemUnion] instead of an object.
	OfAccountGetResponseFieldValueArray []AccountGetResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAccountGetResponseFieldValueArray          respjson.Field
		OfAnyArray                                   respjson.Field
		OfAccountGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountGetResponseFieldValueArrayItemUnion], [map[string]AccountGetResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountGetResponseFieldValueArray OfAnyArray OfAccountGetResponseFieldValueMapItemMapItem]

func (AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueArray

func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueArray() (v []AccountGetResponseFieldValueArrayItemUnion)

func (AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueMapMap

func (u AccountGetResponseFieldValueUnion) AsAccountGetResponseFieldValueMapMap() (v map[string]AccountGetResponseFieldValueMapItemUnion)

func (AccountGetResponseFieldValueUnion) AsBool

func (u AccountGetResponseFieldValueUnion) AsBool() (v bool)

func (AccountGetResponseFieldValueUnion) AsFloat

func (AccountGetResponseFieldValueUnion) AsString

func (u AccountGetResponseFieldValueUnion) AsString() (v string)

func (AccountGetResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseFieldValueUnion) UnmarshalJSON

func (r *AccountGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type AccountGetResponseMapItemUnion

type AccountGetResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAnyArray                         respjson.Field
		OfAccountGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountGetResponseMapItemMapItem]

func (AccountGetResponseMapItemUnion) AsAnyArray

func (u AccountGetResponseMapItemUnion) AsAnyArray() (v []any)

func (AccountGetResponseMapItemUnion) AsAnyMap

func (u AccountGetResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (AccountGetResponseMapItemUnion) AsBool

func (u AccountGetResponseMapItemUnion) AsBool() (v bool)

func (AccountGetResponseMapItemUnion) AsFloat

func (u AccountGetResponseMapItemUnion) AsFloat() (v float64)

func (AccountGetResponseMapItemUnion) AsString

func (u AccountGetResponseMapItemUnion) AsString() (v string)

func (AccountGetResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseMapItemUnion) UnmarshalJSON

func (r *AccountGetResponseMapItemUnion) UnmarshalJSON(data []byte) error

type AccountGetResponseRelationship

type AccountGetResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountGetResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*AccountGetResponseRelationship) UnmarshalJSON

func (r *AccountGetResponseRelationship) UnmarshalJSON(data []byte) error

type AccountGetResponseUnion

type AccountGetResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountGetResponseArrayItemUnion] instead of an object.
	OfAccountGetResponseArray []AccountGetResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountGetResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAccountGetResponseArray          respjson.Field
		OfAnyArray                         respjson.Field
		OfAccountGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountGetResponseArrayItemUnion], [map[string]AccountGetResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountGetResponseArray OfAnyArray OfAccountGetResponseMapItemMapItem]

func (AccountGetResponseUnion) AsAccountGetResponseArray

func (u AccountGetResponseUnion) AsAccountGetResponseArray() (v []AccountGetResponseArrayItemUnion)

func (AccountGetResponseUnion) AsAccountGetResponseMapMap

func (u AccountGetResponseUnion) AsAccountGetResponseMapMap() (v map[string]AccountGetResponseMapItemUnion)

func (AccountGetResponseUnion) AsBool

func (u AccountGetResponseUnion) AsBool() (v bool)

func (AccountGetResponseUnion) AsFloat

func (u AccountGetResponseUnion) AsFloat() (v float64)

func (AccountGetResponseUnion) AsString

func (u AccountGetResponseUnion) AsString() (v string)

func (AccountGetResponseUnion) RawJSON

func (u AccountGetResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountGetResponseUnion) UnmarshalJSON

func (r *AccountGetResponseUnion) UnmarshalJSON(data []byte) error

type AccountListParams

type AccountListParams struct {
	Limit  param.Opt[int64] `query:"limit,omitzero" json:"-"`
	Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (AccountListParams) URLQuery

func (r AccountListParams) URLQuery() (v url.Values, err error)

URLQuery serializes AccountListParams's query parameters as `url.Values`.

type AccountListResponse

type AccountListResponse struct {
	Data       []AccountListResponseData `json:"data" api:"required"`
	Object     string                    `json:"object" api:"required"`
	TotalCount int64                     `json:"totalCount" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Data        respjson.Field
		Object      respjson.Field
		TotalCount  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountListResponse) RawJSON

func (r AccountListResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountListResponse) UnmarshalJSON

func (r *AccountListResponse) UnmarshalJSON(data []byte) error

type AccountListResponseData

type AccountListResponseData struct {
	ID            string                                         `json:"id" api:"required"`
	CreatedAt     string                                         `json:"createdAt" api:"required"`
	Fields        map[string]AccountListResponseDataField        `json:"fields" api:"required"`
	HTTPLink      string                                         `json:"httpLink" api:"required"`
	Relationships map[string]AccountListResponseDataRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]AccountListResponseDataUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountListResponseData) RawJSON

func (r AccountListResponseData) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountListResponseData) UnmarshalJSON

func (r *AccountListResponseData) UnmarshalJSON(data []byte) error

type AccountListResponseDataArrayItemUnion

type AccountListResponseDataArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataArrayItemMapItem any `json:",inline"`
	JSON                                      struct {
		OfString                                  respjson.Field
		OfFloat                                   respjson.Field
		OfBool                                    respjson.Field
		OfAnyArray                                respjson.Field
		OfAccountListResponseDataArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataArrayItemMapItem]

func (AccountListResponseDataArrayItemUnion) AsAnyArray

func (u AccountListResponseDataArrayItemUnion) AsAnyArray() (v []any)

func (AccountListResponseDataArrayItemUnion) AsAnyMap

func (u AccountListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)

func (AccountListResponseDataArrayItemUnion) AsBool

func (AccountListResponseDataArrayItemUnion) AsFloat

func (AccountListResponseDataArrayItemUnion) AsString

func (AccountListResponseDataArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataArrayItemUnion) UnmarshalJSON

func (r *AccountListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountListResponseDataField

type AccountListResponseDataField struct {
	Value     AccountListResponseDataFieldValueUnion `json:"value" api:"required"`
	ValueType string                                 `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountListResponseDataField) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataField) UnmarshalJSON

func (r *AccountListResponseDataField) UnmarshalJSON(data []byte) error

type AccountListResponseDataFieldValueArrayItemUnion

type AccountListResponseDataFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                                struct {
		OfString                                            respjson.Field
		OfFloat                                             respjson.Field
		OfBool                                              respjson.Field
		OfAnyArray                                          respjson.Field
		OfAccountListResponseDataFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataFieldValueArrayItemMapItem]

func (AccountListResponseDataFieldValueArrayItemUnion) AsAnyArray

func (AccountListResponseDataFieldValueArrayItemUnion) AsAnyMap

func (AccountListResponseDataFieldValueArrayItemUnion) AsBool

func (AccountListResponseDataFieldValueArrayItemUnion) AsFloat

func (AccountListResponseDataFieldValueArrayItemUnion) AsString

func (AccountListResponseDataFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataFieldValueArrayItemUnion) UnmarshalJSON

type AccountListResponseDataFieldValueMapItemUnion

type AccountListResponseDataFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfAnyArray                                        respjson.Field
		OfAccountListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataFieldValueMapItemMapItem]

func (AccountListResponseDataFieldValueMapItemUnion) AsAnyArray

func (AccountListResponseDataFieldValueMapItemUnion) AsAnyMap

func (AccountListResponseDataFieldValueMapItemUnion) AsBool

func (AccountListResponseDataFieldValueMapItemUnion) AsFloat

func (AccountListResponseDataFieldValueMapItemUnion) AsString

func (AccountListResponseDataFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataFieldValueMapItemUnion) UnmarshalJSON

func (r *AccountListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type AccountListResponseDataFieldValueUnion

type AccountListResponseDataFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountListResponseDataFieldValueArrayItemUnion] instead of an object.
	OfAccountListResponseDataFieldValueArray []AccountListResponseDataFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfAccountListResponseDataFieldValueArray          respjson.Field
		OfAnyArray                                        respjson.Field
		OfAccountListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountListResponseDataFieldValueArrayItemUnion], [map[string]AccountListResponseDataFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountListResponseDataFieldValueArray OfAnyArray OfAccountListResponseDataFieldValueMapItemMapItem]

func (AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueArray

func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueArray() (v []AccountListResponseDataFieldValueArrayItemUnion)

func (AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueMapMap

func (u AccountListResponseDataFieldValueUnion) AsAccountListResponseDataFieldValueMapMap() (v map[string]AccountListResponseDataFieldValueMapItemUnion)

func (AccountListResponseDataFieldValueUnion) AsBool

func (AccountListResponseDataFieldValueUnion) AsFloat

func (AccountListResponseDataFieldValueUnion) AsString

func (AccountListResponseDataFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataFieldValueUnion) UnmarshalJSON

func (r *AccountListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error

type AccountListResponseDataMapItemUnion

type AccountListResponseDataMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfAnyArray                              respjson.Field
		OfAccountListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountListResponseDataMapItemMapItem]

func (AccountListResponseDataMapItemUnion) AsAnyArray

func (u AccountListResponseDataMapItemUnion) AsAnyArray() (v []any)

func (AccountListResponseDataMapItemUnion) AsAnyMap

func (u AccountListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)

func (AccountListResponseDataMapItemUnion) AsBool

func (AccountListResponseDataMapItemUnion) AsFloat

func (AccountListResponseDataMapItemUnion) AsString

func (AccountListResponseDataMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataMapItemUnion) UnmarshalJSON

func (r *AccountListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error

type AccountListResponseDataRelationship

type AccountListResponseDataRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountListResponseDataRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataRelationship) UnmarshalJSON

func (r *AccountListResponseDataRelationship) UnmarshalJSON(data []byte) error

type AccountListResponseDataUnion

type AccountListResponseDataUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountListResponseDataArrayItemUnion] instead of an object.
	OfAccountListResponseDataArray []AccountListResponseDataArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfAccountListResponseDataArray          respjson.Field
		OfAnyArray                              respjson.Field
		OfAccountListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountListResponseDataArrayItemUnion], [map[string]AccountListResponseDataMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountListResponseDataArray OfAnyArray OfAccountListResponseDataMapItemMapItem]

func (AccountListResponseDataUnion) AsAccountListResponseDataArray

func (u AccountListResponseDataUnion) AsAccountListResponseDataArray() (v []AccountListResponseDataArrayItemUnion)

func (AccountListResponseDataUnion) AsAccountListResponseDataMapMap

func (u AccountListResponseDataUnion) AsAccountListResponseDataMapMap() (v map[string]AccountListResponseDataMapItemUnion)

func (AccountListResponseDataUnion) AsBool

func (u AccountListResponseDataUnion) AsBool() (v bool)

func (AccountListResponseDataUnion) AsFloat

func (u AccountListResponseDataUnion) AsFloat() (v float64)

func (AccountListResponseDataUnion) AsString

func (u AccountListResponseDataUnion) AsString() (v string)

func (AccountListResponseDataUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountListResponseDataUnion) UnmarshalJSON

func (r *AccountListResponseDataUnion) UnmarshalJSON(data []byte) error

type AccountNewParams

type AccountNewParams struct {
	Fields        AccountNewParamsFields        `json:"fields,omitzero" api:"required"`
	Relationships AccountNewParamsRelationships `json:"relationships,omitzero"`
	// contains filtered or unexported fields
}

func (AccountNewParams) MarshalJSON

func (r AccountNewParams) MarshalJSON() (data []byte, err error)

func (*AccountNewParams) UnmarshalJSON

func (r *AccountNewParams) UnmarshalJSON(data []byte) error

type AccountNewParamsFieldArrayItemUnion

type AccountNewParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsFieldArrayItemUnion) MarshalJSON

func (u AccountNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)

func (*AccountNewParamsFieldArrayItemUnion) UnmarshalJSON

func (u *AccountNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountNewParamsFieldMapItemUnion

type AccountNewParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsFieldMapItemUnion) MarshalJSON

func (u AccountNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)

func (*AccountNewParamsFieldMapItemUnion) UnmarshalJSON

func (u *AccountNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type AccountNewParamsFieldUnion

type AccountNewParamsFieldUnion struct {
	OfString                 param.Opt[string]                            `json:",omitzero,inline"`
	OfFloat                  param.Opt[float64]                           `json:",omitzero,inline"`
	OfBool                   param.Opt[bool]                              `json:",omitzero,inline"`
	OfAccountNewsFieldArray  []AccountNewParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfAccountNewsFieldMapMap map[string]AccountNewParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsFieldUnion) MarshalJSON

func (u AccountNewParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*AccountNewParamsFieldUnion) UnmarshalJSON

func (u *AccountNewParamsFieldUnion) UnmarshalJSON(data []byte) error

type AccountNewParamsFields

type AccountNewParamsFields struct {
	Name            string                                `json:"$name" api:"required"`
	Facebook        param.Opt[string]                     `json:"$facebook,omitzero"`
	Headcount       param.Opt[string]                     `json:"$headcount,omitzero"`
	Instagram       param.Opt[string]                     `json:"$instagram,omitzero"`
	LastFundingType param.Opt[string]                     `json:"$lastFundingType,omitzero"`
	LinkedIn        param.Opt[string]                     `json:"$linkedIn,omitzero"`
	Twitter         param.Opt[string]                     `json:"$twitter,omitzero"`
	Industry        []string                              `json:"$industry,omitzero"`
	PrimaryAddress  map[string]string                     `json:"$primaryAddress,omitzero"`
	Website         []string                              `json:"$website,omitzero"`
	ExtraFields     map[string]AccountNewParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

The property Name is required.

func (AccountNewParamsFields) MarshalJSON

func (r AccountNewParamsFields) MarshalJSON() (data []byte, err error)

func (*AccountNewParamsFields) UnmarshalJSON

func (r *AccountNewParamsFields) UnmarshalJSON(data []byte) error

type AccountNewParamsRelationshipUnion

type AccountNewParamsRelationshipUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsRelationshipUnion) MarshalJSON

func (u AccountNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)

func (*AccountNewParamsRelationshipUnion) UnmarshalJSON

func (u *AccountNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error

type AccountNewParamsRelationships

type AccountNewParamsRelationships struct {
	Contacts    AccountNewParamsRelationshipsContactsUnion   `json:"$contacts,omitzero"`
	Owner       AccountNewParamsRelationshipsOwnerUnion      `json:"$owner,omitzero"`
	ExtraFields map[string]AccountNewParamsRelationshipUnion `json:"-"`
	// contains filtered or unexported fields
}

func (AccountNewParamsRelationships) MarshalJSON

func (r AccountNewParamsRelationships) MarshalJSON() (data []byte, err error)

func (*AccountNewParamsRelationships) UnmarshalJSON

func (r *AccountNewParamsRelationships) UnmarshalJSON(data []byte) error

type AccountNewParamsRelationshipsContactsUnion added in v0.2.0

type AccountNewParamsRelationshipsContactsUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsRelationshipsContactsUnion) MarshalJSON added in v0.2.0

func (*AccountNewParamsRelationshipsContactsUnion) UnmarshalJSON added in v0.2.0

func (u *AccountNewParamsRelationshipsContactsUnion) UnmarshalJSON(data []byte) error

type AccountNewParamsRelationshipsOwnerUnion added in v0.2.0

type AccountNewParamsRelationshipsOwnerUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountNewParamsRelationshipsOwnerUnion) MarshalJSON added in v0.2.0

func (u AccountNewParamsRelationshipsOwnerUnion) MarshalJSON() ([]byte, error)

func (*AccountNewParamsRelationshipsOwnerUnion) UnmarshalJSON added in v0.2.0

func (u *AccountNewParamsRelationshipsOwnerUnion) UnmarshalJSON(data []byte) error

type AccountNewResponse

type AccountNewResponse struct {
	ID            string                                    `json:"id" api:"required"`
	CreatedAt     string                                    `json:"createdAt" api:"required"`
	Fields        map[string]AccountNewResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                    `json:"httpLink" api:"required"`
	Relationships map[string]AccountNewResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]AccountNewResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountNewResponse) RawJSON

func (r AccountNewResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountNewResponse) UnmarshalJSON

func (r *AccountNewResponse) UnmarshalJSON(data []byte) error

type AccountNewResponseArrayItemUnion

type AccountNewResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseArrayItemMapItem any `json:",inline"`
	JSON                                 struct {
		OfString                             respjson.Field
		OfFloat                              respjson.Field
		OfBool                               respjson.Field
		OfAnyArray                           respjson.Field
		OfAccountNewResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountNewResponseArrayItemMapItem]

func (AccountNewResponseArrayItemUnion) AsAnyArray

func (u AccountNewResponseArrayItemUnion) AsAnyArray() (v []any)

func (AccountNewResponseArrayItemUnion) AsAnyMap

func (u AccountNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (AccountNewResponseArrayItemUnion) AsBool

func (u AccountNewResponseArrayItemUnion) AsBool() (v bool)

func (AccountNewResponseArrayItemUnion) AsFloat

func (u AccountNewResponseArrayItemUnion) AsFloat() (v float64)

func (AccountNewResponseArrayItemUnion) AsString

func (u AccountNewResponseArrayItemUnion) AsString() (v string)

func (AccountNewResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseArrayItemUnion) UnmarshalJSON

func (r *AccountNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountNewResponseField

type AccountNewResponseField struct {
	Value     AccountNewResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                            `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountNewResponseField) RawJSON

func (r AccountNewResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountNewResponseField) UnmarshalJSON

func (r *AccountNewResponseField) UnmarshalJSON(data []byte) error

type AccountNewResponseFieldValueArrayItemUnion

type AccountNewResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                           struct {
		OfString                                       respjson.Field
		OfFloat                                        respjson.Field
		OfBool                                         respjson.Field
		OfAnyArray                                     respjson.Field
		OfAccountNewResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountNewResponseFieldValueArrayItemMapItem]

func (AccountNewResponseFieldValueArrayItemUnion) AsAnyArray

func (u AccountNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)

func (AccountNewResponseFieldValueArrayItemUnion) AsAnyMap

func (AccountNewResponseFieldValueArrayItemUnion) AsBool

func (AccountNewResponseFieldValueArrayItemUnion) AsFloat

func (AccountNewResponseFieldValueArrayItemUnion) AsString

func (AccountNewResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *AccountNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountNewResponseFieldValueMapItemUnion

type AccountNewResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAnyArray                                   respjson.Field
		OfAccountNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountNewResponseFieldValueMapItemMapItem]

func (AccountNewResponseFieldValueMapItemUnion) AsAnyArray

func (u AccountNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (AccountNewResponseFieldValueMapItemUnion) AsAnyMap

func (AccountNewResponseFieldValueMapItemUnion) AsBool

func (AccountNewResponseFieldValueMapItemUnion) AsFloat

func (AccountNewResponseFieldValueMapItemUnion) AsString

func (AccountNewResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *AccountNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type AccountNewResponseFieldValueUnion

type AccountNewResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountNewResponseFieldValueArrayItemUnion] instead of an object.
	OfAccountNewResponseFieldValueArray []AccountNewResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAccountNewResponseFieldValueArray          respjson.Field
		OfAnyArray                                   respjson.Field
		OfAccountNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountNewResponseFieldValueArrayItemUnion], [map[string]AccountNewResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountNewResponseFieldValueArray OfAnyArray OfAccountNewResponseFieldValueMapItemMapItem]

func (AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueArray

func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueArray() (v []AccountNewResponseFieldValueArrayItemUnion)

func (AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueMapMap

func (u AccountNewResponseFieldValueUnion) AsAccountNewResponseFieldValueMapMap() (v map[string]AccountNewResponseFieldValueMapItemUnion)

func (AccountNewResponseFieldValueUnion) AsBool

func (u AccountNewResponseFieldValueUnion) AsBool() (v bool)

func (AccountNewResponseFieldValueUnion) AsFloat

func (AccountNewResponseFieldValueUnion) AsString

func (u AccountNewResponseFieldValueUnion) AsString() (v string)

func (AccountNewResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseFieldValueUnion) UnmarshalJSON

func (r *AccountNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type AccountNewResponseMapItemUnion

type AccountNewResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAnyArray                         respjson.Field
		OfAccountNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountNewResponseMapItemMapItem]

func (AccountNewResponseMapItemUnion) AsAnyArray

func (u AccountNewResponseMapItemUnion) AsAnyArray() (v []any)

func (AccountNewResponseMapItemUnion) AsAnyMap

func (u AccountNewResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (AccountNewResponseMapItemUnion) AsBool

func (u AccountNewResponseMapItemUnion) AsBool() (v bool)

func (AccountNewResponseMapItemUnion) AsFloat

func (u AccountNewResponseMapItemUnion) AsFloat() (v float64)

func (AccountNewResponseMapItemUnion) AsString

func (u AccountNewResponseMapItemUnion) AsString() (v string)

func (AccountNewResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseMapItemUnion) UnmarshalJSON

func (r *AccountNewResponseMapItemUnion) UnmarshalJSON(data []byte) error

type AccountNewResponseRelationship

type AccountNewResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountNewResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*AccountNewResponseRelationship) UnmarshalJSON

func (r *AccountNewResponseRelationship) UnmarshalJSON(data []byte) error

type AccountNewResponseUnion

type AccountNewResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountNewResponseArrayItemUnion] instead of an object.
	OfAccountNewResponseArray []AccountNewResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountNewResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAccountNewResponseArray          respjson.Field
		OfAnyArray                         respjson.Field
		OfAccountNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountNewResponseArrayItemUnion], [map[string]AccountNewResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountNewResponseArray OfAnyArray OfAccountNewResponseMapItemMapItem]

func (AccountNewResponseUnion) AsAccountNewResponseArray

func (u AccountNewResponseUnion) AsAccountNewResponseArray() (v []AccountNewResponseArrayItemUnion)

func (AccountNewResponseUnion) AsAccountNewResponseMapMap

func (u AccountNewResponseUnion) AsAccountNewResponseMapMap() (v map[string]AccountNewResponseMapItemUnion)

func (AccountNewResponseUnion) AsBool

func (u AccountNewResponseUnion) AsBool() (v bool)

func (AccountNewResponseUnion) AsFloat

func (u AccountNewResponseUnion) AsFloat() (v float64)

func (AccountNewResponseUnion) AsString

func (u AccountNewResponseUnion) AsString() (v string)

func (AccountNewResponseUnion) RawJSON

func (u AccountNewResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountNewResponseUnion) UnmarshalJSON

func (r *AccountNewResponseUnion) UnmarshalJSON(data []byte) error

type AccountService

type AccountService struct {
	Options []option.RequestOption
}

AccountService contains methods and other services that help with interacting with the Lightfield API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccountService method instead.

func NewAccountService

func NewAccountService(opts ...option.RequestOption) (r AccountService)

NewAccountService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AccountService) Definitions added in v0.2.0

func (r *AccountService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *AccountDefinitionsResponse, err error)

func (*AccountService) Get

func (r *AccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountGetResponse, err error)

func (*AccountService) List

func (*AccountService) New

func (*AccountService) Update

type AccountUpdateParams

type AccountUpdateParams struct {
	Fields        AccountUpdateParamsFields        `json:"fields,omitzero"`
	Relationships AccountUpdateParamsRelationships `json:"relationships,omitzero"`
	// contains filtered or unexported fields
}

func (AccountUpdateParams) MarshalJSON

func (r AccountUpdateParams) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParams) UnmarshalJSON

func (r *AccountUpdateParams) UnmarshalJSON(data []byte) error

type AccountUpdateParamsFieldArrayItemUnion

type AccountUpdateParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsFieldArrayItemUnion) MarshalJSON

func (u AccountUpdateParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)

func (*AccountUpdateParamsFieldArrayItemUnion) UnmarshalJSON

func (u *AccountUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsFieldMapItemUnion

type AccountUpdateParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsFieldMapItemUnion) MarshalJSON

func (u AccountUpdateParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)

func (*AccountUpdateParamsFieldMapItemUnion) UnmarshalJSON

func (u *AccountUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsFieldUnion

type AccountUpdateParamsFieldUnion struct {
	OfString                    param.Opt[string]                               `json:",omitzero,inline"`
	OfFloat                     param.Opt[float64]                              `json:",omitzero,inline"`
	OfBool                      param.Opt[bool]                                 `json:",omitzero,inline"`
	OfAccountUpdatesFieldArray  []AccountUpdateParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfAccountUpdatesFieldMapMap map[string]AccountUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsFieldUnion) MarshalJSON

func (u AccountUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*AccountUpdateParamsFieldUnion) UnmarshalJSON

func (u *AccountUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsFields

type AccountUpdateParamsFields struct {
	Facebook        param.Opt[string]                        `json:"$facebook,omitzero"`
	Headcount       param.Opt[string]                        `json:"$headcount,omitzero"`
	Instagram       param.Opt[string]                        `json:"$instagram,omitzero"`
	LastFundingType param.Opt[string]                        `json:"$lastFundingType,omitzero"`
	LinkedIn        param.Opt[string]                        `json:"$linkedIn,omitzero"`
	Name            param.Opt[string]                        `json:"$name,omitzero"`
	Twitter         param.Opt[string]                        `json:"$twitter,omitzero"`
	Industry        []string                                 `json:"$industry,omitzero"`
	PrimaryAddress  map[string]string                        `json:"$primaryAddress,omitzero"`
	Website         []string                                 `json:"$website,omitzero"`
	ExtraFields     map[string]AccountUpdateParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

func (AccountUpdateParamsFields) MarshalJSON

func (r AccountUpdateParamsFields) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParamsFields) UnmarshalJSON

func (r *AccountUpdateParamsFields) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationship

type AccountUpdateParamsRelationship struct {
	Add     AccountUpdateParamsRelationshipAddUnion     `json:"add,omitzero"`
	Remove  AccountUpdateParamsRelationshipRemoveUnion  `json:"remove,omitzero"`
	Replace AccountUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (AccountUpdateParamsRelationship) MarshalJSON

func (r AccountUpdateParamsRelationship) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParamsRelationship) UnmarshalJSON

func (r *AccountUpdateParamsRelationship) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipAddUnion

type AccountUpdateParamsRelationshipAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipAddUnion) MarshalJSON

func (u AccountUpdateParamsRelationshipAddUnion) MarshalJSON() ([]byte, error)

func (*AccountUpdateParamsRelationshipAddUnion) UnmarshalJSON

func (u *AccountUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipRemoveUnion

type AccountUpdateParamsRelationshipRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipRemoveUnion) MarshalJSON

func (*AccountUpdateParamsRelationshipRemoveUnion) UnmarshalJSON

func (u *AccountUpdateParamsRelationshipRemoveUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipReplaceUnion

type AccountUpdateParamsRelationshipReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipReplaceUnion) MarshalJSON

func (*AccountUpdateParamsRelationshipReplaceUnion) UnmarshalJSON

func (u *AccountUpdateParamsRelationshipReplaceUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationships

type AccountUpdateParamsRelationships struct {
	Contacts    AccountUpdateParamsRelationshipsContacts   `json:"$contacts,omitzero"`
	Owner       AccountUpdateParamsRelationshipsOwner      `json:"$owner,omitzero"`
	ExtraFields map[string]AccountUpdateParamsRelationship `json:"-"`
	// contains filtered or unexported fields
}

func (AccountUpdateParamsRelationships) MarshalJSON

func (r AccountUpdateParamsRelationships) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParamsRelationships) UnmarshalJSON

func (r *AccountUpdateParamsRelationships) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipsContacts added in v0.2.0

type AccountUpdateParamsRelationshipsContacts struct {
	Add     AccountUpdateParamsRelationshipsContactsAddUnion     `json:"add,omitzero"`
	Remove  AccountUpdateParamsRelationshipsContactsRemoveUnion  `json:"remove,omitzero"`
	Replace AccountUpdateParamsRelationshipsContactsReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (AccountUpdateParamsRelationshipsContacts) MarshalJSON added in v0.2.0

func (r AccountUpdateParamsRelationshipsContacts) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParamsRelationshipsContacts) UnmarshalJSON added in v0.2.0

func (r *AccountUpdateParamsRelationshipsContacts) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipsContactsAddUnion added in v0.2.0

type AccountUpdateParamsRelationshipsContactsAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsContactsAddUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsContactsAddUnion) UnmarshalJSON added in v0.2.0

type AccountUpdateParamsRelationshipsContactsRemoveUnion added in v0.2.0

type AccountUpdateParamsRelationshipsContactsRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsContactsRemoveUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsContactsRemoveUnion) UnmarshalJSON added in v0.2.0

type AccountUpdateParamsRelationshipsContactsReplaceUnion added in v0.2.0

type AccountUpdateParamsRelationshipsContactsReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsContactsReplaceUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsContactsReplaceUnion) UnmarshalJSON added in v0.2.0

type AccountUpdateParamsRelationshipsOwner added in v0.2.0

type AccountUpdateParamsRelationshipsOwner struct {
	Add     AccountUpdateParamsRelationshipsOwnerAddUnion     `json:"add,omitzero"`
	Remove  AccountUpdateParamsRelationshipsOwnerRemoveUnion  `json:"remove,omitzero"`
	Replace AccountUpdateParamsRelationshipsOwnerReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (AccountUpdateParamsRelationshipsOwner) MarshalJSON added in v0.2.0

func (r AccountUpdateParamsRelationshipsOwner) MarshalJSON() (data []byte, err error)

func (*AccountUpdateParamsRelationshipsOwner) UnmarshalJSON added in v0.2.0

func (r *AccountUpdateParamsRelationshipsOwner) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipsOwnerAddUnion added in v0.2.0

type AccountUpdateParamsRelationshipsOwnerAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON added in v0.2.0

func (u *AccountUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON(data []byte) error

type AccountUpdateParamsRelationshipsOwnerRemoveUnion added in v0.2.0

type AccountUpdateParamsRelationshipsOwnerRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON added in v0.2.0

type AccountUpdateParamsRelationshipsOwnerReplaceUnion added in v0.2.0

type AccountUpdateParamsRelationshipsOwnerReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (AccountUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON added in v0.2.0

func (*AccountUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON added in v0.2.0

type AccountUpdateResponse

type AccountUpdateResponse struct {
	ID            string                                       `json:"id" api:"required"`
	CreatedAt     string                                       `json:"createdAt" api:"required"`
	Fields        map[string]AccountUpdateResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                       `json:"httpLink" api:"required"`
	Relationships map[string]AccountUpdateResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]AccountUpdateResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountUpdateResponse) RawJSON

func (r AccountUpdateResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountUpdateResponse) UnmarshalJSON

func (r *AccountUpdateResponse) UnmarshalJSON(data []byte) error

type AccountUpdateResponseArrayItemUnion

type AccountUpdateResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseArrayItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfAnyArray                              respjson.Field
		OfAccountUpdateResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseArrayItemMapItem]

func (AccountUpdateResponseArrayItemUnion) AsAnyArray

func (u AccountUpdateResponseArrayItemUnion) AsAnyArray() (v []any)

func (AccountUpdateResponseArrayItemUnion) AsAnyMap

func (u AccountUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (AccountUpdateResponseArrayItemUnion) AsBool

func (AccountUpdateResponseArrayItemUnion) AsFloat

func (AccountUpdateResponseArrayItemUnion) AsString

func (AccountUpdateResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseArrayItemUnion) UnmarshalJSON

func (r *AccountUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateResponseField

type AccountUpdateResponseField struct {
	Value     AccountUpdateResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                               `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountUpdateResponseField) RawJSON

func (r AccountUpdateResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseField) UnmarshalJSON

func (r *AccountUpdateResponseField) UnmarshalJSON(data []byte) error

type AccountUpdateResponseFieldValueArrayItemUnion

type AccountUpdateResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfAnyArray                                        respjson.Field
		OfAccountUpdateResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseFieldValueArrayItemMapItem]

func (AccountUpdateResponseFieldValueArrayItemUnion) AsAnyArray

func (AccountUpdateResponseFieldValueArrayItemUnion) AsAnyMap

func (AccountUpdateResponseFieldValueArrayItemUnion) AsBool

func (AccountUpdateResponseFieldValueArrayItemUnion) AsFloat

func (AccountUpdateResponseFieldValueArrayItemUnion) AsString

func (AccountUpdateResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *AccountUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateResponseFieldValueMapItemUnion

type AccountUpdateResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                            struct {
		OfString                                        respjson.Field
		OfFloat                                         respjson.Field
		OfBool                                          respjson.Field
		OfAnyArray                                      respjson.Field
		OfAccountUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseFieldValueMapItemMapItem]

func (AccountUpdateResponseFieldValueMapItemUnion) AsAnyArray

func (u AccountUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (AccountUpdateResponseFieldValueMapItemUnion) AsAnyMap

func (AccountUpdateResponseFieldValueMapItemUnion) AsBool

func (AccountUpdateResponseFieldValueMapItemUnion) AsFloat

func (AccountUpdateResponseFieldValueMapItemUnion) AsString

func (AccountUpdateResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *AccountUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateResponseFieldValueUnion

type AccountUpdateResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountUpdateResponseFieldValueArrayItemUnion] instead of an object.
	OfAccountUpdateResponseFieldValueArray []AccountUpdateResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                            struct {
		OfString                                        respjson.Field
		OfFloat                                         respjson.Field
		OfBool                                          respjson.Field
		OfAccountUpdateResponseFieldValueArray          respjson.Field
		OfAnyArray                                      respjson.Field
		OfAccountUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountUpdateResponseFieldValueArrayItemUnion], [map[string]AccountUpdateResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountUpdateResponseFieldValueArray OfAnyArray OfAccountUpdateResponseFieldValueMapItemMapItem]

func (AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueArray

func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueArray() (v []AccountUpdateResponseFieldValueArrayItemUnion)

func (AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueMapMap

func (u AccountUpdateResponseFieldValueUnion) AsAccountUpdateResponseFieldValueMapMap() (v map[string]AccountUpdateResponseFieldValueMapItemUnion)

func (AccountUpdateResponseFieldValueUnion) AsBool

func (AccountUpdateResponseFieldValueUnion) AsFloat

func (AccountUpdateResponseFieldValueUnion) AsString

func (AccountUpdateResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseFieldValueUnion) UnmarshalJSON

func (r *AccountUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type AccountUpdateResponseMapItemUnion

type AccountUpdateResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                  struct {
		OfString                              respjson.Field
		OfFloat                               respjson.Field
		OfBool                                respjson.Field
		OfAnyArray                            respjson.Field
		OfAccountUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfAccountUpdateResponseMapItemMapItem]

func (AccountUpdateResponseMapItemUnion) AsAnyArray

func (u AccountUpdateResponseMapItemUnion) AsAnyArray() (v []any)

func (AccountUpdateResponseMapItemUnion) AsAnyMap

func (u AccountUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (AccountUpdateResponseMapItemUnion) AsBool

func (u AccountUpdateResponseMapItemUnion) AsBool() (v bool)

func (AccountUpdateResponseMapItemUnion) AsFloat

func (AccountUpdateResponseMapItemUnion) AsString

func (u AccountUpdateResponseMapItemUnion) AsString() (v string)

func (AccountUpdateResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseMapItemUnion) UnmarshalJSON

func (r *AccountUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error

type AccountUpdateResponseRelationship

type AccountUpdateResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (AccountUpdateResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseRelationship) UnmarshalJSON

func (r *AccountUpdateResponseRelationship) UnmarshalJSON(data []byte) error

type AccountUpdateResponseUnion

type AccountUpdateResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]AccountUpdateResponseArrayItemUnion] instead of an object.
	OfAccountUpdateResponseArray []AccountUpdateResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfAccountUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                  struct {
		OfString                              respjson.Field
		OfFloat                               respjson.Field
		OfBool                                respjson.Field
		OfAccountUpdateResponseArray          respjson.Field
		OfAnyArray                            respjson.Field
		OfAccountUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

AccountUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]AccountUpdateResponseArrayItemUnion], [map[string]AccountUpdateResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAccountUpdateResponseArray OfAnyArray OfAccountUpdateResponseMapItemMapItem]

func (AccountUpdateResponseUnion) AsAccountUpdateResponseArray

func (u AccountUpdateResponseUnion) AsAccountUpdateResponseArray() (v []AccountUpdateResponseArrayItemUnion)

func (AccountUpdateResponseUnion) AsAccountUpdateResponseMapMap

func (u AccountUpdateResponseUnion) AsAccountUpdateResponseMapMap() (v map[string]AccountUpdateResponseMapItemUnion)

func (AccountUpdateResponseUnion) AsBool

func (u AccountUpdateResponseUnion) AsBool() (v bool)

func (AccountUpdateResponseUnion) AsFloat

func (u AccountUpdateResponseUnion) AsFloat() (v float64)

func (AccountUpdateResponseUnion) AsString

func (u AccountUpdateResponseUnion) AsString() (v string)

func (AccountUpdateResponseUnion) RawJSON

func (u AccountUpdateResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*AccountUpdateResponseUnion) UnmarshalJSON

func (r *AccountUpdateResponseUnion) UnmarshalJSON(data []byte) error

type Client

type Client struct {
	Options     []option.RequestOption
	Account     AccountService
	Contact     ContactService
	Opportunity OpportunityService
}

Client creates a struct with services and top level methods that help with interacting with the Lightfield API. You should not instantiate this client directly, and instead use the NewClient method instead.

func NewClient

func NewClient(opts ...option.RequestOption) (r Client)

NewClient generates a new client with the default option read from the environment (LIGHTFIELD_BASE_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.

func (*Client) Delete

func (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error

Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Execute

func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error

Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.

If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.

The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned url.Values will be used as query strings to the url.

If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.

Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.

The response body will be deserialized into the res variable, depending on its type:

  • A pointer to a *http.Response is populated by the raw response.
  • A pointer to a byte array will be populated with the contents of the request body.
  • A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
  • A nil value will not read the response body.

For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.

func (*Client) Get

func (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error

Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Patch

func (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error

Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Post

func (r *Client) Post(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error

Post makes a POST request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

func (*Client) Put

func (r *Client) Put(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error

Put makes a PUT request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.

type ContactDefinitionsResponse added in v0.2.0

type ContactDefinitionsResponse struct {
	FieldDefinitions        map[string]ContactDefinitionsResponseFieldDefinition        `json:"fieldDefinitions" api:"required"`
	ObjectType              string                                                      `json:"objectType" api:"required"`
	RelationshipDefinitions map[string]ContactDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		FieldDefinitions        respjson.Field
		ObjectType              respjson.Field
		RelationshipDefinitions respjson.Field
		ExtraFields             map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactDefinitionsResponse) RawJSON added in v0.2.0

func (r ContactDefinitionsResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponse) UnmarshalJSON added in v0.2.0

func (r *ContactDefinitionsResponse) UnmarshalJSON(data []byte) error

type ContactDefinitionsResponseFieldDefinition added in v0.2.0

type ContactDefinitionsResponseFieldDefinition struct {
	Description       string                                                                     `json:"description" api:"required"`
	Label             string                                                                     `json:"label" api:"required"`
	TypeConfiguration map[string]ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
	ValueType         string                                                                     `json:"valueType" api:"required"`
	ID                string                                                                     `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Description       respjson.Field
		Label             respjson.Field
		TypeConfiguration respjson.Field
		ValueType         respjson.Field
		ID                respjson.Field
		ExtraFields       map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactDefinitionsResponseFieldDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponseFieldDefinition) UnmarshalJSON added in v0.2.0

func (r *ContactDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion added in v0.2.0

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
	JSON                                                                         struct {
		OfString                                                                     respjson.Field
		OfFloat                                                                      respjson.Field
		OfBool                                                                       respjson.Field
		OfAnyArray                                                                   respjson.Field
		OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON added in v0.2.0

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion added in v0.2.0

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                       struct {
		OfString                                                                   respjson.Field
		OfFloat                                                                    respjson.Field
		OfBool                                                                     respjson.Field
		OfAnyArray                                                                 respjson.Field
		OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON added in v0.2.0

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion added in v0.2.0

type ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
	// instead of an object.
	OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray []ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                       struct {
		OfString                                                                   respjson.Field
		OfFloat                                                                    respjson.Field
		OfBool                                                                     respjson.Field
		OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray          respjson.Field
		OfAnyArray                                                                 respjson.Field
		OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]ContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfContactDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationArray added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsContactDefinitionsResponseFieldDefinitionTypeConfigurationMapMap added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString added in v0.2.0

func (ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON added in v0.2.0

type ContactDefinitionsResponseRelationshipDefinition added in v0.2.0

type ContactDefinitionsResponseRelationshipDefinition struct {
	// Any of "HAS_ONE", "HAS_MANY".
	Cardinality string `json:"cardinality" api:"required"`
	Description string `json:"description" api:"required"`
	Label       string `json:"label" api:"required"`
	ObjectType  string `json:"objectType" api:"required"`
	ID          string `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		Description respjson.Field
		Label       respjson.Field
		ObjectType  respjson.Field
		ID          respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactDefinitionsResponseRelationshipDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*ContactDefinitionsResponseRelationshipDefinition) UnmarshalJSON added in v0.2.0

type ContactGetResponse

type ContactGetResponse struct {
	ID            string                                    `json:"id" api:"required"`
	CreatedAt     string                                    `json:"createdAt" api:"required"`
	Fields        map[string]ContactGetResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                    `json:"httpLink" api:"required"`
	Relationships map[string]ContactGetResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]ContactGetResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactGetResponse) RawJSON

func (r ContactGetResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactGetResponse) UnmarshalJSON

func (r *ContactGetResponse) UnmarshalJSON(data []byte) error

type ContactGetResponseArrayItemUnion

type ContactGetResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseArrayItemMapItem any `json:",inline"`
	JSON                                 struct {
		OfString                             respjson.Field
		OfFloat                              respjson.Field
		OfBool                               respjson.Field
		OfAnyArray                           respjson.Field
		OfContactGetResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactGetResponseArrayItemMapItem]

func (ContactGetResponseArrayItemUnion) AsAnyArray

func (u ContactGetResponseArrayItemUnion) AsAnyArray() (v []any)

func (ContactGetResponseArrayItemUnion) AsAnyMap

func (u ContactGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (ContactGetResponseArrayItemUnion) AsBool

func (u ContactGetResponseArrayItemUnion) AsBool() (v bool)

func (ContactGetResponseArrayItemUnion) AsFloat

func (u ContactGetResponseArrayItemUnion) AsFloat() (v float64)

func (ContactGetResponseArrayItemUnion) AsString

func (u ContactGetResponseArrayItemUnion) AsString() (v string)

func (ContactGetResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseArrayItemUnion) UnmarshalJSON

func (r *ContactGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactGetResponseField

type ContactGetResponseField struct {
	Value     ContactGetResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                            `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactGetResponseField) RawJSON

func (r ContactGetResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactGetResponseField) UnmarshalJSON

func (r *ContactGetResponseField) UnmarshalJSON(data []byte) error

type ContactGetResponseFieldValueArrayItemUnion

type ContactGetResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                           struct {
		OfString                                       respjson.Field
		OfFloat                                        respjson.Field
		OfBool                                         respjson.Field
		OfAnyArray                                     respjson.Field
		OfContactGetResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactGetResponseFieldValueArrayItemMapItem]

func (ContactGetResponseFieldValueArrayItemUnion) AsAnyArray

func (u ContactGetResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)

func (ContactGetResponseFieldValueArrayItemUnion) AsAnyMap

func (ContactGetResponseFieldValueArrayItemUnion) AsBool

func (ContactGetResponseFieldValueArrayItemUnion) AsFloat

func (ContactGetResponseFieldValueArrayItemUnion) AsString

func (ContactGetResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *ContactGetResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactGetResponseFieldValueMapItemUnion

type ContactGetResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAnyArray                                   respjson.Field
		OfContactGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactGetResponseFieldValueMapItemMapItem]

func (ContactGetResponseFieldValueMapItemUnion) AsAnyArray

func (u ContactGetResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (ContactGetResponseFieldValueMapItemUnion) AsAnyMap

func (ContactGetResponseFieldValueMapItemUnion) AsBool

func (ContactGetResponseFieldValueMapItemUnion) AsFloat

func (ContactGetResponseFieldValueMapItemUnion) AsString

func (ContactGetResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *ContactGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type ContactGetResponseFieldValueUnion

type ContactGetResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactGetResponseFieldValueArrayItemUnion] instead of an object.
	OfContactGetResponseFieldValueArray []ContactGetResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfContactGetResponseFieldValueArray          respjson.Field
		OfAnyArray                                   respjson.Field
		OfContactGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactGetResponseFieldValueArrayItemUnion], [map[string]ContactGetResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactGetResponseFieldValueArray OfAnyArray OfContactGetResponseFieldValueMapItemMapItem]

func (ContactGetResponseFieldValueUnion) AsBool

func (u ContactGetResponseFieldValueUnion) AsBool() (v bool)

func (ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueArray

func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueArray() (v []ContactGetResponseFieldValueArrayItemUnion)

func (ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueMapMap

func (u ContactGetResponseFieldValueUnion) AsContactGetResponseFieldValueMapMap() (v map[string]ContactGetResponseFieldValueMapItemUnion)

func (ContactGetResponseFieldValueUnion) AsFloat

func (ContactGetResponseFieldValueUnion) AsString

func (u ContactGetResponseFieldValueUnion) AsString() (v string)

func (ContactGetResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseFieldValueUnion) UnmarshalJSON

func (r *ContactGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type ContactGetResponseMapItemUnion

type ContactGetResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAnyArray                         respjson.Field
		OfContactGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactGetResponseMapItemMapItem]

func (ContactGetResponseMapItemUnion) AsAnyArray

func (u ContactGetResponseMapItemUnion) AsAnyArray() (v []any)

func (ContactGetResponseMapItemUnion) AsAnyMap

func (u ContactGetResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (ContactGetResponseMapItemUnion) AsBool

func (u ContactGetResponseMapItemUnion) AsBool() (v bool)

func (ContactGetResponseMapItemUnion) AsFloat

func (u ContactGetResponseMapItemUnion) AsFloat() (v float64)

func (ContactGetResponseMapItemUnion) AsString

func (u ContactGetResponseMapItemUnion) AsString() (v string)

func (ContactGetResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseMapItemUnion) UnmarshalJSON

func (r *ContactGetResponseMapItemUnion) UnmarshalJSON(data []byte) error

type ContactGetResponseRelationship

type ContactGetResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactGetResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*ContactGetResponseRelationship) UnmarshalJSON

func (r *ContactGetResponseRelationship) UnmarshalJSON(data []byte) error

type ContactGetResponseUnion

type ContactGetResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactGetResponseArrayItemUnion] instead of an object.
	OfContactGetResponseArray []ContactGetResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactGetResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfContactGetResponseArray          respjson.Field
		OfAnyArray                         respjson.Field
		OfContactGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactGetResponseArrayItemUnion], [map[string]ContactGetResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactGetResponseArray OfAnyArray OfContactGetResponseMapItemMapItem]

func (ContactGetResponseUnion) AsBool

func (u ContactGetResponseUnion) AsBool() (v bool)

func (ContactGetResponseUnion) AsContactGetResponseArray

func (u ContactGetResponseUnion) AsContactGetResponseArray() (v []ContactGetResponseArrayItemUnion)

func (ContactGetResponseUnion) AsContactGetResponseMapMap

func (u ContactGetResponseUnion) AsContactGetResponseMapMap() (v map[string]ContactGetResponseMapItemUnion)

func (ContactGetResponseUnion) AsFloat

func (u ContactGetResponseUnion) AsFloat() (v float64)

func (ContactGetResponseUnion) AsString

func (u ContactGetResponseUnion) AsString() (v string)

func (ContactGetResponseUnion) RawJSON

func (u ContactGetResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactGetResponseUnion) UnmarshalJSON

func (r *ContactGetResponseUnion) UnmarshalJSON(data []byte) error

type ContactListParams

type ContactListParams struct {
	Limit  param.Opt[int64] `query:"limit,omitzero" json:"-"`
	Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (ContactListParams) URLQuery

func (r ContactListParams) URLQuery() (v url.Values, err error)

URLQuery serializes ContactListParams's query parameters as `url.Values`.

type ContactListResponse

type ContactListResponse struct {
	Data       []ContactListResponseData `json:"data" api:"required"`
	Object     string                    `json:"object" api:"required"`
	TotalCount int64                     `json:"totalCount" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Data        respjson.Field
		Object      respjson.Field
		TotalCount  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactListResponse) RawJSON

func (r ContactListResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactListResponse) UnmarshalJSON

func (r *ContactListResponse) UnmarshalJSON(data []byte) error

type ContactListResponseData

type ContactListResponseData struct {
	ID            string                                         `json:"id" api:"required"`
	CreatedAt     string                                         `json:"createdAt" api:"required"`
	Fields        map[string]ContactListResponseDataField        `json:"fields" api:"required"`
	HTTPLink      string                                         `json:"httpLink" api:"required"`
	Relationships map[string]ContactListResponseDataRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]ContactListResponseDataUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactListResponseData) RawJSON

func (r ContactListResponseData) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactListResponseData) UnmarshalJSON

func (r *ContactListResponseData) UnmarshalJSON(data []byte) error

type ContactListResponseDataArrayItemUnion

type ContactListResponseDataArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataArrayItemMapItem any `json:",inline"`
	JSON                                      struct {
		OfString                                  respjson.Field
		OfFloat                                   respjson.Field
		OfBool                                    respjson.Field
		OfAnyArray                                respjson.Field
		OfContactListResponseDataArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataArrayItemMapItem]

func (ContactListResponseDataArrayItemUnion) AsAnyArray

func (u ContactListResponseDataArrayItemUnion) AsAnyArray() (v []any)

func (ContactListResponseDataArrayItemUnion) AsAnyMap

func (u ContactListResponseDataArrayItemUnion) AsAnyMap() (v map[string]any)

func (ContactListResponseDataArrayItemUnion) AsBool

func (ContactListResponseDataArrayItemUnion) AsFloat

func (ContactListResponseDataArrayItemUnion) AsString

func (ContactListResponseDataArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataArrayItemUnion) UnmarshalJSON

func (r *ContactListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactListResponseDataField

type ContactListResponseDataField struct {
	Value     ContactListResponseDataFieldValueUnion `json:"value" api:"required"`
	ValueType string                                 `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactListResponseDataField) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataField) UnmarshalJSON

func (r *ContactListResponseDataField) UnmarshalJSON(data []byte) error

type ContactListResponseDataFieldValueArrayItemUnion

type ContactListResponseDataFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                                struct {
		OfString                                            respjson.Field
		OfFloat                                             respjson.Field
		OfBool                                              respjson.Field
		OfAnyArray                                          respjson.Field
		OfContactListResponseDataFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataFieldValueArrayItemMapItem]

func (ContactListResponseDataFieldValueArrayItemUnion) AsAnyArray

func (ContactListResponseDataFieldValueArrayItemUnion) AsAnyMap

func (ContactListResponseDataFieldValueArrayItemUnion) AsBool

func (ContactListResponseDataFieldValueArrayItemUnion) AsFloat

func (ContactListResponseDataFieldValueArrayItemUnion) AsString

func (ContactListResponseDataFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataFieldValueArrayItemUnion) UnmarshalJSON

type ContactListResponseDataFieldValueMapItemUnion

type ContactListResponseDataFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfAnyArray                                        respjson.Field
		OfContactListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataFieldValueMapItemMapItem]

func (ContactListResponseDataFieldValueMapItemUnion) AsAnyArray

func (ContactListResponseDataFieldValueMapItemUnion) AsAnyMap

func (ContactListResponseDataFieldValueMapItemUnion) AsBool

func (ContactListResponseDataFieldValueMapItemUnion) AsFloat

func (ContactListResponseDataFieldValueMapItemUnion) AsString

func (ContactListResponseDataFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataFieldValueMapItemUnion) UnmarshalJSON

func (r *ContactListResponseDataFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type ContactListResponseDataFieldValueUnion

type ContactListResponseDataFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactListResponseDataFieldValueArrayItemUnion] instead of an object.
	OfContactListResponseDataFieldValueArray []ContactListResponseDataFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfContactListResponseDataFieldValueArray          respjson.Field
		OfAnyArray                                        respjson.Field
		OfContactListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactListResponseDataFieldValueArrayItemUnion], [map[string]ContactListResponseDataFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactListResponseDataFieldValueArray OfAnyArray OfContactListResponseDataFieldValueMapItemMapItem]

func (ContactListResponseDataFieldValueUnion) AsBool

func (ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueArray

func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueArray() (v []ContactListResponseDataFieldValueArrayItemUnion)

func (ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueMapMap

func (u ContactListResponseDataFieldValueUnion) AsContactListResponseDataFieldValueMapMap() (v map[string]ContactListResponseDataFieldValueMapItemUnion)

func (ContactListResponseDataFieldValueUnion) AsFloat

func (ContactListResponseDataFieldValueUnion) AsString

func (ContactListResponseDataFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataFieldValueUnion) UnmarshalJSON

func (r *ContactListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error

type ContactListResponseDataMapItemUnion

type ContactListResponseDataMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfAnyArray                              respjson.Field
		OfContactListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactListResponseDataMapItemMapItem]

func (ContactListResponseDataMapItemUnion) AsAnyArray

func (u ContactListResponseDataMapItemUnion) AsAnyArray() (v []any)

func (ContactListResponseDataMapItemUnion) AsAnyMap

func (u ContactListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)

func (ContactListResponseDataMapItemUnion) AsBool

func (ContactListResponseDataMapItemUnion) AsFloat

func (ContactListResponseDataMapItemUnion) AsString

func (ContactListResponseDataMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataMapItemUnion) UnmarshalJSON

func (r *ContactListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error

type ContactListResponseDataRelationship

type ContactListResponseDataRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactListResponseDataRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataRelationship) UnmarshalJSON

func (r *ContactListResponseDataRelationship) UnmarshalJSON(data []byte) error

type ContactListResponseDataUnion

type ContactListResponseDataUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactListResponseDataArrayItemUnion] instead of an object.
	OfContactListResponseDataArray []ContactListResponseDataArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfContactListResponseDataArray          respjson.Field
		OfAnyArray                              respjson.Field
		OfContactListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactListResponseDataArrayItemUnion], [map[string]ContactListResponseDataMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactListResponseDataArray OfAnyArray OfContactListResponseDataMapItemMapItem]

func (ContactListResponseDataUnion) AsBool

func (u ContactListResponseDataUnion) AsBool() (v bool)

func (ContactListResponseDataUnion) AsContactListResponseDataArray

func (u ContactListResponseDataUnion) AsContactListResponseDataArray() (v []ContactListResponseDataArrayItemUnion)

func (ContactListResponseDataUnion) AsContactListResponseDataMapMap

func (u ContactListResponseDataUnion) AsContactListResponseDataMapMap() (v map[string]ContactListResponseDataMapItemUnion)

func (ContactListResponseDataUnion) AsFloat

func (u ContactListResponseDataUnion) AsFloat() (v float64)

func (ContactListResponseDataUnion) AsString

func (u ContactListResponseDataUnion) AsString() (v string)

func (ContactListResponseDataUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactListResponseDataUnion) UnmarshalJSON

func (r *ContactListResponseDataUnion) UnmarshalJSON(data []byte) error

type ContactNewParams

type ContactNewParams struct {
	Fields        ContactNewParamsFields        `json:"fields,omitzero" api:"required"`
	Relationships ContactNewParamsRelationships `json:"relationships,omitzero"`
	// contains filtered or unexported fields
}

func (ContactNewParams) MarshalJSON

func (r ContactNewParams) MarshalJSON() (data []byte, err error)

func (*ContactNewParams) UnmarshalJSON

func (r *ContactNewParams) UnmarshalJSON(data []byte) error

type ContactNewParamsFieldArrayItemUnion

type ContactNewParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactNewParamsFieldArrayItemUnion) MarshalJSON

func (u ContactNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)

func (*ContactNewParamsFieldArrayItemUnion) UnmarshalJSON

func (u *ContactNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactNewParamsFieldMapItemUnion

type ContactNewParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactNewParamsFieldMapItemUnion) MarshalJSON

func (u ContactNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)

func (*ContactNewParamsFieldMapItemUnion) UnmarshalJSON

func (u *ContactNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type ContactNewParamsFieldUnion

type ContactNewParamsFieldUnion struct {
	OfString                 param.Opt[string]                            `json:",omitzero,inline"`
	OfFloat                  param.Opt[float64]                           `json:",omitzero,inline"`
	OfBool                   param.Opt[bool]                              `json:",omitzero,inline"`
	OfContactNewsFieldArray  []ContactNewParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfContactNewsFieldMapMap map[string]ContactNewParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactNewParamsFieldUnion) MarshalJSON

func (u ContactNewParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*ContactNewParamsFieldUnion) UnmarshalJSON

func (u *ContactNewParamsFieldUnion) UnmarshalJSON(data []byte) error

type ContactNewParamsFields

type ContactNewParamsFields struct {
	ProfilePhotoURL param.Opt[string]                     `json:"$profilePhotoUrl,omitzero"`
	Email           []string                              `json:"$email,omitzero"`
	Name            ContactNewParamsFieldsName            `json:"$name,omitzero"`
	ExtraFields     map[string]ContactNewParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

func (ContactNewParamsFields) MarshalJSON

func (r ContactNewParamsFields) MarshalJSON() (data []byte, err error)

func (*ContactNewParamsFields) UnmarshalJSON

func (r *ContactNewParamsFields) UnmarshalJSON(data []byte) error

type ContactNewParamsFieldsName added in v0.2.0

type ContactNewParamsFieldsName struct {
	FirstName param.Opt[string] `json:"firstName,omitzero"`
	LastName  param.Opt[string] `json:"lastName,omitzero"`
	// contains filtered or unexported fields
}

func (ContactNewParamsFieldsName) MarshalJSON added in v0.2.0

func (r ContactNewParamsFieldsName) MarshalJSON() (data []byte, err error)

func (*ContactNewParamsFieldsName) UnmarshalJSON added in v0.2.0

func (r *ContactNewParamsFieldsName) UnmarshalJSON(data []byte) error

type ContactNewParamsRelationshipUnion

type ContactNewParamsRelationshipUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactNewParamsRelationshipUnion) MarshalJSON

func (u ContactNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)

func (*ContactNewParamsRelationshipUnion) UnmarshalJSON

func (u *ContactNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error

type ContactNewParamsRelationships

type ContactNewParamsRelationships struct {
	Accounts    ContactNewParamsRelationshipsAccountsUnion   `json:"$accounts,omitzero"`
	ExtraFields map[string]ContactNewParamsRelationshipUnion `json:"-"`
	// contains filtered or unexported fields
}

func (ContactNewParamsRelationships) MarshalJSON

func (r ContactNewParamsRelationships) MarshalJSON() (data []byte, err error)

func (*ContactNewParamsRelationships) UnmarshalJSON

func (r *ContactNewParamsRelationships) UnmarshalJSON(data []byte) error

type ContactNewParamsRelationshipsAccountsUnion added in v0.2.0

type ContactNewParamsRelationshipsAccountsUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactNewParamsRelationshipsAccountsUnion) MarshalJSON added in v0.2.0

func (*ContactNewParamsRelationshipsAccountsUnion) UnmarshalJSON added in v0.2.0

func (u *ContactNewParamsRelationshipsAccountsUnion) UnmarshalJSON(data []byte) error

type ContactNewResponse

type ContactNewResponse struct {
	ID            string                                    `json:"id" api:"required"`
	CreatedAt     string                                    `json:"createdAt" api:"required"`
	Fields        map[string]ContactNewResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                    `json:"httpLink" api:"required"`
	Relationships map[string]ContactNewResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]ContactNewResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactNewResponse) RawJSON

func (r ContactNewResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactNewResponse) UnmarshalJSON

func (r *ContactNewResponse) UnmarshalJSON(data []byte) error

type ContactNewResponseArrayItemUnion

type ContactNewResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseArrayItemMapItem any `json:",inline"`
	JSON                                 struct {
		OfString                             respjson.Field
		OfFloat                              respjson.Field
		OfBool                               respjson.Field
		OfAnyArray                           respjson.Field
		OfContactNewResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactNewResponseArrayItemMapItem]

func (ContactNewResponseArrayItemUnion) AsAnyArray

func (u ContactNewResponseArrayItemUnion) AsAnyArray() (v []any)

func (ContactNewResponseArrayItemUnion) AsAnyMap

func (u ContactNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (ContactNewResponseArrayItemUnion) AsBool

func (u ContactNewResponseArrayItemUnion) AsBool() (v bool)

func (ContactNewResponseArrayItemUnion) AsFloat

func (u ContactNewResponseArrayItemUnion) AsFloat() (v float64)

func (ContactNewResponseArrayItemUnion) AsString

func (u ContactNewResponseArrayItemUnion) AsString() (v string)

func (ContactNewResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseArrayItemUnion) UnmarshalJSON

func (r *ContactNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactNewResponseField

type ContactNewResponseField struct {
	Value     ContactNewResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                            `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactNewResponseField) RawJSON

func (r ContactNewResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactNewResponseField) UnmarshalJSON

func (r *ContactNewResponseField) UnmarshalJSON(data []byte) error

type ContactNewResponseFieldValueArrayItemUnion

type ContactNewResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                           struct {
		OfString                                       respjson.Field
		OfFloat                                        respjson.Field
		OfBool                                         respjson.Field
		OfAnyArray                                     respjson.Field
		OfContactNewResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactNewResponseFieldValueArrayItemMapItem]

func (ContactNewResponseFieldValueArrayItemUnion) AsAnyArray

func (u ContactNewResponseFieldValueArrayItemUnion) AsAnyArray() (v []any)

func (ContactNewResponseFieldValueArrayItemUnion) AsAnyMap

func (ContactNewResponseFieldValueArrayItemUnion) AsBool

func (ContactNewResponseFieldValueArrayItemUnion) AsFloat

func (ContactNewResponseFieldValueArrayItemUnion) AsString

func (ContactNewResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *ContactNewResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactNewResponseFieldValueMapItemUnion

type ContactNewResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfAnyArray                                   respjson.Field
		OfContactNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactNewResponseFieldValueMapItemMapItem]

func (ContactNewResponseFieldValueMapItemUnion) AsAnyArray

func (u ContactNewResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (ContactNewResponseFieldValueMapItemUnion) AsAnyMap

func (ContactNewResponseFieldValueMapItemUnion) AsBool

func (ContactNewResponseFieldValueMapItemUnion) AsFloat

func (ContactNewResponseFieldValueMapItemUnion) AsString

func (ContactNewResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *ContactNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type ContactNewResponseFieldValueUnion

type ContactNewResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactNewResponseFieldValueArrayItemUnion] instead of an object.
	OfContactNewResponseFieldValueArray []ContactNewResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                         struct {
		OfString                                     respjson.Field
		OfFloat                                      respjson.Field
		OfBool                                       respjson.Field
		OfContactNewResponseFieldValueArray          respjson.Field
		OfAnyArray                                   respjson.Field
		OfContactNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactNewResponseFieldValueArrayItemUnion], [map[string]ContactNewResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactNewResponseFieldValueArray OfAnyArray OfContactNewResponseFieldValueMapItemMapItem]

func (ContactNewResponseFieldValueUnion) AsBool

func (u ContactNewResponseFieldValueUnion) AsBool() (v bool)

func (ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueArray

func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueArray() (v []ContactNewResponseFieldValueArrayItemUnion)

func (ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueMapMap

func (u ContactNewResponseFieldValueUnion) AsContactNewResponseFieldValueMapMap() (v map[string]ContactNewResponseFieldValueMapItemUnion)

func (ContactNewResponseFieldValueUnion) AsFloat

func (ContactNewResponseFieldValueUnion) AsString

func (u ContactNewResponseFieldValueUnion) AsString() (v string)

func (ContactNewResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseFieldValueUnion) UnmarshalJSON

func (r *ContactNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type ContactNewResponseMapItemUnion

type ContactNewResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfAnyArray                         respjson.Field
		OfContactNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactNewResponseMapItemMapItem]

func (ContactNewResponseMapItemUnion) AsAnyArray

func (u ContactNewResponseMapItemUnion) AsAnyArray() (v []any)

func (ContactNewResponseMapItemUnion) AsAnyMap

func (u ContactNewResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (ContactNewResponseMapItemUnion) AsBool

func (u ContactNewResponseMapItemUnion) AsBool() (v bool)

func (ContactNewResponseMapItemUnion) AsFloat

func (u ContactNewResponseMapItemUnion) AsFloat() (v float64)

func (ContactNewResponseMapItemUnion) AsString

func (u ContactNewResponseMapItemUnion) AsString() (v string)

func (ContactNewResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseMapItemUnion) UnmarshalJSON

func (r *ContactNewResponseMapItemUnion) UnmarshalJSON(data []byte) error

type ContactNewResponseRelationship

type ContactNewResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactNewResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*ContactNewResponseRelationship) UnmarshalJSON

func (r *ContactNewResponseRelationship) UnmarshalJSON(data []byte) error

type ContactNewResponseUnion

type ContactNewResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactNewResponseArrayItemUnion] instead of an object.
	OfContactNewResponseArray []ContactNewResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactNewResponseMapItemMapItem any `json:",inline"`
	JSON                               struct {
		OfString                           respjson.Field
		OfFloat                            respjson.Field
		OfBool                             respjson.Field
		OfContactNewResponseArray          respjson.Field
		OfAnyArray                         respjson.Field
		OfContactNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactNewResponseArrayItemUnion], [map[string]ContactNewResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactNewResponseArray OfAnyArray OfContactNewResponseMapItemMapItem]

func (ContactNewResponseUnion) AsBool

func (u ContactNewResponseUnion) AsBool() (v bool)

func (ContactNewResponseUnion) AsContactNewResponseArray

func (u ContactNewResponseUnion) AsContactNewResponseArray() (v []ContactNewResponseArrayItemUnion)

func (ContactNewResponseUnion) AsContactNewResponseMapMap

func (u ContactNewResponseUnion) AsContactNewResponseMapMap() (v map[string]ContactNewResponseMapItemUnion)

func (ContactNewResponseUnion) AsFloat

func (u ContactNewResponseUnion) AsFloat() (v float64)

func (ContactNewResponseUnion) AsString

func (u ContactNewResponseUnion) AsString() (v string)

func (ContactNewResponseUnion) RawJSON

func (u ContactNewResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactNewResponseUnion) UnmarshalJSON

func (r *ContactNewResponseUnion) UnmarshalJSON(data []byte) error

type ContactService

type ContactService struct {
	Options []option.RequestOption
}

ContactService contains methods and other services that help with interacting with the Lightfield API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewContactService method instead.

func NewContactService

func NewContactService(opts ...option.RequestOption) (r ContactService)

NewContactService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ContactService) Definitions added in v0.2.0

func (r *ContactService) Definitions(ctx context.Context, opts ...option.RequestOption) (res *ContactDefinitionsResponse, err error)

func (*ContactService) Get

func (r *ContactService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ContactGetResponse, err error)

func (*ContactService) List

func (*ContactService) New

func (*ContactService) Update

type ContactUpdateParams

type ContactUpdateParams struct {
	Fields        ContactUpdateParamsFields        `json:"fields,omitzero"`
	Relationships ContactUpdateParamsRelationships `json:"relationships,omitzero"`
	// contains filtered or unexported fields
}

func (ContactUpdateParams) MarshalJSON

func (r ContactUpdateParams) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParams) UnmarshalJSON

func (r *ContactUpdateParams) UnmarshalJSON(data []byte) error

type ContactUpdateParamsFieldArrayItemUnion

type ContactUpdateParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsFieldArrayItemUnion) MarshalJSON

func (u ContactUpdateParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)

func (*ContactUpdateParamsFieldArrayItemUnion) UnmarshalJSON

func (u *ContactUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsFieldMapItemUnion

type ContactUpdateParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsFieldMapItemUnion) MarshalJSON

func (u ContactUpdateParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)

func (*ContactUpdateParamsFieldMapItemUnion) UnmarshalJSON

func (u *ContactUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsFieldUnion

type ContactUpdateParamsFieldUnion struct {
	OfString                    param.Opt[string]                               `json:",omitzero,inline"`
	OfFloat                     param.Opt[float64]                              `json:",omitzero,inline"`
	OfBool                      param.Opt[bool]                                 `json:",omitzero,inline"`
	OfContactUpdatesFieldArray  []ContactUpdateParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfContactUpdatesFieldMapMap map[string]ContactUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsFieldUnion) MarshalJSON

func (u ContactUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*ContactUpdateParamsFieldUnion) UnmarshalJSON

func (u *ContactUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsFields

type ContactUpdateParamsFields struct {
	ProfilePhotoURL param.Opt[string]                        `json:"$profilePhotoUrl,omitzero"`
	Email           []string                                 `json:"$email,omitzero"`
	Name            ContactUpdateParamsFieldsName            `json:"$name,omitzero"`
	ExtraFields     map[string]ContactUpdateParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

func (ContactUpdateParamsFields) MarshalJSON

func (r ContactUpdateParamsFields) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParamsFields) UnmarshalJSON

func (r *ContactUpdateParamsFields) UnmarshalJSON(data []byte) error

type ContactUpdateParamsFieldsName added in v0.2.0

type ContactUpdateParamsFieldsName struct {
	FirstName param.Opt[string] `json:"firstName,omitzero"`
	LastName  param.Opt[string] `json:"lastName,omitzero"`
	// contains filtered or unexported fields
}

func (ContactUpdateParamsFieldsName) MarshalJSON added in v0.2.0

func (r ContactUpdateParamsFieldsName) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParamsFieldsName) UnmarshalJSON added in v0.2.0

func (r *ContactUpdateParamsFieldsName) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationship

type ContactUpdateParamsRelationship struct {
	Add     ContactUpdateParamsRelationshipAddUnion     `json:"add,omitzero"`
	Remove  ContactUpdateParamsRelationshipRemoveUnion  `json:"remove,omitzero"`
	Replace ContactUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (ContactUpdateParamsRelationship) MarshalJSON

func (r ContactUpdateParamsRelationship) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParamsRelationship) UnmarshalJSON

func (r *ContactUpdateParamsRelationship) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationshipAddUnion

type ContactUpdateParamsRelationshipAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipAddUnion) MarshalJSON

func (u ContactUpdateParamsRelationshipAddUnion) MarshalJSON() ([]byte, error)

func (*ContactUpdateParamsRelationshipAddUnion) UnmarshalJSON

func (u *ContactUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationshipRemoveUnion

type ContactUpdateParamsRelationshipRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipRemoveUnion) MarshalJSON

func (*ContactUpdateParamsRelationshipRemoveUnion) UnmarshalJSON

func (u *ContactUpdateParamsRelationshipRemoveUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationshipReplaceUnion

type ContactUpdateParamsRelationshipReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipReplaceUnion) MarshalJSON

func (*ContactUpdateParamsRelationshipReplaceUnion) UnmarshalJSON

func (u *ContactUpdateParamsRelationshipReplaceUnion) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationships

type ContactUpdateParamsRelationships struct {
	Accounts    ContactUpdateParamsRelationshipsAccounts   `json:"$accounts,omitzero"`
	ExtraFields map[string]ContactUpdateParamsRelationship `json:"-"`
	// contains filtered or unexported fields
}

func (ContactUpdateParamsRelationships) MarshalJSON

func (r ContactUpdateParamsRelationships) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParamsRelationships) UnmarshalJSON

func (r *ContactUpdateParamsRelationships) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationshipsAccounts added in v0.2.0

type ContactUpdateParamsRelationshipsAccounts struct {
	Add     ContactUpdateParamsRelationshipsAccountsAddUnion     `json:"add,omitzero"`
	Remove  ContactUpdateParamsRelationshipsAccountsRemoveUnion  `json:"remove,omitzero"`
	Replace ContactUpdateParamsRelationshipsAccountsReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (ContactUpdateParamsRelationshipsAccounts) MarshalJSON added in v0.2.0

func (r ContactUpdateParamsRelationshipsAccounts) MarshalJSON() (data []byte, err error)

func (*ContactUpdateParamsRelationshipsAccounts) UnmarshalJSON added in v0.2.0

func (r *ContactUpdateParamsRelationshipsAccounts) UnmarshalJSON(data []byte) error

type ContactUpdateParamsRelationshipsAccountsAddUnion added in v0.2.0

type ContactUpdateParamsRelationshipsAccountsAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipsAccountsAddUnion) MarshalJSON added in v0.2.0

func (*ContactUpdateParamsRelationshipsAccountsAddUnion) UnmarshalJSON added in v0.2.0

type ContactUpdateParamsRelationshipsAccountsRemoveUnion added in v0.2.0

type ContactUpdateParamsRelationshipsAccountsRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipsAccountsRemoveUnion) MarshalJSON added in v0.2.0

func (*ContactUpdateParamsRelationshipsAccountsRemoveUnion) UnmarshalJSON added in v0.2.0

type ContactUpdateParamsRelationshipsAccountsReplaceUnion added in v0.2.0

type ContactUpdateParamsRelationshipsAccountsReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (ContactUpdateParamsRelationshipsAccountsReplaceUnion) MarshalJSON added in v0.2.0

func (*ContactUpdateParamsRelationshipsAccountsReplaceUnion) UnmarshalJSON added in v0.2.0

type ContactUpdateResponse

type ContactUpdateResponse struct {
	ID            string                                       `json:"id" api:"required"`
	CreatedAt     string                                       `json:"createdAt" api:"required"`
	Fields        map[string]ContactUpdateResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                       `json:"httpLink" api:"required"`
	Relationships map[string]ContactUpdateResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]ContactUpdateResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactUpdateResponse) RawJSON

func (r ContactUpdateResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactUpdateResponse) UnmarshalJSON

func (r *ContactUpdateResponse) UnmarshalJSON(data []byte) error

type ContactUpdateResponseArrayItemUnion

type ContactUpdateResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseArrayItemMapItem any `json:",inline"`
	JSON                                    struct {
		OfString                                respjson.Field
		OfFloat                                 respjson.Field
		OfBool                                  respjson.Field
		OfAnyArray                              respjson.Field
		OfContactUpdateResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseArrayItemMapItem]

func (ContactUpdateResponseArrayItemUnion) AsAnyArray

func (u ContactUpdateResponseArrayItemUnion) AsAnyArray() (v []any)

func (ContactUpdateResponseArrayItemUnion) AsAnyMap

func (u ContactUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (ContactUpdateResponseArrayItemUnion) AsBool

func (ContactUpdateResponseArrayItemUnion) AsFloat

func (ContactUpdateResponseArrayItemUnion) AsString

func (ContactUpdateResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseArrayItemUnion) UnmarshalJSON

func (r *ContactUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateResponseField

type ContactUpdateResponseField struct {
	Value     ContactUpdateResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                               `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactUpdateResponseField) RawJSON

func (r ContactUpdateResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseField) UnmarshalJSON

func (r *ContactUpdateResponseField) UnmarshalJSON(data []byte) error

type ContactUpdateResponseFieldValueArrayItemUnion

type ContactUpdateResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                              struct {
		OfString                                          respjson.Field
		OfFloat                                           respjson.Field
		OfBool                                            respjson.Field
		OfAnyArray                                        respjson.Field
		OfContactUpdateResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseFieldValueArrayItemMapItem]

func (ContactUpdateResponseFieldValueArrayItemUnion) AsAnyArray

func (ContactUpdateResponseFieldValueArrayItemUnion) AsAnyMap

func (ContactUpdateResponseFieldValueArrayItemUnion) AsBool

func (ContactUpdateResponseFieldValueArrayItemUnion) AsFloat

func (ContactUpdateResponseFieldValueArrayItemUnion) AsString

func (ContactUpdateResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON

func (r *ContactUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateResponseFieldValueMapItemUnion

type ContactUpdateResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                            struct {
		OfString                                        respjson.Field
		OfFloat                                         respjson.Field
		OfBool                                          respjson.Field
		OfAnyArray                                      respjson.Field
		OfContactUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseFieldValueMapItemMapItem]

func (ContactUpdateResponseFieldValueMapItemUnion) AsAnyArray

func (u ContactUpdateResponseFieldValueMapItemUnion) AsAnyArray() (v []any)

func (ContactUpdateResponseFieldValueMapItemUnion) AsAnyMap

func (ContactUpdateResponseFieldValueMapItemUnion) AsBool

func (ContactUpdateResponseFieldValueMapItemUnion) AsFloat

func (ContactUpdateResponseFieldValueMapItemUnion) AsString

func (ContactUpdateResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *ContactUpdateResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateResponseFieldValueUnion

type ContactUpdateResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactUpdateResponseFieldValueArrayItemUnion] instead of an object.
	OfContactUpdateResponseFieldValueArray []ContactUpdateResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                            struct {
		OfString                                        respjson.Field
		OfFloat                                         respjson.Field
		OfBool                                          respjson.Field
		OfContactUpdateResponseFieldValueArray          respjson.Field
		OfAnyArray                                      respjson.Field
		OfContactUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactUpdateResponseFieldValueArrayItemUnion], [map[string]ContactUpdateResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactUpdateResponseFieldValueArray OfAnyArray OfContactUpdateResponseFieldValueMapItemMapItem]

func (ContactUpdateResponseFieldValueUnion) AsBool

func (ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueArray

func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueArray() (v []ContactUpdateResponseFieldValueArrayItemUnion)

func (ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueMapMap

func (u ContactUpdateResponseFieldValueUnion) AsContactUpdateResponseFieldValueMapMap() (v map[string]ContactUpdateResponseFieldValueMapItemUnion)

func (ContactUpdateResponseFieldValueUnion) AsFloat

func (ContactUpdateResponseFieldValueUnion) AsString

func (ContactUpdateResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseFieldValueUnion) UnmarshalJSON

func (r *ContactUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type ContactUpdateResponseMapItemUnion

type ContactUpdateResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                  struct {
		OfString                              respjson.Field
		OfFloat                               respjson.Field
		OfBool                                respjson.Field
		OfAnyArray                            respjson.Field
		OfContactUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfContactUpdateResponseMapItemMapItem]

func (ContactUpdateResponseMapItemUnion) AsAnyArray

func (u ContactUpdateResponseMapItemUnion) AsAnyArray() (v []any)

func (ContactUpdateResponseMapItemUnion) AsAnyMap

func (u ContactUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (ContactUpdateResponseMapItemUnion) AsBool

func (u ContactUpdateResponseMapItemUnion) AsBool() (v bool)

func (ContactUpdateResponseMapItemUnion) AsFloat

func (ContactUpdateResponseMapItemUnion) AsString

func (u ContactUpdateResponseMapItemUnion) AsString() (v string)

func (ContactUpdateResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseMapItemUnion) UnmarshalJSON

func (r *ContactUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error

type ContactUpdateResponseRelationship

type ContactUpdateResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (ContactUpdateResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseRelationship) UnmarshalJSON

func (r *ContactUpdateResponseRelationship) UnmarshalJSON(data []byte) error

type ContactUpdateResponseUnion

type ContactUpdateResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]ContactUpdateResponseArrayItemUnion] instead of an object.
	OfContactUpdateResponseArray []ContactUpdateResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfContactUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                  struct {
		OfString                              respjson.Field
		OfFloat                               respjson.Field
		OfBool                                respjson.Field
		OfContactUpdateResponseArray          respjson.Field
		OfAnyArray                            respjson.Field
		OfContactUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

ContactUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]ContactUpdateResponseArrayItemUnion], [map[string]ContactUpdateResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfContactUpdateResponseArray OfAnyArray OfContactUpdateResponseMapItemMapItem]

func (ContactUpdateResponseUnion) AsBool

func (u ContactUpdateResponseUnion) AsBool() (v bool)

func (ContactUpdateResponseUnion) AsContactUpdateResponseArray

func (u ContactUpdateResponseUnion) AsContactUpdateResponseArray() (v []ContactUpdateResponseArrayItemUnion)

func (ContactUpdateResponseUnion) AsContactUpdateResponseMapMap

func (u ContactUpdateResponseUnion) AsContactUpdateResponseMapMap() (v map[string]ContactUpdateResponseMapItemUnion)

func (ContactUpdateResponseUnion) AsFloat

func (u ContactUpdateResponseUnion) AsFloat() (v float64)

func (ContactUpdateResponseUnion) AsString

func (u ContactUpdateResponseUnion) AsString() (v string)

func (ContactUpdateResponseUnion) RawJSON

func (u ContactUpdateResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*ContactUpdateResponseUnion) UnmarshalJSON

func (r *ContactUpdateResponseUnion) UnmarshalJSON(data []byte) error

type Error

type Error = apierror.Error

type OpportunityDefinitionsResponse added in v0.2.0

type OpportunityDefinitionsResponse struct {
	FieldDefinitions        map[string]OpportunityDefinitionsResponseFieldDefinition        `json:"fieldDefinitions" api:"required"`
	ObjectType              string                                                          `json:"objectType" api:"required"`
	RelationshipDefinitions map[string]OpportunityDefinitionsResponseRelationshipDefinition `json:"relationshipDefinitions" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		FieldDefinitions        respjson.Field
		ObjectType              respjson.Field
		RelationshipDefinitions respjson.Field
		ExtraFields             map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityDefinitionsResponse) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponse) UnmarshalJSON added in v0.2.0

func (r *OpportunityDefinitionsResponse) UnmarshalJSON(data []byte) error

type OpportunityDefinitionsResponseFieldDefinition added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinition struct {
	Description       string                                                                         `json:"description" api:"required"`
	Label             string                                                                         `json:"label" api:"required"`
	TypeConfiguration map[string]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion `json:"typeConfiguration" api:"required"`
	ValueType         string                                                                         `json:"valueType" api:"required"`
	ID                string                                                                         `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Description       respjson.Field
		Label             respjson.Field
		TypeConfiguration respjson.Field
		ValueType         respjson.Field
		ID                respjson.Field
		ExtraFields       map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityDefinitionsResponseFieldDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponseFieldDefinition) UnmarshalJSON added in v0.2.0

func (r *OpportunityDefinitionsResponseFieldDefinition) UnmarshalJSON(data []byte) error

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem any `json:",inline"`
	JSON                                                                             struct {
		OfString                                                                         respjson.Field
		OfFloat                                                                          respjson.Field
		OfBool                                                                           respjson.Field
		OfAnyArray                                                                       respjson.Field
		OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemMapItem]

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyArray added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsAnyMap added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsBool added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsFloat added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) AsString added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion) UnmarshalJSON added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                           struct {
		OfString                                                                       respjson.Field
		OfFloat                                                                        respjson.Field
		OfBool                                                                         respjson.Field
		OfAnyArray                                                                     respjson.Field
		OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyArray added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsAnyMap added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsBool added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsFloat added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) AsString added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion) UnmarshalJSON added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion added in v0.2.0

type OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion]
	// instead of an object.
	OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray []OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem any `json:",inline"`
	JSON                                                                           struct {
		OfString                                                                       respjson.Field
		OfFloat                                                                        respjson.Field
		OfBool                                                                         respjson.Field
		OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray          respjson.Field
		OfAnyArray                                                                     respjson.Field
		OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArrayItemUnion], [map[string]OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray OfAnyArray OfOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapItemMapItem]

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsBool added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsFloat added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationArray added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsOpportunityDefinitionsResponseFieldDefinitionTypeConfigurationMapMap added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) AsString added in v0.2.0

func (OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponseFieldDefinitionTypeConfigurationUnion) UnmarshalJSON added in v0.2.0

type OpportunityDefinitionsResponseRelationshipDefinition added in v0.2.0

type OpportunityDefinitionsResponseRelationshipDefinition struct {
	// Any of "HAS_ONE", "HAS_MANY".
	Cardinality string `json:"cardinality" api:"required"`
	Description string `json:"description" api:"required"`
	Label       string `json:"label" api:"required"`
	ObjectType  string `json:"objectType" api:"required"`
	ID          string `json:"id"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		Description respjson.Field
		Label       respjson.Field
		ObjectType  respjson.Field
		ID          respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityDefinitionsResponseRelationshipDefinition) RawJSON added in v0.2.0

Returns the unmodified JSON received from the API

func (*OpportunityDefinitionsResponseRelationshipDefinition) UnmarshalJSON added in v0.2.0

type OpportunityGetResponse

type OpportunityGetResponse struct {
	ID            string                                        `json:"id" api:"required"`
	CreatedAt     string                                        `json:"createdAt" api:"required"`
	Fields        map[string]OpportunityGetResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                        `json:"httpLink" api:"required"`
	Relationships map[string]OpportunityGetResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]OpportunityGetResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityGetResponse) RawJSON

func (r OpportunityGetResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityGetResponse) UnmarshalJSON

func (r *OpportunityGetResponse) UnmarshalJSON(data []byte) error

type OpportunityGetResponseArrayItemUnion

type OpportunityGetResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseArrayItemMapItem any `json:",inline"`
	JSON                                     struct {
		OfString                                 respjson.Field
		OfFloat                                  respjson.Field
		OfBool                                   respjson.Field
		OfAnyArray                               respjson.Field
		OfOpportunityGetResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityGetResponseArrayItemMapItem]

func (OpportunityGetResponseArrayItemUnion) AsAnyArray

func (u OpportunityGetResponseArrayItemUnion) AsAnyArray() (v []any)

func (OpportunityGetResponseArrayItemUnion) AsAnyMap

func (u OpportunityGetResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityGetResponseArrayItemUnion) AsBool

func (OpportunityGetResponseArrayItemUnion) AsFloat

func (OpportunityGetResponseArrayItemUnion) AsString

func (OpportunityGetResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseArrayItemUnion) UnmarshalJSON

func (r *OpportunityGetResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityGetResponseField

type OpportunityGetResponseField struct {
	Value     OpportunityGetResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                                `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityGetResponseField) RawJSON

func (r OpportunityGetResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseField) UnmarshalJSON

func (r *OpportunityGetResponseField) UnmarshalJSON(data []byte) error

type OpportunityGetResponseFieldValueArrayItemUnion

type OpportunityGetResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                               struct {
		OfString                                           respjson.Field
		OfFloat                                            respjson.Field
		OfBool                                             respjson.Field
		OfAnyArray                                         respjson.Field
		OfOpportunityGetResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityGetResponseFieldValueArrayItemMapItem]

func (OpportunityGetResponseFieldValueArrayItemUnion) AsAnyArray

func (OpportunityGetResponseFieldValueArrayItemUnion) AsAnyMap

func (OpportunityGetResponseFieldValueArrayItemUnion) AsBool

func (OpportunityGetResponseFieldValueArrayItemUnion) AsFloat

func (OpportunityGetResponseFieldValueArrayItemUnion) AsString

func (OpportunityGetResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseFieldValueArrayItemUnion) UnmarshalJSON

type OpportunityGetResponseFieldValueMapItemUnion

type OpportunityGetResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                             struct {
		OfString                                         respjson.Field
		OfFloat                                          respjson.Field
		OfBool                                           respjson.Field
		OfAnyArray                                       respjson.Field
		OfOpportunityGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityGetResponseFieldValueMapItemMapItem]

func (OpportunityGetResponseFieldValueMapItemUnion) AsAnyArray

func (OpportunityGetResponseFieldValueMapItemUnion) AsAnyMap

func (OpportunityGetResponseFieldValueMapItemUnion) AsBool

func (OpportunityGetResponseFieldValueMapItemUnion) AsFloat

func (OpportunityGetResponseFieldValueMapItemUnion) AsString

func (OpportunityGetResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *OpportunityGetResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityGetResponseFieldValueUnion

type OpportunityGetResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityGetResponseFieldValueArrayItemUnion] instead of an object.
	OfOpportunityGetResponseFieldValueArray []OpportunityGetResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                             struct {
		OfString                                         respjson.Field
		OfFloat                                          respjson.Field
		OfBool                                           respjson.Field
		OfOpportunityGetResponseFieldValueArray          respjson.Field
		OfAnyArray                                       respjson.Field
		OfOpportunityGetResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityGetResponseFieldValueArrayItemUnion], [map[string]OpportunityGetResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityGetResponseFieldValueArray OfAnyArray OfOpportunityGetResponseFieldValueMapItemMapItem]

func (OpportunityGetResponseFieldValueUnion) AsBool

func (OpportunityGetResponseFieldValueUnion) AsFloat

func (OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueArray

func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueArray() (v []OpportunityGetResponseFieldValueArrayItemUnion)

func (OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueMapMap

func (u OpportunityGetResponseFieldValueUnion) AsOpportunityGetResponseFieldValueMapMap() (v map[string]OpportunityGetResponseFieldValueMapItemUnion)

func (OpportunityGetResponseFieldValueUnion) AsString

func (OpportunityGetResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseFieldValueUnion) UnmarshalJSON

func (r *OpportunityGetResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type OpportunityGetResponseMapItemUnion

type OpportunityGetResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseMapItemMapItem any `json:",inline"`
	JSON                                   struct {
		OfString                               respjson.Field
		OfFloat                                respjson.Field
		OfBool                                 respjson.Field
		OfAnyArray                             respjson.Field
		OfOpportunityGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityGetResponseMapItemMapItem]

func (OpportunityGetResponseMapItemUnion) AsAnyArray

func (u OpportunityGetResponseMapItemUnion) AsAnyArray() (v []any)

func (OpportunityGetResponseMapItemUnion) AsAnyMap

func (u OpportunityGetResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityGetResponseMapItemUnion) AsBool

func (OpportunityGetResponseMapItemUnion) AsFloat

func (OpportunityGetResponseMapItemUnion) AsString

func (u OpportunityGetResponseMapItemUnion) AsString() (v string)

func (OpportunityGetResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseMapItemUnion) UnmarshalJSON

func (r *OpportunityGetResponseMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityGetResponseRelationship

type OpportunityGetResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityGetResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseRelationship) UnmarshalJSON

func (r *OpportunityGetResponseRelationship) UnmarshalJSON(data []byte) error

type OpportunityGetResponseUnion

type OpportunityGetResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityGetResponseArrayItemUnion] instead of an object.
	OfOpportunityGetResponseArray []OpportunityGetResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityGetResponseMapItemMapItem any `json:",inline"`
	JSON                                   struct {
		OfString                               respjson.Field
		OfFloat                                respjson.Field
		OfBool                                 respjson.Field
		OfOpportunityGetResponseArray          respjson.Field
		OfAnyArray                             respjson.Field
		OfOpportunityGetResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityGetResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityGetResponseArrayItemUnion], [map[string]OpportunityGetResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityGetResponseArray OfAnyArray OfOpportunityGetResponseMapItemMapItem]

func (OpportunityGetResponseUnion) AsBool

func (u OpportunityGetResponseUnion) AsBool() (v bool)

func (OpportunityGetResponseUnion) AsFloat

func (u OpportunityGetResponseUnion) AsFloat() (v float64)

func (OpportunityGetResponseUnion) AsOpportunityGetResponseArray

func (u OpportunityGetResponseUnion) AsOpportunityGetResponseArray() (v []OpportunityGetResponseArrayItemUnion)

func (OpportunityGetResponseUnion) AsOpportunityGetResponseMapMap

func (u OpportunityGetResponseUnion) AsOpportunityGetResponseMapMap() (v map[string]OpportunityGetResponseMapItemUnion)

func (OpportunityGetResponseUnion) AsString

func (u OpportunityGetResponseUnion) AsString() (v string)

func (OpportunityGetResponseUnion) RawJSON

func (u OpportunityGetResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityGetResponseUnion) UnmarshalJSON

func (r *OpportunityGetResponseUnion) UnmarshalJSON(data []byte) error

type OpportunityListParams

type OpportunityListParams struct {
	Limit  param.Opt[int64] `query:"limit,omitzero" json:"-"`
	Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (OpportunityListParams) URLQuery

func (r OpportunityListParams) URLQuery() (v url.Values, err error)

URLQuery serializes OpportunityListParams's query parameters as `url.Values`.

type OpportunityListResponse

type OpportunityListResponse struct {
	Data       []OpportunityListResponseData `json:"data" api:"required"`
	Object     string                        `json:"object" api:"required"`
	TotalCount int64                         `json:"totalCount" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Data        respjson.Field
		Object      respjson.Field
		TotalCount  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityListResponse) RawJSON

func (r OpportunityListResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityListResponse) UnmarshalJSON

func (r *OpportunityListResponse) UnmarshalJSON(data []byte) error

type OpportunityListResponseData

type OpportunityListResponseData struct {
	ID            string                                             `json:"id" api:"required"`
	CreatedAt     string                                             `json:"createdAt" api:"required"`
	Fields        map[string]OpportunityListResponseDataField        `json:"fields" api:"required"`
	HTTPLink      string                                             `json:"httpLink" api:"required"`
	Relationships map[string]OpportunityListResponseDataRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]OpportunityListResponseDataUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityListResponseData) RawJSON

func (r OpportunityListResponseData) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityListResponseData) UnmarshalJSON

func (r *OpportunityListResponseData) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataArrayItemUnion

type OpportunityListResponseDataArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataArrayItemMapItem any `json:",inline"`
	JSON                                          struct {
		OfString                                      respjson.Field
		OfFloat                                       respjson.Field
		OfBool                                        respjson.Field
		OfAnyArray                                    respjson.Field
		OfOpportunityListResponseDataArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataArrayItemMapItem]

func (OpportunityListResponseDataArrayItemUnion) AsAnyArray

func (u OpportunityListResponseDataArrayItemUnion) AsAnyArray() (v []any)

func (OpportunityListResponseDataArrayItemUnion) AsAnyMap

func (OpportunityListResponseDataArrayItemUnion) AsBool

func (OpportunityListResponseDataArrayItemUnion) AsFloat

func (OpportunityListResponseDataArrayItemUnion) AsString

func (OpportunityListResponseDataArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataArrayItemUnion) UnmarshalJSON

func (r *OpportunityListResponseDataArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataField

type OpportunityListResponseDataField struct {
	Value     OpportunityListResponseDataFieldValueUnion `json:"value" api:"required"`
	ValueType string                                     `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityListResponseDataField) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataField) UnmarshalJSON

func (r *OpportunityListResponseDataField) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataFieldValueArrayItemUnion

type OpportunityListResponseDataFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                                    struct {
		OfString                                                respjson.Field
		OfFloat                                                 respjson.Field
		OfBool                                                  respjson.Field
		OfAnyArray                                              respjson.Field
		OfOpportunityListResponseDataFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataFieldValueArrayItemMapItem]

func (OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyArray

func (OpportunityListResponseDataFieldValueArrayItemUnion) AsAnyMap

func (OpportunityListResponseDataFieldValueArrayItemUnion) AsBool

func (OpportunityListResponseDataFieldValueArrayItemUnion) AsFloat

func (OpportunityListResponseDataFieldValueArrayItemUnion) AsString

func (OpportunityListResponseDataFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataFieldValueArrayItemUnion) UnmarshalJSON

type OpportunityListResponseDataFieldValueMapItemUnion

type OpportunityListResponseDataFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                                  struct {
		OfString                                              respjson.Field
		OfFloat                                               respjson.Field
		OfBool                                                respjson.Field
		OfAnyArray                                            respjson.Field
		OfOpportunityListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataFieldValueMapItemMapItem]

func (OpportunityListResponseDataFieldValueMapItemUnion) AsAnyArray

func (OpportunityListResponseDataFieldValueMapItemUnion) AsAnyMap

func (OpportunityListResponseDataFieldValueMapItemUnion) AsBool

func (OpportunityListResponseDataFieldValueMapItemUnion) AsFloat

func (OpportunityListResponseDataFieldValueMapItemUnion) AsString

func (OpportunityListResponseDataFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataFieldValueMapItemUnion) UnmarshalJSON

type OpportunityListResponseDataFieldValueUnion

type OpportunityListResponseDataFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityListResponseDataFieldValueArrayItemUnion] instead of an object.
	OfOpportunityListResponseDataFieldValueArray []OpportunityListResponseDataFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataFieldValueMapItemMapItem any `json:",inline"`
	JSON                                                  struct {
		OfString                                              respjson.Field
		OfFloat                                               respjson.Field
		OfBool                                                respjson.Field
		OfOpportunityListResponseDataFieldValueArray          respjson.Field
		OfAnyArray                                            respjson.Field
		OfOpportunityListResponseDataFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityListResponseDataFieldValueArrayItemUnion], [map[string]OpportunityListResponseDataFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityListResponseDataFieldValueArray OfAnyArray OfOpportunityListResponseDataFieldValueMapItemMapItem]

func (OpportunityListResponseDataFieldValueUnion) AsBool

func (OpportunityListResponseDataFieldValueUnion) AsFloat

func (OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueArray

func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueArray() (v []OpportunityListResponseDataFieldValueArrayItemUnion)

func (OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueMapMap

func (u OpportunityListResponseDataFieldValueUnion) AsOpportunityListResponseDataFieldValueMapMap() (v map[string]OpportunityListResponseDataFieldValueMapItemUnion)

func (OpportunityListResponseDataFieldValueUnion) AsString

func (OpportunityListResponseDataFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataFieldValueUnion) UnmarshalJSON

func (r *OpportunityListResponseDataFieldValueUnion) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataMapItemUnion

type OpportunityListResponseDataMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                        struct {
		OfString                                    respjson.Field
		OfFloat                                     respjson.Field
		OfBool                                      respjson.Field
		OfAnyArray                                  respjson.Field
		OfOpportunityListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityListResponseDataMapItemMapItem]

func (OpportunityListResponseDataMapItemUnion) AsAnyArray

func (u OpportunityListResponseDataMapItemUnion) AsAnyArray() (v []any)

func (OpportunityListResponseDataMapItemUnion) AsAnyMap

func (u OpportunityListResponseDataMapItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityListResponseDataMapItemUnion) AsBool

func (OpportunityListResponseDataMapItemUnion) AsFloat

func (OpportunityListResponseDataMapItemUnion) AsString

func (OpportunityListResponseDataMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataMapItemUnion) UnmarshalJSON

func (r *OpportunityListResponseDataMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataRelationship

type OpportunityListResponseDataRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityListResponseDataRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataRelationship) UnmarshalJSON

func (r *OpportunityListResponseDataRelationship) UnmarshalJSON(data []byte) error

type OpportunityListResponseDataUnion

type OpportunityListResponseDataUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityListResponseDataArrayItemUnion] instead of an object.
	OfOpportunityListResponseDataArray []OpportunityListResponseDataArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityListResponseDataMapItemMapItem any `json:",inline"`
	JSON                                        struct {
		OfString                                    respjson.Field
		OfFloat                                     respjson.Field
		OfBool                                      respjson.Field
		OfOpportunityListResponseDataArray          respjson.Field
		OfAnyArray                                  respjson.Field
		OfOpportunityListResponseDataMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityListResponseDataUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityListResponseDataArrayItemUnion], [map[string]OpportunityListResponseDataMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityListResponseDataArray OfAnyArray OfOpportunityListResponseDataMapItemMapItem]

func (OpportunityListResponseDataUnion) AsBool

func (u OpportunityListResponseDataUnion) AsBool() (v bool)

func (OpportunityListResponseDataUnion) AsFloat

func (u OpportunityListResponseDataUnion) AsFloat() (v float64)

func (OpportunityListResponseDataUnion) AsOpportunityListResponseDataArray

func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataArray() (v []OpportunityListResponseDataArrayItemUnion)

func (OpportunityListResponseDataUnion) AsOpportunityListResponseDataMapMap

func (u OpportunityListResponseDataUnion) AsOpportunityListResponseDataMapMap() (v map[string]OpportunityListResponseDataMapItemUnion)

func (OpportunityListResponseDataUnion) AsString

func (u OpportunityListResponseDataUnion) AsString() (v string)

func (OpportunityListResponseDataUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityListResponseDataUnion) UnmarshalJSON

func (r *OpportunityListResponseDataUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParams

type OpportunityNewParams struct {
	Fields        OpportunityNewParamsFields        `json:"fields,omitzero" api:"required"`
	Relationships OpportunityNewParamsRelationships `json:"relationships,omitzero" api:"required"`
	// contains filtered or unexported fields
}

func (OpportunityNewParams) MarshalJSON

func (r OpportunityNewParams) MarshalJSON() (data []byte, err error)

func (*OpportunityNewParams) UnmarshalJSON

func (r *OpportunityNewParams) UnmarshalJSON(data []byte) error

type OpportunityNewParamsFieldArrayItemUnion

type OpportunityNewParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsFieldArrayItemUnion) MarshalJSON

func (u OpportunityNewParamsFieldArrayItemUnion) MarshalJSON() ([]byte, error)

func (*OpportunityNewParamsFieldArrayItemUnion) UnmarshalJSON

func (u *OpportunityNewParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParamsFieldMapItemUnion

type OpportunityNewParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsFieldMapItemUnion) MarshalJSON

func (u OpportunityNewParamsFieldMapItemUnion) MarshalJSON() ([]byte, error)

func (*OpportunityNewParamsFieldMapItemUnion) UnmarshalJSON

func (u *OpportunityNewParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParamsFieldUnion

type OpportunityNewParamsFieldUnion struct {
	OfString                     param.Opt[string]                                `json:",omitzero,inline"`
	OfFloat                      param.Opt[float64]                               `json:",omitzero,inline"`
	OfBool                       param.Opt[bool]                                  `json:",omitzero,inline"`
	OfOpportunityNewsFieldArray  []OpportunityNewParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfOpportunityNewsFieldMapMap map[string]OpportunityNewParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsFieldUnion) MarshalJSON

func (u OpportunityNewParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*OpportunityNewParamsFieldUnion) UnmarshalJSON

func (u *OpportunityNewParamsFieldUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParamsFields

type OpportunityNewParamsFields struct {
	Name        string                                    `json:"$name" api:"required"`
	Stage       string                                    `json:"$stage" api:"required"`
	ExtraFields map[string]OpportunityNewParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

The properties Name, Stage are required.

func (OpportunityNewParamsFields) MarshalJSON

func (r OpportunityNewParamsFields) MarshalJSON() (data []byte, err error)

func (*OpportunityNewParamsFields) UnmarshalJSON

func (r *OpportunityNewParamsFields) UnmarshalJSON(data []byte) error

type OpportunityNewParamsRelationshipUnion

type OpportunityNewParamsRelationshipUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipUnion) MarshalJSON

func (u OpportunityNewParamsRelationshipUnion) MarshalJSON() ([]byte, error)

func (*OpportunityNewParamsRelationshipUnion) UnmarshalJSON

func (u *OpportunityNewParamsRelationshipUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParamsRelationships

type OpportunityNewParamsRelationships struct {
	Account     OpportunityNewParamsRelationshipsAccountUnion    `json:"$account,omitzero" api:"required"`
	Champion    OpportunityNewParamsRelationshipsChampionUnion   `json:"$champion,omitzero"`
	CreatedBy   OpportunityNewParamsRelationshipsCreatedByUnion  `json:"$createdBy,omitzero"`
	Evaluator   OpportunityNewParamsRelationshipsEvaluatorUnion  `json:"$evaluator,omitzero"`
	Owner       OpportunityNewParamsRelationshipsOwnerUnion      `json:"$owner,omitzero"`
	ExtraFields map[string]OpportunityNewParamsRelationshipUnion `json:"-"`
	// contains filtered or unexported fields
}

The property Account is required.

func (OpportunityNewParamsRelationships) MarshalJSON

func (r OpportunityNewParamsRelationships) MarshalJSON() (data []byte, err error)

func (*OpportunityNewParamsRelationships) UnmarshalJSON

func (r *OpportunityNewParamsRelationships) UnmarshalJSON(data []byte) error

type OpportunityNewParamsRelationshipsAccountUnion added in v0.2.0

type OpportunityNewParamsRelationshipsAccountUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipsAccountUnion) MarshalJSON added in v0.2.0

func (*OpportunityNewParamsRelationshipsAccountUnion) UnmarshalJSON added in v0.2.0

func (u *OpportunityNewParamsRelationshipsAccountUnion) UnmarshalJSON(data []byte) error

type OpportunityNewParamsRelationshipsChampionUnion added in v0.2.0

type OpportunityNewParamsRelationshipsChampionUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipsChampionUnion) MarshalJSON added in v0.2.0

func (*OpportunityNewParamsRelationshipsChampionUnion) UnmarshalJSON added in v0.2.0

type OpportunityNewParamsRelationshipsCreatedByUnion added in v0.2.0

type OpportunityNewParamsRelationshipsCreatedByUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipsCreatedByUnion) MarshalJSON added in v0.2.0

func (*OpportunityNewParamsRelationshipsCreatedByUnion) UnmarshalJSON added in v0.2.0

type OpportunityNewParamsRelationshipsEvaluatorUnion added in v0.2.0

type OpportunityNewParamsRelationshipsEvaluatorUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipsEvaluatorUnion) MarshalJSON added in v0.2.0

func (*OpportunityNewParamsRelationshipsEvaluatorUnion) UnmarshalJSON added in v0.2.0

type OpportunityNewParamsRelationshipsOwnerUnion added in v0.2.0

type OpportunityNewParamsRelationshipsOwnerUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityNewParamsRelationshipsOwnerUnion) MarshalJSON added in v0.2.0

func (*OpportunityNewParamsRelationshipsOwnerUnion) UnmarshalJSON added in v0.2.0

func (u *OpportunityNewParamsRelationshipsOwnerUnion) UnmarshalJSON(data []byte) error

type OpportunityNewResponse

type OpportunityNewResponse struct {
	ID            string                                        `json:"id" api:"required"`
	CreatedAt     string                                        `json:"createdAt" api:"required"`
	Fields        map[string]OpportunityNewResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                        `json:"httpLink" api:"required"`
	Relationships map[string]OpportunityNewResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]OpportunityNewResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityNewResponse) RawJSON

func (r OpportunityNewResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityNewResponse) UnmarshalJSON

func (r *OpportunityNewResponse) UnmarshalJSON(data []byte) error

type OpportunityNewResponseArrayItemUnion

type OpportunityNewResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseArrayItemMapItem any `json:",inline"`
	JSON                                     struct {
		OfString                                 respjson.Field
		OfFloat                                  respjson.Field
		OfBool                                   respjson.Field
		OfAnyArray                               respjson.Field
		OfOpportunityNewResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityNewResponseArrayItemMapItem]

func (OpportunityNewResponseArrayItemUnion) AsAnyArray

func (u OpportunityNewResponseArrayItemUnion) AsAnyArray() (v []any)

func (OpportunityNewResponseArrayItemUnion) AsAnyMap

func (u OpportunityNewResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityNewResponseArrayItemUnion) AsBool

func (OpportunityNewResponseArrayItemUnion) AsFloat

func (OpportunityNewResponseArrayItemUnion) AsString

func (OpportunityNewResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseArrayItemUnion) UnmarshalJSON

func (r *OpportunityNewResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityNewResponseField

type OpportunityNewResponseField struct {
	Value     OpportunityNewResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                                `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityNewResponseField) RawJSON

func (r OpportunityNewResponseField) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseField) UnmarshalJSON

func (r *OpportunityNewResponseField) UnmarshalJSON(data []byte) error

type OpportunityNewResponseFieldValueArrayItemUnion

type OpportunityNewResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                               struct {
		OfString                                           respjson.Field
		OfFloat                                            respjson.Field
		OfBool                                             respjson.Field
		OfAnyArray                                         respjson.Field
		OfOpportunityNewResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityNewResponseFieldValueArrayItemMapItem]

func (OpportunityNewResponseFieldValueArrayItemUnion) AsAnyArray

func (OpportunityNewResponseFieldValueArrayItemUnion) AsAnyMap

func (OpportunityNewResponseFieldValueArrayItemUnion) AsBool

func (OpportunityNewResponseFieldValueArrayItemUnion) AsFloat

func (OpportunityNewResponseFieldValueArrayItemUnion) AsString

func (OpportunityNewResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseFieldValueArrayItemUnion) UnmarshalJSON

type OpportunityNewResponseFieldValueMapItemUnion

type OpportunityNewResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                             struct {
		OfString                                         respjson.Field
		OfFloat                                          respjson.Field
		OfBool                                           respjson.Field
		OfAnyArray                                       respjson.Field
		OfOpportunityNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityNewResponseFieldValueMapItemMapItem]

func (OpportunityNewResponseFieldValueMapItemUnion) AsAnyArray

func (OpportunityNewResponseFieldValueMapItemUnion) AsAnyMap

func (OpportunityNewResponseFieldValueMapItemUnion) AsBool

func (OpportunityNewResponseFieldValueMapItemUnion) AsFloat

func (OpportunityNewResponseFieldValueMapItemUnion) AsString

func (OpportunityNewResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseFieldValueMapItemUnion) UnmarshalJSON

func (r *OpportunityNewResponseFieldValueMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityNewResponseFieldValueUnion

type OpportunityNewResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityNewResponseFieldValueArrayItemUnion] instead of an object.
	OfOpportunityNewResponseFieldValueArray []OpportunityNewResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                             struct {
		OfString                                         respjson.Field
		OfFloat                                          respjson.Field
		OfBool                                           respjson.Field
		OfOpportunityNewResponseFieldValueArray          respjson.Field
		OfAnyArray                                       respjson.Field
		OfOpportunityNewResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityNewResponseFieldValueArrayItemUnion], [map[string]OpportunityNewResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityNewResponseFieldValueArray OfAnyArray OfOpportunityNewResponseFieldValueMapItemMapItem]

func (OpportunityNewResponseFieldValueUnion) AsBool

func (OpportunityNewResponseFieldValueUnion) AsFloat

func (OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueArray

func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueArray() (v []OpportunityNewResponseFieldValueArrayItemUnion)

func (OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueMapMap

func (u OpportunityNewResponseFieldValueUnion) AsOpportunityNewResponseFieldValueMapMap() (v map[string]OpportunityNewResponseFieldValueMapItemUnion)

func (OpportunityNewResponseFieldValueUnion) AsString

func (OpportunityNewResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseFieldValueUnion) UnmarshalJSON

func (r *OpportunityNewResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type OpportunityNewResponseMapItemUnion

type OpportunityNewResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseMapItemMapItem any `json:",inline"`
	JSON                                   struct {
		OfString                               respjson.Field
		OfFloat                                respjson.Field
		OfBool                                 respjson.Field
		OfAnyArray                             respjson.Field
		OfOpportunityNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityNewResponseMapItemMapItem]

func (OpportunityNewResponseMapItemUnion) AsAnyArray

func (u OpportunityNewResponseMapItemUnion) AsAnyArray() (v []any)

func (OpportunityNewResponseMapItemUnion) AsAnyMap

func (u OpportunityNewResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityNewResponseMapItemUnion) AsBool

func (OpportunityNewResponseMapItemUnion) AsFloat

func (OpportunityNewResponseMapItemUnion) AsString

func (u OpportunityNewResponseMapItemUnion) AsString() (v string)

func (OpportunityNewResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseMapItemUnion) UnmarshalJSON

func (r *OpportunityNewResponseMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityNewResponseRelationship

type OpportunityNewResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityNewResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseRelationship) UnmarshalJSON

func (r *OpportunityNewResponseRelationship) UnmarshalJSON(data []byte) error

type OpportunityNewResponseUnion

type OpportunityNewResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityNewResponseArrayItemUnion] instead of an object.
	OfOpportunityNewResponseArray []OpportunityNewResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityNewResponseMapItemMapItem any `json:",inline"`
	JSON                                   struct {
		OfString                               respjson.Field
		OfFloat                                respjson.Field
		OfBool                                 respjson.Field
		OfOpportunityNewResponseArray          respjson.Field
		OfAnyArray                             respjson.Field
		OfOpportunityNewResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityNewResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityNewResponseArrayItemUnion], [map[string]OpportunityNewResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityNewResponseArray OfAnyArray OfOpportunityNewResponseMapItemMapItem]

func (OpportunityNewResponseUnion) AsBool

func (u OpportunityNewResponseUnion) AsBool() (v bool)

func (OpportunityNewResponseUnion) AsFloat

func (u OpportunityNewResponseUnion) AsFloat() (v float64)

func (OpportunityNewResponseUnion) AsOpportunityNewResponseArray

func (u OpportunityNewResponseUnion) AsOpportunityNewResponseArray() (v []OpportunityNewResponseArrayItemUnion)

func (OpportunityNewResponseUnion) AsOpportunityNewResponseMapMap

func (u OpportunityNewResponseUnion) AsOpportunityNewResponseMapMap() (v map[string]OpportunityNewResponseMapItemUnion)

func (OpportunityNewResponseUnion) AsString

func (u OpportunityNewResponseUnion) AsString() (v string)

func (OpportunityNewResponseUnion) RawJSON

func (u OpportunityNewResponseUnion) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityNewResponseUnion) UnmarshalJSON

func (r *OpportunityNewResponseUnion) UnmarshalJSON(data []byte) error

type OpportunityService

type OpportunityService struct {
	Options []option.RequestOption
}

OpportunityService contains methods and other services that help with interacting with the Lightfield API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewOpportunityService method instead.

func NewOpportunityService

func NewOpportunityService(opts ...option.RequestOption) (r OpportunityService)

NewOpportunityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*OpportunityService) Definitions added in v0.2.0

func (*OpportunityService) Get

func (*OpportunityService) List

func (*OpportunityService) New

func (*OpportunityService) Update

type OpportunityUpdateParams

type OpportunityUpdateParams struct {
	Fields        OpportunityUpdateParamsFields        `json:"fields,omitzero"`
	Relationships OpportunityUpdateParamsRelationships `json:"relationships,omitzero"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParams) MarshalJSON

func (r OpportunityUpdateParams) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParams) UnmarshalJSON

func (r *OpportunityUpdateParams) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsFieldArrayItemUnion

type OpportunityUpdateParamsFieldArrayItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsFieldArrayItemUnion) MarshalJSON

func (*OpportunityUpdateParamsFieldArrayItemUnion) UnmarshalJSON

func (u *OpportunityUpdateParamsFieldArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsFieldMapItemUnion

type OpportunityUpdateParamsFieldMapItemUnion struct {
	OfString   param.Opt[string]  `json:",omitzero,inline"`
	OfFloat    param.Opt[float64] `json:",omitzero,inline"`
	OfBool     param.Opt[bool]    `json:",omitzero,inline"`
	OfAnyArray []any              `json:",omitzero,inline"`
	OfAnyMap   map[string]any     `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsFieldMapItemUnion) MarshalJSON

func (*OpportunityUpdateParamsFieldMapItemUnion) UnmarshalJSON

func (u *OpportunityUpdateParamsFieldMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsFieldUnion

type OpportunityUpdateParamsFieldUnion struct {
	OfString                        param.Opt[string]                                   `json:",omitzero,inline"`
	OfFloat                         param.Opt[float64]                                  `json:",omitzero,inline"`
	OfBool                          param.Opt[bool]                                     `json:",omitzero,inline"`
	OfOpportunityUpdatesFieldArray  []OpportunityUpdateParamsFieldArrayItemUnion        `json:",omitzero,inline"`
	OfOpportunityUpdatesFieldMapMap map[string]OpportunityUpdateParamsFieldMapItemUnion `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsFieldUnion) MarshalJSON

func (u OpportunityUpdateParamsFieldUnion) MarshalJSON() ([]byte, error)

func (*OpportunityUpdateParamsFieldUnion) UnmarshalJSON

func (u *OpportunityUpdateParamsFieldUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsFields

type OpportunityUpdateParamsFields struct {
	Name        param.Opt[string]                            `json:"$name,omitzero"`
	Stage       param.Opt[string]                            `json:"$stage,omitzero"`
	ExtraFields map[string]OpportunityUpdateParamsFieldUnion `json:"-"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsFields) MarshalJSON

func (r OpportunityUpdateParamsFields) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsFields) UnmarshalJSON

func (r *OpportunityUpdateParamsFields) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationship

type OpportunityUpdateParamsRelationship struct {
	Add     OpportunityUpdateParamsRelationshipAddUnion     `json:"add,omitzero"`
	Remove  OpportunityUpdateParamsRelationshipRemoveUnion  `json:"remove,omitzero"`
	Replace OpportunityUpdateParamsRelationshipReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsRelationship) MarshalJSON

func (r OpportunityUpdateParamsRelationship) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsRelationship) UnmarshalJSON

func (r *OpportunityUpdateParamsRelationship) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipAddUnion

type OpportunityUpdateParamsRelationshipAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipAddUnion) MarshalJSON

func (*OpportunityUpdateParamsRelationshipAddUnion) UnmarshalJSON

func (u *OpportunityUpdateParamsRelationshipAddUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipRemoveUnion

type OpportunityUpdateParamsRelationshipRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipRemoveUnion) MarshalJSON

func (*OpportunityUpdateParamsRelationshipRemoveUnion) UnmarshalJSON

type OpportunityUpdateParamsRelationshipReplaceUnion

type OpportunityUpdateParamsRelationshipReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipReplaceUnion) MarshalJSON

func (*OpportunityUpdateParamsRelationshipReplaceUnion) UnmarshalJSON

type OpportunityUpdateParamsRelationships

type OpportunityUpdateParamsRelationships struct {
	Champion    OpportunityUpdateParamsRelationshipsChampion   `json:"$champion,omitzero"`
	Evaluator   OpportunityUpdateParamsRelationshipsEvaluator  `json:"$evaluator,omitzero"`
	Owner       OpportunityUpdateParamsRelationshipsOwner      `json:"$owner,omitzero"`
	ExtraFields map[string]OpportunityUpdateParamsRelationship `json:"-"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsRelationships) MarshalJSON

func (r OpportunityUpdateParamsRelationships) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsRelationships) UnmarshalJSON

func (r *OpportunityUpdateParamsRelationships) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipsChampion added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampion struct {
	Add     OpportunityUpdateParamsRelationshipsChampionAddUnion     `json:"add,omitzero"`
	Remove  OpportunityUpdateParamsRelationshipsChampionRemoveUnion  `json:"remove,omitzero"`
	Replace OpportunityUpdateParamsRelationshipsChampionReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsRelationshipsChampion) MarshalJSON added in v0.2.0

func (r OpportunityUpdateParamsRelationshipsChampion) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsRelationshipsChampion) UnmarshalJSON added in v0.2.0

func (r *OpportunityUpdateParamsRelationshipsChampion) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipsChampionAddUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampionAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsChampionAddUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsChampionAddUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampionRemoveUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampionRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsChampionRemoveUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsChampionRemoveUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampionReplaceUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsChampionReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsChampionReplaceUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsChampionReplaceUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluator added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluator struct {
	Add     OpportunityUpdateParamsRelationshipsEvaluatorAddUnion     `json:"add,omitzero"`
	Remove  OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion  `json:"remove,omitzero"`
	Replace OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsRelationshipsEvaluator) MarshalJSON added in v0.2.0

func (r OpportunityUpdateParamsRelationshipsEvaluator) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsRelationshipsEvaluator) UnmarshalJSON added in v0.2.0

func (r *OpportunityUpdateParamsRelationshipsEvaluator) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipsEvaluatorAddUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluatorAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsEvaluatorAddUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsEvaluatorRemoveUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsEvaluatorReplaceUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwner added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwner struct {
	Add     OpportunityUpdateParamsRelationshipsOwnerAddUnion     `json:"add,omitzero"`
	Remove  OpportunityUpdateParamsRelationshipsOwnerRemoveUnion  `json:"remove,omitzero"`
	Replace OpportunityUpdateParamsRelationshipsOwnerReplaceUnion `json:"replace,omitzero"`
	// contains filtered or unexported fields
}

func (OpportunityUpdateParamsRelationshipsOwner) MarshalJSON added in v0.2.0

func (r OpportunityUpdateParamsRelationshipsOwner) MarshalJSON() (data []byte, err error)

func (*OpportunityUpdateParamsRelationshipsOwner) UnmarshalJSON added in v0.2.0

func (r *OpportunityUpdateParamsRelationshipsOwner) UnmarshalJSON(data []byte) error

type OpportunityUpdateParamsRelationshipsOwnerAddUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwnerAddUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsOwnerAddUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsOwnerAddUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwnerRemoveUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwnerRemoveUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsOwnerRemoveUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwnerReplaceUnion added in v0.2.0

type OpportunityUpdateParamsRelationshipsOwnerReplaceUnion struct {
	OfString      param.Opt[string] `json:",omitzero,inline"`
	OfStringArray []string          `json:",omitzero,inline"`
	// contains filtered or unexported fields
}

Only one field can be non-zero.

Use param.IsOmitted to confirm if a field is set.

func (OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) MarshalJSON added in v0.2.0

func (*OpportunityUpdateParamsRelationshipsOwnerReplaceUnion) UnmarshalJSON added in v0.2.0

type OpportunityUpdateResponse

type OpportunityUpdateResponse struct {
	ID            string                                           `json:"id" api:"required"`
	CreatedAt     string                                           `json:"createdAt" api:"required"`
	Fields        map[string]OpportunityUpdateResponseField        `json:"fields" api:"required"`
	HTTPLink      string                                           `json:"httpLink" api:"required"`
	Relationships map[string]OpportunityUpdateResponseRelationship `json:"relationships" api:"required"`
	ExtraFields   map[string]OpportunityUpdateResponseUnion        `json:"" api:"extrafields"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		ID            respjson.Field
		CreatedAt     respjson.Field
		Fields        respjson.Field
		HTTPLink      respjson.Field
		Relationships respjson.Field
		ExtraFields   map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityUpdateResponse) RawJSON

func (r OpportunityUpdateResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponse) UnmarshalJSON

func (r *OpportunityUpdateResponse) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseArrayItemUnion

type OpportunityUpdateResponseArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseArrayItemMapItem any `json:",inline"`
	JSON                                        struct {
		OfString                                    respjson.Field
		OfFloat                                     respjson.Field
		OfBool                                      respjson.Field
		OfAnyArray                                  respjson.Field
		OfOpportunityUpdateResponseArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseArrayItemMapItem]

func (OpportunityUpdateResponseArrayItemUnion) AsAnyArray

func (u OpportunityUpdateResponseArrayItemUnion) AsAnyArray() (v []any)

func (OpportunityUpdateResponseArrayItemUnion) AsAnyMap

func (u OpportunityUpdateResponseArrayItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityUpdateResponseArrayItemUnion) AsBool

func (OpportunityUpdateResponseArrayItemUnion) AsFloat

func (OpportunityUpdateResponseArrayItemUnion) AsString

func (OpportunityUpdateResponseArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseArrayItemUnion) UnmarshalJSON

func (r *OpportunityUpdateResponseArrayItemUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseField

type OpportunityUpdateResponseField struct {
	Value     OpportunityUpdateResponseFieldValueUnion `json:"value" api:"required"`
	ValueType string                                   `json:"valueType" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Value       respjson.Field
		ValueType   respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityUpdateResponseField) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseField) UnmarshalJSON

func (r *OpportunityUpdateResponseField) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseFieldValueArrayItemUnion

type OpportunityUpdateResponseFieldValueArrayItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseFieldValueArrayItemMapItem any `json:",inline"`
	JSON                                                  struct {
		OfString                                              respjson.Field
		OfFloat                                               respjson.Field
		OfBool                                                respjson.Field
		OfAnyArray                                            respjson.Field
		OfOpportunityUpdateResponseFieldValueArrayItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseFieldValueArrayItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseFieldValueArrayItemMapItem]

func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyArray

func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsAnyMap

func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsBool

func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsFloat

func (OpportunityUpdateResponseFieldValueArrayItemUnion) AsString

func (OpportunityUpdateResponseFieldValueArrayItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseFieldValueArrayItemUnion) UnmarshalJSON

type OpportunityUpdateResponseFieldValueMapItemUnion

type OpportunityUpdateResponseFieldValueMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                                struct {
		OfString                                            respjson.Field
		OfFloat                                             respjson.Field
		OfBool                                              respjson.Field
		OfAnyArray                                          respjson.Field
		OfOpportunityUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseFieldValueMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseFieldValueMapItemMapItem]

func (OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyArray

func (OpportunityUpdateResponseFieldValueMapItemUnion) AsAnyMap

func (OpportunityUpdateResponseFieldValueMapItemUnion) AsBool

func (OpportunityUpdateResponseFieldValueMapItemUnion) AsFloat

func (OpportunityUpdateResponseFieldValueMapItemUnion) AsString

func (OpportunityUpdateResponseFieldValueMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseFieldValueMapItemUnion) UnmarshalJSON

type OpportunityUpdateResponseFieldValueUnion

type OpportunityUpdateResponseFieldValueUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityUpdateResponseFieldValueArrayItemUnion] instead of an object.
	OfOpportunityUpdateResponseFieldValueArray []OpportunityUpdateResponseFieldValueArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseFieldValueMapItemMapItem any `json:",inline"`
	JSON                                                struct {
		OfString                                            respjson.Field
		OfFloat                                             respjson.Field
		OfBool                                              respjson.Field
		OfOpportunityUpdateResponseFieldValueArray          respjson.Field
		OfAnyArray                                          respjson.Field
		OfOpportunityUpdateResponseFieldValueMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseFieldValueUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityUpdateResponseFieldValueArrayItemUnion], [map[string]OpportunityUpdateResponseFieldValueMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityUpdateResponseFieldValueArray OfAnyArray OfOpportunityUpdateResponseFieldValueMapItemMapItem]

func (OpportunityUpdateResponseFieldValueUnion) AsBool

func (OpportunityUpdateResponseFieldValueUnion) AsFloat

func (OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueArray

func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueArray() (v []OpportunityUpdateResponseFieldValueArrayItemUnion)

func (OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueMapMap

func (u OpportunityUpdateResponseFieldValueUnion) AsOpportunityUpdateResponseFieldValueMapMap() (v map[string]OpportunityUpdateResponseFieldValueMapItemUnion)

func (OpportunityUpdateResponseFieldValueUnion) AsString

func (OpportunityUpdateResponseFieldValueUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseFieldValueUnion) UnmarshalJSON

func (r *OpportunityUpdateResponseFieldValueUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseMapItemUnion

type OpportunityUpdateResponseMapItemUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                      struct {
		OfString                                  respjson.Field
		OfFloat                                   respjson.Field
		OfBool                                    respjson.Field
		OfAnyArray                                respjson.Field
		OfOpportunityUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseMapItemUnion contains all possible properties and values from [string], [float64], [bool], [[]any], [map[string]any].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfAnyArray OfOpportunityUpdateResponseMapItemMapItem]

func (OpportunityUpdateResponseMapItemUnion) AsAnyArray

func (u OpportunityUpdateResponseMapItemUnion) AsAnyArray() (v []any)

func (OpportunityUpdateResponseMapItemUnion) AsAnyMap

func (u OpportunityUpdateResponseMapItemUnion) AsAnyMap() (v map[string]any)

func (OpportunityUpdateResponseMapItemUnion) AsBool

func (OpportunityUpdateResponseMapItemUnion) AsFloat

func (OpportunityUpdateResponseMapItemUnion) AsString

func (OpportunityUpdateResponseMapItemUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseMapItemUnion) UnmarshalJSON

func (r *OpportunityUpdateResponseMapItemUnion) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseRelationship

type OpportunityUpdateResponseRelationship struct {
	Cardinality string   `json:"cardinality" api:"required"`
	ObjectType  string   `json:"objectType" api:"required"`
	Values      []string `json:"values" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Cardinality respjson.Field
		ObjectType  respjson.Field
		Values      respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OpportunityUpdateResponseRelationship) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseRelationship) UnmarshalJSON

func (r *OpportunityUpdateResponseRelationship) UnmarshalJSON(data []byte) error

type OpportunityUpdateResponseUnion

type OpportunityUpdateResponseUnion struct {
	// This field will be present if the value is a [string] instead of an object.
	OfString string `json:",inline"`
	// This field will be present if the value is a [float64] instead of an object.
	OfFloat float64 `json:",inline"`
	// This field will be present if the value is a [bool] instead of an object.
	OfBool bool `json:",inline"`
	// This field will be present if the value is a
	// [[]OpportunityUpdateResponseArrayItemUnion] instead of an object.
	OfOpportunityUpdateResponseArray []OpportunityUpdateResponseArrayItemUnion `json:",inline"`
	// This field will be present if the value is a [[]any] instead of an object.
	OfAnyArray []any `json:",inline"`
	// This field will be present if the value is a [any] instead of an object.
	OfOpportunityUpdateResponseMapItemMapItem any `json:",inline"`
	JSON                                      struct {
		OfString                                  respjson.Field
		OfFloat                                   respjson.Field
		OfBool                                    respjson.Field
		OfOpportunityUpdateResponseArray          respjson.Field
		OfAnyArray                                respjson.Field
		OfOpportunityUpdateResponseMapItemMapItem respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

OpportunityUpdateResponseUnion contains all possible properties and values from [string], [float64], [bool], [[]OpportunityUpdateResponseArrayItemUnion], [map[string]OpportunityUpdateResponseMapItemUnion].

Use the methods beginning with 'As' to cast the union to one of its variants.

If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool OfOpportunityUpdateResponseArray OfAnyArray OfOpportunityUpdateResponseMapItemMapItem]

func (OpportunityUpdateResponseUnion) AsBool

func (u OpportunityUpdateResponseUnion) AsBool() (v bool)

func (OpportunityUpdateResponseUnion) AsFloat

func (u OpportunityUpdateResponseUnion) AsFloat() (v float64)

func (OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseArray

func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseArray() (v []OpportunityUpdateResponseArrayItemUnion)

func (OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseMapMap

func (u OpportunityUpdateResponseUnion) AsOpportunityUpdateResponseMapMap() (v map[string]OpportunityUpdateResponseMapItemUnion)

func (OpportunityUpdateResponseUnion) AsString

func (u OpportunityUpdateResponseUnion) AsString() (v string)

func (OpportunityUpdateResponseUnion) RawJSON

Returns the unmodified JSON received from the API

func (*OpportunityUpdateResponseUnion) UnmarshalJSON

func (r *OpportunityUpdateResponseUnion) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
encoding/json
Package json implements encoding and decoding of JSON as defined in RFC 7159.
Package json implements encoding and decoding of JSON as defined in RFC 7159.
encoding/json/shims
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.
packages
shared

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL