Skip to content

Commit db135bd

Browse files
feat(messaging): add wait_seconds to OutboundMessagePayload example
1 parent 3ea4295 commit db135bd

File tree

3 files changed

+129
-63
lines changed

3 files changed

+129
-63
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 953
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-8b57ba42d490172b1da263344e4a074d94b96c2801ba8329a6be5c743c932303.yml
3-
openapi_spec_hash: 6c41c630cd8ab8236ae8f8611cd3e6d9
4-
config_hash: 0ba5866e810d1835ea3496dd0331f5ba
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx%2Ftelnyx-cc9edf20f74f534f6708d508cb384dde785eb3ec65a98127d4bd9ddbe780d49e.yml
3+
openapi_spec_hash: 8df4bd61f3043ab8b2fb6d1761ca8c4a
4+
config_hash: e7634559d6e4119c31101d73379495b4

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3730,7 +3730,6 @@ Methods:
37303730

37313731
Response Types:
37323732

3733-
- <a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4">telnyx</a>.<a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4#BulkSimCardAction">BulkSimCardAction</a>
37343733
- <a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4">telnyx</a>.<a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4#SimCardAction">SimCardAction</a>
37353734
- <a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4">telnyx</a>.<a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4#SimCardActionGetResponse">SimCardActionGetResponse</a>
37363735
- <a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4">telnyx</a>.<a href="https://pkg.go.dev/github.com/team-telnyx/telnyx-go/v4#SimCardActionBulkDisableVoiceResponse">SimCardActionBulkDisableVoiceResponse</a>

simcardaction.go

Lines changed: 126 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -218,62 +218,6 @@ func (r *SimCardActionService) ValidateRegistrationCodes(ctx context.Context, bo
218218
return res, err
219219
}
220220

