micro

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Micro Go API Library

Go Reference

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

It is generated with Stainless.

MCP Server

Use the Micro MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.

Add to Cursor Install in VS Code

Note: You may need to set environment variables in your MCP client.

Installation

import (
	"github.com/micro-so/micro-sdk-go" // imported as micro
)

Or to pin the version:

go get -u 'github.com/micro-so/micro-sdk-go@v0.1.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/micro-so/micro-sdk-go"
	"github.com/micro-so/micro-sdk-go/option"
)

func main() {
	client := micro.NewClient(
		option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("MICRO_API_KEY")
		option.WithTeamID("My Team ID"),
	)
	response, err := client.Prism.Objects.Deals.Query(context.TODO(), micro.PrismObjectDealQueryParams{
		Query: micro.F(micro.PrismObjectDealQueryParamsQuery{
			Select: micro.F([]string{"id", "name"}),
		}),
	})
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", response.Data)
}

Request fields

All request parameters are wrapped in a generic Field type, which we use to distinguish zero values from null or omitted fields.

This prevents accidentally sending a zero value if you forget a required parameter, and enables explicitly sending null, false, '', or 0 on optional parameters. Any field not specified is not sent.

To construct fields with values, use the helpers String(), Int(), Float(), or most commonly, the generic F[T](). To send a null, use Null[T](), and to send a nonconforming value, use Raw[T](any). For example:

params := FooParams{
	Name: micro.F("hello"),

	// Explicitly send `"description": null`
	Description: micro.Null[string](),

	Point: micro.F(micro.Point{
		X: micro.Int(0),
		Y: micro.Int(1),

		// In cases where the API specifies a given type,
		// but you want to send something else, use `Raw`:
		Z: micro.Raw[int64](0.01), // sends a float
	}),
}
Response objects

All fields in response structs are value types (not pointers or wrappers).

If a given field is null, not present, or invalid, the corresponding field will simply be its zero value.

All response structs also include a special JSON field, containing more detailed information about each property, which you can use like so:

if res.Name == "" {
	// true if `"name"` is either not present or explicitly null
	res.JSON.Name.IsNull()

	// true if the `"name"` key was not present in the response JSON at all
	res.JSON.Name.IsMissing()

	// When the API returns data that cannot be coerced to the expected type:
	if res.JSON.Name.IsInvalid() {
		raw := res.JSON.Name.Raw()

		legacyName := struct{
			First string `json:"first"`
			Last  string `json:"last"`
		}{}
		json.Unmarshal([]byte(raw), &legacyName)
		name = legacyName.First + " " + legacyName.Last
	}
}

These .JSON structs also include an Extras 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()
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 := micro.NewClient(
	// Adds a header to every request made by the client
	option.WithHeader("X-Some-Header", "custom_header_info"),
)

