Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 5, 2025
1 parent 1a6aed8 commit c511951
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-76adb3ec741cc2142bfab5258e5a81c5dddf75376e28b20d794bfc22cd66dd85.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-ba7ca51ae8c674c16740d0254504bc208d0c3ea5f9970e347e49e70a22dd9072.yml
5 changes: 5 additions & 0 deletions transactional.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ type TransactionalSendParams struct {
ExpiresAt param.Field[string] `json:"expires_at"`
// The Sender ID.
From param.Field[string] `json:"from"`
// A BCP-47 formatted locale string with the language the text message will be sent
// to. If there's no locale set, the language will be determined by the country
// code of the phone number. If the language specified doesn't exist, the default
// set on the template will be used.
Locale param.Field[string] `json:"locale"`
// The variables to be replaced in the template.
Variables param.Field[map[string]string] `json:"variables"`
}
Expand Down
1 change: 1 addition & 0 deletions transactional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestTransactionalSendWithOptionalParams(t *testing.T) {
CorrelationID: prelude.F("correlation_id"),
ExpiresAt: prelude.F("expires_at"),
From: prelude.F("from"),
Locale: prelude.F("el-GR"),
Variables: prelude.F(map[string]string{
"foo": "bar",
}),
Expand Down
3 changes: 2 additions & 1 deletion verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ type VerificationNewParamsOptions struct {
CodeSize param.Field[int64] `json:"code_size"`
// The custom code to use for OTP verification. This feature is only available for
// compatibility purposes and subject to Prelude’s approval. Contact us to discuss
// your use case.
// your use case. For more details, refer to
// [Multi Routing](/concepts/multi-routing).
CustomCode param.Field[string] `json:"custom_code"`
// A BCP-47 formatted locale string with the language the text message will be sent
// to. If there's no locale set, the language will be determined by the country
Expand Down

0 comments on commit c511951

Please sign in to comment.