inttegro.app

Models, requests, and enums for the Inttegro app resource.

The primary returned object is inttegro.app.App. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.

 1"""Models, requests, and enums for the Inttegro app resource.
 2
 3The primary returned object is ``inttegro.app.App``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK."""
 4
 5from importlib import import_module
 6from typing import TYPE_CHECKING, Any
 7
 8if TYPE_CHECKING:
 9    from .app import App as App
10    from .capabilities import Capabilities as Capabilities
11    from .capabilities import Capability as Capability
12    from .capabilities import CapabilityRequirement as CapabilityRequirement
13    from .capabilities import CapabilityRequirements as CapabilityRequirements
14    from .capabilities import CapabilityProjection as CapabilityProjection
15    from .create_request import CreateRequest as CreateRequest
16    from .create_request_relationship_policy import CreateRequestRelationshipPolicy as CreateRequestRelationshipPolicy
17    from .create_response import CreateResponse as CreateResponse
18    from .credential_owner import CredentialOwner as CredentialOwner
19    from .lookup_response import LookupResponse as LookupResponse
20    from .lookup_response_app import LookupResponseApp as LookupResponseApp
21    from .management_role import ManagementRole as ManagementRole
22    from .relationship import Relationship as Relationship
23    from .relationship_kind import RelationshipKind as RelationshipKind
24    from .relationship_policy import RelationshipPolicy as RelationshipPolicy
25    from .relationship_status import RelationshipStatus as RelationshipStatus
26    from .secret_key import SecretKey as SecretKey
27    from .update_request import UpdateRequest as UpdateRequest
28    from .update_response import UpdateResponse as UpdateResponse
29    from .update_response_app import UpdateResponseApp as UpdateResponseApp
30
31
32_EXPORTS: dict[str, tuple[str, str]] = {
33    "App": ("inttegro.app.app", "App"),
34    "Capabilities": ("inttegro.app.capabilities", "Capabilities"),
35    "Capability": ("inttegro.app.capabilities", "Capability"),
36    "CapabilityRequirement": ("inttegro.app.capabilities", "CapabilityRequirement"),
37    "CapabilityRequirements": ("inttegro.app.capabilities", "CapabilityRequirements"),
38    "CapabilityProjection": ("inttegro.app.capabilities", "CapabilityProjection"),
39    "CreateRequest": ("inttegro.app.create_request", "CreateRequest"),
40    "CreateRequestRelationshipPolicy": ("inttegro.app.create_request_relationship_policy", "CreateRequestRelationshipPolicy"),
41    "CreateResponse": ("inttegro.app.create_response", "CreateResponse"),
42    "CredentialOwner": ("inttegro.app.credential_owner", "CredentialOwner"),
43    "LookupResponse": ("inttegro.app.lookup_response", "LookupResponse"),
44    "LookupResponseApp": ("inttegro.app.lookup_response_app", "LookupResponseApp"),
45    "ManagementRole": ("inttegro.app.management_role", "ManagementRole"),
46    "Relationship": ("inttegro.app.relationship", "Relationship"),
47    "RelationshipKind": ("inttegro.app.relationship_kind", "RelationshipKind"),
48    "RelationshipPolicy": ("inttegro.app.relationship_policy", "RelationshipPolicy"),
49    "RelationshipStatus": ("inttegro.app.relationship_status", "RelationshipStatus"),
50    "SecretKey": ("inttegro.app.secret_key", "SecretKey"),
51    "UpdateRequest": ("inttegro.app.update_request", "UpdateRequest"),
52    "UpdateResponse": ("inttegro.app.update_response", "UpdateResponse"),
53    "UpdateResponseApp": ("inttegro.app.update_response_app", "UpdateResponseApp"),
54}
55
56__all__ = [
57    "App",
58    "Capabilities",
59    "Capability",
60    "CapabilityRequirement",
61    "CapabilityRequirements",
62    "CapabilityProjection",
63    "CreateRequest",
64    "CreateRequestRelationshipPolicy",
65    "CreateResponse",
66    "CredentialOwner",
67    "LookupResponse",
68    "LookupResponseApp",
69    "ManagementRole",
70    "Relationship",
71    "RelationshipKind",
72    "RelationshipPolicy",
73    "RelationshipStatus",
74    "SecretKey",
75    "UpdateRequest",
76    "UpdateResponse",
77    "UpdateResponseApp",
78]
79
80
81def __getattr__(name: str) -> Any:
82    """Load a public resource type on first access."""
83    try:
84        module_name, attribute_name = _EXPORTS[name]
85    except KeyError:
86        raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None
87    value = getattr(import_module(module_name), attribute_name)
88    globals()[name] = value
89    return value
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class App(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class App(ApiModel):
15    """Typed app data in the app resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``Application``.
24    """
25    id: str = field(init=False)
26    """Unique product identifier with prod_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
27    name: str = field(init=False)
28    """Product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
29    alias: str | None = field(init=False)
30    """The alias associated with this app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string"""
31    description: str | None = field(init=False)
32    """Short description. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string"""
33    created_at: datetime = field(init=False)
34    """Product creation timestamp. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
35    updated_at: datetime | None = field(init=False)
36    """Last update timestamp. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)"""
37    archived_at: datetime | None = field(init=False)
38    """Archive timestamp (if archived). Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)"""
39    capabilities: CapabilityProjection = field(init=False)
40    """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object"""
41    children_policy: ChildrenPolicy | None = field(init=False)
42    """Active children policy assigned to this app. Optional; nullable. Python type: ``ChildrenPolicy | None``; wire name: ``children_policy``; JSON type: object"""
43    secret_key: ApplicationSecretKey | None = field(init=False)
44    """The secret key associated with this app. Optional; nullable. Python type: ``ApplicationSecretKey | None``; wire name: ``secret_key``; JSON type: object"""
45    relationship: ApplicationRelationship | None = field(init=False)
46    """The relationship associated with this app. Optional; nullable. Python type: ``ApplicationRelationship | None``; wire name: ``relationship``; JSON type: object"""
47    operating_policy: ApplicationOperatingPolicy | None = field(init=False)
48    """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""