client.Prism.Objects.Deals.Query(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"}),
)

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 *micro.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.Prism.Objects.Deals.Query(context.TODO(), micro.PrismObjectDealQueryParams{
	Query: micro.F(micro.PrismObjectDealQueryParamsQuery{
		Select: micro.F([]string{"id", "name"}),
	}),
})
if err != nil {
	var apierr *micro.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 "/v2/prism/query/{teamId}/deal": 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.Prism.Objects.Deals.Query(
	ctx,
	micro.PrismObjectDealQueryParams{
		Query: micro.F(micro.PrismObjectDealQueryParamsQuery{
			Select: micro.F([]string{"id", "name"}),
		}),
	},
	// 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 param.Field[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 micro.FileParam(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 := micro.NewClient(
	option.WithMaxRetries(0), // default is 2
)

// Override per-request:
client.Prism.Objects.Deals.Query(
	context.TODO(),
	micro.PrismObjectDealQueryParams{
		Query: micro.F(micro.PrismObjectDealQueryParamsQuery{
			Select: micro.F([]string{"id", "name"}),
		}),
	},
	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
response, err := client.Prism.Objects.Deals.Query(
	context.TODO(),
	micro.PrismObjectDealQueryParams{
		Query: micro.F(micro.PrismObjectDealQueryParamsQuery{
			Select: micro.F([]string{"id", "name"}),
		}),
	},
	option.WithResponseInto(&response),
)
if err != nil {
	// handle error
}
fmt.Printf("%+v\n", response)

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]interface{}

    // 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:   micro.F("id_xxxx"),
    Data: micro.F(FooNewParamsData{
        FirstName: micro.F("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 := micro.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(value bool) param.Field[bool]

Bool is a param field helper which helps specify bools.

func DefaultClientOptions

func DefaultClientOptions() []option.RequestOption

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

func F

func F[T any](value T) param.Field[T]

F is a param field helper used to initialize a param.Field generic struct. This helps specify null, zero values, and overrides, as well as normal values. You can read more about this in our README.

func FileParam

func FileParam(reader io.Reader, filename string, contentType string) param.Field[io.Reader]

FileParam is a param field helper which helps files with a mime content-type.

func Float

func Float(value float64) param.Field[float64]

Float is a param field helper which helps specify floats.

func Int

func Int(value int64) param.Field[int64]

Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.

func Null

func Null[T any]() param.Field[T]

Null is a param field helper which explicitly sends null to the API.

func Raw

func Raw[T any](value any) param.Field[T]

Raw is a param field helper for specifying values for fields when the type you are looking to send is different from the type that is specified in the SDK. For example, if the type of the field is an integer, but you want to send a float, you could do that by setting the corresponding field with Raw[int](0.5).

func String

func String(value string) param.Field[string]

String is a param field helper which helps specify strings.

Types

type Client

type Client struct {
	Options []option.RequestOption
	Prism   *PrismService
	Views   *ViewService
}

Client creates a struct with services and top level methods that help with interacting with the micro 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 (MICRO_API_KEY, MICRO_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 interface{}, res interface{}, 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 interface{}, res interface{}, 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 interface{}, res interface{}, 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 interface{}, res interface{}, 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 interface{}, res interface{}, 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 interface{}, res interface{}, 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 Error

type Error = apierror.Error

type PrismMetadataListParams

type PrismMetadataListParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID   param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	Autofill param.Field[bool]   `query:"autofill"`
	CRMID    param.Field[string] `query:"crmId" format:"uuid"`
	Term     param.Field[string] `query:"term"`
}

func (PrismMetadataListParams) URLQuery

func (r PrismMetadataListParams) URLQuery() (v url.Values)

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

type PrismMetadataListParamsObjectType

type PrismMetadataListParamsObjectType string
const (
	PrismMetadataListParamsObjectTypeDeal          PrismMetadataListParamsObjectType = "deal"
	PrismMetadataListParamsObjectTypeIdentity      PrismMetadataListParamsObjectType = "identity"
	PrismMetadataListParamsObjectTypeAIChatThread  PrismMetadataListParamsObjectType = "ai_chat_thread"
	PrismMetadataListParamsObjectTypeAIChatMessage PrismMetadataListParamsObjectType = "ai_chat_message"
	PrismMetadataListParamsObjectTypeDocument      PrismMetadataListParamsObjectType = "document"
	PrismMetadataListParamsObjectTypeAction        PrismMetadataListParamsObjectType = "action"
	PrismMetadataListParamsObjectTypeEvent         PrismMetadataListParamsObjectType = "event"
)

func (PrismMetadataListParamsObjectType) IsKnown

type PrismMetadataListResponse

type PrismMetadataListResponse map[string]interface{}

type PrismMetadataService

type PrismMetadataService struct {
	Options []option.RequestOption
}

PrismMetadataService contains methods and other services that help with interacting with the micro 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 NewPrismMetadataService method instead.

func NewPrismMetadataService

func NewPrismMetadataService(opts ...option.RequestOption) (r *PrismMetadataService)

NewPrismMetadataService 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 (*PrismMetadataService) List

Get metadata properties by object type

type PrismObjectActionBulkNewParams

type PrismObjectActionBulkNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	// Array of objects to import with property values keyed by slug
	Objects param.Field[[]PrismObjectPropertiesParam]          `json:"objects" api:"required"`
	Options param.Field[PrismObjectActionBulkNewParamsOptions] `json:"options"`
}

func (PrismObjectActionBulkNewParams) MarshalJSON

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

type PrismObjectActionBulkNewParamsOptions

type PrismObjectActionBulkNewParamsOptions struct {
	// Whether deduplication should be case insensitive
	CaseInsensitive param.Field[bool] `json:"caseInsensitive"`
	// App/CRM ID for context (optional)
	CRMID param.Field[string] `json:"crm_id" format:"uuid"`
	// Property slug to deduplicate on
	DedupeBy param.Field[string] `json:"dedupe_by"`
}

func (PrismObjectActionBulkNewParamsOptions) MarshalJSON

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

type PrismObjectActionBulkNewResponse

type PrismObjectActionBulkNewResponse struct {
	Results []PrismObjectActionBulkNewResponseResult `json:"results"`
	Status  PrismObjectActionBulkNewResponseStatus   `json:"status"`
	Summary PrismObjectActionBulkNewResponseSummary  `json:"summary"`
	JSON    prismObjectActionBulkNewResponseJSON     `json:"-"`
}

func (*PrismObjectActionBulkNewResponse) UnmarshalJSON

func (r *PrismObjectActionBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionBulkNewResponseResult

type PrismObjectActionBulkNewResponseResult struct {
	ID       string                                     `json:"id" api:"nullable" format:"uuid"`
	Created  bool                                       `json:"created"`
	Error    string                                     `json:"error"`
	Existing bool                                       `json:"existing"`
	JSON     prismObjectActionBulkNewResponseResultJSON `json:"-"`
}

func (*PrismObjectActionBulkNewResponseResult) UnmarshalJSON

func (r *PrismObjectActionBulkNewResponseResult) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionBulkNewResponseStatus

type PrismObjectActionBulkNewResponseStatus string
const (
	PrismObjectActionBulkNewResponseStatusComplete PrismObjectActionBulkNewResponseStatus = "complete"
)

func (PrismObjectActionBulkNewResponseStatus) IsKnown

type PrismObjectActionBulkNewResponseSummary

type PrismObjectActionBulkNewResponseSummary struct {
	Created  int64                                       `json:"created"`
	Errors   int64                                       `json:"errors"`
	Existing int64                                       `json:"existing"`
	Total    int64                                       `json:"total"`
	JSON     prismObjectActionBulkNewResponseSummaryJSON `json:"-"`
}

func (*PrismObjectActionBulkNewResponseSummary) UnmarshalJSON

func (r *PrismObjectActionBulkNewResponseSummary) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionDeleteParams

type PrismObjectActionDeleteParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectActionDuplicateParams

type PrismObjectActionDuplicateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectActionDuplicateResponse

type PrismObjectActionDuplicateResponse struct {
	ID   string                                 `json:"id" format:"uuid"`
	JSON prismObjectActionDuplicateResponseJSON `json:"-"`
}

func (*PrismObjectActionDuplicateResponse) UnmarshalJSON

func (r *PrismObjectActionDuplicateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionGetParams

type PrismObjectActionGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectActionGrantGetParams

type PrismObjectActionGrantGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectActionGrantGetResponse

type PrismObjectActionGrantGetResponse struct {
	TeamGroupID []map[string]PrismObjectActionGrantGetResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectActionGrantGetResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectActionGrantGetResponseUserID      `json:"user_id"`
	JSON        prismObjectActionGrantGetResponseJSON                     `json:"-"`
}

func (*PrismObjectActionGrantGetResponse) UnmarshalJSON

func (r *PrismObjectActionGrantGetResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionGrantGetResponseTeamGroupID

type PrismObjectActionGrantGetResponseTeamGroupID string
const (
	PrismObjectActionGrantGetResponseTeamGroupIDA PrismObjectActionGrantGetResponseTeamGroupID = "a"
	PrismObjectActionGrantGetResponseTeamGroupIDR PrismObjectActionGrantGetResponseTeamGroupID = "r"
	PrismObjectActionGrantGetResponseTeamGroupIDW PrismObjectActionGrantGetResponseTeamGroupID = "w"
)

func (PrismObjectActionGrantGetResponseTeamGroupID) IsKnown

type PrismObjectActionGrantGetResponseTeamID

type PrismObjectActionGrantGetResponseTeamID string
const (
	PrismObjectActionGrantGetResponseTeamIDA PrismObjectActionGrantGetResponseTeamID = "a"
	PrismObjectActionGrantGetResponseTeamIDR PrismObjectActionGrantGetResponseTeamID = "r"
	PrismObjectActionGrantGetResponseTeamIDW PrismObjectActionGrantGetResponseTeamID = "w"
)

func (PrismObjectActionGrantGetResponseTeamID) IsKnown

type PrismObjectActionGrantGetResponseUserID

type PrismObjectActionGrantGetResponseUserID string
const (
	PrismObjectActionGrantGetResponseUserIDA PrismObjectActionGrantGetResponseUserID = "a"
	PrismObjectActionGrantGetResponseUserIDR PrismObjectActionGrantGetResponseUserID = "r"
	PrismObjectActionGrantGetResponseUserIDW PrismObjectActionGrantGetResponseUserID = "w"
)

func (PrismObjectActionGrantGetResponseUserID) IsKnown

type PrismObjectActionGrantService

type PrismObjectActionGrantService struct {
	Options []option.RequestOption
}

PrismObjectActionGrantService contains methods and other services that help with interacting with the micro 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 NewPrismObjectActionGrantService method instead.

func NewPrismObjectActionGrantService

func NewPrismObjectActionGrantService(opts ...option.RequestOption) (r *PrismObjectActionGrantService)

NewPrismObjectActionGrantService 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 (*PrismObjectActionGrantService) Get

Get grant

func (*PrismObjectActionGrantService) Update

Update grant

type PrismObjectActionGrantUpdateParams

type PrismObjectActionGrantUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID  param.Field[string]                                                     `path:"teamId" api:"required" format:"uuid"`
	TeamGroupID param.Field[[]map[string]PrismObjectActionGrantUpdateParamsTeamGroupID] `json:"team_group_id"`
	BodyTeamID  param.Field[map[string]PrismObjectActionGrantUpdateParamsTeamID]        `json:"team_id"`
	UserID      param.Field[[]map[string]PrismObjectActionGrantUpdateParamsUserID]      `json:"user_id"`
}

func (PrismObjectActionGrantUpdateParams) MarshalJSON

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

type PrismObjectActionGrantUpdateParamsTeamGroupID

type PrismObjectActionGrantUpdateParamsTeamGroupID string
const (
	PrismObjectActionGrantUpdateParamsTeamGroupIDA PrismObjectActionGrantUpdateParamsTeamGroupID = "a"
	PrismObjectActionGrantUpdateParamsTeamGroupIDR PrismObjectActionGrantUpdateParamsTeamGroupID = "r"
	PrismObjectActionGrantUpdateParamsTeamGroupIDW PrismObjectActionGrantUpdateParamsTeamGroupID = "w"
)

func (PrismObjectActionGrantUpdateParamsTeamGroupID) IsKnown

type PrismObjectActionGrantUpdateParamsTeamID

type PrismObjectActionGrantUpdateParamsTeamID string
const (
	PrismObjectActionGrantUpdateParamsTeamIDA PrismObjectActionGrantUpdateParamsTeamID = "a"
	PrismObjectActionGrantUpdateParamsTeamIDR PrismObjectActionGrantUpdateParamsTeamID = "r"
	PrismObjectActionGrantUpdateParamsTeamIDW PrismObjectActionGrantUpdateParamsTeamID = "w"
)

func (PrismObjectActionGrantUpdateParamsTeamID) IsKnown

type PrismObjectActionGrantUpdateParamsUserID

type PrismObjectActionGrantUpdateParamsUserID string
const (
	PrismObjectActionGrantUpdateParamsUserIDA PrismObjectActionGrantUpdateParamsUserID = "a"
	PrismObjectActionGrantUpdateParamsUserIDR PrismObjectActionGrantUpdateParamsUserID = "r"
	PrismObjectActionGrantUpdateParamsUserIDW PrismObjectActionGrantUpdateParamsUserID = "w"
)

func (PrismObjectActionGrantUpdateParamsUserID) IsKnown

type PrismObjectActionGrantUpdateResponse

type PrismObjectActionGrantUpdateResponse struct {
	TeamGroupID []map[string]PrismObjectActionGrantUpdateResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectActionGrantUpdateResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectActionGrantUpdateResponseUserID      `json:"user_id"`
	JSON        prismObjectActionGrantUpdateResponseJSON                     `json:"-"`
}

func (*PrismObjectActionGrantUpdateResponse) UnmarshalJSON

func (r *PrismObjectActionGrantUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionGrantUpdateResponseTeamGroupID

type PrismObjectActionGrantUpdateResponseTeamGroupID string
const (
	PrismObjectActionGrantUpdateResponseTeamGroupIDA PrismObjectActionGrantUpdateResponseTeamGroupID = "a"
	PrismObjectActionGrantUpdateResponseTeamGroupIDR PrismObjectActionGrantUpdateResponseTeamGroupID = "r"
	PrismObjectActionGrantUpdateResponseTeamGroupIDW PrismObjectActionGrantUpdateResponseTeamGroupID = "w"
)

func (PrismObjectActionGrantUpdateResponseTeamGroupID) IsKnown

type PrismObjectActionGrantUpdateResponseTeamID

type PrismObjectActionGrantUpdateResponseTeamID string
const (
	PrismObjectActionGrantUpdateResponseTeamIDA PrismObjectActionGrantUpdateResponseTeamID = "a"
	PrismObjectActionGrantUpdateResponseTeamIDR PrismObjectActionGrantUpdateResponseTeamID = "r"
	PrismObjectActionGrantUpdateResponseTeamIDW PrismObjectActionGrantUpdateResponseTeamID = "w"
)

func (PrismObjectActionGrantUpdateResponseTeamID) IsKnown

type PrismObjectActionGrantUpdateResponseUserID

type PrismObjectActionGrantUpdateResponseUserID string
const (
	PrismObjectActionGrantUpdateResponseUserIDA PrismObjectActionGrantUpdateResponseUserID = "a"
	PrismObjectActionGrantUpdateResponseUserIDR PrismObjectActionGrantUpdateResponseUserID = "r"
	PrismObjectActionGrantUpdateResponseUserIDW PrismObjectActionGrantUpdateResponseUserID = "w"
)

func (PrismObjectActionGrantUpdateResponseUserID) IsKnown

type PrismObjectActionNewParams

type PrismObjectActionNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectActionNewParams) MarshalJSON

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

type PrismObjectActionQueryParams

type PrismObjectActionQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                              `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectActionQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectActionQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                            `json:"boxes"`
	Deleted param.Field[bool]                                `json:"deleted"`
	Sources param.Field[[]string]                            `json:"sources" format:"uuid"`
}

func (PrismObjectActionQueryParams) MarshalJSON

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

type PrismObjectActionQueryParamsIDArray

type PrismObjectActionQueryParamsIDArray []string

func (PrismObjectActionQueryParamsIDArray) ImplementsPrismObjectActionQueryParamsIDUnion

func (r PrismObjectActionQueryParamsIDArray) ImplementsPrismObjectActionQueryParamsIDUnion()

type PrismObjectActionQueryParamsIDUnion

type PrismObjectActionQueryParamsIDUnion interface {
	ImplementsPrismObjectActionQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectActionQueryParamsIDArray.

type PrismObjectActionQueryParamsQuery

type PrismObjectActionQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectActionQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                      `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectActionQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                                `json:"limit"`
	Page   param.Field[int64]                                                                `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectActionQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectActionQueryParamsQuery) MarshalJSON

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

type PrismObjectActionQueryParamsQueryCombinator

type PrismObjectActionQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectActionQueryParamsQueryCombinatorAnd PrismObjectActionQueryParamsQueryCombinator = "AND"
	PrismObjectActionQueryParamsQueryCombinatorOr  PrismObjectActionQueryParamsQueryCombinator = "OR"
)

func (PrismObjectActionQueryParamsQueryCombinator) IsKnown

type PrismObjectActionQueryParamsQueryFilterArray

type PrismObjectActionQueryParamsQueryFilterArray []string

func (PrismObjectActionQueryParamsQueryFilterArray) ImplementsPrismObjectActionQueryParamsQueryFilterUnion

func (r PrismObjectActionQueryParamsQueryFilterArray) ImplementsPrismObjectActionQueryParamsQueryFilterUnion()

type PrismObjectActionQueryParamsQueryFilterUnion

type PrismObjectActionQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectActionQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectActionQueryParamsQueryFilterArray.

type PrismObjectActionQueryParamsQuerySort

type PrismObjectActionQueryParamsQuerySort string
const (
	PrismObjectActionQueryParamsQuerySortAsc  PrismObjectActionQueryParamsQuerySort = "asc"
	PrismObjectActionQueryParamsQuerySortDesc PrismObjectActionQueryParamsQuerySort = "desc"
)

func (PrismObjectActionQueryParamsQuerySort) IsKnown

type PrismObjectActionQueryResponse

type PrismObjectActionQueryResponse struct {
	Data  []interface{}                      `json:"data"`
	Total int64                              `json:"total"`
	JSON  prismObjectActionQueryResponseJSON `json:"-"`
}

func (*PrismObjectActionQueryResponse) UnmarshalJSON

func (r *PrismObjectActionQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectActionRestoreParams

type PrismObjectActionRestoreParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectActionService

type PrismObjectActionService struct {
	Options []option.RequestOption
	Grant   *PrismObjectActionGrantService
}

PrismObjectActionService contains methods and other services that help with interacting with the micro 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 NewPrismObjectActionService method instead.

func NewPrismObjectActionService

func NewPrismObjectActionService(opts ...option.RequestOption) (r *PrismObjectActionService)

NewPrismObjectActionService 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 (*PrismObjectActionService) BulkNew

Import multiple objects in batch. Properties are keyed by slug. Automatically routes based on size: <100 records sync (immediate response), >=100 records async (S3/Lambda with WebSocket progress)

func (*PrismObjectActionService) Delete

Delete object

func (*PrismObjectActionService) Duplicate

Duplicate object

func (*PrismObjectActionService) Get

Get object

func (*PrismObjectActionService) New

Create object

func (*PrismObjectActionService) Query

Query v2

func (*PrismObjectActionService) Restore

Restore object

func (*PrismObjectActionService) Update

Patch object

type PrismObjectActionUpdateParams

type PrismObjectActionUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectActionUpdateParams) MarshalJSON

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

type PrismObjectContactQueryParams

type PrismObjectContactQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                               `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectContactQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectContactQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                             `json:"boxes"`
	Deleted param.Field[bool]                                 `json:"deleted"`
	Sources param.Field[[]string]                             `json:"sources" format:"uuid"`
}

func (PrismObjectContactQueryParams) MarshalJSON

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

type PrismObjectContactQueryParamsIDArray

type PrismObjectContactQueryParamsIDArray []string

func (PrismObjectContactQueryParamsIDArray) ImplementsPrismObjectContactQueryParamsIDUnion

func (r PrismObjectContactQueryParamsIDArray) ImplementsPrismObjectContactQueryParamsIDUnion()

type PrismObjectContactQueryParamsIDUnion

type PrismObjectContactQueryParamsIDUnion interface {
	ImplementsPrismObjectContactQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectContactQueryParamsIDArray.

type PrismObjectContactQueryParamsQuery

type PrismObjectContactQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectContactQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                       `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectContactQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                                 `json:"limit"`
	Page   param.Field[int64]                                                                 `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectContactQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectContactQueryParamsQuery) MarshalJSON

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

type PrismObjectContactQueryParamsQueryCombinator

type PrismObjectContactQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectContactQueryParamsQueryCombinatorAnd PrismObjectContactQueryParamsQueryCombinator = "AND"
	PrismObjectContactQueryParamsQueryCombinatorOr  PrismObjectContactQueryParamsQueryCombinator = "OR"
)

func (PrismObjectContactQueryParamsQueryCombinator) IsKnown

type PrismObjectContactQueryParamsQueryFilterArray

type PrismObjectContactQueryParamsQueryFilterArray []string

func (PrismObjectContactQueryParamsQueryFilterArray) ImplementsPrismObjectContactQueryParamsQueryFilterUnion

func (r PrismObjectContactQueryParamsQueryFilterArray) ImplementsPrismObjectContactQueryParamsQueryFilterUnion()

type PrismObjectContactQueryParamsQueryFilterUnion

type PrismObjectContactQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectContactQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectContactQueryParamsQueryFilterArray.

type PrismObjectContactQueryParamsQuerySort

type PrismObjectContactQueryParamsQuerySort string
const (
	PrismObjectContactQueryParamsQuerySortAsc  PrismObjectContactQueryParamsQuerySort = "asc"
	PrismObjectContactQueryParamsQuerySortDesc PrismObjectContactQueryParamsQuerySort = "desc"
)

func (PrismObjectContactQueryParamsQuerySort) IsKnown

type PrismObjectContactQueryResponse

type PrismObjectContactQueryResponse struct {
	Data  []interface{}                       `json:"data"`
	Total int64                               `json:"total"`
	JSON  prismObjectContactQueryResponseJSON `json:"-"`
}

func (*PrismObjectContactQueryResponse) UnmarshalJSON

func (r *PrismObjectContactQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectContactService

type PrismObjectContactService struct {
	Options []option.RequestOption
}

PrismObjectContactService contains methods and other services that help with interacting with the micro 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 NewPrismObjectContactService method instead.

func NewPrismObjectContactService

func NewPrismObjectContactService(opts ...option.RequestOption) (r *PrismObjectContactService)

NewPrismObjectContactService 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 (*PrismObjectContactService) Query

Query v2

type PrismObjectDealBulkNewParams

type PrismObjectDealBulkNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	// Array of objects to import with property values keyed by slug
	Objects param.Field[[]PrismObjectPropertiesParam]        `json:"objects" api:"required"`
	Options param.Field[PrismObjectDealBulkNewParamsOptions] `json:"options"`
}

func (PrismObjectDealBulkNewParams) MarshalJSON

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

type PrismObjectDealBulkNewParamsOptions

type PrismObjectDealBulkNewParamsOptions struct {
	// Whether deduplication should be case insensitive
	CaseInsensitive param.Field[bool] `json:"caseInsensitive"`
	// App/CRM ID for context (optional)
	CRMID param.Field[string] `json:"crm_id" format:"uuid"`
	// Property slug to deduplicate on
	DedupeBy param.Field[string] `json:"dedupe_by"`
}

func (PrismObjectDealBulkNewParamsOptions) MarshalJSON

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

type PrismObjectDealBulkNewResponse

type PrismObjectDealBulkNewResponse struct {
	Results []PrismObjectDealBulkNewResponseResult `json:"results"`
	Status  PrismObjectDealBulkNewResponseStatus   `json:"status"`
	Summary PrismObjectDealBulkNewResponseSummary  `json:"summary"`
	JSON    prismObjectDealBulkNewResponseJSON     `json:"-"`
}

func (*PrismObjectDealBulkNewResponse) UnmarshalJSON

func (r *PrismObjectDealBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealBulkNewResponseResult

type PrismObjectDealBulkNewResponseResult struct {
	ID       string                                   `json:"id" api:"nullable" format:"uuid"`
	Created  bool                                     `json:"created"`
	Error    string                                   `json:"error"`
	Existing bool                                     `json:"existing"`
	JSON     prismObjectDealBulkNewResponseResultJSON `json:"-"`
}

func (*PrismObjectDealBulkNewResponseResult) UnmarshalJSON

func (r *PrismObjectDealBulkNewResponseResult) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealBulkNewResponseStatus

type PrismObjectDealBulkNewResponseStatus string
const (
	PrismObjectDealBulkNewResponseStatusComplete PrismObjectDealBulkNewResponseStatus = "complete"
)

func (PrismObjectDealBulkNewResponseStatus) IsKnown

type PrismObjectDealBulkNewResponseSummary

type PrismObjectDealBulkNewResponseSummary struct {
	Created  int64                                     `json:"created"`
	Errors   int64                                     `json:"errors"`
	Existing int64                                     `json:"existing"`
	Total    int64                                     `json:"total"`
	JSON     prismObjectDealBulkNewResponseSummaryJSON `json:"-"`
}

func (*PrismObjectDealBulkNewResponseSummary) UnmarshalJSON

func (r *PrismObjectDealBulkNewResponseSummary) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealDeleteParams

type PrismObjectDealDeleteParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDealDuplicateParams

type PrismObjectDealDuplicateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDealDuplicateResponse

type PrismObjectDealDuplicateResponse struct {
	ID   string                               `json:"id" format:"uuid"`
	JSON prismObjectDealDuplicateResponseJSON `json:"-"`
}

func (*PrismObjectDealDuplicateResponse) UnmarshalJSON

func (r *PrismObjectDealDuplicateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealGetParams

type PrismObjectDealGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDealGrantGetParams

type PrismObjectDealGrantGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDealGrantGetResponse

type PrismObjectDealGrantGetResponse struct {
	TeamGroupID []map[string]PrismObjectDealGrantGetResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectDealGrantGetResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectDealGrantGetResponseUserID      `json:"user_id"`
	JSON        prismObjectDealGrantGetResponseJSON                     `json:"-"`
}

func (*PrismObjectDealGrantGetResponse) UnmarshalJSON

func (r *PrismObjectDealGrantGetResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealGrantGetResponseTeamGroupID

type PrismObjectDealGrantGetResponseTeamGroupID string
const (
	PrismObjectDealGrantGetResponseTeamGroupIDA PrismObjectDealGrantGetResponseTeamGroupID = "a"
	PrismObjectDealGrantGetResponseTeamGroupIDR PrismObjectDealGrantGetResponseTeamGroupID = "r"
	PrismObjectDealGrantGetResponseTeamGroupIDW PrismObjectDealGrantGetResponseTeamGroupID = "w"
)

func (PrismObjectDealGrantGetResponseTeamGroupID) IsKnown

type PrismObjectDealGrantGetResponseTeamID

type PrismObjectDealGrantGetResponseTeamID string
const (
	PrismObjectDealGrantGetResponseTeamIDA PrismObjectDealGrantGetResponseTeamID = "a"
	PrismObjectDealGrantGetResponseTeamIDR PrismObjectDealGrantGetResponseTeamID = "r"
	PrismObjectDealGrantGetResponseTeamIDW PrismObjectDealGrantGetResponseTeamID = "w"
)

func (PrismObjectDealGrantGetResponseTeamID) IsKnown

type PrismObjectDealGrantGetResponseUserID

type PrismObjectDealGrantGetResponseUserID string
const (
	PrismObjectDealGrantGetResponseUserIDA PrismObjectDealGrantGetResponseUserID = "a"
	PrismObjectDealGrantGetResponseUserIDR PrismObjectDealGrantGetResponseUserID = "r"
	PrismObjectDealGrantGetResponseUserIDW PrismObjectDealGrantGetResponseUserID = "w"
)

func (PrismObjectDealGrantGetResponseUserID) IsKnown

type PrismObjectDealGrantService

type PrismObjectDealGrantService struct {
	Options []option.RequestOption
}

PrismObjectDealGrantService contains methods and other services that help with interacting with the micro 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 NewPrismObjectDealGrantService method instead.

func NewPrismObjectDealGrantService

func NewPrismObjectDealGrantService(opts ...option.RequestOption) (r *PrismObjectDealGrantService)

NewPrismObjectDealGrantService 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 (*PrismObjectDealGrantService) Get

Get grant

func (*PrismObjectDealGrantService) Update

Update grant

type PrismObjectDealGrantUpdateParams

type PrismObjectDealGrantUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID  param.Field[string]                                                   `path:"teamId" api:"required" format:"uuid"`
	TeamGroupID param.Field[[]map[string]PrismObjectDealGrantUpdateParamsTeamGroupID] `json:"team_group_id"`
	BodyTeamID  param.Field[map[string]PrismObjectDealGrantUpdateParamsTeamID]        `json:"team_id"`
	UserID      param.Field[[]map[string]PrismObjectDealGrantUpdateParamsUserID]      `json:"user_id"`
}

func (PrismObjectDealGrantUpdateParams) MarshalJSON

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

type PrismObjectDealGrantUpdateParamsTeamGroupID

type PrismObjectDealGrantUpdateParamsTeamGroupID string
const (
	PrismObjectDealGrantUpdateParamsTeamGroupIDA PrismObjectDealGrantUpdateParamsTeamGroupID = "a"
	PrismObjectDealGrantUpdateParamsTeamGroupIDR PrismObjectDealGrantUpdateParamsTeamGroupID = "r"
	PrismObjectDealGrantUpdateParamsTeamGroupIDW PrismObjectDealGrantUpdateParamsTeamGroupID = "w"
)

func (PrismObjectDealGrantUpdateParamsTeamGroupID) IsKnown

type PrismObjectDealGrantUpdateParamsTeamID

type PrismObjectDealGrantUpdateParamsTeamID string
const (
	PrismObjectDealGrantUpdateParamsTeamIDA PrismObjectDealGrantUpdateParamsTeamID = "a"
	PrismObjectDealGrantUpdateParamsTeamIDR PrismObjectDealGrantUpdateParamsTeamID = "r"
	PrismObjectDealGrantUpdateParamsTeamIDW PrismObjectDealGrantUpdateParamsTeamID = "w"
)

func (PrismObjectDealGrantUpdateParamsTeamID) IsKnown

type PrismObjectDealGrantUpdateParamsUserID

type PrismObjectDealGrantUpdateParamsUserID string
const (
	PrismObjectDealGrantUpdateParamsUserIDA PrismObjectDealGrantUpdateParamsUserID = "a"
	PrismObjectDealGrantUpdateParamsUserIDR PrismObjectDealGrantUpdateParamsUserID = "r"
	PrismObjectDealGrantUpdateParamsUserIDW PrismObjectDealGrantUpdateParamsUserID = "w"
)

func (PrismObjectDealGrantUpdateParamsUserID) IsKnown

type PrismObjectDealGrantUpdateResponse

type PrismObjectDealGrantUpdateResponse struct {
	TeamGroupID []map[string]PrismObjectDealGrantUpdateResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectDealGrantUpdateResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectDealGrantUpdateResponseUserID      `json:"user_id"`
	JSON        prismObjectDealGrantUpdateResponseJSON                     `json:"-"`
}

func (*PrismObjectDealGrantUpdateResponse) UnmarshalJSON

func (r *PrismObjectDealGrantUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealGrantUpdateResponseTeamGroupID

type PrismObjectDealGrantUpdateResponseTeamGroupID string
const (
	PrismObjectDealGrantUpdateResponseTeamGroupIDA PrismObjectDealGrantUpdateResponseTeamGroupID = "a"
	PrismObjectDealGrantUpdateResponseTeamGroupIDR PrismObjectDealGrantUpdateResponseTeamGroupID = "r"
	PrismObjectDealGrantUpdateResponseTeamGroupIDW PrismObjectDealGrantUpdateResponseTeamGroupID = "w"
)

func (PrismObjectDealGrantUpdateResponseTeamGroupID) IsKnown

type PrismObjectDealGrantUpdateResponseTeamID

type PrismObjectDealGrantUpdateResponseTeamID string
const (
	PrismObjectDealGrantUpdateResponseTeamIDA PrismObjectDealGrantUpdateResponseTeamID = "a"
	PrismObjectDealGrantUpdateResponseTeamIDR PrismObjectDealGrantUpdateResponseTeamID = "r"
	PrismObjectDealGrantUpdateResponseTeamIDW PrismObjectDealGrantUpdateResponseTeamID = "w"
)

func (PrismObjectDealGrantUpdateResponseTeamID) IsKnown

type PrismObjectDealGrantUpdateResponseUserID

type PrismObjectDealGrantUpdateResponseUserID string
const (
	PrismObjectDealGrantUpdateResponseUserIDA PrismObjectDealGrantUpdateResponseUserID = "a"
	PrismObjectDealGrantUpdateResponseUserIDR PrismObjectDealGrantUpdateResponseUserID = "r"
	PrismObjectDealGrantUpdateResponseUserIDW PrismObjectDealGrantUpdateResponseUserID = "w"
)

func (PrismObjectDealGrantUpdateResponseUserID) IsKnown

type PrismObjectDealNewParams

type PrismObjectDealNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectDealNewParams) MarshalJSON

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

type PrismObjectDealQueryParams

type PrismObjectDealQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                            `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectDealQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectDealQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                          `json:"boxes"`
	Deleted param.Field[bool]                              `json:"deleted"`
	Sources param.Field[[]string]                          `json:"sources" format:"uuid"`
}

func (PrismObjectDealQueryParams) MarshalJSON

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

type PrismObjectDealQueryParamsIDArray

type PrismObjectDealQueryParamsIDArray []string

func (PrismObjectDealQueryParamsIDArray) ImplementsPrismObjectDealQueryParamsIDUnion

func (r PrismObjectDealQueryParamsIDArray) ImplementsPrismObjectDealQueryParamsIDUnion()

type PrismObjectDealQueryParamsIDUnion

type PrismObjectDealQueryParamsIDUnion interface {
	ImplementsPrismObjectDealQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectDealQueryParamsIDArray.

type PrismObjectDealQueryParamsQuery

type PrismObjectDealQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectDealQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                    `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectDealQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                              `json:"limit"`
	Page   param.Field[int64]                                                              `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectDealQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectDealQueryParamsQuery) MarshalJSON

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

type PrismObjectDealQueryParamsQueryCombinator

type PrismObjectDealQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectDealQueryParamsQueryCombinatorAnd PrismObjectDealQueryParamsQueryCombinator = "AND"
	PrismObjectDealQueryParamsQueryCombinatorOr  PrismObjectDealQueryParamsQueryCombinator = "OR"
)

func (PrismObjectDealQueryParamsQueryCombinator) IsKnown

type PrismObjectDealQueryParamsQueryFilterArray

type PrismObjectDealQueryParamsQueryFilterArray []string

func (PrismObjectDealQueryParamsQueryFilterArray) ImplementsPrismObjectDealQueryParamsQueryFilterUnion

func (r PrismObjectDealQueryParamsQueryFilterArray) ImplementsPrismObjectDealQueryParamsQueryFilterUnion()

type PrismObjectDealQueryParamsQueryFilterUnion

type PrismObjectDealQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectDealQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectDealQueryParamsQueryFilterArray.

type PrismObjectDealQueryParamsQuerySort

type PrismObjectDealQueryParamsQuerySort string
const (
	PrismObjectDealQueryParamsQuerySortAsc  PrismObjectDealQueryParamsQuerySort = "asc"
	PrismObjectDealQueryParamsQuerySortDesc PrismObjectDealQueryParamsQuerySort = "desc"
)

func (PrismObjectDealQueryParamsQuerySort) IsKnown

type PrismObjectDealQueryResponse

type PrismObjectDealQueryResponse struct {
	Data  []interface{}                    `json:"data"`
	Total int64                            `json:"total"`
	JSON  prismObjectDealQueryResponseJSON `json:"-"`
}

func (*PrismObjectDealQueryResponse) UnmarshalJSON

func (r *PrismObjectDealQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDealRestoreParams

type PrismObjectDealRestoreParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDealService

type PrismObjectDealService struct {
	Options []option.RequestOption
	Grant   *PrismObjectDealGrantService
}

PrismObjectDealService contains methods and other services that help with interacting with the micro 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 NewPrismObjectDealService method instead.

func NewPrismObjectDealService

func NewPrismObjectDealService(opts ...option.RequestOption) (r *PrismObjectDealService)

NewPrismObjectDealService 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 (*PrismObjectDealService) BulkNew

Import multiple objects in batch. Properties are keyed by slug. Automatically routes based on size: <100 records sync (immediate response), >=100 records async (S3/Lambda with WebSocket progress)

func (*PrismObjectDealService) Delete

Delete object

func (*PrismObjectDealService) Duplicate

Duplicate object

func (*PrismObjectDealService) Get

Get object

func (*PrismObjectDealService) New

Create object

func (*PrismObjectDealService) Query

Query v2

func (*PrismObjectDealService) Restore

Restore object

func (*PrismObjectDealService) Update

Patch object

type PrismObjectDealUpdateParams

type PrismObjectDealUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectDealUpdateParams) MarshalJSON

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

type PrismObjectDocumentBulkNewParams

type PrismObjectDocumentBulkNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	// Array of objects to import with property values keyed by slug
	Objects param.Field[[]PrismObjectPropertiesParam]            `json:"objects" api:"required"`
	Options param.Field[PrismObjectDocumentBulkNewParamsOptions] `json:"options"`
}

func (PrismObjectDocumentBulkNewParams) MarshalJSON

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

type PrismObjectDocumentBulkNewParamsOptions

type PrismObjectDocumentBulkNewParamsOptions struct {
	// Whether deduplication should be case insensitive
	CaseInsensitive param.Field[bool] `json:"caseInsensitive"`
	// App/CRM ID for context (optional)
	CRMID param.Field[string] `json:"crm_id" format:"uuid"`
	// Property slug to deduplicate on
	DedupeBy param.Field[string] `json:"dedupe_by"`
}

func (PrismObjectDocumentBulkNewParamsOptions) MarshalJSON

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

type PrismObjectDocumentBulkNewResponse

type PrismObjectDocumentBulkNewResponse struct {
	Results []PrismObjectDocumentBulkNewResponseResult `json:"results"`
	Status  PrismObjectDocumentBulkNewResponseStatus   `json:"status"`
	Summary PrismObjectDocumentBulkNewResponseSummary  `json:"summary"`
	JSON    prismObjectDocumentBulkNewResponseJSON     `json:"-"`
}

func (*PrismObjectDocumentBulkNewResponse) UnmarshalJSON

func (r *PrismObjectDocumentBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentBulkNewResponseResult

type PrismObjectDocumentBulkNewResponseResult struct {
	ID       string                                       `json:"id" api:"nullable" format:"uuid"`
	Created  bool                                         `json:"created"`
	Error    string                                       `json:"error"`
	Existing bool                                         `json:"existing"`
	JSON     prismObjectDocumentBulkNewResponseResultJSON `json:"-"`
}

func (*PrismObjectDocumentBulkNewResponseResult) UnmarshalJSON

func (r *PrismObjectDocumentBulkNewResponseResult) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentBulkNewResponseStatus

type PrismObjectDocumentBulkNewResponseStatus string
const (
	PrismObjectDocumentBulkNewResponseStatusComplete PrismObjectDocumentBulkNewResponseStatus = "complete"
)

func (PrismObjectDocumentBulkNewResponseStatus) IsKnown

type PrismObjectDocumentBulkNewResponseSummary

type PrismObjectDocumentBulkNewResponseSummary struct {
	Created  int64                                         `json:"created"`
	Errors   int64                                         `json:"errors"`
	Existing int64                                         `json:"existing"`
	Total    int64                                         `json:"total"`
	JSON     prismObjectDocumentBulkNewResponseSummaryJSON `json:"-"`
}

func (*PrismObjectDocumentBulkNewResponseSummary) UnmarshalJSON

func (r *PrismObjectDocumentBulkNewResponseSummary) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentDeleteParams

type PrismObjectDocumentDeleteParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDocumentDuplicateParams

type PrismObjectDocumentDuplicateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDocumentDuplicateResponse

type PrismObjectDocumentDuplicateResponse struct {
	ID   string                                   `json:"id" format:"uuid"`
	JSON prismObjectDocumentDuplicateResponseJSON `json:"-"`
}

func (*PrismObjectDocumentDuplicateResponse) UnmarshalJSON

func (r *PrismObjectDocumentDuplicateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentGetParams

type PrismObjectDocumentGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDocumentGrantGetParams

type PrismObjectDocumentGrantGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDocumentGrantGetResponse

type PrismObjectDocumentGrantGetResponse struct {
	TeamGroupID []map[string]PrismObjectDocumentGrantGetResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectDocumentGrantGetResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectDocumentGrantGetResponseUserID      `json:"user_id"`
	JSON        prismObjectDocumentGrantGetResponseJSON                     `json:"-"`
}

func (*PrismObjectDocumentGrantGetResponse) UnmarshalJSON

func (r *PrismObjectDocumentGrantGetResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentGrantGetResponseTeamGroupID

type PrismObjectDocumentGrantGetResponseTeamGroupID string
const (
	PrismObjectDocumentGrantGetResponseTeamGroupIDA PrismObjectDocumentGrantGetResponseTeamGroupID = "a"
	PrismObjectDocumentGrantGetResponseTeamGroupIDR PrismObjectDocumentGrantGetResponseTeamGroupID = "r"
	PrismObjectDocumentGrantGetResponseTeamGroupIDW PrismObjectDocumentGrantGetResponseTeamGroupID = "w"
)

func (PrismObjectDocumentGrantGetResponseTeamGroupID) IsKnown

type PrismObjectDocumentGrantGetResponseTeamID

type PrismObjectDocumentGrantGetResponseTeamID string
const (
	PrismObjectDocumentGrantGetResponseTeamIDA PrismObjectDocumentGrantGetResponseTeamID = "a"
	PrismObjectDocumentGrantGetResponseTeamIDR PrismObjectDocumentGrantGetResponseTeamID = "r"
	PrismObjectDocumentGrantGetResponseTeamIDW PrismObjectDocumentGrantGetResponseTeamID = "w"
)

func (PrismObjectDocumentGrantGetResponseTeamID) IsKnown

type PrismObjectDocumentGrantGetResponseUserID

type PrismObjectDocumentGrantGetResponseUserID string
const (
	PrismObjectDocumentGrantGetResponseUserIDA PrismObjectDocumentGrantGetResponseUserID = "a"
	PrismObjectDocumentGrantGetResponseUserIDR PrismObjectDocumentGrantGetResponseUserID = "r"
	PrismObjectDocumentGrantGetResponseUserIDW PrismObjectDocumentGrantGetResponseUserID = "w"
)

func (PrismObjectDocumentGrantGetResponseUserID) IsKnown

type PrismObjectDocumentGrantService

type PrismObjectDocumentGrantService struct {
	Options []option.RequestOption
}

PrismObjectDocumentGrantService contains methods and other services that help with interacting with the micro 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 NewPrismObjectDocumentGrantService method instead.

func NewPrismObjectDocumentGrantService

func NewPrismObjectDocumentGrantService(opts ...option.RequestOption) (r *PrismObjectDocumentGrantService)

NewPrismObjectDocumentGrantService 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 (*PrismObjectDocumentGrantService) Get

Get grant

func (*PrismObjectDocumentGrantService) Update

Update grant

type PrismObjectDocumentGrantUpdateParams

type PrismObjectDocumentGrantUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID  param.Field[string]                                                       `path:"teamId" api:"required" format:"uuid"`
	TeamGroupID param.Field[[]map[string]PrismObjectDocumentGrantUpdateParamsTeamGroupID] `json:"team_group_id"`
	BodyTeamID  param.Field[map[string]PrismObjectDocumentGrantUpdateParamsTeamID]        `json:"team_id"`
	UserID      param.Field[[]map[string]PrismObjectDocumentGrantUpdateParamsUserID]      `json:"user_id"`
}

func (PrismObjectDocumentGrantUpdateParams) MarshalJSON

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

type PrismObjectDocumentGrantUpdateParamsTeamGroupID

type PrismObjectDocumentGrantUpdateParamsTeamGroupID string
const (
	PrismObjectDocumentGrantUpdateParamsTeamGroupIDA PrismObjectDocumentGrantUpdateParamsTeamGroupID = "a"
	PrismObjectDocumentGrantUpdateParamsTeamGroupIDR PrismObjectDocumentGrantUpdateParamsTeamGroupID = "r"
	PrismObjectDocumentGrantUpdateParamsTeamGroupIDW PrismObjectDocumentGrantUpdateParamsTeamGroupID = "w"
)

func (PrismObjectDocumentGrantUpdateParamsTeamGroupID) IsKnown

type PrismObjectDocumentGrantUpdateParamsTeamID

type PrismObjectDocumentGrantUpdateParamsTeamID string
const (
	PrismObjectDocumentGrantUpdateParamsTeamIDA PrismObjectDocumentGrantUpdateParamsTeamID = "a"
	PrismObjectDocumentGrantUpdateParamsTeamIDR PrismObjectDocumentGrantUpdateParamsTeamID = "r"
	PrismObjectDocumentGrantUpdateParamsTeamIDW PrismObjectDocumentGrantUpdateParamsTeamID = "w"
)

func (PrismObjectDocumentGrantUpdateParamsTeamID) IsKnown

type PrismObjectDocumentGrantUpdateParamsUserID

type PrismObjectDocumentGrantUpdateParamsUserID string
const (
	PrismObjectDocumentGrantUpdateParamsUserIDA PrismObjectDocumentGrantUpdateParamsUserID = "a"
	PrismObjectDocumentGrantUpdateParamsUserIDR PrismObjectDocumentGrantUpdateParamsUserID = "r"
	PrismObjectDocumentGrantUpdateParamsUserIDW PrismObjectDocumentGrantUpdateParamsUserID = "w"
)

func (PrismObjectDocumentGrantUpdateParamsUserID) IsKnown

type PrismObjectDocumentGrantUpdateResponse

type PrismObjectDocumentGrantUpdateResponse struct {
	TeamGroupID []map[string]PrismObjectDocumentGrantUpdateResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectDocumentGrantUpdateResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectDocumentGrantUpdateResponseUserID      `json:"user_id"`
	JSON        prismObjectDocumentGrantUpdateResponseJSON                     `json:"-"`
}

func (*PrismObjectDocumentGrantUpdateResponse) UnmarshalJSON

func (r *PrismObjectDocumentGrantUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentGrantUpdateResponseTeamGroupID

type PrismObjectDocumentGrantUpdateResponseTeamGroupID string
const (
	PrismObjectDocumentGrantUpdateResponseTeamGroupIDA PrismObjectDocumentGrantUpdateResponseTeamGroupID = "a"
	PrismObjectDocumentGrantUpdateResponseTeamGroupIDR PrismObjectDocumentGrantUpdateResponseTeamGroupID = "r"
	PrismObjectDocumentGrantUpdateResponseTeamGroupIDW PrismObjectDocumentGrantUpdateResponseTeamGroupID = "w"
)

func (PrismObjectDocumentGrantUpdateResponseTeamGroupID) IsKnown

type PrismObjectDocumentGrantUpdateResponseTeamID

type PrismObjectDocumentGrantUpdateResponseTeamID string
const (
	PrismObjectDocumentGrantUpdateResponseTeamIDA PrismObjectDocumentGrantUpdateResponseTeamID = "a"
	PrismObjectDocumentGrantUpdateResponseTeamIDR PrismObjectDocumentGrantUpdateResponseTeamID = "r"
	PrismObjectDocumentGrantUpdateResponseTeamIDW PrismObjectDocumentGrantUpdateResponseTeamID = "w"
)

func (PrismObjectDocumentGrantUpdateResponseTeamID) IsKnown

type PrismObjectDocumentGrantUpdateResponseUserID

type PrismObjectDocumentGrantUpdateResponseUserID string
const (
	PrismObjectDocumentGrantUpdateResponseUserIDA PrismObjectDocumentGrantUpdateResponseUserID = "a"
	PrismObjectDocumentGrantUpdateResponseUserIDR PrismObjectDocumentGrantUpdateResponseUserID = "r"
	PrismObjectDocumentGrantUpdateResponseUserIDW PrismObjectDocumentGrantUpdateResponseUserID = "w"
)

func (PrismObjectDocumentGrantUpdateResponseUserID) IsKnown

type PrismObjectDocumentNewParams

type PrismObjectDocumentNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectDocumentNewParams) MarshalJSON

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

type PrismObjectDocumentQueryParams

type PrismObjectDocumentQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                                `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectDocumentQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectDocumentQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                              `json:"boxes"`
	Deleted param.Field[bool]                                  `json:"deleted"`
	Sources param.Field[[]string]                              `json:"sources" format:"uuid"`
}

func (PrismObjectDocumentQueryParams) MarshalJSON

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

type PrismObjectDocumentQueryParamsIDArray

type PrismObjectDocumentQueryParamsIDArray []string

func (PrismObjectDocumentQueryParamsIDArray) ImplementsPrismObjectDocumentQueryParamsIDUnion

func (r PrismObjectDocumentQueryParamsIDArray) ImplementsPrismObjectDocumentQueryParamsIDUnion()

type PrismObjectDocumentQueryParamsIDUnion

type PrismObjectDocumentQueryParamsIDUnion interface {
	ImplementsPrismObjectDocumentQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectDocumentQueryParamsIDArray.

type PrismObjectDocumentQueryParamsQuery

type PrismObjectDocumentQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectDocumentQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                        `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectDocumentQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                                  `json:"limit"`
	Page   param.Field[int64]                                                                  `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectDocumentQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectDocumentQueryParamsQuery) MarshalJSON

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

type PrismObjectDocumentQueryParamsQueryCombinator

type PrismObjectDocumentQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectDocumentQueryParamsQueryCombinatorAnd PrismObjectDocumentQueryParamsQueryCombinator = "AND"
	PrismObjectDocumentQueryParamsQueryCombinatorOr  PrismObjectDocumentQueryParamsQueryCombinator = "OR"
)

func (PrismObjectDocumentQueryParamsQueryCombinator) IsKnown

type PrismObjectDocumentQueryParamsQueryFilterArray

type PrismObjectDocumentQueryParamsQueryFilterArray []string

func (PrismObjectDocumentQueryParamsQueryFilterArray) ImplementsPrismObjectDocumentQueryParamsQueryFilterUnion

func (r PrismObjectDocumentQueryParamsQueryFilterArray) ImplementsPrismObjectDocumentQueryParamsQueryFilterUnion()

type PrismObjectDocumentQueryParamsQueryFilterUnion

type PrismObjectDocumentQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectDocumentQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectDocumentQueryParamsQueryFilterArray.

type PrismObjectDocumentQueryParamsQuerySort

type PrismObjectDocumentQueryParamsQuerySort string
const (
	PrismObjectDocumentQueryParamsQuerySortAsc  PrismObjectDocumentQueryParamsQuerySort = "asc"
	PrismObjectDocumentQueryParamsQuerySortDesc PrismObjectDocumentQueryParamsQuerySort = "desc"
)

func (PrismObjectDocumentQueryParamsQuerySort) IsKnown

type PrismObjectDocumentQueryResponse

type PrismObjectDocumentQueryResponse struct {
	Data  []interface{}                        `json:"data"`
	Total int64                                `json:"total"`
	JSON  prismObjectDocumentQueryResponseJSON `json:"-"`
}

func (*PrismObjectDocumentQueryResponse) UnmarshalJSON

func (r *PrismObjectDocumentQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectDocumentRestoreParams

type PrismObjectDocumentRestoreParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectDocumentService

type PrismObjectDocumentService struct {
	Options []option.RequestOption
	Grant   *PrismObjectDocumentGrantService
}

PrismObjectDocumentService contains methods and other services that help with interacting with the micro 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 NewPrismObjectDocumentService method instead.

func NewPrismObjectDocumentService

func NewPrismObjectDocumentService(opts ...option.RequestOption) (r *PrismObjectDocumentService)

NewPrismObjectDocumentService 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 (*PrismObjectDocumentService) BulkNew

Import multiple objects in batch. Properties are keyed by slug. Automatically routes based on size: <100 records sync (immediate response), >=100 records async (S3/Lambda with WebSocket progress)

func (*PrismObjectDocumentService) Delete

Delete object

func (*PrismObjectDocumentService) Duplicate

Duplicate object

func (*PrismObjectDocumentService) Get

Get object

func (*PrismObjectDocumentService) New

Create object

func (*PrismObjectDocumentService) Query

Query v2

func (*PrismObjectDocumentService) Restore

Restore object

func (*PrismObjectDocumentService) Update

Patch object

type PrismObjectDocumentUpdateParams

type PrismObjectDocumentUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectDocumentUpdateParams) MarshalJSON

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

type PrismObjectEventGetParams

type PrismObjectEventGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectEventGrantGetParams

type PrismObjectEventGrantGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectEventGrantGetResponse

type PrismObjectEventGrantGetResponse struct {
	TeamGroupID []map[string]PrismObjectEventGrantGetResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectEventGrantGetResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectEventGrantGetResponseUserID      `json:"user_id"`
	JSON        prismObjectEventGrantGetResponseJSON                     `json:"-"`
}

func (*PrismObjectEventGrantGetResponse) UnmarshalJSON

func (r *PrismObjectEventGrantGetResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectEventGrantGetResponseTeamGroupID

type PrismObjectEventGrantGetResponseTeamGroupID string
const (
	PrismObjectEventGrantGetResponseTeamGroupIDA PrismObjectEventGrantGetResponseTeamGroupID = "a"
	PrismObjectEventGrantGetResponseTeamGroupIDR PrismObjectEventGrantGetResponseTeamGroupID = "r"
	PrismObjectEventGrantGetResponseTeamGroupIDW PrismObjectEventGrantGetResponseTeamGroupID = "w"
)

func (PrismObjectEventGrantGetResponseTeamGroupID) IsKnown

type PrismObjectEventGrantGetResponseTeamID

type PrismObjectEventGrantGetResponseTeamID string
const (
	PrismObjectEventGrantGetResponseTeamIDA PrismObjectEventGrantGetResponseTeamID = "a"
	PrismObjectEventGrantGetResponseTeamIDR PrismObjectEventGrantGetResponseTeamID = "r"
	PrismObjectEventGrantGetResponseTeamIDW PrismObjectEventGrantGetResponseTeamID = "w"
)

func (PrismObjectEventGrantGetResponseTeamID) IsKnown

type PrismObjectEventGrantGetResponseUserID

type PrismObjectEventGrantGetResponseUserID string
const (
	PrismObjectEventGrantGetResponseUserIDA PrismObjectEventGrantGetResponseUserID = "a"
	PrismObjectEventGrantGetResponseUserIDR PrismObjectEventGrantGetResponseUserID = "r"
	PrismObjectEventGrantGetResponseUserIDW PrismObjectEventGrantGetResponseUserID = "w"
)

func (PrismObjectEventGrantGetResponseUserID) IsKnown

type PrismObjectEventGrantService

type PrismObjectEventGrantService struct {
	Options []option.RequestOption
}

PrismObjectEventGrantService contains methods and other services that help with interacting with the micro 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 NewPrismObjectEventGrantService method instead.

func NewPrismObjectEventGrantService

func NewPrismObjectEventGrantService(opts ...option.RequestOption) (r *PrismObjectEventGrantService)

NewPrismObjectEventGrantService 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 (*PrismObjectEventGrantService) Get

Get grant

func (*PrismObjectEventGrantService) Update

Update grant

type PrismObjectEventGrantUpdateParams

type PrismObjectEventGrantUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID  param.Field[string]                                                    `path:"teamId" api:"required" format:"uuid"`
	TeamGroupID param.Field[[]map[string]PrismObjectEventGrantUpdateParamsTeamGroupID] `json:"team_group_id"`
	BodyTeamID  param.Field[map[string]PrismObjectEventGrantUpdateParamsTeamID]        `json:"team_id"`
	UserID      param.Field[[]map[string]PrismObjectEventGrantUpdateParamsUserID]      `json:"user_id"`
}

func (PrismObjectEventGrantUpdateParams) MarshalJSON

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

type PrismObjectEventGrantUpdateParamsTeamGroupID

type PrismObjectEventGrantUpdateParamsTeamGroupID string
const (
	PrismObjectEventGrantUpdateParamsTeamGroupIDA PrismObjectEventGrantUpdateParamsTeamGroupID = "a"
	PrismObjectEventGrantUpdateParamsTeamGroupIDR PrismObjectEventGrantUpdateParamsTeamGroupID = "r"
	PrismObjectEventGrantUpdateParamsTeamGroupIDW PrismObjectEventGrantUpdateParamsTeamGroupID = "w"
)

func (PrismObjectEventGrantUpdateParamsTeamGroupID) IsKnown

type PrismObjectEventGrantUpdateParamsTeamID

type PrismObjectEventGrantUpdateParamsTeamID string
const (
	PrismObjectEventGrantUpdateParamsTeamIDA PrismObjectEventGrantUpdateParamsTeamID = "a"
	PrismObjectEventGrantUpdateParamsTeamIDR PrismObjectEventGrantUpdateParamsTeamID = "r"
	PrismObjectEventGrantUpdateParamsTeamIDW PrismObjectEventGrantUpdateParamsTeamID = "w"
)

func (PrismObjectEventGrantUpdateParamsTeamID) IsKnown

type PrismObjectEventGrantUpdateParamsUserID

type PrismObjectEventGrantUpdateParamsUserID string
const (
	PrismObjectEventGrantUpdateParamsUserIDA PrismObjectEventGrantUpdateParamsUserID = "a"
	PrismObjectEventGrantUpdateParamsUserIDR PrismObjectEventGrantUpdateParamsUserID = "r"
	PrismObjectEventGrantUpdateParamsUserIDW PrismObjectEventGrantUpdateParamsUserID = "w"
)

func (PrismObjectEventGrantUpdateParamsUserID) IsKnown

type PrismObjectEventGrantUpdateResponse

type PrismObjectEventGrantUpdateResponse struct {
	TeamGroupID []map[string]PrismObjectEventGrantUpdateResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectEventGrantUpdateResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectEventGrantUpdateResponseUserID      `json:"user_id"`
	JSON        prismObjectEventGrantUpdateResponseJSON                     `json:"-"`
}

func (*PrismObjectEventGrantUpdateResponse) UnmarshalJSON

func (r *PrismObjectEventGrantUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectEventGrantUpdateResponseTeamGroupID

type PrismObjectEventGrantUpdateResponseTeamGroupID string
const (
	PrismObjectEventGrantUpdateResponseTeamGroupIDA PrismObjectEventGrantUpdateResponseTeamGroupID = "a"
	PrismObjectEventGrantUpdateResponseTeamGroupIDR PrismObjectEventGrantUpdateResponseTeamGroupID = "r"
	PrismObjectEventGrantUpdateResponseTeamGroupIDW PrismObjectEventGrantUpdateResponseTeamGroupID = "w"
)

func (PrismObjectEventGrantUpdateResponseTeamGroupID) IsKnown

type PrismObjectEventGrantUpdateResponseTeamID

type PrismObjectEventGrantUpdateResponseTeamID string
const (
	PrismObjectEventGrantUpdateResponseTeamIDA PrismObjectEventGrantUpdateResponseTeamID = "a"
	PrismObjectEventGrantUpdateResponseTeamIDR PrismObjectEventGrantUpdateResponseTeamID = "r"
	PrismObjectEventGrantUpdateResponseTeamIDW PrismObjectEventGrantUpdateResponseTeamID = "w"
)

func (PrismObjectEventGrantUpdateResponseTeamID) IsKnown

type PrismObjectEventGrantUpdateResponseUserID

type PrismObjectEventGrantUpdateResponseUserID string
const (
	PrismObjectEventGrantUpdateResponseUserIDA PrismObjectEventGrantUpdateResponseUserID = "a"
	PrismObjectEventGrantUpdateResponseUserIDR PrismObjectEventGrantUpdateResponseUserID = "r"
	PrismObjectEventGrantUpdateResponseUserIDW PrismObjectEventGrantUpdateResponseUserID = "w"
)

func (PrismObjectEventGrantUpdateResponseUserID) IsKnown

type PrismObjectEventQueryParams

type PrismObjectEventQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                             `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectEventQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectEventQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                           `json:"boxes"`
	Deleted param.Field[bool]                               `json:"deleted"`
	Sources param.Field[[]string]                           `json:"sources" format:"uuid"`
}

func (PrismObjectEventQueryParams) MarshalJSON

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

type PrismObjectEventQueryParamsIDArray

type PrismObjectEventQueryParamsIDArray []string

func (PrismObjectEventQueryParamsIDArray) ImplementsPrismObjectEventQueryParamsIDUnion

func (r PrismObjectEventQueryParamsIDArray) ImplementsPrismObjectEventQueryParamsIDUnion()

type PrismObjectEventQueryParamsIDUnion

type PrismObjectEventQueryParamsIDUnion interface {
	ImplementsPrismObjectEventQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectEventQueryParamsIDArray.

type PrismObjectEventQueryParamsQuery

type PrismObjectEventQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectEventQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                     `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectEventQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                               `json:"limit"`
	Page   param.Field[int64]                                                               `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectEventQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectEventQueryParamsQuery) MarshalJSON

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

type PrismObjectEventQueryParamsQueryCombinator

type PrismObjectEventQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectEventQueryParamsQueryCombinatorAnd PrismObjectEventQueryParamsQueryCombinator = "AND"
	PrismObjectEventQueryParamsQueryCombinatorOr  PrismObjectEventQueryParamsQueryCombinator = "OR"
)

func (PrismObjectEventQueryParamsQueryCombinator) IsKnown

type PrismObjectEventQueryParamsQueryFilterArray

type PrismObjectEventQueryParamsQueryFilterArray []string

func (PrismObjectEventQueryParamsQueryFilterArray) ImplementsPrismObjectEventQueryParamsQueryFilterUnion

func (r PrismObjectEventQueryParamsQueryFilterArray) ImplementsPrismObjectEventQueryParamsQueryFilterUnion()

type PrismObjectEventQueryParamsQueryFilterUnion

type PrismObjectEventQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectEventQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectEventQueryParamsQueryFilterArray.

type PrismObjectEventQueryParamsQuerySort

type PrismObjectEventQueryParamsQuerySort string
const (
	PrismObjectEventQueryParamsQuerySortAsc  PrismObjectEventQueryParamsQuerySort = "asc"
	PrismObjectEventQueryParamsQuerySortDesc PrismObjectEventQueryParamsQuerySort = "desc"
)

func (PrismObjectEventQueryParamsQuerySort) IsKnown

type PrismObjectEventQueryResponse

type PrismObjectEventQueryResponse struct {
	Data  []interface{}                     `json:"data"`
	Total int64                             `json:"total"`
	JSON  prismObjectEventQueryResponseJSON `json:"-"`
}

func (*PrismObjectEventQueryResponse) UnmarshalJSON

func (r *PrismObjectEventQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectEventService

type PrismObjectEventService struct {
	Options []option.RequestOption
	Grant   *PrismObjectEventGrantService
}

PrismObjectEventService contains methods and other services that help with interacting with the micro 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 NewPrismObjectEventService method instead.

func NewPrismObjectEventService

func NewPrismObjectEventService(opts ...option.RequestOption) (r *PrismObjectEventService)

NewPrismObjectEventService 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 (*PrismObjectEventService) Get

Get object

func (*PrismObjectEventService) Query

Query v2

type PrismObjectIdentityBulkNewParams

type PrismObjectIdentityBulkNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	// Array of objects to import with property values keyed by slug
	Objects param.Field[[]PrismObjectPropertiesParam]            `json:"objects" api:"required"`
	Options param.Field[PrismObjectIdentityBulkNewParamsOptions] `json:"options"`
}

func (PrismObjectIdentityBulkNewParams) MarshalJSON

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

type PrismObjectIdentityBulkNewParamsOptions

type PrismObjectIdentityBulkNewParamsOptions struct {
	// Whether deduplication should be case insensitive
	CaseInsensitive param.Field[bool] `json:"caseInsensitive"`
	// App/CRM ID for context (optional)
	CRMID param.Field[string] `json:"crm_id" format:"uuid"`
	// Property slug to deduplicate on
	DedupeBy param.Field[string] `json:"dedupe_by"`
}

func (PrismObjectIdentityBulkNewParamsOptions) MarshalJSON

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

type PrismObjectIdentityBulkNewResponse

type PrismObjectIdentityBulkNewResponse struct {
	Results []PrismObjectIdentityBulkNewResponseResult `json:"results"`
	Status  PrismObjectIdentityBulkNewResponseStatus   `json:"status"`
	Summary PrismObjectIdentityBulkNewResponseSummary  `json:"summary"`
	JSON    prismObjectIdentityBulkNewResponseJSON     `json:"-"`
}

func (*PrismObjectIdentityBulkNewResponse) UnmarshalJSON

func (r *PrismObjectIdentityBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityBulkNewResponseResult

type PrismObjectIdentityBulkNewResponseResult struct {
	ID       string                                       `json:"id" api:"nullable" format:"uuid"`
	Created  bool                                         `json:"created"`
	Error    string                                       `json:"error"`
	Existing bool                                         `json:"existing"`
	JSON     prismObjectIdentityBulkNewResponseResultJSON `json:"-"`
}

func (*PrismObjectIdentityBulkNewResponseResult) UnmarshalJSON

func (r *PrismObjectIdentityBulkNewResponseResult) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityBulkNewResponseStatus

type PrismObjectIdentityBulkNewResponseStatus string
const (
	PrismObjectIdentityBulkNewResponseStatusComplete PrismObjectIdentityBulkNewResponseStatus = "complete"
)

func (PrismObjectIdentityBulkNewResponseStatus) IsKnown

type PrismObjectIdentityBulkNewResponseSummary

type PrismObjectIdentityBulkNewResponseSummary struct {
	Created  int64                                         `json:"created"`
	Errors   int64                                         `json:"errors"`
	Existing int64                                         `json:"existing"`
	Total    int64                                         `json:"total"`
	JSON     prismObjectIdentityBulkNewResponseSummaryJSON `json:"-"`
}

func (*PrismObjectIdentityBulkNewResponseSummary) UnmarshalJSON

func (r *PrismObjectIdentityBulkNewResponseSummary) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityDeleteParams

type PrismObjectIdentityDeleteParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectIdentityDuplicateParams

type PrismObjectIdentityDuplicateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectIdentityDuplicateResponse

type PrismObjectIdentityDuplicateResponse struct {
	ID   string                                   `json:"id" format:"uuid"`
	JSON prismObjectIdentityDuplicateResponseJSON `json:"-"`
}

func (*PrismObjectIdentityDuplicateResponse) UnmarshalJSON

func (r *PrismObjectIdentityDuplicateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityGetParams

type PrismObjectIdentityGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectIdentityGrantGetParams

type PrismObjectIdentityGrantGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectIdentityGrantGetResponse

type PrismObjectIdentityGrantGetResponse struct {
	TeamGroupID []map[string]PrismObjectIdentityGrantGetResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectIdentityGrantGetResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectIdentityGrantGetResponseUserID      `json:"user_id"`
	JSON        prismObjectIdentityGrantGetResponseJSON                     `json:"-"`
}

func (*PrismObjectIdentityGrantGetResponse) UnmarshalJSON

func (r *PrismObjectIdentityGrantGetResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityGrantGetResponseTeamGroupID

type PrismObjectIdentityGrantGetResponseTeamGroupID string
const (
	PrismObjectIdentityGrantGetResponseTeamGroupIDA PrismObjectIdentityGrantGetResponseTeamGroupID = "a"
	PrismObjectIdentityGrantGetResponseTeamGroupIDR PrismObjectIdentityGrantGetResponseTeamGroupID = "r"
	PrismObjectIdentityGrantGetResponseTeamGroupIDW PrismObjectIdentityGrantGetResponseTeamGroupID = "w"
)

func (PrismObjectIdentityGrantGetResponseTeamGroupID) IsKnown

type PrismObjectIdentityGrantGetResponseTeamID

type PrismObjectIdentityGrantGetResponseTeamID string
const (
	PrismObjectIdentityGrantGetResponseTeamIDA PrismObjectIdentityGrantGetResponseTeamID = "a"
	PrismObjectIdentityGrantGetResponseTeamIDR PrismObjectIdentityGrantGetResponseTeamID = "r"
	PrismObjectIdentityGrantGetResponseTeamIDW PrismObjectIdentityGrantGetResponseTeamID = "w"
)

func (PrismObjectIdentityGrantGetResponseTeamID) IsKnown

type PrismObjectIdentityGrantGetResponseUserID

type PrismObjectIdentityGrantGetResponseUserID string
const (
	PrismObjectIdentityGrantGetResponseUserIDA PrismObjectIdentityGrantGetResponseUserID = "a"
	PrismObjectIdentityGrantGetResponseUserIDR PrismObjectIdentityGrantGetResponseUserID = "r"
	PrismObjectIdentityGrantGetResponseUserIDW PrismObjectIdentityGrantGetResponseUserID = "w"
)

func (PrismObjectIdentityGrantGetResponseUserID) IsKnown

type PrismObjectIdentityGrantService

type PrismObjectIdentityGrantService struct {
	Options []option.RequestOption
}

PrismObjectIdentityGrantService contains methods and other services that help with interacting with the micro 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 NewPrismObjectIdentityGrantService method instead.

func NewPrismObjectIdentityGrantService

func NewPrismObjectIdentityGrantService(opts ...option.RequestOption) (r *PrismObjectIdentityGrantService)

NewPrismObjectIdentityGrantService 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 (*PrismObjectIdentityGrantService) Get

Get grant

func (*PrismObjectIdentityGrantService) Update

Update grant

type PrismObjectIdentityGrantUpdateParams

type PrismObjectIdentityGrantUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID  param.Field[string]                                                       `path:"teamId" api:"required" format:"uuid"`
	TeamGroupID param.Field[[]map[string]PrismObjectIdentityGrantUpdateParamsTeamGroupID] `json:"team_group_id"`
	BodyTeamID  param.Field[map[string]PrismObjectIdentityGrantUpdateParamsTeamID]        `json:"team_id"`
	UserID      param.Field[[]map[string]PrismObjectIdentityGrantUpdateParamsUserID]      `json:"user_id"`
}

func (PrismObjectIdentityGrantUpdateParams) MarshalJSON

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

type PrismObjectIdentityGrantUpdateParamsTeamGroupID

type PrismObjectIdentityGrantUpdateParamsTeamGroupID string
const (
	PrismObjectIdentityGrantUpdateParamsTeamGroupIDA PrismObjectIdentityGrantUpdateParamsTeamGroupID = "a"
	PrismObjectIdentityGrantUpdateParamsTeamGroupIDR PrismObjectIdentityGrantUpdateParamsTeamGroupID = "r"
	PrismObjectIdentityGrantUpdateParamsTeamGroupIDW PrismObjectIdentityGrantUpdateParamsTeamGroupID = "w"
)

func (PrismObjectIdentityGrantUpdateParamsTeamGroupID) IsKnown

type PrismObjectIdentityGrantUpdateParamsTeamID

type PrismObjectIdentityGrantUpdateParamsTeamID string
const (
	PrismObjectIdentityGrantUpdateParamsTeamIDA PrismObjectIdentityGrantUpdateParamsTeamID = "a"
	PrismObjectIdentityGrantUpdateParamsTeamIDR PrismObjectIdentityGrantUpdateParamsTeamID = "r"
	PrismObjectIdentityGrantUpdateParamsTeamIDW PrismObjectIdentityGrantUpdateParamsTeamID = "w"
)

func (PrismObjectIdentityGrantUpdateParamsTeamID) IsKnown

type PrismObjectIdentityGrantUpdateParamsUserID

type PrismObjectIdentityGrantUpdateParamsUserID string
const (
	PrismObjectIdentityGrantUpdateParamsUserIDA PrismObjectIdentityGrantUpdateParamsUserID = "a"
	PrismObjectIdentityGrantUpdateParamsUserIDR PrismObjectIdentityGrantUpdateParamsUserID = "r"
	PrismObjectIdentityGrantUpdateParamsUserIDW PrismObjectIdentityGrantUpdateParamsUserID = "w"
)

func (PrismObjectIdentityGrantUpdateParamsUserID) IsKnown

type PrismObjectIdentityGrantUpdateResponse

type PrismObjectIdentityGrantUpdateResponse struct {
	TeamGroupID []map[string]PrismObjectIdentityGrantUpdateResponseTeamGroupID `json:"team_group_id"`
	TeamID      map[string]PrismObjectIdentityGrantUpdateResponseTeamID        `json:"team_id"`
	UserID      []map[string]PrismObjectIdentityGrantUpdateResponseUserID      `json:"user_id"`
	JSON        prismObjectIdentityGrantUpdateResponseJSON                     `json:"-"`
}

func (*PrismObjectIdentityGrantUpdateResponse) UnmarshalJSON

func (r *PrismObjectIdentityGrantUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityGrantUpdateResponseTeamGroupID

type PrismObjectIdentityGrantUpdateResponseTeamGroupID string
const (
	PrismObjectIdentityGrantUpdateResponseTeamGroupIDA PrismObjectIdentityGrantUpdateResponseTeamGroupID = "a"
	PrismObjectIdentityGrantUpdateResponseTeamGroupIDR PrismObjectIdentityGrantUpdateResponseTeamGroupID = "r"
	PrismObjectIdentityGrantUpdateResponseTeamGroupIDW PrismObjectIdentityGrantUpdateResponseTeamGroupID = "w"
)

func (PrismObjectIdentityGrantUpdateResponseTeamGroupID) IsKnown

type PrismObjectIdentityGrantUpdateResponseTeamID

type PrismObjectIdentityGrantUpdateResponseTeamID string
const (
	PrismObjectIdentityGrantUpdateResponseTeamIDA PrismObjectIdentityGrantUpdateResponseTeamID = "a"
	PrismObjectIdentityGrantUpdateResponseTeamIDR PrismObjectIdentityGrantUpdateResponseTeamID = "r"
	PrismObjectIdentityGrantUpdateResponseTeamIDW PrismObjectIdentityGrantUpdateResponseTeamID = "w"
)

func (PrismObjectIdentityGrantUpdateResponseTeamID) IsKnown

type PrismObjectIdentityGrantUpdateResponseUserID

type PrismObjectIdentityGrantUpdateResponseUserID string
const (
	PrismObjectIdentityGrantUpdateResponseUserIDA PrismObjectIdentityGrantUpdateResponseUserID = "a"
	PrismObjectIdentityGrantUpdateResponseUserIDR PrismObjectIdentityGrantUpdateResponseUserID = "r"
	PrismObjectIdentityGrantUpdateResponseUserIDW PrismObjectIdentityGrantUpdateResponseUserID = "w"
)

func (PrismObjectIdentityGrantUpdateResponseUserID) IsKnown

type PrismObjectIdentityNewParams

type PrismObjectIdentityNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectIdentityNewParams) MarshalJSON

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

type PrismObjectIdentityQueryParams

type PrismObjectIdentityQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                                `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectIdentityQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectIdentityQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                              `json:"boxes"`
	Deleted param.Field[bool]                                  `json:"deleted"`
	Sources param.Field[[]string]                              `json:"sources" format:"uuid"`
}

func (PrismObjectIdentityQueryParams) MarshalJSON

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

type PrismObjectIdentityQueryParamsIDArray

type PrismObjectIdentityQueryParamsIDArray []string

func (PrismObjectIdentityQueryParamsIDArray) ImplementsPrismObjectIdentityQueryParamsIDUnion

func (r PrismObjectIdentityQueryParamsIDArray) ImplementsPrismObjectIdentityQueryParamsIDUnion()

type PrismObjectIdentityQueryParamsIDUnion

type PrismObjectIdentityQueryParamsIDUnion interface {
	ImplementsPrismObjectIdentityQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectIdentityQueryParamsIDArray.

type PrismObjectIdentityQueryParamsQuery

type PrismObjectIdentityQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectIdentityQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                        `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectIdentityQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                                  `json:"limit"`
	Page   param.Field[int64]                                                                  `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectIdentityQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectIdentityQueryParamsQuery) MarshalJSON

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

type PrismObjectIdentityQueryParamsQueryCombinator

type PrismObjectIdentityQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectIdentityQueryParamsQueryCombinatorAnd PrismObjectIdentityQueryParamsQueryCombinator = "AND"
	PrismObjectIdentityQueryParamsQueryCombinatorOr  PrismObjectIdentityQueryParamsQueryCombinator = "OR"
)

func (PrismObjectIdentityQueryParamsQueryCombinator) IsKnown

type PrismObjectIdentityQueryParamsQueryFilterArray

type PrismObjectIdentityQueryParamsQueryFilterArray []string

func (PrismObjectIdentityQueryParamsQueryFilterArray) ImplementsPrismObjectIdentityQueryParamsQueryFilterUnion

func (r PrismObjectIdentityQueryParamsQueryFilterArray) ImplementsPrismObjectIdentityQueryParamsQueryFilterUnion()

type PrismObjectIdentityQueryParamsQueryFilterUnion

type PrismObjectIdentityQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectIdentityQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectIdentityQueryParamsQueryFilterArray.

type PrismObjectIdentityQueryParamsQuerySort

type PrismObjectIdentityQueryParamsQuerySort string
const (
	PrismObjectIdentityQueryParamsQuerySortAsc  PrismObjectIdentityQueryParamsQuerySort = "asc"
	PrismObjectIdentityQueryParamsQuerySortDesc PrismObjectIdentityQueryParamsQuerySort = "desc"
)

func (PrismObjectIdentityQueryParamsQuerySort) IsKnown

type PrismObjectIdentityQueryResponse

type PrismObjectIdentityQueryResponse struct {
	Data  []interface{}                        `json:"data"`
	Total int64                                `json:"total"`
	JSON  prismObjectIdentityQueryResponseJSON `json:"-"`
}

func (*PrismObjectIdentityQueryResponse) UnmarshalJSON

func (r *PrismObjectIdentityQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectIdentityRestoreParams

type PrismObjectIdentityRestoreParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type PrismObjectIdentityService

type PrismObjectIdentityService struct {
	Options []option.RequestOption
	Grant   *PrismObjectIdentityGrantService
}

PrismObjectIdentityService contains methods and other services that help with interacting with the micro 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 NewPrismObjectIdentityService method instead.

func NewPrismObjectIdentityService

func NewPrismObjectIdentityService(opts ...option.RequestOption) (r *PrismObjectIdentityService)

NewPrismObjectIdentityService 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 (*PrismObjectIdentityService) BulkNew

Import multiple objects in batch. Properties are keyed by slug. Automatically routes based on size: <100 records sync (immediate response), >=100 records async (S3/Lambda with WebSocket progress)

func (*PrismObjectIdentityService) Delete

Delete object

func (*PrismObjectIdentityService) Duplicate

Duplicate object

func (*PrismObjectIdentityService) Get

Get object

func (*PrismObjectIdentityService) New

Create object

func (*PrismObjectIdentityService) Query

Query v2

func (*PrismObjectIdentityService) Restore

Restore object

func (*PrismObjectIdentityService) Update

Patch object

type PrismObjectIdentityUpdateParams

type PrismObjectIdentityUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID                param.Field[string]        `path:"teamId" api:"required" format:"uuid"`
	PrismObjectProperties PrismObjectPropertiesParam `json:"prism_object_properties" api:"required"`
}

func (PrismObjectIdentityUpdateParams) MarshalJSON

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

type PrismObjectOrganizationQueryParams

type PrismObjectOrganizationQueryParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID  param.Field[string]                                    `path:"teamId" api:"required" format:"uuid"`
	Query   param.Field[PrismObjectOrganizationQueryParamsQuery]   `json:"query" api:"required"`
	ID      param.Field[PrismObjectOrganizationQueryParamsIDUnion] `json:"id" format:"uuid"`
	Boxes   param.Field[[]string]                                  `json:"boxes"`
	Deleted param.Field[bool]                                      `json:"deleted"`
	Sources param.Field[[]string]                                  `json:"sources" format:"uuid"`
}

func (PrismObjectOrganizationQueryParams) MarshalJSON

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

type PrismObjectOrganizationQueryParamsIDArray

type PrismObjectOrganizationQueryParamsIDArray []string

func (PrismObjectOrganizationQueryParamsIDArray) ImplementsPrismObjectOrganizationQueryParamsIDUnion

func (r PrismObjectOrganizationQueryParamsIDArray) ImplementsPrismObjectOrganizationQueryParamsIDUnion()

type PrismObjectOrganizationQueryParamsIDUnion

type PrismObjectOrganizationQueryParamsIDUnion interface {
	ImplementsPrismObjectOrganizationQueryParamsIDUnion()
}

Satisfied by [shared.UnionString], PrismObjectOrganizationQueryParamsIDArray.

type PrismObjectOrganizationQueryParamsQuery

type PrismObjectOrganizationQueryParamsQuery struct {
	// Property slugs to select. Use dot notation for relationships (e.g.
	// attendee.contact.first_name)
	Select param.Field[[]string] `json:"select" api:"required"`
	// Logical operator for combining filters
	Combinator param.Field[PrismObjectOrganizationQueryParamsQueryCombinator] `json:"combinator"`
	CRMID      param.Field[string]                                            `json:"crm_id" format:"uuid"`
	// Filters as [{ slug: { operator: value } }]. For select/multiselect properties,
	// values must be option slugs
	Filter param.Field[[]map[string]map[string]PrismObjectOrganizationQueryParamsQueryFilterUnion] `json:"filter"`
	Limit  param.Field[int64]                                                                      `json:"limit"`
	Page   param.Field[int64]                                                                      `json:"page"`
	// Sort order as [{ slug: direction }]. Array order determines sort priority
	Sort param.Field[[]map[string]PrismObjectOrganizationQueryParamsQuerySort] `json:"sort"`
}

func (PrismObjectOrganizationQueryParamsQuery) MarshalJSON

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

type PrismObjectOrganizationQueryParamsQueryCombinator

type PrismObjectOrganizationQueryParamsQueryCombinator string

Logical operator for combining filters

const (
	PrismObjectOrganizationQueryParamsQueryCombinatorAnd PrismObjectOrganizationQueryParamsQueryCombinator = "AND"
	PrismObjectOrganizationQueryParamsQueryCombinatorOr  PrismObjectOrganizationQueryParamsQueryCombinator = "OR"
)

func (PrismObjectOrganizationQueryParamsQueryCombinator) IsKnown

type PrismObjectOrganizationQueryParamsQueryFilterArray

type PrismObjectOrganizationQueryParamsQueryFilterArray []string

func (PrismObjectOrganizationQueryParamsQueryFilterArray) ImplementsPrismObjectOrganizationQueryParamsQueryFilterUnion

func (r PrismObjectOrganizationQueryParamsQueryFilterArray) ImplementsPrismObjectOrganizationQueryParamsQueryFilterUnion()

type PrismObjectOrganizationQueryParamsQueryFilterUnion

type PrismObjectOrganizationQueryParamsQueryFilterUnion interface {
	ImplementsPrismObjectOrganizationQueryParamsQueryFilterUnion()
}

Satisfied by [shared.UnionString], [shared.UnionBool], PrismObjectOrganizationQueryParamsQueryFilterArray.

type PrismObjectOrganizationQueryParamsQuerySort

type PrismObjectOrganizationQueryParamsQuerySort string
const (
	PrismObjectOrganizationQueryParamsQuerySortAsc  PrismObjectOrganizationQueryParamsQuerySort = "asc"
	PrismObjectOrganizationQueryParamsQuerySortDesc PrismObjectOrganizationQueryParamsQuerySort = "desc"
)

func (PrismObjectOrganizationQueryParamsQuerySort) IsKnown

type PrismObjectOrganizationQueryResponse

type PrismObjectOrganizationQueryResponse struct {
	Data  []interface{}                            `json:"data"`
	Total int64                                    `json:"total"`
	JSON  prismObjectOrganizationQueryResponseJSON `json:"-"`
}

func (*PrismObjectOrganizationQueryResponse) UnmarshalJSON

func (r *PrismObjectOrganizationQueryResponse) UnmarshalJSON(data []byte) (err error)

type PrismObjectOrganizationService

type PrismObjectOrganizationService struct {
	Options []option.RequestOption
}

PrismObjectOrganizationService contains methods and other services that help with interacting with the micro 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 NewPrismObjectOrganizationService method instead.

func NewPrismObjectOrganizationService

func NewPrismObjectOrganizationService(opts ...option.RequestOption) (r *PrismObjectOrganizationService)

NewPrismObjectOrganizationService 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 (*PrismObjectOrganizationService) Query

Query v2

type PrismObjectProperties

type PrismObjectProperties struct {
	ID  string      `json:"id" format:"uuid"`
	CRM interface{} `json:"crm"`
	// Properties keyed by property slug. Values can be strings, numbers, booleans,
	// arrays, or null.
	Default  map[string]interface{}    `json:"default"`
	Extended interface{}               `json:"extended"`
	JSON     prismObjectPropertiesJSON `json:"-"`
}

func (*PrismObjectProperties) UnmarshalJSON

func (r *PrismObjectProperties) UnmarshalJSON(data []byte) (err error)

type PrismObjectPropertiesParam

type PrismObjectPropertiesParam struct {
	ID  param.Field[string]      `json:"id" format:"uuid"`
	CRM param.Field[interface{}] `json:"crm"`
	// Properties keyed by property slug. Values can be strings, numbers, booleans,
	// arrays, or null.
	Default  param.Field[map[string]interface{}] `json:"default"`
	Extended param.Field[interface{}]            `json:"extended"`
}

func (PrismObjectPropertiesParam) MarshalJSON

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

type PrismObjectService

PrismObjectService contains methods and other services that help with interacting with the micro 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 NewPrismObjectService method instead.

func NewPrismObjectService

func NewPrismObjectService(opts ...option.RequestOption) (r *PrismObjectService)

NewPrismObjectService 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.

type PrismService

type PrismService struct {
	Options  []option.RequestOption
	Metadata *PrismMetadataService
	Objects  *PrismObjectService
}

PrismService contains methods and other services that help with interacting with the micro 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 NewPrismService method instead.

func NewPrismService

func NewPrismService(opts ...option.RequestOption) (r *PrismService)

NewPrismService 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.

type ViewDeleteParams

type ViewDeleteParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type ViewDeleteParamsViewObjectType

type ViewDeleteParamsViewObjectType string
const (
	ViewDeleteParamsViewObjectTypeAction       ViewDeleteParamsViewObjectType = "action"
	ViewDeleteParamsViewObjectTypeDeal         ViewDeleteParamsViewObjectType = "deal"
	ViewDeleteParamsViewObjectTypeDocument     ViewDeleteParamsViewObjectType = "document"
	ViewDeleteParamsViewObjectTypeEvent        ViewDeleteParamsViewObjectType = "event"
	ViewDeleteParamsViewObjectTypeIdentity     ViewDeleteParamsViewObjectType = "identity"
	ViewDeleteParamsViewObjectTypeOrganization ViewDeleteParamsViewObjectType = "organization"
)

func (ViewDeleteParamsViewObjectType) IsKnown

type ViewGetParams

type ViewGetParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type ViewGetParamsViewObjectType

type ViewGetParamsViewObjectType string
const (
	ViewGetParamsViewObjectTypeAction       ViewGetParamsViewObjectType = "action"
	ViewGetParamsViewObjectTypeDeal         ViewGetParamsViewObjectType = "deal"
	ViewGetParamsViewObjectTypeDocument     ViewGetParamsViewObjectType = "document"
	ViewGetParamsViewObjectTypeEvent        ViewGetParamsViewObjectType = "event"
	ViewGetParamsViewObjectTypeIdentity     ViewGetParamsViewObjectType = "identity"
	ViewGetParamsViewObjectTypeOrganization ViewGetParamsViewObjectType = "organization"
)

func (ViewGetParamsViewObjectType) IsKnown

func (r ViewGetParamsViewObjectType) IsKnown() bool

type ViewGetResponse

type ViewGetResponse struct {
	Name                 string                    `json:"name" api:"required"`
	ViewType             string                    `json:"view_type" api:"required"`
	ID                   string                    `json:"id" format:"uuid"`
	AggregationPropDefID string                    `json:"aggregation_prop_def_id" api:"nullable" format:"uuid"`
	AggregationType      string                    `json:"aggregation_type" api:"nullable"`
	ColumnLayout         map[string]interface{}    `json:"column_layout" api:"nullable"`
	Combinator           ViewGetResponseCombinator `json:"combinator"`
	CreatedAt            string                    `json:"created_at"`
	CRMID                string                    `json:"crm_id" api:"nullable" format:"uuid"`
	// Each entry is { slug: { comparator: value } }
	Filter []map[string]interface{} `json:"filter"`
	// Property slug to group by
	GroupBy              string        `json:"group_by" api:"nullable"`
	GroupHiddenOptionIDs []interface{} `json:"group_hidden_option_ids" api:"nullable"`
	GroupHideEmpty       bool          `json:"group_hide_empty" api:"nullable"`
	GroupSort            string        `json:"group_sort" api:"nullable"`
	Icon                 string        `json:"icon" api:"nullable"`
	// Property slugs (dot-paths permitted for refs)
	Select []string `json:"select"`
	// Each entry is { slug: 'asc' | 'desc' }
	Sort      []map[string]interface{} `json:"sort"`
	SortOrder int64                    `json:"sort_order" api:"nullable"`
	TeamID    string                   `json:"team_id" api:"nullable" format:"uuid"`
	UpdatedAt string                   `json:"updated_at" api:"nullable"`
	UserID    string                   `json:"user_id" api:"nullable"`
	JSON      viewGetResponseJSON      `json:"-"`
}

A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug.

func (*ViewGetResponse) UnmarshalJSON

func (r *ViewGetResponse) UnmarshalJSON(data []byte) (err error)

type ViewGetResponseCombinator

type ViewGetResponseCombinator string
const (
	ViewGetResponseCombinatorAnd ViewGetResponseCombinator = "AND"
	ViewGetResponseCombinatorOr  ViewGetResponseCombinator = "OR"
)

func (ViewGetResponseCombinator) IsKnown

func (r ViewGetResponseCombinator) IsKnown() bool

type ViewNewParams

type ViewNewParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID           param.Field[string]                  `path:"teamId" api:"required" format:"uuid"`
	Name                 param.Field[string]                  `json:"name" api:"required"`
	ViewType             param.Field[string]                  `json:"view_type" api:"required"`
	ID                   param.Field[string]                  `json:"id" format:"uuid"`
	AggregationPropDefID param.Field[string]                  `json:"aggregation_prop_def_id" format:"uuid"`
	AggregationType      param.Field[string]                  `json:"aggregation_type"`
	ColumnLayout         param.Field[map[string]interface{}]  `json:"column_layout"`
	Combinator           param.Field[ViewNewParamsCombinator] `json:"combinator"`
	CreatedAt            param.Field[string]                  `json:"created_at"`
	CRMID                param.Field[string]                  `json:"crm_id" format:"uuid"`
	// Each entry is { slug: { comparator: value } }
	Filter param.Field[[]map[string]interface{}] `json:"filter"`
	// Property slug to group by
	GroupBy              param.Field[string]        `json:"group_by"`
	GroupHiddenOptionIDs param.Field[[]interface{}] `json:"group_hidden_option_ids"`
	GroupHideEmpty       param.Field[bool]          `json:"group_hide_empty"`
	GroupSort            param.Field[string]        `json:"group_sort"`
	Icon                 param.Field[string]        `json:"icon"`
	// Property slugs (dot-paths permitted for refs)
	Select param.Field[[]string] `json:"select"`
	// Each entry is { slug: 'asc' | 'desc' }
	Sort       param.Field[[]map[string]interface{}] `json:"sort"`
	SortOrder  param.Field[int64]                    `json:"sort_order"`
	BodyTeamID param.Field[string]                   `json:"team_id" format:"uuid"`
	UpdatedAt  param.Field[string]                   `json:"updated_at"`
	UserID     param.Field[string]                   `json:"user_id"`
}

