Skip to content

Commit 8674441

Browse files
committedJan 30, 2025
feat(api): api update (#3839)
1 parent 95af993 commit 8674441

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1493
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bac30cf3609d26642f1dadb7fdadadeb8c854cb52f64dd6be1cc82fa45ffc465.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-443edbd0e6675b5d9ccef1192c2f36ecd69cbe5d896c00e15d172a2ab8eb5702.yml

‎zero_trust/accessservicetoken.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ type ServiceToken struct {
269269
// The duration for how long the service token will be valid. Must be in the format
270270
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
271271
// default is 1 year in hours (8760h).
272-
Duration string `json:"duration"`
273-
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
272+
Duration string `json:"duration"`
273+
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
274+
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
274275
// The name of the service token.
275276
Name string `json:"name"`
276277
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
@@ -284,6 +285,7 @@ type serviceTokenJSON struct {
284285
CreatedAt apijson.Field
285286
Duration apijson.Field
286287
ExpiresAt apijson.Field
288+
LastSeenAt apijson.Field
287289
Name apijson.Field
288290
UpdatedAt apijson.Field
289291
raw string

‎zero_trust/organizationdoh.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ type OrganizationDOHUpdateResponse struct {
8484
// The duration for how long the service token will be valid. Must be in the format
8585
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
8686
// default is 1 year in hours (8760h).
87-
Duration string `json:"duration"`
88-
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
87+
Duration string `json:"duration"`
88+
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
89+
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
8990
// The name of the service token.
9091
Name string `json:"name"`
9192
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
@@ -101,6 +102,7 @@ type organizationDOHUpdateResponseJSON struct {
101102
DOHJWTDuration apijson.Field
102103
Duration apijson.Field
103104
ExpiresAt apijson.Field
105+
LastSeenAt apijson.Field
104106
Name apijson.Field
105107
UpdatedAt apijson.Field
106108
raw string
@@ -129,8 +131,9 @@ type OrganizationDOHGetResponse struct {
129131
// The duration for how long the service token will be valid. Must be in the format
130132
// `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The
131133
// default is 1 year in hours (8760h).
132-
Duration string `json:"duration"`
133-
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
134+
Duration string `json:"duration"`
135+
ExpiresAt time.Time `json:"expires_at" format:"date-time"`
136+
LastSeenAt time.Time `json:"last_seen_at" format:"date-time"`
134137
// The name of the service token.
135138
Name string `json:"name"`
136139
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
@@ -146,6 +149,7 @@ type organizationDOHGetResponseJSON struct {
146149
DOHJWTDuration apijson.Field
147150
Duration apijson.Field
148151
ExpiresAt apijson.Field
152+
LastSeenAt apijson.Field
149153
Name apijson.Field
150154
UpdatedAt apijson.Field
151155
raw string

0 commit comments

Comments
 (0)
Please sign in to comment.