221-
// This object represents a bulk SIM card action. It groups SIM card actions
222-
// created through a bulk endpoint under a single resource for further lookup.
223-
type BulkSimCardAction struct {
224-
// Identifies the resource.
225-
ID string `json:"id" format:"uuid"`
226-
// The action type. It can be one of the following: <br/>
227-
//
228-
// <ul>
229-
// <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
230-
// <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
231-
// <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
232-
// </ul>
233-
//
234-
// Any of "bulk_disable_voice", "bulk_enable_voice", "bulk_set_public_ips".
235-
ActionType BulkSimCardActionActionType `json:"action_type"`
236-
// ISO 8601 formatted date-time indicating when the resource was created.
237-
CreatedAt string `json:"created_at"`
238-
RecordType string `json:"record_type"`
239-
// A JSON object representation of the bulk action payload.
240-
Settings map[string]any `json:"settings"`
241-
// ISO 8601 formatted date-time indicating when the resource was updated.
242-
UpdatedAt string `json:"updated_at"`
243-
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
244-
JSON struct {
245-
ID respjson.Field
246-
ActionType respjson.Field
247-
CreatedAt respjson.Field
248-
RecordType respjson.Field
249-
Settings respjson.Field
250-
UpdatedAt respjson.Field
251-
ExtraFields map[string]respjson.Field
252-
raw string
253-
} `json:"-"`
254-
}
255-
256-
// Returns the unmodified JSON received from the API
257-
func (r BulkSimCardAction) RawJSON() string { return r.JSON.raw }
258-
func (r *BulkSimCardAction) UnmarshalJSON(data []byte) error {
259-
return apijson.UnmarshalRoot(data, r)
260-
}
261-
262-
// The action type. It can be one of the following: <br/>
263-
//
264-
// <ul>
265-
// <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
266-
// <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
267-
// <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
268-
// </ul>
269-
type BulkSimCardActionActionType string
270-
271-
const (
272-
BulkSimCardActionActionTypeBulkDisableVoice BulkSimCardActionActionType = "bulk_disable_voice"
273-
BulkSimCardActionActionTypeBulkEnableVoice BulkSimCardActionActionType = "bulk_enable_voice"
274-
BulkSimCardActionActionTypeBulkSetPublicIPs BulkSimCardActionActionType = "bulk_set_public_ips"
275-
)
276-
277221
// This object represents a SIM card action. It allows tracking the current status
278222
// of an operation that impacts the SIM card.
279223
type SimCardAction struct {
@@ -386,7 +330,7 @@ func (r *SimCardActionGetResponse) UnmarshalJSON(data []byte) error {
386330
type SimCardActionBulkDisableVoiceResponse struct {
387331
// This object represents a bulk SIM card action. It groups SIM card actions
388332
// created through a bulk endpoint under a single resource for further lookup.
389-
Data BulkSimCardAction `json:"data"`
333+
Data SimCardActionBulkDisableVoiceResponseData `json:"data"`
390334
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
391335
JSON struct {
392336
Data respjson.Field
@@ -401,10 +345,51 @@ func (r *SimCardActionBulkDisableVoiceResponse) UnmarshalJSON(data []byte) error
401345
return apijson.UnmarshalRoot(data, r)
402346
}
403347

348+
// This object represents a bulk SIM card action. It groups SIM card actions
349+
// created through a bulk endpoint under a single resource for further lookup.
350+
type SimCardActionBulkDisableVoiceResponseData struct {
351+
// Identifies the resource.
352+
ID string `json:"id" format:"uuid"`
353+
// The action type. It can be one of the following: <br/>
354+
//
355+
// <ul>
356+
// <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
357+
// <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
358+
// <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
359+
// </ul>
360+
//
361+
// Any of "bulk_disable_voice", "bulk_enable_voice", "bulk_set_public_ips".
362+
ActionType string `json:"action_type"`
363+
// ISO 8601 formatted date-time indicating when the resource was created.
364+
CreatedAt string `json:"created_at"`
365+
RecordType string `json:"record_type"`
366+
// A JSON object representation of the bulk action payload.
367+
Settings map[string]any `json:"settings"`
368+
// ISO 8601 formatted date-time indicating when the resource was updated.
369+
UpdatedAt string `json:"updated_at"`
370+
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
371+
JSON struct {
372+
ID respjson.Field
373+
ActionType respjson.Field
374+
CreatedAt respjson.Field
375+
RecordType respjson.Field
376+
Settings respjson.Field
377+
UpdatedAt respjson.Field
378+
ExtraFields map[string]respjson.Field
379+
raw string
380+
} `json:"-"`
381+
}
382+
383+
// Returns the unmodified JSON received from the API
384+
func (r SimCardActionBulkDisableVoiceResponseData) RawJSON() string { return r.JSON.raw }
385+
func (r *SimCardActionBulkDisableVoiceResponseData) UnmarshalJSON(data []byte) error {
386+
return apijson.UnmarshalRoot(data, r)
387+
}
388+
404389
type SimCardActionBulkEnableVoiceResponse struct {
405390
// This object represents a bulk SIM card action. It groups SIM card actions
406391
// created through a bulk endpoint under a single resource for further lookup.
407-
Data BulkSimCardAction `json:"data"`
392+
Data SimCardActionBulkEnableVoiceResponseData `json:"data"`
408393
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
409394
JSON struct {
410395
Data respjson.Field
@@ -419,10 +404,51 @@ func (r *SimCardActionBulkEnableVoiceResponse) UnmarshalJSON(data []byte) error
419404
return apijson.UnmarshalRoot(data, r)
420405
}
421406

407+
// This object represents a bulk SIM card action. It groups SIM card actions
408+
// created through a bulk endpoint under a single resource for further lookup.
409+
type SimCardActionBulkEnableVoiceResponseData struct {
410+
// Identifies the resource.
411+
ID string `json:"id" format:"uuid"`
412+
// The action type. It can be one of the following: <br/>
413+
//
414+
// <ul>
415+
// <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
416+
// <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
417+
// <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
418+
// </ul>
419+
//
420+
// Any of "bulk_disable_voice", "bulk_enable_voice", "bulk_set_public_ips".
421+
ActionType string `json:"action_type"`
422+
// ISO 8601 formatted date-time indicating when the resource was created.
423+
CreatedAt string `json:"created_at"`
424+
RecordType string `json:"record_type"`
425+
// A JSON object representation of the bulk action payload.
426+
Settings map[string]any `json:"settings"`
427+
// ISO 8601 formatted date-time indicating when the resource was updated.
428+
UpdatedAt string `json:"updated_at"`
429+
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
430+
JSON struct {
431+
ID respjson.Field
432+
ActionType respjson.Field
433+
CreatedAt respjson.Field
434+
RecordType respjson.Field
435+
Settings respjson.Field
436+
UpdatedAt respjson.Field
437+
ExtraFields map[string]respjson.Field
438+
raw string
439+
} `json:"-"`
440+
}
441+
442+
// Returns the unmodified JSON received from the API
443+
func (r SimCardActionBulkEnableVoiceResponseData) RawJSON() string { return r.JSON.raw }
444+
func (r *SimCardActionBulkEnableVoiceResponseData) UnmarshalJSON(data []byte) error {
445+
return apijson.UnmarshalRoot(data, r)
446+
}
447+
422448
type SimCardActionBulkSetPublicIPsResponse struct {
423449
// This object represents a bulk SIM card action. It groups SIM card actions
424450
// created through a bulk endpoint under a single resource for further lookup.
425-
Data BulkSimCardAction `json:"data"`
451+
Data SimCardActionBulkSetPublicIPsResponseData `json:"data"`
426452
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
427453
JSON struct {
428454
Data respjson.Field
@@ -437,6 +463,47 @@ func (r *SimCardActionBulkSetPublicIPsResponse) UnmarshalJSON(data []byte) error
437463
return apijson.UnmarshalRoot(data, r)
438464
}
439465

466+
// This object represents a bulk SIM card action. It groups SIM card actions
467+
// created through a bulk endpoint under a single resource for further lookup.
468+
type SimCardActionBulkSetPublicIPsResponseData struct {
469+
// Identifies the resource.
470+
ID string `json:"id" format:"uuid"`
471+
// The action type. It can be one of the following: <br/>
472+
//
473+
// <ul>
474+
// <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
475+
// <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
476+
// <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
477+
// </ul>
478+
//
479+
// Any of "bulk_disable_voice", "bulk_enable_voice", "bulk_set_public_ips".
480+
ActionType string `json:"action_type"`
481+
// ISO 8601 formatted date-time indicating when the resource was created.
482+
CreatedAt string `json:"created_at"`
483+
RecordType string `json:"record_type"`
484+
// A JSON object representation of the bulk action payload.
485+
Settings map[string]any `json:"settings"`
486+
// ISO 8601 formatted date-time indicating when the resource was updated.
487+
UpdatedAt string `json:"updated_at"`
488+
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
489+
JSON struct {
490+
ID respjson.Field
491+
ActionType respjson.Field
492+
CreatedAt respjson.Field
493+
RecordType respjson.Field
494+
Settings respjson.Field
495+
UpdatedAt respjson.Field
496+
ExtraFields map[string]respjson.Field
497+
raw string
498+
} `json:"-"`
499+
}
500+
501+
// Returns the unmodified JSON received from the API
502+
func (r SimCardActionBulkSetPublicIPsResponseData) RawJSON() string { return r.JSON.raw }
503+
func (r *SimCardActionBulkSetPublicIPsResponseData) UnmarshalJSON(data []byte) error {
504+
return apijson.UnmarshalRoot(data, r)
505+
}
506+
440507
type SimCardActionDisableResponse struct {
441508
// This object represents a SIM card action. It allows tracking the current status
442509
// of an operation that impacts the SIM card.

0 commit comments

Comments
 (0)