func (ViewNewParams) MarshalJSON

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

type ViewNewParamsCombinator

type ViewNewParamsCombinator string
const (
	ViewNewParamsCombinatorAnd ViewNewParamsCombinator = "AND"
	ViewNewParamsCombinatorOr  ViewNewParamsCombinator = "OR"
)

func (ViewNewParamsCombinator) IsKnown

func (r ViewNewParamsCombinator) IsKnown() bool

type ViewNewParamsViewObjectType

type ViewNewParamsViewObjectType string
const (
	ViewNewParamsViewObjectTypeAction       ViewNewParamsViewObjectType = "action"
	ViewNewParamsViewObjectTypeDeal         ViewNewParamsViewObjectType = "deal"
	ViewNewParamsViewObjectTypeDocument     ViewNewParamsViewObjectType = "document"
	ViewNewParamsViewObjectTypeEvent        ViewNewParamsViewObjectType = "event"
	ViewNewParamsViewObjectTypeIdentity     ViewNewParamsViewObjectType = "identity"
	ViewNewParamsViewObjectTypeOrganization ViewNewParamsViewObjectType = "organization"
)

func (ViewNewParamsViewObjectType) IsKnown

func (r ViewNewParamsViewObjectType) IsKnown() bool

type ViewNewResponse

type ViewNewResponse struct {
	Name                 string                    `json:"name" api:"required"`
	ViewType             string                    `json:"view_type" api:"required"`
	ID                   string                    `json:"id" format:"uuid"`
	AggregationPropDefID string                    `json:"aggregation_prop_def_id" api:"nullable" format:"uuid"`
	AggregationType      string                    `json:"aggregation_type" api:"nullable"`
	ColumnLayout         map[string]interface{}    `json:"column_layout" api:"nullable"`
	Combinator           ViewNewResponseCombinator `json:"combinator"`
	CreatedAt            string                    `json:"created_at"`
	CRMID                string                    `json:"crm_id" api:"nullable" format:"uuid"`
	// Each entry is { slug: { comparator: value } }
	Filter []map[string]interface{} `json:"filter"`
	// Property slug to group by
	GroupBy              string        `json:"group_by" api:"nullable"`
	GroupHiddenOptionIDs []interface{} `json:"group_hidden_option_ids" api:"nullable"`
	GroupHideEmpty       bool          `json:"group_hide_empty" api:"nullable"`
	GroupSort            string        `json:"group_sort" api:"nullable"`
	Icon                 string        `json:"icon" api:"nullable"`
	// Property slugs (dot-paths permitted for refs)
	Select []string `json:"select"`
	// Each entry is { slug: 'asc' | 'desc' }
	Sort      []map[string]interface{} `json:"sort"`
	SortOrder int64                    `json:"sort_order" api:"nullable"`
	TeamID    string                   `json:"team_id" api:"nullable" format:"uuid"`
	UpdatedAt string                   `json:"updated_at" api:"nullable"`
	UserID    string                   `json:"user_id" api:"nullable"`
	JSON      viewNewResponseJSON      `json:"-"`
}