Typed app data in the app resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: Application.

id: str

Unique product identifier with prod_ prefix. Required. Python type: str; wire name: id; JSON type: string

name: str

Product name. Required. Python type: str; wire name: name; JSON type: string

alias: str | None

The alias associated with this app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string

description: str | None

Short description. Optional; nullable. Python type: str | None; wire name: description; JSON type: string

created_at: datetime.datetime

Product creation timestamp. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

updated_at: datetime.datetime | None

Last update timestamp. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)

archived_at: datetime.datetime | None

Archive timestamp (if archived). Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)

capabilities: CapabilityProjection

Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object

children_policy: inttegro.children_policy.ChildrenPolicy | None

Active children policy assigned to this app. Optional; nullable. Python type: ChildrenPolicy | None; wire name: children_policy; JSON type: object

secret_key: SecretKey | None

The secret key associated with this app. Optional; nullable. Python type: ApplicationSecretKey | None; wire name: secret_key; JSON type: object

relationship: Relationship | None

The relationship associated with this app. Optional; nullable. Python type: ApplicationRelationship | None; wire name: relationship; JSON type: object

operating_policy: inttegro.operating_policy.Snapshot | None

Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Capabilities(inttegro._model_base.ApiModel):
44@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
45class Capabilities(ApiModel):
46    """Payment and payout capabilities available to the authenticated app."""
47
48    payments: Capability = field(init=False)
49    payouts: Capability = field(init=False)

Payment and payout capabilities available to the authenticated app.

payments: Capability
payouts: Capability
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Capability(inttegro._model_base.ApiModel):
29@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
30class Capability(ApiModel):
31    """The current availability of one commerce capability."""
32
33    status: Literal["enabled", "restricted", "pending_review"] = field(init=False)
34    status_changed_at: datetime = field(init=False)
35    status_reason: Literal[
36        "setup_incomplete",
37        "account_under_review",
38        "account_restricted",
39        "account_inactive",
40    ] | None = field(init=False)
41    requirements: CapabilityRequirements | None = field(init=False)

