Files
tasks/common/versioninfo/request.go
Roey BermanandGitHub 4170bc8e64 Inline code from version-info-model (#8024)
## What changed?

Moved the code from github.com/temporalio/version-info-model into this
repository and removed insecure HTTPS setting.

## Why?

No reason to maintain a whole separate repo with the server being the
only dependent.
2025-07-09 17:09:55 +00:00

21 lines
629 B
Go

package versioninfo
// SDKINfo is a tuple of (SDK name, SDK version)
type SDKInfo struct {
Name string `json:"sdkName"`
Version string `json:"sdkVersion"`
}
// VersionCheckRequest provides basic info about the client and is used to produce VersionCheckResponse.
type VersionCheckRequest struct {
Product string `json:"product"`
Version string `json:"version"`
Arch string `json:"arch"`
OS string `json:"os"`
DB string `json:"db"`
ClusterID string `json:"cluster"`
// Encode as string for JS compatibility
Timestamp int64 `json:"timestamp,string"`
SDKInfo []SDKInfo `json:"sdkInfo"`
}