A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug.

func (*ViewNewResponse) UnmarshalJSON

func (r *ViewNewResponse) UnmarshalJSON(data []byte) (err error)

type ViewNewResponseCombinator

type ViewNewResponseCombinator string
const (
	ViewNewResponseCombinatorAnd ViewNewResponseCombinator = "AND"
	ViewNewResponseCombinatorOr  ViewNewResponseCombinator = "OR"
)

func (ViewNewResponseCombinator) IsKnown

func (r ViewNewResponseCombinator) IsKnown() bool

type ViewRecordListParams

type ViewRecordListParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
	Limit  param.Field[int64]  `query:"limit"`
	Page   param.Field[int64]  `query:"page"`
}

func (ViewRecordListParams) URLQuery

func (r ViewRecordListParams) URLQuery() (v url.Values)

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

type ViewRecordListParamsViewObjectType

type ViewRecordListParamsViewObjectType string
const (
	ViewRecordListParamsViewObjectTypeAction       ViewRecordListParamsViewObjectType = "action"
	ViewRecordListParamsViewObjectTypeDeal         ViewRecordListParamsViewObjectType = "deal"
	ViewRecordListParamsViewObjectTypeDocument     ViewRecordListParamsViewObjectType = "document"
	ViewRecordListParamsViewObjectTypeEvent        ViewRecordListParamsViewObjectType = "event"
	ViewRecordListParamsViewObjectTypeIdentity     ViewRecordListParamsViewObjectType = "identity"
	ViewRecordListParamsViewObjectTypeOrganization ViewRecordListParamsViewObjectType = "organization"
)

