Integration¶
38 types. Import any of them from opencode.types.
IntegrationAttempt
¶
attempt_id
class-attribute
instance-attribute
¶
attempt_id: IntegrationAttemptID = Field(
validation_alias="attemptID",
serialization_alias="attemptID",
)
IntegrationAttemptStatus
module-attribute
¶
IntegrationAttemptStatus: TypeAlias = Annotated[
Annotated[
IntegrationAttemptStatusPending, Tag("pending")
]
| Annotated[
IntegrationAttemptStatusComplete, Tag("complete")
]
| Annotated[
IntegrationAttemptStatusFailed, Tag("failed")
]
| Annotated[
IntegrationAttemptStatusExpired, Tag("expired")
]
| Annotated[
UnknownIntegrationAttemptStatus, Tag("__unknown__")
],
Discriminator(
discriminator(
"status",
"status",
["pending", "complete", "failed", "expired"],
)
),
]
IntegrationAttemptStatusComplete
¶
IntegrationAttemptStatusCompleteTime
¶
IntegrationAttemptStatusExpired
¶
IntegrationAttemptStatusExpiredTime
¶
IntegrationAttemptStatusFailed
¶
IntegrationAttemptStatusFailedTime
¶
IntegrationAttemptStatusPending
¶
IntegrationAttemptStatusPendingTime
¶
IntegrationAttemptTime
¶
IntegrationCommandAttempt
¶
attempt_id
class-attribute
instance-attribute
¶
attempt_id: IntegrationAttemptID = Field(
validation_alias="attemptID",
serialization_alias="attemptID",
)
IntegrationCommandAttemptStatus
module-attribute
¶
IntegrationCommandAttemptStatus: TypeAlias = Annotated[
Annotated[
IntegrationCommandAttemptStatusPending,
Tag("pending"),
]
| Annotated[
IntegrationCommandAttemptStatusComplete,
Tag("complete"),
]
| Annotated[
IntegrationCommandAttemptStatusFailed, Tag("failed")
]
| Annotated[
IntegrationCommandAttemptStatusExpired,
Tag("expired"),
]
| Annotated[
UnknownIntegrationCommandAttemptStatus,
Tag("__unknown__"),
],
Discriminator(
discriminator(
"status",
"status",
["pending", "complete", "failed", "expired"],
)
),
]
IntegrationCommandAttemptStatusComplete
¶
IntegrationCommandAttemptStatusCompleteTime
¶
IntegrationCommandAttemptStatusExpired
¶
IntegrationCommandAttemptStatusExpiredTime
¶
IntegrationCommandAttemptStatusFailed
¶
IntegrationCommandAttemptStatusFailedTime
¶
IntegrationCommandAttemptStatusPending
¶
IntegrationCommandAttemptStatusPendingTime
¶
IntegrationCommandAttemptTime
¶
IntegrationCommandConnectResponse
¶
IntegrationCommandMethod
¶
IntegrationCommandStatusResponse
¶
IntegrationEnvMethod
¶
IntegrationExternalMethod
¶
form
class-attribute
instance-attribute
¶
form: FormFields | None = Field(
default=None, exclude_if=is_none
)
IntegrationGetResponse
¶
IntegrationKeyMethod
¶
IntegrationListResponse
¶
IntegrationMethod
module-attribute
¶
IntegrationMethod: TypeAlias = Annotated[
Annotated[IntegrationOAuthMethod, Tag("oauth")]
| Annotated[IntegrationCommandMethod, Tag("command")]
| Annotated[IntegrationKeyMethod, Tag("key")]
| Annotated[IntegrationExternalMethod, Tag("external")]
| Annotated[IntegrationEnvMethod, Tag("env")]
| Annotated[
UnknownIntegrationMethod, Tag("__unknown__")
],
Discriminator(
discriminator(
"type",
"type",
["oauth", "command", "key", "external", "env"],
)
),
]
IntegrationOAuthMethod
¶
form
class-attribute
instance-attribute
¶
form: FormFields | None = Field(
default=None, exclude_if=is_none
)