Skip to content

Commit

Permalink
feat(api): api update (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jan 24, 2025
1 parent 4f430fe commit 15db661
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 20
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-88eef6692dd2f29d0734587b0a255ce12fff9fa28b6c1d66d2b61364d2d0c311.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nirvana-labs%2Fnirvana-9b0b2954abe182969aa3bff89752c5ef6f9aefe22a6c9333d0047c8b94728d1c.yml
4 changes: 4 additions & 0 deletions operations/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,24 @@ func (r *OperationService) Get(ctx context.Context, operationID string, opts ...
// Operation details.
type Operation struct {
ID string `json:"id,required"`
CreatedAt string `json:"created_at,required"`
Kind OperationKind `json:"kind,required"`
ResourceID string `json:"resource_id,required"`
Status OperationStatus `json:"status,required"`
Type OperationType `json:"type,required"`
UpdatedAt string `json:"updated_at,required"`
JSON operationJSON `json:"-"`
}

// operationJSON contains the JSON metadata for the struct [Operation]
type operationJSON struct {
ID apijson.Field
CreatedAt apijson.Field
Kind apijson.Field
ResourceID apijson.Field
Status apijson.Field
Type apijson.Field
UpdatedAt apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit 15db661

Please sign in to comment.