func (ViewRecordListParamsViewObjectType) IsKnown

type ViewRecordListResponse

type ViewRecordListResponse map[string]interface{}

type ViewRecordPinParams

type ViewRecordPinParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type ViewRecordPinParamsViewObjectType

type ViewRecordPinParamsViewObjectType string
const (
	ViewRecordPinParamsViewObjectTypeAction       ViewRecordPinParamsViewObjectType = "action"
	ViewRecordPinParamsViewObjectTypeDeal         ViewRecordPinParamsViewObjectType = "deal"
	ViewRecordPinParamsViewObjectTypeDocument     ViewRecordPinParamsViewObjectType = "document"
	ViewRecordPinParamsViewObjectTypeEvent        ViewRecordPinParamsViewObjectType = "event"
	ViewRecordPinParamsViewObjectTypeIdentity     ViewRecordPinParamsViewObjectType = "identity"
	ViewRecordPinParamsViewObjectTypeOrganization ViewRecordPinParamsViewObjectType = "organization"
)

func (ViewRecordPinParamsViewObjectType) IsKnown

type ViewRecordReorderParams

type ViewRecordReorderParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID    param.Field[string]   `path:"teamId" api:"required" format:"uuid"`
	ObjectIDs param.Field[[]string] `json:"object_ids" api:"required" format:"uuid"`
}