The current availability of one commerce capability.

status: Literal['enabled', 'restricted', 'pending_review']
status_changed_at: datetime.datetime
status_reason: Optional[Literal['setup_incomplete', 'account_under_review', 'account_restricted', 'account_inactive']]
requirements: CapabilityRequirements | None
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CapabilityRequirement(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class CapabilityRequirement(ApiModel):
15    """A setup item that must be completed before a capability can be enabled."""
16
17    code: str = field(init=False)
18    description: str = field(init=False)
19    due_at: datetime | None = field(init=False)

A setup item that must be completed before a capability can be enabled.

code: str
description: str
due_at: datetime.datetime | None
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CapabilityRequirements(inttegro._model_base.ApiModel):
22@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
23class CapabilityRequirements(ApiModel):
24    """Requirements that currently prevent a capability from being enabled."""
25
26    currently_due: list[CapabilityRequirement] = field(init=False)

Requirements that currently prevent a capability from being enabled.

currently_due: list[CapabilityRequirement]
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CapabilityProjection(inttegro._model_base.ApiModel):
52@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
53class CapabilityProjection(ApiModel):
54    """Known capability states currently exposed on an app resource."""
55
56    payments: Capability | None = field(init=False)
57    payouts: Capability | None = field(init=False)

Known capability states currently exposed on an app resource.

payments: Capability | None
payouts: Capability | None
@dataclass(frozen=True, slots=True, kw_only=True)
class CreateRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class CreateRequest(ApiRequest):
15    """Parameters accepted by the create request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``CreateApplicationRequest``.
22    """
23    alias: str | UnsetType = field(default=UNSET)
24    """The alias associated with this create request. Optional. Python type: ``str``; wire name: ``alias``; JSON type: string"""
25    description: str | UnsetType = field(default=UNSET)
26    """Human-readable description of the create request. Optional. Python type: ``str``; wire name: ``description``; JSON type: string"""
27    legal_entity_type: str | UnsetType = field(default=UNSET)
28    """The legal entity type associated with this create request. Optional. Python type: ``str``; wire name: ``legal_entity_type``; JSON type: string"""
29    placement_parent_application_id: str | UnsetType = field(default=UNSET)
30    """Identifier of the related placement parent application. Optional. Python type: ``str``; wire name: ``placement_parent_application_id``; JSON type: string"""
31    relationship_policy: CreateApplicationRequestRelationshipPolicy | UnsetType = field(default=UNSET)
32    """The relationship policy associated with this create request. Optional. Python type: ``CreateApplicationRequestRelationshipPolicy``; wire name: ``relationship_policy``; JSON type: object"""
33    name: str
34    """Human-readable name of the create request. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
35    operating_policy: OperatingPolicySelection | UnsetType = field(default=UNSET)
36    """Named or inline operating policy. Optional. Python type: ``OperatingPolicySelection``; wire name: ``operating_policy``; JSON type: object"""

Parameters accepted by the create request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: CreateApplicationRequest.

CreateRequest( *, alias: str | inttegro._request_base.UnsetType = UNSET, description: str | inttegro._request_base.UnsetType = UNSET, legal_entity_type: str | inttegro._request_base.UnsetType = UNSET, placement_parent_application_id: str | inttegro._request_base.UnsetType = UNSET, relationship_policy: CreateRequestRelationshipPolicy | inttegro._request_base.UnsetType = UNSET, name: str, operating_policy: inttegro.operating_policy.IDSelection | inttegro.operating_policy.InlineSelection | inttegro._request_base.UnsetType = UNSET)
alias: str | inttegro._request_base.UnsetType

The alias associated with this create request. Optional. Python type: str; wire name: alias; JSON type: string

description: str | inttegro._request_base.UnsetType

Human-readable description of the create request. Optional. Python type: str; wire name: description; JSON type: string

legal_entity_type: str | inttegro._request_base.UnsetType

The legal entity type associated with this create request. Optional. Python type: str; wire name: legal_entity_type; JSON type: string

placement_parent_application_id: str | inttegro._request_base.UnsetType

Identifier of the related placement parent application. Optional. Python type: str; wire name: placement_parent_application_id; JSON type: string

relationship_policy: CreateRequestRelationshipPolicy | inttegro._request_base.UnsetType

The relationship policy associated with this create request. Optional. Python type: CreateApplicationRequestRelationshipPolicy; wire name: relationship_policy; JSON type: object

name: str

Human-readable name of the create request. Required. Python type: str; wire name: name; JSON type: string

operating_policy: inttegro.operating_policy.IDSelection | inttegro.operating_policy.InlineSelection | inttegro._request_base.UnsetType

Named or inline operating policy. Optional. Python type: OperatingPolicySelection; wire name: operating_policy; JSON type: object

@dataclass(frozen=True, slots=True, kw_only=True)
class CreateRequestRelationshipPolicy(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class CreateRequestRelationshipPolicy(ApiRequest):
15    """Parameters accepted by the create request relationship policy operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``CreateApplicationRequestRelationshipPolicy``.
22    """
23    child_standing: str | UnsetType = field(default=UNSET)
24    """The child standing associated with this create request relationship policy. Optional. Python type: ``str``; wire name: ``child_standing``; JSON type: string"""
25    management: Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD] | UnsetType = field(default=UNSET)
26    """The management associated with this create request relationship policy. Optional. Python type: ``Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD]``; wire name: ``management``; JSON type: string"""
27    credentials: Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT] | UnsetType = field(default=UNSET)
28    """The credentials associated with this create request relationship policy. Optional. Python type: ``Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT]``; wire name: ``credentials``; JSON type: string"""

Parameters accepted by the create request relationship policy operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: CreateApplicationRequestRelationshipPolicy.

CreateRequestRelationshipPolicy( *, child_standing: str | inttegro._request_base.UnsetType = UNSET, management: Union[Literal['parent', 'child', <ManagementRole.PARENT: 'parent'>, <ManagementRole.CHILD: 'child'>], inttegro._request_base.UnsetType] = UNSET, credentials: Union[Literal['child', 'parent', <CredentialOwner.CHILD: 'child'>, <CredentialOwner.PARENT: 'parent'>], inttegro._request_base.UnsetType] = UNSET)
child_standing: str | inttegro._request_base.UnsetType

The child standing associated with this create request relationship policy. Optional. Python type: str; wire name: child_standing; JSON type: string

management: Union[Literal['parent', 'child', <ManagementRole.PARENT: 'parent'>, <ManagementRole.CHILD: 'child'>], inttegro._request_base.UnsetType]

The management associated with this create request relationship policy. Optional. Python type: Literal['parent', 'child', AppManagementRole.PARENT, AppManagementRole.CHILD]; wire name: management; JSON type: string

credentials: Union[Literal['child', 'parent', <CredentialOwner.CHILD: 'child'>, <CredentialOwner.PARENT: 'parent'>], inttegro._request_base.UnsetType]

The credentials associated with this create request relationship policy. Optional. Python type: Literal['child', 'parent', AppCredentialOwner.CHILD, AppCredentialOwner.PARENT]; wire name: credentials; JSON type: string

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class CreateResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class CreateResponse(ApiModel):
14    """Typed response returned by the create operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``CreateApplicationResponse``.
23    """
24    app: Application = field(init=False)
25    """The app associated with this create response. Required. Python type: ``Application``; wire name: ``app``; JSON type: object"""

Typed response returned by the create operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: CreateApplicationResponse.

app: App

The app associated with this create response. Required. Python type: Application; wire name: app; JSON type: object

class CredentialOwner(inttegro._enum_base.WireEnum):
11class CredentialOwner(WireEnum):
12    """Typed credential owner data in the app resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``AppCredentialOwner``.
18    """
19    CHILD = "child"
20    """Wire value ``child`` (child)"""
21    PARENT = "parent"
22    """Wire value ``parent`` (parent)"""

Typed credential owner data in the app resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: AppCredentialOwner.

CHILD = <CredentialOwner.CHILD: 'child'>

Wire value child (child)

PARENT = <CredentialOwner.PARENT: 'parent'>

Wire value parent (parent)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class LookupResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class LookupResponse(ApiModel):
14    """Typed response returned by the lookup operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``LookupApplicationResponse``.
23    """
24    app: LookupApplicationResponseApp = field(init=False)
25    """The app associated with this lookup response. Required. Python type: ``LookupApplicationResponseApp``; wire name: ``app``; JSON type: object"""

Typed response returned by the lookup operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: LookupApplicationResponse.

The app associated with this lookup response. Required. Python type: LookupApplicationResponseApp; wire name: app; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class LookupResponseApp(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class LookupResponseApp(ApiModel):
15    """Typed lookup response app data in the app resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``LookupApplicationResponseApp``.
24    """
25    id: str = field(init=False)
26    """Unique product identifier with prod_ prefix. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
27    name: str = field(init=False)
28    """Product name. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
29    alias: str | None = field(init=False)
30    """The alias associated with this lookup response app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string"""
31    description: str | None = field(init=False)
32    """Short description. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string"""
33    created_at: datetime = field(init=False)
34    """Product creation timestamp. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
35    updated_at: datetime | None = field(init=False)
36    """Last update timestamp. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)"""
37    archived_at: datetime | None = field(init=False)
38    """Archive timestamp (if archived). Optional; nullable. Python type: ``datetime | None``; wire name: ``archived_at``; JSON type: string (date-time)"""
39    capabilities: CapabilityProjection = field(init=False)
40    """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object"""
41    relationship: ApplicationRelationship | None = field(init=False)
42    """Direct placement relationship for this app. Optional; nullable. Python type: ``ApplicationRelationship | None``; wire name: ``relationship``; JSON type: object"""
43    operating_policy: ApplicationOperatingPolicy | None = field(init=False)
44    """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""

Typed lookup response app data in the app resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: LookupApplicationResponseApp.

id: str

Unique product identifier with prod_ prefix. Required. Python type: str; wire name: id; JSON type: string

name: str

Product name. Required. Python type: str; wire name: name; JSON type: string

alias: str | None

The alias associated with this lookup response app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string

description: str | None

Short description. Optional; nullable. Python type: str | None; wire name: description; JSON type: string

created_at: datetime.datetime

Product creation timestamp. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

updated_at: datetime.datetime | None

Last update timestamp. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)

archived_at: datetime.datetime | None

Archive timestamp (if archived). Optional; nullable. Python type: datetime | None; wire name: archived_at; JSON type: string (date-time)

capabilities: CapabilityProjection

Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object

relationship: Relationship | None

Direct placement relationship for this app. Optional; nullable. Python type: ApplicationRelationship | None; wire name: relationship; JSON type: object

operating_policy: inttegro.operating_policy.Snapshot | None

Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object

class ManagementRole(inttegro._enum_base.WireEnum):
11class ManagementRole(WireEnum):
12    """Typed management role data in the app resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``AppManagementRole``.
18    """
19    PARENT = "parent"
20    """Wire value ``parent`` (parent)"""
21    CHILD = "child"
22    """Wire value ``child`` (child)"""

Typed management role data in the app resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: AppManagementRole.

PARENT = <ManagementRole.PARENT: 'parent'>

Wire value parent (parent)

CHILD = <ManagementRole.CHILD: 'child'>

Wire value child (child)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Relationship(inttegro._model_base.ApiModel):
14@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
15class Relationship(ApiModel):
16    """Typed relationship data in the app resource namespace.
17
18    Instances are immutable API responses. ``from_dict()`` decodes nested
19    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
20    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
21    Fields not returned by the API remain absent and can still be queried
22    through mapping-style access.
23
24    API contract schema: ``ApplicationRelationship``.
25    """
26    id: str = field(init=False)
27    """Order that consumed the Buy link. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
28    kind: Literal['placement'] = field(init=False)
29    """The kind associated with this relationship. Optional. Python type: ``Literal['placement']``; wire name: ``kind``; JSON type: string"""
30    parent: RelationshipParent = field(init=False)
31    """Application that directly contains the app. Required. Python type: ``RelationshipParent``; wire name: ``parent``; JSON type: object"""
32    status: Literal['active', 'inactive', 'suspended', 'revoked'] = field(init=False)
33    """Current lifecycle status of the relationship. Optional. Python type: ``Literal['active', 'inactive', 'suspended', 'revoked']``; wire name: ``status``; JSON type: string"""
34    created_at: datetime = field(init=False)
35    """When order creation consumed the single-use Buy link. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""

Typed relationship data in the app resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ApplicationRelationship.

id: str

Order that consumed the Buy link. Required. Python type: str; wire name: id; JSON type: string

kind: Literal['placement']

The kind associated with this relationship. Optional. Python type: Literal['placement']; wire name: kind; JSON type: string

parent: inttegro.app.relationship.RelationshipParent

Application that directly contains the app. Required. Python type: RelationshipParent; wire name: parent; JSON type: object

status: Literal['active', 'inactive', 'suspended', 'revoked']

Current lifecycle status of the relationship. Optional. Python type: Literal['active', 'inactive', 'suspended', 'revoked']; wire name: status; JSON type: string

created_at: datetime.datetime

When order creation consumed the single-use Buy link. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

class RelationshipKind(inttegro._enum_base.WireEnum):
11class RelationshipKind(WireEnum):
12    """Typed relationship kind data in the app resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``AppRelationshipKind``.
18    """
19    PLACEMENT = "placement"
20    """Wire value ``placement`` (placement)"""

Typed relationship kind data in the app resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: AppRelationshipKind.

PLACEMENT = <RelationshipKind.PLACEMENT: 'placement'>

Wire value placement (placement)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class RelationshipPolicy(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class RelationshipPolicy(ApiModel):
15    """Typed relationship policy data in the app resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``ApplicationRelationshipPolicy``.
24    """
25    child_standing: str = field(init=False)
26    """The child standing associated with this relationship policy. Required. Python type: ``str``; wire name: ``child_standing``; JSON type: string"""
27    management: Literal['parent', 'child'] = field(init=False)
28    """The management associated with this relationship policy. Required. Python type: ``Literal['parent', 'child']``; wire name: ``management``; JSON type: string"""
29    credentials: Literal['child', 'parent'] = field(init=False)
30    """The credentials associated with this relationship policy. Required. Python type: ``Literal['child', 'parent']``; wire name: ``credentials``; JSON type: string"""

Typed relationship policy data in the app resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ApplicationRelationshipPolicy.

child_standing: str

The child standing associated with this relationship policy. Required. Python type: str; wire name: child_standing; JSON type: string

management: Literal['parent', 'child']

The management associated with this relationship policy. Required. Python type: Literal['parent', 'child']; wire name: management; JSON type: string

credentials: Literal['child', 'parent']

The credentials associated with this relationship policy. Required. Python type: Literal['child', 'parent']; wire name: credentials; JSON type: string

class RelationshipStatus(inttegro._enum_base.WireEnum):
11class RelationshipStatus(WireEnum):
12    """Typed relationship status data in the app resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``AppRelationshipStatus``.
18    """
19    ACTIVE = "active"
20    """Wire value ``active`` (active)"""
21    INACTIVE = "inactive"
22    """Wire value ``inactive`` (inactive)"""
23    SUSPENDED = "suspended"
24    """Wire value ``suspended`` (suspended)"""
25    REVOKED = "revoked"
26    """Wire value ``revoked`` (revoked)"""

Typed relationship status data in the app resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: AppRelationshipStatus.

ACTIVE = <RelationshipStatus.ACTIVE: 'active'>

Wire value active (active)

INACTIVE = <RelationshipStatus.INACTIVE: 'inactive'>

Wire value inactive (inactive)

SUSPENDED = <RelationshipStatus.SUSPENDED: 'suspended'>

Wire value suspended (suspended)

REVOKED = <RelationshipStatus.REVOKED: 'revoked'>

Wire value revoked (revoked)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class SecretKey(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class SecretKey(ApiModel):
15    """Newly generated secret key. The token is returned once and cannot be retrieved later.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``ApplicationSecretKey``.
24    """
25    id: str | None = field(init=False)
26    """Secret key identifier. Required; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string"""
27    token_type: str | None = field(init=False)
28    """The token type associated with this secret key. Required; nullable. Python type: ``str | None``; wire name: ``token_type``; JSON type: string. Constraints: allowed values ``bearer``"""
29    issued_at: datetime | None = field(init=False)
30    """Timestamp for issued at. Required; nullable. Python type: ``datetime | None``; wire name: ``issued_at``; JSON type: string (date-time)"""
31    token: str | None = field(init=False)
32    """One-time bearer token for the generated key. Required; nullable. Python type: ``str | None``; wire name: ``token``; JSON type: string"""

Newly generated secret key. The token is returned once and cannot be retrieved later.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: ApplicationSecretKey.

id: str | None

Secret key identifier. Required; nullable. Python type: str | None; wire name: id; JSON type: string

token_type: str | None

The token type associated with this secret key. Required; nullable. Python type: str | None; wire name: token_type; JSON type: string. Constraints: allowed values bearer

issued_at: datetime.datetime | None

Timestamp for issued at. Required; nullable. Python type: datetime | None; wire name: issued_at; JSON type: string (date-time)

token: str | None

One-time bearer token for the generated key. Required; nullable. Python type: str | None; wire name: token; JSON type: string

@dataclass(frozen=True, slots=True, kw_only=True)
class UpdateRequest(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class UpdateRequest(ApiRequest):
15    """Parameters accepted by the update request operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``UpdateApplicationRequest``.
22    """
23    name: str | UnsetType = field(default=UNSET)
24    """Human-readable name of the update request. Optional. Python type: ``str``; wire name: ``name``; JSON type: string"""
25    alias: str | UnsetType = field(default=UNSET)
26    """The alias associated with this update request. Optional. Python type: ``str``; wire name: ``alias``; JSON type: string"""
27    description: str | UnsetType = field(default=UNSET)
28    """Human-readable description of the update request. Optional. Python type: ``str``; wire name: ``description``; JSON type: string"""
29    legal_entity_type: str | UnsetType = field(default=UNSET)
30    """The legal entity type associated with this update request. Optional. Python type: ``str``; wire name: ``legal_entity_type``; JSON type: string"""
31    operating_policy: OperatingPolicySelection | UnsetType = field(default=UNSET)
32    """Named or inline operating policy. Optional. Python type: ``OperatingPolicySelection``; wire name: ``operating_policy``; JSON type: object"""

Parameters accepted by the update request operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: UpdateApplicationRequest.

UpdateRequest( *, name: str | inttegro._request_base.UnsetType = UNSET, alias: str | inttegro._request_base.UnsetType = UNSET, description: str | inttegro._request_base.UnsetType = UNSET, legal_entity_type: str | inttegro._request_base.UnsetType = UNSET, operating_policy: inttegro.operating_policy.IDSelection | inttegro.operating_policy.InlineSelection | inttegro._request_base.UnsetType = UNSET)
name: str | inttegro._request_base.UnsetType

Human-readable name of the update request. Optional. Python type: str; wire name: name; JSON type: string

alias: str | inttegro._request_base.UnsetType

The alias associated with this update request. Optional. Python type: str; wire name: alias; JSON type: string

description: str | inttegro._request_base.UnsetType

Human-readable description of the update request. Optional. Python type: str; wire name: description; JSON type: string

legal_entity_type: str | inttegro._request_base.UnsetType

The legal entity type associated with this update request. Optional. Python type: str; wire name: legal_entity_type; JSON type: string

operating_policy: inttegro.operating_policy.IDSelection | inttegro.operating_policy.InlineSelection | inttegro._request_base.UnsetType

Named or inline operating policy. Optional. Python type: OperatingPolicySelection; wire name: operating_policy; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class UpdateResponse(inttegro._model_base.ApiModel):
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
13class UpdateResponse(ApiModel):
14    """Typed response returned by the update operation.
15
16    Instances are immutable API responses. ``from_dict()`` decodes nested
17    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
18    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
19    Fields not returned by the API remain absent and can still be queried
20    through mapping-style access.
21
22    API contract schema: ``UpdateApplicationResponse``.
23    """
24    app: UpdateApplicationResponseApp = field(init=False)
25    """The app associated with this update response. Required. Python type: ``UpdateApplicationResponseApp``; wire name: ``app``; JSON type: object"""

Typed response returned by the update operation.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: UpdateApplicationResponse.

The app associated with this update response. Required. Python type: UpdateApplicationResponseApp; wire name: app; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class UpdateResponseApp(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class UpdateResponseApp(ApiModel):
15    """Typed update response app data in the app resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``UpdateApplicationResponseApp``.
24    """
25    id: str = field(init=False)
26    """Product identifier returned by the update operation. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
27    name: str = field(init=False)
28    """Human-readable name of the update response app. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
29    alias: str | None = field(init=False)
30    """The alias associated with this update response app. Optional; nullable. Python type: ``str | None``; wire name: ``alias``; JSON type: string"""
31    description: str | None = field(init=False)
32    """Human-readable description of the update response app. Optional; nullable. Python type: ``str | None``; wire name: ``description``; JSON type: string"""
33    created_at: datetime = field(init=False)
34    """When the update response app was created. Required. Python type: ``datetime``; wire name: ``created_at``; JSON type: string (date-time)"""
35    updated_at: datetime | None = field(init=False)
36    """When the update response app was last updated. Optional; nullable. Python type: ``datetime | None``; wire name: ``updated_at``; JSON type: string (date-time)"""
37    capabilities: CapabilityProjection = field(init=False)
38    """Known public capabilities currently available to this app. Required. Python type: ``CapabilityProjection``; wire name: ``capabilities``; JSON type: object"""
39    operating_policy: ApplicationOperatingPolicy | None = field(init=False)
40    """Gated immutable operating-policy snapshot. Optional; nullable. Python type: ``ApplicationOperatingPolicy | None``; wire name: ``operating_policy``; JSON type: object"""

Typed update response app data in the app resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: UpdateApplicationResponseApp.

id: str

Product identifier returned by the update operation. Required. Python type: str; wire name: id; JSON type: string

name: str

Human-readable name of the update response app. Required. Python type: str; wire name: name; JSON type: string

alias: str | None

The alias associated with this update response app. Optional; nullable. Python type: str | None; wire name: alias; JSON type: string

description: str | None

Human-readable description of the update response app. Optional; nullable. Python type: str | None; wire name: description; JSON type: string

created_at: datetime.datetime

When the update response app was created. Required. Python type: datetime; wire name: created_at; JSON type: string (date-time)

updated_at: datetime.datetime | None

When the update response app was last updated. Optional; nullable. Python type: datetime | None; wire name: updated_at; JSON type: string (date-time)

capabilities: CapabilityProjection

Known public capabilities currently available to this app. Required. Python type: CapabilityProjection; wire name: capabilities; JSON type: object

operating_policy: inttegro.operating_policy.Snapshot | None

Gated immutable operating-policy snapshot. Optional; nullable. Python type: ApplicationOperatingPolicy | None; wire name: operating_policy; JSON type: object