Skip to content

Commit 5d1cc47

Browse files
feat(api): update via SDK Studio
1 parent bf46668 commit 5d1cc47

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-5d4e11bc46eeecee7363d56a9dfe946acee997d5b352c2b0a50c20e742c54d2d.yml
33
openapi_spec_hash: 333e53ad9c706296b9afdb8ff73bec8f
4-
config_hash: 79af9b3bec53ee798dddcf815befa25d
4+
config_hash: 0fdf285ddd8dee229fd84ea57df9080f

aliases.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type ErrorDetail = shared.ErrorDetail
2525
type ErrorEvent = shared.ErrorEvent
2626

2727
// This is an alias to an internal type.
28-
type ErrorEventError = shared.ErrorEventError
28+
type ErrorModel = shared.ErrorModel
2929

3030
// A log entry from the application.
3131
//

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- <a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared">shared</a>.<a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared#ErrorDetail">ErrorDetail</a>
44
- <a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared">shared</a>.<a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared#ErrorEvent">ErrorEvent</a>
5+
- <a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared">shared</a>.<a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared#ErrorModel">ErrorModel</a>
56
- <a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared">shared</a>.<a href="https://pkg.go.dev/github.com/onkernel/kernel-go-sdk/shared#LogEvent">LogEvent</a>
67

78
# Deployments

deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ type DeploymentFollowResponseUnion struct {
279279
// This field is from variant [DeploymentFollowResponseAppVersionSummaryEvent].
280280
EnvVars map[string]string `json:"env_vars"`
281281
// This field is from variant [shared.ErrorEvent].
282-
Error shared.ErrorEventError `json:"error"`
282+
Error shared.ErrorModel `json:"error"`
283283
JSON struct {
284284
Event respjson.Field
285285
Message respjson.Field

invocation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ type InvocationFollowResponseUnion struct {
322322
// This field is from variant [InvocationStateEvent].
323323
Invocation InvocationStateEventInvocation `json:"invocation"`
324324
// This field is from variant [shared.ErrorEvent].
325-
Error shared.ErrorEventError `json:"error"`
325+
Error shared.ErrorModel `json:"error"`
326326
JSON struct {
327327
Event respjson.Field
328328
Message respjson.Field

shared/shared.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (r *ErrorDetail) UnmarshalJSON(data []byte) error {
3939

4040
// An error event from the application.
4141
type ErrorEvent struct {
42-
Error ErrorEventError `json:"error,required"`
42+
Error ErrorModel `json:"error,required"`
4343
// Event type identifier (always "error").
4444
Event constant.Error `json:"event,required"`
4545
// Time the error occurred.
@@ -62,7 +62,7 @@ func (r *ErrorEvent) UnmarshalJSON(data []byte) error {
6262

6363
func (ErrorEvent) ImplInvocationFollowResponseUnion() {}
6464

65-
type ErrorEventError struct {
65+
type ErrorModel struct {
6666
// Application-specific error code (machine-readable)
6767
Code string `json:"code,required"`
6868
// Human-readable error description for debugging
@@ -82,8 +82,8 @@ type ErrorEventError struct {
8282
}
8383

8484
// Returns the unmodified JSON received from the API
85-
func (r ErrorEventError) RawJSON() string { return r.JSON.raw }
86-
func (r *ErrorEventError) UnmarshalJSON(data []byte) error {
85+
func (r ErrorModel) RawJSON() string { return r.JSON.raw }
86+
func (r *ErrorModel) UnmarshalJSON(data []byte) error {
8787
return apijson.UnmarshalRoot(data, r)
8888
}
8989

0 commit comments

Comments
 (0)