func (ViewRecordReorderParams) MarshalJSON

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

type ViewRecordReorderParamsViewObjectType

type ViewRecordReorderParamsViewObjectType string
const (
	ViewRecordReorderParamsViewObjectTypeAction       ViewRecordReorderParamsViewObjectType = "action"
	ViewRecordReorderParamsViewObjectTypeDeal         ViewRecordReorderParamsViewObjectType = "deal"
	ViewRecordReorderParamsViewObjectTypeDocument     ViewRecordReorderParamsViewObjectType = "document"
	ViewRecordReorderParamsViewObjectTypeEvent        ViewRecordReorderParamsViewObjectType = "event"
	ViewRecordReorderParamsViewObjectTypeIdentity     ViewRecordReorderParamsViewObjectType = "identity"
	ViewRecordReorderParamsViewObjectTypeOrganization ViewRecordReorderParamsViewObjectType = "organization"
)

func (ViewRecordReorderParamsViewObjectType) IsKnown

type ViewRecordService

type ViewRecordService struct {
	Options []option.RequestOption
}

ViewRecordService contains methods and other services that help with interacting with the micro 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 NewViewRecordService method instead.

func NewViewRecordService

func NewViewRecordService(opts ...option.RequestOption) (r *ViewRecordService)

NewViewRecordService 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 (*ViewRecordService) List

List records selected by a view (filters and sorts applied; pinned record_order overlaid first)

func (*ViewRecordService) Pin

func (r *ViewRecordService) Pin(ctx context.Context, viewObjectType ViewRecordPinParamsViewObjectType, viewID string, objectID string, body ViewRecordPinParams, opts ...option.RequestOption) (err error)

Pin a record to the view (append to record_order)

func (*ViewRecordService) Reorder

Bulk reorder pinned records

func (*ViewRecordService) Unpin

func (r *ViewRecordService) Unpin(ctx context.Context, viewObjectType ViewRecordUnpinParamsViewObjectType, viewID string, objectID string, body ViewRecordUnpinParams, opts ...option.RequestOption) (err error)

Unpin a record from the view

type ViewRecordUnpinParams

type ViewRecordUnpinParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	TeamID param.Field[string] `path:"teamId" api:"required" format:"uuid"`
}

type ViewRecordUnpinParamsViewObjectType

type ViewRecordUnpinParamsViewObjectType string
const (
	ViewRecordUnpinParamsViewObjectTypeAction       ViewRecordUnpinParamsViewObjectType = "action"
	ViewRecordUnpinParamsViewObjectTypeDeal         ViewRecordUnpinParamsViewObjectType = "deal"
	ViewRecordUnpinParamsViewObjectTypeDocument     ViewRecordUnpinParamsViewObjectType = "document"
	ViewRecordUnpinParamsViewObjectTypeEvent        ViewRecordUnpinParamsViewObjectType = "event"
	ViewRecordUnpinParamsViewObjectTypeIdentity     ViewRecordUnpinParamsViewObjectType = "identity"
	ViewRecordUnpinParamsViewObjectTypeOrganization ViewRecordUnpinParamsViewObjectType = "organization"
)

func (ViewRecordUnpinParamsViewObjectType) IsKnown

type ViewService

type ViewService struct {
	Options []option.RequestOption
	Records *ViewRecordService
}

ViewService contains methods and other services that help with interacting with the micro 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 NewViewService method instead.

func NewViewService

func NewViewService(opts ...option.RequestOption) (r *ViewService)

NewViewService 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 (*ViewService) Delete

func (r *ViewService) Delete(ctx context.Context, viewObjectType ViewDeleteParamsViewObjectType, viewID string, body ViewDeleteParams, opts ...option.RequestOption) (err error)

Delete a view bundle

func (*ViewService) Get

func (r *ViewService) Get(ctx context.Context, viewObjectType ViewGetParamsViewObjectType, viewID string, query ViewGetParams, opts ...option.RequestOption) (res *ViewGetResponse, err error)

Read a view bundle

func (*ViewService) New

func (r *ViewService) New(ctx context.Context, viewObjectType ViewNewParamsViewObjectType, params ViewNewParams, opts ...option.RequestOption) (res *ViewNewResponse, err error)

Create a view bundle (view + select/filter/sort)

func (*ViewService) Update

func (r *ViewService) Update(ctx context.Context, viewObjectType ViewUpdateParamsViewObjectType, viewID string, params ViewUpdateParams, opts ...option.RequestOption) (res *ViewUpdateResponse, err error)

Update a view bundle (select/filter/sort arrays are replaced wholesale when supplied)

type ViewUpdateParams

type ViewUpdateParams struct {
	// Use [option.WithTeamID] on the client to set a global default for this field.
	PathTeamID           param.Field[string]                     `path:"teamId" api:"required" format:"uuid"`
	AggregationPropDefID param.Field[string]                     `json:"aggregation_prop_def_id" format:"uuid"`
	AggregationType      param.Field[string]                     `json:"aggregation_type"`
	ColumnLayout         param.Field[map[string]interface{}]     `json:"column_layout"`
	Combinator           param.Field[ViewUpdateParamsCombinator] `json:"combinator"`
	CRMID                param.Field[string]                     `json:"crm_id" format:"uuid"`
	Filter               param.Field[[]map[string]interface{}]   `json:"filter"`
	GroupBy              param.Field[string]                     `json:"group_by"`
	GroupHiddenOptionIDs param.Field[[]interface{}]              `json:"group_hidden_option_ids"`
	GroupHideEmpty       param.Field[bool]                       `json:"group_hide_empty"`
	GroupSort            param.Field[string]                     `json:"group_sort"`
	Icon                 param.Field[string]                     `json:"icon"`
	Name                 param.Field[string]                     `json:"name"`
	Select               param.Field[[]string]                   `json:"select"`
	Sort                 param.Field[[]map[string]interface{}]   `json:"sort"`
	SortOrder            param.Field[int64]                      `json:"sort_order"`
	BodyTeamID           param.Field[string]                     `json:"team_id" format:"uuid"`
	UserID               param.Field[string]                     `json:"user_id"`
	ViewType             param.Field[string]                     `json:"view_type"`
}

func (ViewUpdateParams) MarshalJSON

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

type ViewUpdateParamsCombinator

type ViewUpdateParamsCombinator string
const (
	ViewUpdateParamsCombinatorAnd ViewUpdateParamsCombinator = "AND"
	ViewUpdateParamsCombinatorOr  ViewUpdateParamsCombinator = "OR"
)

func (ViewUpdateParamsCombinator) IsKnown

func (r ViewUpdateParamsCombinator) IsKnown() bool

type ViewUpdateParamsViewObjectType

type ViewUpdateParamsViewObjectType string
const (
	ViewUpdateParamsViewObjectTypeAction       ViewUpdateParamsViewObjectType = "action"
	ViewUpdateParamsViewObjectTypeDeal         ViewUpdateParamsViewObjectType = "deal"
	ViewUpdateParamsViewObjectTypeDocument     ViewUpdateParamsViewObjectType = "document"
	ViewUpdateParamsViewObjectTypeEvent        ViewUpdateParamsViewObjectType = "event"
	ViewUpdateParamsViewObjectTypeIdentity     ViewUpdateParamsViewObjectType = "identity"
	ViewUpdateParamsViewObjectTypeOrganization ViewUpdateParamsViewObjectType = "organization"
)

func (ViewUpdateParamsViewObjectType) IsKnown

type ViewUpdateResponse

type ViewUpdateResponse struct {
	Name                 string                       `json:"name" api:"required"`
	ViewType             string                       `json:"view_type" api:"required"`
	ID                   string                       `json:"id" format:"uuid"`
	AggregationPropDefID string                       `json:"aggregation_prop_def_id" api:"nullable" format:"uuid"`
	AggregationType      string                       `json:"aggregation_type" api:"nullable"`
	ColumnLayout         map[string]interface{}       `json:"column_layout" api:"nullable"`
	Combinator           ViewUpdateResponseCombinator `json:"combinator"`
	CreatedAt            string                       `json:"created_at"`
	CRMID                string                       `json:"crm_id" api:"nullable" format:"uuid"`
	// Each entry is { slug: { comparator: value } }
	Filter []map[string]interface{} `json:"filter"`
	// Property slug to group by
	GroupBy              string        `json:"group_by" api:"nullable"`
	GroupHiddenOptionIDs []interface{} `json:"group_hidden_option_ids" api:"nullable"`
	GroupHideEmpty       bool          `json:"group_hide_empty" api:"nullable"`
	GroupSort            string        `json:"group_sort" api:"nullable"`
	Icon                 string        `json:"icon" api:"nullable"`
	// Property slugs (dot-paths permitted for refs)
	Select []string `json:"select"`
	// Each entry is { slug: 'asc' | 'desc' }
	Sort      []map[string]interface{} `json:"sort"`
	SortOrder int64                    `json:"sort_order" api:"nullable"`
	TeamID    string                   `json:"team_id" api:"nullable" format:"uuid"`
	UpdatedAt string                   `json:"updated_at" api:"nullable"`
	UserID    string                   `json:"user_id" api:"nullable"`
	JSON      viewUpdateResponseJSON   `json:"-"`
}

A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug.

func (*ViewUpdateResponse) UnmarshalJSON

func (r *ViewUpdateResponse) UnmarshalJSON(data []byte) (err error)

type ViewUpdateResponseCombinator

type ViewUpdateResponseCombinator string
const (
	ViewUpdateResponseCombinatorAnd ViewUpdateResponseCombinator = "AND"
	ViewUpdateResponseCombinatorOr  ViewUpdateResponseCombinator = "OR"
)

func (ViewUpdateResponseCombinator) IsKnown

func (r ViewUpdateResponseCombinator) IsKnown() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL