From 8523ae39e1548dc7390417657e49bc4b43fb3e13 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 11 Nov 2024 20:43:48 +0000 Subject: [PATCH] feat(api): api update --- .stats.yml | 2 +- accounts/member.go | 10 +- api.md | 2 +- api_gateway/operation.go | 30 +- api_gateway/userschemaoperation.go | 10 +- cache/cache.go | 10 +- dns/record.go | 134 +-- firewall/wafpackage.go | 6 +- firewall/wafpackagerule.go | 20 +- ips/ip.go | 16 +- magic_transit/app.go | 10 +- magic_transit/pcap.go | 34 +- r2/bucketsippy.go | 4 +- rulesets/phase.go | 110 +- rulesets/phaseversion.go | 48 +- rulesets/rule.go | 172 +-- rulesets/ruleset.go | 172 +-- rulesets/version.go | 48 +- spectrum/app.go | 30 +- spectrum/spectrum.go | 8 +- warp_connector/warpconnector.go | 70 +- workers/ai.go | 32 +- workers/script.go | 20 +- workers/worker.go | 10 +- .../dispatchnamespacescript.go | 20 +- .../dispatchnamespacescriptsetting.go | 74 +- workflowinstance.go | 34 +- zero_trust/access.go | 76 +- zero_trust/accessapplication.go | 1020 ++++++++--------- zero_trust/accessservicetoken.go | 35 +- zero_trust/accessservicetoken_test.go | 2 + zero_trust/deviceposture.go | 34 +- zero_trust/dlpprofile.go | 100 +- zero_trust/dlpprofilecustom.go | 106 +- zero_trust/identityprovider.go | 78 +- zero_trust/tunnel.go | 70 +- zones/setting.go | 72 +- 37 files changed, 1390 insertions(+), 1339 deletions(-) diff --git a/.stats.yml b/.stats.yml index 34aac7813ac..fdf051588bd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1397 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5305b253841aee001bed9bf486562184b70df73d31313774fd5b00bc2e7f8e1.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1f3a5920b5590a1e7f4df129cc299fe3d4aaa7bf4ef6915b015dd898b1a1813c.yml diff --git a/accounts/member.go b/accounts/member.go index 96f06e06884..50e0d793df8 100644 --- a/accounts/member.go +++ b/accounts/member.go @@ -1375,8 +1375,8 @@ func (r MemberNewParams) MarshalJSON() (data []byte, err error) { type MemberNewParamsBody struct { // The contact email address of the user. Email param.Field[string] `json:"email,required"` - Policies param.Field[interface{}] `json:"policies,required"` - Roles param.Field[interface{}] `json:"roles,required"` + Policies param.Field[interface{}] `json:"policies"` + Roles param.Field[interface{}] `json:"roles"` Status param.Field[MemberNewParamsBodyStatus] `json:"status"` } @@ -1570,9 +1570,9 @@ func (r MemberUpdateParams) MarshalJSON() (data []byte, err error) { } type MemberUpdateParamsBody struct { - Policies param.Field[interface{}] `json:"policies,required"` - Roles param.Field[interface{}] `json:"roles,required"` - User param.Field[interface{}] `json:"user,required"` + Policies param.Field[interface{}] `json:"policies"` + Roles param.Field[interface{}] `json:"roles"` + User param.Field[interface{}] `json:"user"` } func (r MemberUpdateParamsBody) MarshalJSON() (data []byte, err error) { diff --git a/api.md b/api.md index 0f3d7ff3338..a647b76ec4b 100644 --- a/api.md +++ b/api.md @@ -4876,7 +4876,7 @@ Methods: - client.ZeroTrust.Access.ServiceTokens.New(ctx context.Context, params zero_trust.AccessServiceTokenNewParams) (zero_trust.AccessServiceTokenNewResponse, error) - client.ZeroTrust.Access.ServiceTokens.Update(ctx context.Context, serviceTokenID string, params zero_trust.AccessServiceTokenUpdateParams) (zero_trust.ServiceToken, error) -- client.ZeroTrust.Access.ServiceTokens.List(ctx context.Context, query zero_trust.AccessServiceTokenListParams) (pagination.SinglePage[zero_trust.ServiceToken], error) +- client.ZeroTrust.Access.ServiceTokens.List(ctx context.Context, params zero_trust.AccessServiceTokenListParams) (pagination.SinglePage[zero_trust.ServiceToken], error) - client.ZeroTrust.Access.ServiceTokens.Delete(ctx context.Context, serviceTokenID string, body zero_trust.AccessServiceTokenDeleteParams) (zero_trust.ServiceToken, error) - client.ZeroTrust.Access.ServiceTokens.Get(ctx context.Context, serviceTokenID string, query zero_trust.AccessServiceTokenGetParams) (zero_trust.ServiceToken, error) - client.ZeroTrust.Access.ServiceTokens.Refresh(ctx context.Context, serviceTokenID string, body zero_trust.AccessServiceTokenRefreshParams) (zero_trust.ServiceToken, error) diff --git a/api_gateway/operation.go b/api_gateway/operation.go index 8b9cc521729..b5b1a7ed791 100644 --- a/api_gateway/operation.go +++ b/api_gateway/operation.go @@ -191,19 +191,19 @@ func (r APIShieldMethod) IsKnown() bool { type APIShieldFeatures struct { // This field can have the runtime type of // [APIShieldFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. - APIRouting interface{} `json:"api_routing,required"` + APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [APIShieldFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. - ConfidenceIntervals interface{} `json:"confidence_intervals,required"` + ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [APIShieldFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. - ParameterSchemas interface{} `json:"parameter_schemas,required"` + ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [APIShieldFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. - SchemaInfo interface{} `json:"schema_info,required"` + SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [APIShieldFeaturesAPIShieldOperationFeatureThresholdsThresholds]. - Thresholds interface{} `json:"thresholds,required"` + Thresholds interface{} `json:"thresholds"` JSON apiShieldFeaturesJSON `json:"-"` union APIShieldFeaturesUnion } @@ -832,19 +832,19 @@ func (r OperationListResponseMethod) IsKnown() bool { type OperationListResponseFeatures struct { // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. - APIRouting interface{} `json:"api_routing,required"` + APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. - ConfidenceIntervals interface{} `json:"confidence_intervals,required"` + ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. - ParameterSchemas interface{} `json:"parameter_schemas,required"` + ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. - SchemaInfo interface{} `json:"schema_info,required"` + SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationListResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. - Thresholds interface{} `json:"thresholds,required"` + Thresholds interface{} `json:"thresholds"` JSON operationListResponseFeaturesJSON `json:"-"` union OperationListResponseFeaturesUnion } @@ -1518,19 +1518,19 @@ func (r OperationGetResponseMethod) IsKnown() bool { type OperationGetResponseFeatures struct { // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting]. - APIRouting interface{} `json:"api_routing,required"` + APIRouting interface{} `json:"api_routing"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals]. - ConfidenceIntervals interface{} `json:"confidence_intervals,required"` + ConfidenceIntervals interface{} `json:"confidence_intervals"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas]. - ParameterSchemas interface{} `json:"parameter_schemas,required"` + ParameterSchemas interface{} `json:"parameter_schemas"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo]. - SchemaInfo interface{} `json:"schema_info,required"` + SchemaInfo interface{} `json:"schema_info"` // This field can have the runtime type of // [OperationGetResponseFeaturesAPIShieldOperationFeatureThresholdsThresholds]. - Thresholds interface{} `json:"thresholds,required"` + Thresholds interface{} `json:"thresholds"` JSON operationGetResponseFeaturesJSON `json:"-"` union OperationGetResponseFeaturesUnion } diff --git a/api_gateway/userschemaoperation.go b/api_gateway/userschemaoperation.go index dc677422b8b..cbcabd44b49 100644 --- a/api_gateway/userschemaoperation.go +++ b/api_gateway/userschemaoperation.go @@ -78,13 +78,13 @@ type UserSchemaOperationListResponse struct { // insertion. This will further be Cloudflare-normalized upon insertion. See: // https://developers.cloudflare.com/rules/normalization/how-it-works/. Endpoint string `json:"endpoint,required" format:"uri-template"` - // This field can have the runtime type of [APIShieldFeatures]. - Features interface{} `json:"features,required"` // RFC3986-compliant host. Host string `json:"host,required" format:"hostname"` // The HTTP method used to access the endpoint. - Method UserSchemaOperationListResponseMethod `json:"method,required"` - LastUpdated time.Time `json:"last_updated" format:"date-time"` + Method UserSchemaOperationListResponseMethod `json:"method,required"` + // This field can have the runtime type of [APIShieldFeatures]. + Features interface{} `json:"features"` + LastUpdated time.Time `json:"last_updated" format:"date-time"` // UUID OperationID string `json:"operation_id"` JSON userSchemaOperationListResponseJSON `json:"-"` @@ -95,9 +95,9 @@ type UserSchemaOperationListResponse struct { // [UserSchemaOperationListResponse] type userSchemaOperationListResponseJSON struct { Endpoint apijson.Field - Features apijson.Field Host apijson.Field Method apijson.Field + Features apijson.Field LastUpdated apijson.Field OperationID apijson.Field raw string diff --git a/cache/cache.go b/cache/cache.go index 64575841911..93e63c1c6b9 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -156,13 +156,13 @@ func (r CachePurgeParams) MarshalJSON() (data []byte, err error) { } type CachePurgeParamsBody struct { - Files param.Field[interface{}] `json:"files,required"` - Hosts param.Field[interface{}] `json:"hosts,required"` - Prefixes param.Field[interface{}] `json:"prefixes,required"` - Tags param.Field[interface{}] `json:"tags,required"` + Files param.Field[interface{}] `json:"files"` + Hosts param.Field[interface{}] `json:"hosts"` + Prefixes param.Field[interface{}] `json:"prefixes"` // For more information, please refer to // [purge everything documentation page](https://developers.cloudflare.com/cache/how-to/purge-cache/purge-everything/). - PurgeEverything param.Field[bool] `json:"purge_everything"` + PurgeEverything param.Field[bool] `json:"purge_everything"` + Tags param.Field[interface{}] `json:"tags"` } func (r CachePurgeParamsBody) MarshalJSON() (data []byte, err error) { diff --git a/dns/record.go b/dns/record.go index cf1ecb38b3f..7515c232abf 100644 --- a/dns/record.go +++ b/dns/record.go @@ -1671,13 +1671,13 @@ func (r PTRRecordParam) MarshalJSON() (data []byte, err error) { func (r PTRRecordParam) implementsDNSRecordUnionParam() {} type RecordParam struct { - Data param.Field[interface{}] `json:"data,required"` - Settings param.Field[interface{}] `json:"settings,required"` // A valid IPv4 address. - Content param.Field[string] `json:"content" format:"ipv4"` + Content param.Field[string] `json:"content" format:"ipv4"` + Data param.Field[interface{}] `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. - Priority param.Field[float64] `json:"priority"` + Priority param.Field[float64] `json:"priority"` + Settings param.Field[interface{}] `json:"settings"` // Record type. Type param.Field[RecordType] `json:"type"` } @@ -2583,18 +2583,18 @@ func (r URIRecordDataParam) MarshalJSON() (data []byte, err error) { } type RecordNewResponse struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordNewResponseType `json:"type"` JSON recordNewResponseJSON `json:"-"` @@ -2604,10 +2604,10 @@ type RecordNewResponse struct { // recordNewResponseJSON contains the JSON metadata for the struct // [RecordNewResponse] type recordNewResponseJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -2839,18 +2839,18 @@ func (r RecordNewResponseType) IsKnown() bool { } type RecordUpdateResponse struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordUpdateResponseType `json:"type"` JSON recordUpdateResponseJSON `json:"-"` @@ -2860,10 +2860,10 @@ type RecordUpdateResponse struct { // recordUpdateResponseJSON contains the JSON metadata for the struct // [RecordUpdateResponse] type recordUpdateResponseJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -3095,18 +3095,18 @@ func (r RecordUpdateResponseType) IsKnown() bool { } type RecordListResponse struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordListResponseType `json:"type"` JSON recordListResponseJSON `json:"-"` @@ -3116,10 +3116,10 @@ type RecordListResponse struct { // recordListResponseJSON contains the JSON metadata for the struct // [RecordListResponse] type recordListResponseJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -3400,18 +3400,18 @@ func (r recordBatchResponseJSON) RawJSON() string { } type RecordBatchResponseDelete struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordBatchResponseDeletesType `json:"type"` JSON recordBatchResponseDeleteJSON `json:"-"` @@ -3421,10 +3421,10 @@ type RecordBatchResponseDelete struct { // recordBatchResponseDeleteJSON contains the JSON metadata for the struct // [RecordBatchResponseDelete] type recordBatchResponseDeleteJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -3656,18 +3656,18 @@ func (r RecordBatchResponseDeletesType) IsKnown() bool { } type RecordBatchResponsePatch struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordBatchResponsePatchesType `json:"type"` JSON recordBatchResponsePatchJSON `json:"-"` @@ -3677,10 +3677,10 @@ type RecordBatchResponsePatch struct { // recordBatchResponsePatchJSON contains the JSON metadata for the struct // [RecordBatchResponsePatch] type recordBatchResponsePatchJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -3912,18 +3912,18 @@ func (r RecordBatchResponsePatchesType) IsKnown() bool { } type RecordBatchResponsePost struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordBatchResponsePostsType `json:"type"` JSON recordBatchResponsePostJSON `json:"-"` @@ -3933,10 +3933,10 @@ type RecordBatchResponsePost struct { // recordBatchResponsePostJSON contains the JSON metadata for the struct // [RecordBatchResponsePost] type recordBatchResponsePostJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -4168,18 +4168,18 @@ func (r RecordBatchResponsePostsType) IsKnown() bool { } type RecordBatchResponsePut struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordBatchResponsePutsType `json:"type"` JSON recordBatchResponsePutJSON `json:"-"` @@ -4189,10 +4189,10 @@ type RecordBatchResponsePut struct { // recordBatchResponsePutJSON contains the JSON metadata for the struct // [RecordBatchResponsePut] type recordBatchResponsePutJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -4424,18 +4424,18 @@ func (r RecordBatchResponsePutsType) IsKnown() bool { } type RecordEditResponse struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordEditResponseType `json:"type"` JSON recordEditResponseJSON `json:"-"` @@ -4445,10 +4445,10 @@ type RecordEditResponse struct { // recordEditResponseJSON contains the JSON metadata for the struct // [RecordEditResponse] type recordEditResponseJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -4680,18 +4680,18 @@ func (r RecordEditResponseType) IsKnown() bool { } type RecordGetResponse struct { + // A valid IPv4 address. + Content string `json:"content" format:"ipv4"` // This field can have the runtime type of [CAARecordData], [CERTRecordData], // [DNSKEYRecordData], [DSRecordData], [HTTPSRecordData], [LOCRecordData], // [NAPTRRecordData], [SMIMEARecordData], [SRVRecordData], [SSHFPRecordData], // [SVCBRecordData], [TLSARecordData], [URIRecordData]. - Data interface{} `json:"data,required"` - // This field can have the runtime type of [CNAMERecordSettings]. - Settings interface{} `json:"settings,required"` - // A valid IPv4 address. - Content string `json:"content" format:"ipv4"` + Data interface{} `json:"data"` // Required for MX, SRV and URI records; unused by other record types. Records with // lower priorities are preferred. Priority float64 `json:"priority"` + // This field can have the runtime type of [CNAMERecordSettings]. + Settings interface{} `json:"settings"` // Record type. Type RecordGetResponseType `json:"type"` JSON recordGetResponseJSON `json:"-"` @@ -4701,10 +4701,10 @@ type RecordGetResponse struct { // recordGetResponseJSON contains the JSON metadata for the struct // [RecordGetResponse] type recordGetResponseJSON struct { - Data apijson.Field - Settings apijson.Field Content apijson.Field + Data apijson.Field Priority apijson.Field + Settings apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/firewall/wafpackage.go b/firewall/wafpackage.go index f087521c6ec..2184b1f97ad 100644 --- a/firewall/wafpackage.go +++ b/firewall/wafpackage.go @@ -99,11 +99,11 @@ type WAFPackageListResponse = interface{} type WAFPackageGetResponse struct { // This field can have the runtime type of [[]shared.ResponseInfo]. - Errors interface{} `json:"errors,required"` + Errors interface{} `json:"errors"` // This field can have the runtime type of [[]shared.ResponseInfo]. - Messages interface{} `json:"messages,required"` + Messages interface{} `json:"messages"` // This field can have the runtime type of [interface{}]. - Result interface{} `json:"result,required"` + Result interface{} `json:"result"` // Whether the API call was successful Success WAFPackageGetResponseSuccess `json:"success"` JSON wafPackageGetResponseJSON `json:"-"` diff --git a/firewall/wafpackagerule.go b/firewall/wafpackagerule.go index 91b7424d7d5..171829b32ab 100644 --- a/firewall/wafpackagerule.go +++ b/firewall/wafpackagerule.go @@ -181,6 +181,10 @@ func (r wafRuleGroupJSON) RawJSON() string { type WAFPackageRuleListResponse struct { // The unique identifier of the WAF rule. ID string `json:"id,required"` + // This field can have the runtime type of [[]AllowedModesAnomaly], + // [[]WAFPackageRuleListResponseWAFManagedRulesTraditionalDenyRuleAllowedMode], + // [[]WAFPackageRuleListResponseWAFManagedRulesTraditionalAllowRuleAllowedMode]. + AllowedModes interface{} `json:"allowed_modes,required"` // The public description of the WAF rule. Description string `json:"description,required"` // The rule group to which the current WAF rule belongs. @@ -192,10 +196,6 @@ type WAFPackageRuleListResponse struct { PackageID string `json:"package_id,required"` // The order in which the individual WAF rule is executed within its rule group. Priority string `json:"priority,required"` - // This field can have the runtime type of [[]AllowedModesAnomaly], - // [[]WAFPackageRuleListResponseWAFManagedRulesTraditionalDenyRuleAllowedMode], - // [[]WAFPackageRuleListResponseWAFManagedRulesTraditionalAllowRuleAllowedMode]. - AllowedModes interface{} `json:"allowed_modes"` // The default action/mode of a rule. DefaultMode WAFPackageRuleListResponseDefaultMode `json:"default_mode"` JSON wafPackageRuleListResponseJSON `json:"-"` @@ -206,12 +206,12 @@ type WAFPackageRuleListResponse struct { // [WAFPackageRuleListResponse] type wafPackageRuleListResponseJSON struct { ID apijson.Field + AllowedModes apijson.Field Description apijson.Field Group apijson.Field Mode apijson.Field PackageID apijson.Field Priority apijson.Field - AllowedModes apijson.Field DefaultMode apijson.Field raw string ExtraFields map[string]apijson.Field @@ -539,6 +539,10 @@ func (r WAFPackageRuleListResponseDefaultMode) IsKnown() bool { type WAFPackageRuleEditResponse struct { // The unique identifier of the WAF rule. ID string `json:"id,required"` + // This field can have the runtime type of [[]AllowedModesAnomaly], + // [[]WAFPackageRuleEditResponseWAFManagedRulesTraditionalDenyRuleAllowedMode], + // [[]WAFPackageRuleEditResponseWAFManagedRulesTraditionalAllowRuleAllowedMode]. + AllowedModes interface{} `json:"allowed_modes,required"` // The public description of the WAF rule. Description string `json:"description,required"` // The rule group to which the current WAF rule belongs. @@ -550,10 +554,6 @@ type WAFPackageRuleEditResponse struct { PackageID string `json:"package_id,required"` // The order in which the individual WAF rule is executed within its rule group. Priority string `json:"priority,required"` - // This field can have the runtime type of [[]AllowedModesAnomaly], - // [[]WAFPackageRuleEditResponseWAFManagedRulesTraditionalDenyRuleAllowedMode], - // [[]WAFPackageRuleEditResponseWAFManagedRulesTraditionalAllowRuleAllowedMode]. - AllowedModes interface{} `json:"allowed_modes"` // The default action/mode of a rule. DefaultMode WAFPackageRuleEditResponseDefaultMode `json:"default_mode"` JSON wafPackageRuleEditResponseJSON `json:"-"` @@ -564,12 +564,12 @@ type WAFPackageRuleEditResponse struct { // [WAFPackageRuleEditResponse] type wafPackageRuleEditResponseJSON struct { ID apijson.Field + AllowedModes apijson.Field Description apijson.Field Group apijson.Field Mode apijson.Field PackageID apijson.Field Priority apijson.Field - AllowedModes apijson.Field DefaultMode apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/ips/ip.go b/ips/ip.go index 4b0b105b2d2..ad93bd9a5c4 100644 --- a/ips/ip.go +++ b/ips/ip.go @@ -114,24 +114,24 @@ func (r JDCloudIPsJSON) RawJSON() string { func (r JDCloudIPs) implementsIPsIPListResponse() {} type IPListResponse struct { + // A digest of the IP data. Useful for determining if the data has changed. + Etag string `json:"etag"` // This field can have the runtime type of [[]string]. - IPV4CIDRs interface{} `json:"ipv4_cidrs,required"` + IPV4CIDRs interface{} `json:"ipv4_cidrs"` // This field can have the runtime type of [[]string]. - IPV6CIDRs interface{} `json:"ipv6_cidrs,required"` + IPV6CIDRs interface{} `json:"ipv6_cidrs"` // This field can have the runtime type of [[]string]. - JDCloudCIDRs interface{} `json:"jdcloud_cidrs,required"` - // A digest of the IP data. Useful for determining if the data has changed. - Etag string `json:"etag"` - JSON ipListResponseJSON `json:"-"` - union IPListResponseUnion + JDCloudCIDRs interface{} `json:"jdcloud_cidrs"` + JSON ipListResponseJSON `json:"-"` + union IPListResponseUnion } // ipListResponseJSON contains the JSON metadata for the struct [IPListResponse] type ipListResponseJSON struct { + Etag apijson.Field IPV4CIDRs apijson.Field IPV6CIDRs apijson.Field JDCloudCIDRs apijson.Field - Etag apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/magic_transit/app.go b/magic_transit/app.go index eb65fade512..0470c78b979 100644 --- a/magic_transit/app.go +++ b/magic_transit/app.go @@ -194,12 +194,12 @@ func (r appUpdateResponseJSON) RawJSON() string { // Collection of Hostnames and/or IP Subnets to associate with traffic decisions. type AppListResponse struct { - // This field can have the runtime type of [[]string]. - Hostnames interface{} `json:"hostnames,required"` - // This field can have the runtime type of [[]string]. - IPSubnets interface{} `json:"ip_subnets,required"` // Magic account app ID. AccountAppID string `json:"account_app_id"` + // This field can have the runtime type of [[]string]. + Hostnames interface{} `json:"hostnames"` + // This field can have the runtime type of [[]string]. + IPSubnets interface{} `json:"ip_subnets"` // Managed app ID. ManagedAppID string `json:"managed_app_id"` // Display name for the app. @@ -212,9 +212,9 @@ type AppListResponse struct { // appListResponseJSON contains the JSON metadata for the struct [AppListResponse] type appListResponseJSON struct { + AccountAppID apijson.Field Hostnames apijson.Field IPSubnets apijson.Field - AccountAppID apijson.Field ManagedAppID apijson.Field Name apijson.Field Type apijson.Field diff --git a/magic_transit/pcap.go b/magic_transit/pcap.go index 6ffeed1830e..e233f16c513 100644 --- a/magic_transit/pcap.go +++ b/magic_transit/pcap.go @@ -107,10 +107,6 @@ func (r *PCAPService) Get(ctx context.Context, pcapID string, query PCAPGetParam } type PCAPNewResponse struct { - // This field can have the runtime type of - // [PCAPNewResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], - // [PCAPNewResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. - FilterV1 interface{} `json:"filter_v1,required"` // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -125,6 +121,10 @@ type PCAPNewResponse struct { // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` + // This field can have the runtime type of + // [PCAPNewResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], + // [PCAPNewResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. + FilterV1 interface{} `json:"filter_v1"` // The status of the packet capture request. Status PCAPNewResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. @@ -142,12 +142,12 @@ type PCAPNewResponse struct { // pcapNewResponseJSON contains the JSON metadata for the struct [PCAPNewResponse] type pcapNewResponseJSON struct { - FilterV1 apijson.Field ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field DestinationConf apijson.Field ErrorMessage apijson.Field + FilterV1 apijson.Field Status apijson.Field Submitted apijson.Field System apijson.Field @@ -541,10 +541,6 @@ func (r PCAPNewResponseType) IsKnown() bool { } type PCAPListResponse struct { - // This field can have the runtime type of - // [PCAPListResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], - // [PCAPListResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. - FilterV1 interface{} `json:"filter_v1,required"` // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -559,6 +555,10 @@ type PCAPListResponse struct { // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` + // This field can have the runtime type of + // [PCAPListResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], + // [PCAPListResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. + FilterV1 interface{} `json:"filter_v1"` // The status of the packet capture request. Status PCAPListResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. @@ -577,12 +577,12 @@ type PCAPListResponse struct { // pcapListResponseJSON contains the JSON metadata for the struct // [PCAPListResponse] type pcapListResponseJSON struct { - FilterV1 apijson.Field ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field DestinationConf apijson.Field ErrorMessage apijson.Field + FilterV1 apijson.Field Status apijson.Field Submitted apijson.Field System apijson.Field @@ -977,10 +977,6 @@ func (r PCAPListResponseType) IsKnown() bool { } type PCAPGetResponse struct { - // This field can have the runtime type of - // [PCAPGetResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], - // [PCAPGetResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. - FilterV1 interface{} `json:"filter_v1,required"` // The ID for the packet capture. ID string `json:"id"` // The maximum number of bytes to capture. This field only applies to `full` packet @@ -995,6 +991,10 @@ type PCAPGetResponse struct { // An error message that describes why the packet capture failed. This field only // applies to `full` packet captures. ErrorMessage string `json:"error_message"` + // This field can have the runtime type of + // [PCAPGetResponseMagicVisibilityPCAPsPCAPsResponseSimpleFilterV1], + // [PCAPGetResponseMagicVisibilityPCAPsPCAPsResponseFullFilterV1]. + FilterV1 interface{} `json:"filter_v1"` // The status of the packet capture request. Status PCAPGetResponseStatus `json:"status"` // The RFC 3339 timestamp when the packet capture was created. @@ -1012,12 +1012,12 @@ type PCAPGetResponse struct { // pcapGetResponseJSON contains the JSON metadata for the struct [PCAPGetResponse] type pcapGetResponseJSON struct { - FilterV1 apijson.Field ID apijson.Field ByteLimit apijson.Field ColoName apijson.Field DestinationConf apijson.Field ErrorMessage apijson.Field + FilterV1 apijson.Field Status apijson.Field Submitted apijson.Field System apijson.Field @@ -1421,7 +1421,6 @@ func (r PCAPNewParams) MarshalJSON() (data []byte, err error) { } type PCAPNewParamsBody struct { - FilterV1 param.Field[interface{}] `json:"filter_v1,required"` // The system used to collect packet captures. System param.Field[PCAPNewParamsBodySystem] `json:"system,required"` // The packet capture duration in seconds. @@ -1437,7 +1436,8 @@ type PCAPNewParamsBody struct { // packet captures. ColoName param.Field[string] `json:"colo_name"` // The full URI for the bucket. This field only applies to `full` packet captures. - DestinationConf param.Field[string] `json:"destination_conf"` + DestinationConf param.Field[string] `json:"destination_conf"` + FilterV1 param.Field[interface{}] `json:"filter_v1"` // The limit of packets contained in a packet capture. PacketLimit param.Field[float64] `json:"packet_limit"` } diff --git a/r2/bucketsippy.go b/r2/bucketsippy.go index c2c9f0dbd52..6e50c0228f7 100644 --- a/r2/bucketsippy.go +++ b/r2/bucketsippy.go @@ -258,8 +258,8 @@ func (r BucketSippyUpdateParams) MarshalJSON() (data []byte, err error) { } type BucketSippyUpdateParamsBody struct { - Destination param.Field[interface{}] `json:"destination,required"` - Source param.Field[interface{}] `json:"source,required"` + Destination param.Field[interface{}] `json:"destination"` + Source param.Field[interface{}] `json:"source"` } func (r BucketSippyUpdateParamsBody) MarshalJSON() (data []byte, err error) { diff --git a/rulesets/phase.go b/rulesets/phase.go index 3d115d8bed3..e4031e90b21 100644 --- a/rulesets/phase.go +++ b/rulesets/phase.go @@ -146,6 +146,14 @@ func (r phaseUpdateResponseJSON) RawJSON() string { } type PhaseUpdateResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action PhaseUpdateResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -153,9 +161,13 @@ type PhaseUpdateResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [PhaseUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -169,9 +181,11 @@ type PhaseUpdateResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [PhaseUpdateResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -181,21 +195,7 @@ type PhaseUpdateResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action PhaseUpdateResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON phaseUpdateResponseRuleJSON `json:"-"` @@ -205,18 +205,18 @@ type PhaseUpdateResponseRule struct { // phaseUpdateResponseRuleJSON contains the JSON metadata for the struct // [PhaseUpdateResponseRule] type phaseUpdateResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -780,6 +780,14 @@ func (r phaseGetResponseJSON) RawJSON() string { } type PhaseGetResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action PhaseGetResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -787,9 +795,13 @@ type PhaseGetResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [PhaseGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -803,9 +815,11 @@ type PhaseGetResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [PhaseGetResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -815,21 +829,7 @@ type PhaseGetResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action PhaseGetResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON phaseGetResponseRuleJSON `json:"-"` @@ -839,18 +839,18 @@ type PhaseGetResponseRule struct { // phaseGetResponseRuleJSON contains the JSON metadata for the struct // [PhaseGetResponseRule] type phaseGetResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -1385,22 +1385,22 @@ func (r PhaseUpdateParams) MarshalJSON() (data []byte, err error) { } type PhaseUpdateParamsRule struct { - ActionParameters param.Field[interface{}] `json:"action_parameters,required"` - Categories param.Field[interface{}] `json:"categories,required"` - ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check,required"` - Ratelimit param.Field[interface{}] `json:"ratelimit,required"` // The unique ID of the rule. ID param.Field[string] `json:"id"` // The action to perform when the rule matches. - Action param.Field[PhaseUpdateParamsRulesAction] `json:"action"` + Action param.Field[PhaseUpdateParamsRulesAction] `json:"action"` + ActionParameters param.Field[interface{}] `json:"action_parameters"` + Categories param.Field[interface{}] `json:"categories"` // An informative description of the rule. Description param.Field[string] `json:"description"` // Whether the rule should be executed. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"` // The expression defining which traffic will match the rule. Expression param.Field[string] `json:"expression"` // An object configuring the rule's logging behavior. - Logging param.Field[LoggingParam] `json:"logging"` + Logging param.Field[LoggingParam] `json:"logging"` + Ratelimit param.Field[interface{}] `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref param.Field[string] `json:"ref"` } diff --git a/rulesets/phaseversion.go b/rulesets/phaseversion.go index a0543a63271..71f399c7680 100644 --- a/rulesets/phaseversion.go +++ b/rulesets/phaseversion.go @@ -199,6 +199,14 @@ func (r phaseVersionGetResponseJSON) RawJSON() string { } type PhaseVersionGetResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action PhaseVersionGetResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -206,9 +214,13 @@ type PhaseVersionGetResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [PhaseVersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -222,9 +234,11 @@ type PhaseVersionGetResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [PhaseVersionGetResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -234,21 +248,7 @@ type PhaseVersionGetResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action PhaseVersionGetResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON phaseVersionGetResponseRuleJSON `json:"-"` @@ -258,18 +258,18 @@ type PhaseVersionGetResponseRule struct { // phaseVersionGetResponseRuleJSON contains the JSON metadata for the struct // [PhaseVersionGetResponseRule] type phaseVersionGetResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/rulesets/rule.go b/rulesets/rule.go index 143851dda2e..1f7a6e60b4d 100644 --- a/rulesets/rule.go +++ b/rulesets/rule.go @@ -7269,6 +7269,14 @@ func (r ruleNewResponseJSON) RawJSON() string { } type RuleNewResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RuleNewResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -7276,9 +7284,13 @@ type RuleNewResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RuleNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -7292,9 +7304,11 @@ type RuleNewResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RuleNewResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -7304,21 +7318,7 @@ type RuleNewResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RuleNewResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON ruleNewResponseRuleJSON `json:"-"` @@ -7328,18 +7328,18 @@ type RuleNewResponseRule struct { // ruleNewResponseRuleJSON contains the JSON metadata for the struct // [RuleNewResponseRule] type ruleNewResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -7901,6 +7901,14 @@ func (r ruleDeleteResponseJSON) RawJSON() string { } type RuleDeleteResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RuleDeleteResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -7908,9 +7916,13 @@ type RuleDeleteResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RuleDeleteResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -7924,9 +7936,11 @@ type RuleDeleteResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RuleDeleteResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -7936,21 +7950,7 @@ type RuleDeleteResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RuleDeleteResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON ruleDeleteResponseRuleJSON `json:"-"` @@ -7960,18 +7960,18 @@ type RuleDeleteResponseRule struct { // ruleDeleteResponseRuleJSON contains the JSON metadata for the struct // [RuleDeleteResponseRule] type ruleDeleteResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -8534,6 +8534,14 @@ func (r ruleEditResponseJSON) RawJSON() string { } type RuleEditResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RuleEditResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -8541,9 +8549,13 @@ type RuleEditResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RuleEditResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -8557,9 +8569,11 @@ type RuleEditResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RuleEditResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -8569,21 +8583,7 @@ type RuleEditResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RuleEditResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON ruleEditResponseRuleJSON `json:"-"` @@ -8593,18 +8593,18 @@ type RuleEditResponseRule struct { // ruleEditResponseRuleJSON contains the JSON metadata for the struct // [RuleEditResponseRule] type ruleEditResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -9134,22 +9134,22 @@ func (r RuleNewParams) MarshalJSON() (data []byte, err error) { } type RuleNewParamsBody struct { - ActionParameters param.Field[interface{}] `json:"action_parameters,required"` - Categories param.Field[interface{}] `json:"categories,required"` - ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check,required"` - Ratelimit param.Field[interface{}] `json:"ratelimit,required"` // The unique ID of the rule. ID param.Field[string] `json:"id"` // The action to perform when the rule matches. - Action param.Field[RuleNewParamsBodyAction] `json:"action"` + Action param.Field[RuleNewParamsBodyAction] `json:"action"` + ActionParameters param.Field[interface{}] `json:"action_parameters"` + Categories param.Field[interface{}] `json:"categories"` // An informative description of the rule. Description param.Field[string] `json:"description"` // Whether the rule should be executed. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"` // The expression defining which traffic will match the rule. Expression param.Field[string] `json:"expression"` // An object configuring the rule's logging behavior. - Logging param.Field[LoggingParam] `json:"logging"` + Logging param.Field[LoggingParam] `json:"logging"` + Ratelimit param.Field[interface{}] `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref param.Field[string] `json:"ref"` } @@ -9737,22 +9737,22 @@ func (r RuleEditParams) MarshalJSON() (data []byte, err error) { } type RuleEditParamsBody struct { - ActionParameters param.Field[interface{}] `json:"action_parameters,required"` - Categories param.Field[interface{}] `json:"categories,required"` - ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check,required"` - Ratelimit param.Field[interface{}] `json:"ratelimit,required"` // The unique ID of the rule. ID param.Field[string] `json:"id"` // The action to perform when the rule matches. - Action param.Field[RuleEditParamsBodyAction] `json:"action"` + Action param.Field[RuleEditParamsBodyAction] `json:"action"` + ActionParameters param.Field[interface{}] `json:"action_parameters"` + Categories param.Field[interface{}] `json:"categories"` // An informative description of the rule. Description param.Field[string] `json:"description"` // Whether the rule should be executed. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"` // The expression defining which traffic will match the rule. Expression param.Field[string] `json:"expression"` // An object configuring the rule's logging behavior. - Logging param.Field[LoggingParam] `json:"logging"` + Logging param.Field[LoggingParam] `json:"logging"` + Ratelimit param.Field[interface{}] `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref param.Field[string] `json:"ref"` } diff --git a/rulesets/ruleset.go b/rulesets/ruleset.go index 155f72a585c..428a6d3208b 100644 --- a/rulesets/ruleset.go +++ b/rulesets/ruleset.go @@ -316,6 +316,14 @@ func (r rulesetNewResponseJSON) RawJSON() string { } type RulesetNewResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RulesetNewResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -323,9 +331,13 @@ type RulesetNewResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RulesetNewResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -339,9 +351,11 @@ type RulesetNewResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RulesetNewResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -351,21 +365,7 @@ type RulesetNewResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RulesetNewResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON rulesetNewResponseRuleJSON `json:"-"` @@ -375,18 +375,18 @@ type RulesetNewResponseRule struct { // rulesetNewResponseRuleJSON contains the JSON metadata for the struct // [RulesetNewResponseRule] type rulesetNewResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -949,6 +949,14 @@ func (r rulesetUpdateResponseJSON) RawJSON() string { } type RulesetUpdateResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RulesetUpdateResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -956,9 +964,13 @@ type RulesetUpdateResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RulesetUpdateResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -972,9 +984,11 @@ type RulesetUpdateResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RulesetUpdateResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -984,21 +998,7 @@ type RulesetUpdateResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RulesetUpdateResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON rulesetUpdateResponseRuleJSON `json:"-"` @@ -1008,18 +1008,18 @@ type RulesetUpdateResponseRule struct { // rulesetUpdateResponseRuleJSON contains the JSON metadata for the struct // [RulesetUpdateResponseRule] type rulesetUpdateResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -1626,6 +1626,14 @@ func (r rulesetGetResponseJSON) RawJSON() string { } type RulesetGetResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action RulesetGetResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -1633,9 +1641,13 @@ type RulesetGetResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [RulesetGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -1649,9 +1661,11 @@ type RulesetGetResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [RulesetGetResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -1661,21 +1675,7 @@ type RulesetGetResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action RulesetGetResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON rulesetGetResponseRuleJSON `json:"-"` @@ -1685,18 +1685,18 @@ type RulesetGetResponseRule struct { // rulesetGetResponseRuleJSON contains the JSON metadata for the struct // [RulesetGetResponseRule] type rulesetGetResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field @@ -2236,22 +2236,22 @@ func (r RulesetNewParams) MarshalJSON() (data []byte, err error) { } type RulesetNewParamsRule struct { - ActionParameters param.Field[interface{}] `json:"action_parameters,required"` - Categories param.Field[interface{}] `json:"categories,required"` - ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check,required"` - Ratelimit param.Field[interface{}] `json:"ratelimit,required"` // The unique ID of the rule. ID param.Field[string] `json:"id"` // The action to perform when the rule matches. - Action param.Field[RulesetNewParamsRulesAction] `json:"action"` + Action param.Field[RulesetNewParamsRulesAction] `json:"action"` + ActionParameters param.Field[interface{}] `json:"action_parameters"` + Categories param.Field[interface{}] `json:"categories"` // An informative description of the rule. Description param.Field[string] `json:"description"` // Whether the rule should be executed. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"` // The expression defining which traffic will match the rule. Expression param.Field[string] `json:"expression"` // An object configuring the rule's logging behavior. - Logging param.Field[LoggingParam] `json:"logging"` + Logging param.Field[LoggingParam] `json:"logging"` + Ratelimit param.Field[interface{}] `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref param.Field[string] `json:"ref"` } @@ -2690,22 +2690,22 @@ func (r RulesetUpdateParams) MarshalJSON() (data []byte, err error) { } type RulesetUpdateParamsRule struct { - ActionParameters param.Field[interface{}] `json:"action_parameters,required"` - Categories param.Field[interface{}] `json:"categories,required"` - ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check,required"` - Ratelimit param.Field[interface{}] `json:"ratelimit,required"` // The unique ID of the rule. ID param.Field[string] `json:"id"` // The action to perform when the rule matches. - Action param.Field[RulesetUpdateParamsRulesAction] `json:"action"` + Action param.Field[RulesetUpdateParamsRulesAction] `json:"action"` + ActionParameters param.Field[interface{}] `json:"action_parameters"` + Categories param.Field[interface{}] `json:"categories"` // An informative description of the rule. Description param.Field[string] `json:"description"` // Whether the rule should be executed. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + ExposedCredentialCheck param.Field[interface{}] `json:"exposed_credential_check"` // The expression defining which traffic will match the rule. Expression param.Field[string] `json:"expression"` // An object configuring the rule's logging behavior. - Logging param.Field[LoggingParam] `json:"logging"` + Logging param.Field[LoggingParam] `json:"logging"` + Ratelimit param.Field[interface{}] `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref param.Field[string] `json:"ref"` } diff --git a/rulesets/version.go b/rulesets/version.go index ef0090c950c..f364e81399e 100644 --- a/rulesets/version.go +++ b/rulesets/version.go @@ -242,6 +242,14 @@ func (r versionGetResponseJSON) RawJSON() string { } type VersionGetResponseRule struct { + // The timestamp of when the rule was last modified. + LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + // The version of the rule. + Version string `json:"version,required"` + // The unique ID of the rule. + ID string `json:"id"` + // The action to perform when the rule matches. + Action VersionGetResponseRulesAction `json:"action"` // This field can have the runtime type of [BlockRuleActionParameters], // [interface{}], [CompressResponseRuleActionParameters], // [ExecuteRuleActionParameters], [RedirectRuleActionParameters], @@ -249,9 +257,13 @@ type VersionGetResponseRule struct { // [ScoreRuleActionParameters], [ServeErrorRuleActionParameters], // [SetConfigRuleActionParameters], [SkipRuleActionParameters], // [SetCacheSettingsRuleActionParameters], [LogCustomFieldRuleActionParameters]. - ActionParameters interface{} `json:"action_parameters,required"` + ActionParameters interface{} `json:"action_parameters"` // This field can have the runtime type of [[]string]. - Categories interface{} `json:"categories,required"` + Categories interface{} `json:"categories"` + // An informative description of the rule. + Description string `json:"description"` + // Whether the rule should be executed. + Enabled bool `json:"enabled"` // This field can have the runtime type of [BlockRuleExposedCredentialCheck], // [VersionGetResponseRulesRulesetsChallengeRuleExposedCredentialCheck], // [CompressResponseRuleExposedCredentialCheck], @@ -265,9 +277,11 @@ type VersionGetResponseRule struct { // [LogCustomFieldRuleExposedCredentialCheck], // [DDoSDynamicRuleExposedCredentialCheck], // [ForceConnectionCloseRuleExposedCredentialCheck]. - ExposedCredentialCheck interface{} `json:"exposed_credential_check,required"` - // The timestamp of when the rule was last modified. - LastUpdated time.Time `json:"last_updated,required" format:"date-time"` + ExposedCredentialCheck interface{} `json:"exposed_credential_check"` + // The expression defining which traffic will match the rule. + Expression string `json:"expression"` + // An object configuring the rule's logging behavior. + Logging Logging `json:"logging"` // This field can have the runtime type of [BlockRuleRatelimit], // [VersionGetResponseRulesRulesetsChallengeRuleRatelimit], // [CompressResponseRuleRatelimit], [ExecuteRuleRatelimit], @@ -277,21 +291,7 @@ type VersionGetResponseRule struct { // [ServeErrorRuleRatelimit], [SetConfigRuleRatelimit], [SkipRuleRatelimit], // [SetCacheSettingsRuleRatelimit], [LogCustomFieldRuleRatelimit], // [DDoSDynamicRuleRatelimit], [ForceConnectionCloseRuleRatelimit]. - Ratelimit interface{} `json:"ratelimit,required"` - // The version of the rule. - Version string `json:"version,required"` - // The unique ID of the rule. - ID string `json:"id"` - // The action to perform when the rule matches. - Action VersionGetResponseRulesAction `json:"action"` - // An informative description of the rule. - Description string `json:"description"` - // Whether the rule should be executed. - Enabled bool `json:"enabled"` - // The expression defining which traffic will match the rule. - Expression string `json:"expression"` - // An object configuring the rule's logging behavior. - Logging Logging `json:"logging"` + Ratelimit interface{} `json:"ratelimit"` // The reference of the rule (the rule ID by default). Ref string `json:"ref"` JSON versionGetResponseRuleJSON `json:"-"` @@ -301,18 +301,18 @@ type VersionGetResponseRule struct { // versionGetResponseRuleJSON contains the JSON metadata for the struct // [VersionGetResponseRule] type versionGetResponseRuleJSON struct { - ActionParameters apijson.Field - Categories apijson.Field - ExposedCredentialCheck apijson.Field LastUpdated apijson.Field - Ratelimit apijson.Field Version apijson.Field ID apijson.Field Action apijson.Field + ActionParameters apijson.Field + Categories apijson.Field Description apijson.Field Enabled apijson.Field + ExposedCredentialCheck apijson.Field Expression apijson.Field Logging apijson.Field + Ratelimit apijson.Field Ref apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/spectrum/app.go b/spectrum/app.go index 2698d1836e7..14c194a87a0 100644 --- a/spectrum/app.go +++ b/spectrum/app.go @@ -158,8 +158,6 @@ type AppNewResponse struct { DNS DNS `json:"dns,required"` // When the Application was last modified. ModifiedOn time.Time `json:"modified_on,required" format:"date-time"` - // This field can have the runtime type of [[]string]. - OriginDirect interface{} `json:"origin_direct,required"` // The port configuration at Cloudflare's edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol string `json:"protocol,required"` @@ -171,6 +169,8 @@ type AppNewResponse struct { // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall bool `json:"ip_firewall"` + // This field can have the runtime type of [[]string]. + OriginDirect interface{} `json:"origin_direct"` // The name and type of DNS record for the Spectrum application. OriginDNS OriginDNS `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with @@ -202,11 +202,11 @@ type appNewResponseJSON struct { CreatedOn apijson.Field DNS apijson.Field ModifiedOn apijson.Field - OriginDirect apijson.Field Protocol apijson.Field ArgoSmartRouting apijson.Field EdgeIPs apijson.Field IPFirewall apijson.Field + OriginDirect apijson.Field OriginDNS apijson.Field OriginPort apijson.Field ProxyProtocol apijson.Field @@ -508,8 +508,6 @@ type AppUpdateResponse struct { DNS DNS `json:"dns,required"` // When the Application was last modified. ModifiedOn time.Time `json:"modified_on,required" format:"date-time"` - // This field can have the runtime type of [[]string]. - OriginDirect interface{} `json:"origin_direct,required"` // The port configuration at Cloudflare's edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol string `json:"protocol,required"` @@ -521,6 +519,8 @@ type AppUpdateResponse struct { // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall bool `json:"ip_firewall"` + // This field can have the runtime type of [[]string]. + OriginDirect interface{} `json:"origin_direct"` // The name and type of DNS record for the Spectrum application. OriginDNS OriginDNS `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with @@ -553,11 +553,11 @@ type appUpdateResponseJSON struct { CreatedOn apijson.Field DNS apijson.Field ModifiedOn apijson.Field - OriginDirect apijson.Field Protocol apijson.Field ArgoSmartRouting apijson.Field EdgeIPs apijson.Field IPFirewall apijson.Field + OriginDirect apijson.Field OriginDNS apijson.Field OriginPort apijson.Field ProxyProtocol apijson.Field @@ -1117,8 +1117,6 @@ type AppGetResponse struct { DNS DNS `json:"dns,required"` // When the Application was last modified. ModifiedOn time.Time `json:"modified_on,required" format:"date-time"` - // This field can have the runtime type of [[]string]. - OriginDirect interface{} `json:"origin_direct,required"` // The port configuration at Cloudflare's edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol string `json:"protocol,required"` @@ -1130,6 +1128,8 @@ type AppGetResponse struct { // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. IPFirewall bool `json:"ip_firewall"` + // This field can have the runtime type of [[]string]. + OriginDirect interface{} `json:"origin_direct"` // The name and type of DNS record for the Spectrum application. OriginDNS OriginDNS `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with @@ -1161,11 +1161,11 @@ type appGetResponseJSON struct { CreatedOn apijson.Field DNS apijson.Field ModifiedOn apijson.Field - OriginDirect apijson.Field Protocol apijson.Field ArgoSmartRouting apijson.Field EdgeIPs apijson.Field IPFirewall apijson.Field + OriginDirect apijson.Field OriginDNS apijson.Field OriginPort apijson.Field ProxyProtocol apijson.Field @@ -1470,8 +1470,7 @@ func (r AppNewParams) MarshalJSON() (data []byte, err error) { type AppNewParamsBody struct { // The name and type of DNS record for the Spectrum application. - DNS param.Field[DNSParam] `json:"dns,required"` - OriginDirect param.Field[interface{}] `json:"origin_direct,required"` + DNS param.Field[DNSParam] `json:"dns,required"` // The port configuration at Cloudflare's edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol param.Field[string] `json:"protocol,required"` @@ -1482,7 +1481,8 @@ type AppNewParamsBody struct { EdgeIPs param.Field[EdgeIPsUnionParam] `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. - IPFirewall param.Field[bool] `json:"ip_firewall"` + IPFirewall param.Field[bool] `json:"ip_firewall"` + OriginDirect param.Field[interface{}] `json:"origin_direct"` // The name and type of DNS record for the Spectrum application. OriginDNS param.Field[OriginDNSParam] `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with @@ -1756,8 +1756,7 @@ func (r AppUpdateParams) MarshalJSON() (data []byte, err error) { type AppUpdateParamsBody struct { // The name and type of DNS record for the Spectrum application. - DNS param.Field[DNSParam] `json:"dns,required"` - OriginDirect param.Field[interface{}] `json:"origin_direct,required"` + DNS param.Field[DNSParam] `json:"dns,required"` // The port configuration at Cloudflare's edge. May specify a single port, for // example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`. Protocol param.Field[string] `json:"protocol,required"` @@ -1768,7 +1767,8 @@ type AppUpdateParamsBody struct { EdgeIPs param.Field[EdgeIPsUnionParam] `json:"edge_ips"` // Enables IP Access Rules for this application. Notes: Only available for TCP // applications. - IPFirewall param.Field[bool] `json:"ip_firewall"` + IPFirewall param.Field[bool] `json:"ip_firewall"` + OriginDirect param.Field[interface{}] `json:"origin_direct"` // The name and type of DNS record for the Spectrum application. OriginDNS param.Field[OriginDNSParam] `json:"origin_dns"` // The destination port at the origin. Only specified in conjunction with diff --git a/spectrum/spectrum.go b/spectrum/spectrum.go index fd85e580810..8473a8e4566 100644 --- a/spectrum/spectrum.go +++ b/spectrum/spectrum.go @@ -90,10 +90,10 @@ func (r DNSParam) MarshalJSON() (data []byte, err error) { // The anycast edge IP configuration for the hostname of this application. type EdgeIPs struct { - // This field can have the runtime type of [[]string]. - IPs interface{} `json:"ips,required"` // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity EdgeIPsConnectivity `json:"connectivity"` + // This field can have the runtime type of [[]string]. + IPs interface{} `json:"ips"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. @@ -104,8 +104,8 @@ type EdgeIPs struct { // edgeIPsJSON contains the JSON metadata for the struct [EdgeIPs] type edgeIPsJSON struct { - IPs apijson.Field Connectivity apijson.Field + IPs apijson.Field Type apijson.Field raw string ExtraFields map[string]apijson.Field @@ -254,9 +254,9 @@ func (r EdgeIPsType) IsKnown() bool { // The anycast edge IP configuration for the hostname of this application. type EdgeIPsParam struct { - IPs param.Field[interface{}] `json:"ips,required"` // The IP versions supported for inbound connections on Spectrum anycast IPs. Connectivity param.Field[EdgeIPsConnectivity] `json:"connectivity"` + IPs param.Field[interface{}] `json:"ips"` // The type of edge IP configuration specified. Dynamically allocated edge IPs use // Spectrum anycast IPs in accordance with the connectivity you specify. Only valid // with CNAME DNS names. diff --git a/warp_connector/warpconnector.go b/warp_connector/warpconnector.go index c2091d5c128..06460beca83 100644 --- a/warp_connector/warpconnector.go +++ b/warp_connector/warpconnector.go @@ -171,15 +171,13 @@ func (r *WARPConnectorService) Token(ctx context.Context, tunnelID string, query // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorNewResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]WARPConnectorNewResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]WARPConnectorNewResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -191,6 +189,8 @@ type WARPConnectorNewResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -210,14 +210,14 @@ type WARPConnectorNewResponse struct { // warpConnectorNewResponseJSON contains the JSON metadata for the struct // [WARPConnectorNewResponse] type warpConnectorNewResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -462,15 +462,13 @@ func (r WARPConnectorNewResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorListResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]WARPConnectorListResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]WARPConnectorListResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -482,6 +480,8 @@ type WARPConnectorListResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -501,14 +501,14 @@ type WARPConnectorListResponse struct { // warpConnectorListResponseJSON contains the JSON metadata for the struct // [WARPConnectorListResponse] type warpConnectorListResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -753,15 +753,13 @@ func (r WARPConnectorListResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorDeleteResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]WARPConnectorDeleteResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]WARPConnectorDeleteResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -773,6 +771,8 @@ type WARPConnectorDeleteResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -792,14 +792,14 @@ type WARPConnectorDeleteResponse struct { // warpConnectorDeleteResponseJSON contains the JSON metadata for the struct // [WARPConnectorDeleteResponse] type warpConnectorDeleteResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -1044,15 +1044,13 @@ func (r WARPConnectorDeleteResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorEditResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]WARPConnectorEditResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]WARPConnectorEditResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -1064,6 +1062,8 @@ type WARPConnectorEditResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -1083,14 +1083,14 @@ type WARPConnectorEditResponse struct { // warpConnectorEditResponseJSON contains the JSON metadata for the struct // [WARPConnectorEditResponse] type warpConnectorEditResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -1335,15 +1335,13 @@ func (r WARPConnectorEditResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type WARPConnectorGetResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]WARPConnectorGetResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]WARPConnectorGetResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -1355,6 +1353,8 @@ type WARPConnectorGetResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -1374,14 +1374,14 @@ type WARPConnectorGetResponse struct { // warpConnectorGetResponseJSON contains the JSON metadata for the struct // [WARPConnectorGetResponse] type warpConnectorGetResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field diff --git a/workers/ai.go b/workers/ai.go index 1222e1ddb15..6a1fc9e9ae0 100644 --- a/workers/ai.go +++ b/workers/ai.go @@ -496,20 +496,16 @@ func (r AIRunParams) MarshalJSON() (data []byte, err error) { } type AIRunParamsBody struct { - Audio param.Field[interface{}] `json:"audio,required"` - Functions param.Field[interface{}] `json:"functions,required"` - Image param.Field[interface{}] `json:"image,required"` - Mask param.Field[interface{}] `json:"mask,required"` - Messages param.Field[interface{}] `json:"messages,required"` - Text param.Field[interface{}] `json:"text,required"` - Tools param.Field[interface{}] `json:"tools,required"` + Audio param.Field[interface{}] `json:"audio"` // Decreases the likelihood of the model repeating the same lines verbatim. - FrequencyPenalty param.Field[float64] `json:"frequency_penalty"` + FrequencyPenalty param.Field[float64] `json:"frequency_penalty"` + Functions param.Field[interface{}] `json:"functions"` // Controls how closely the generated image should adhere to the prompt; higher // values make the image more aligned with the prompt Guidance param.Field[float64] `json:"guidance"` // The height of the generated image in pixels - Height param.Field[int64] `json:"height"` + Height param.Field[int64] `json:"height"` + Image param.Field[interface{}] `json:"image"` // For use with img2img tasks. A base64-encoded string of the input image ImageB64 param.Field[string] `json:"image_b64"` // The text that you want the model to summarize @@ -518,11 +514,13 @@ type AIRunParamsBody struct { // if not specified Lang param.Field[string] `json:"lang"` // Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - Lora param.Field[string] `json:"lora"` + Lora param.Field[string] `json:"lora"` + Mask param.Field[interface{}] `json:"mask"` // The maximum length of the generated summary in tokens MaxLength param.Field[int64] `json:"max_length"` // The maximum number of tokens to generate in the response. - MaxTokens param.Field[int64] `json:"max_tokens"` + MaxTokens param.Field[int64] `json:"max_tokens"` + Messages param.Field[interface{}] `json:"messages"` // Text describing elements to avoid in the generated image NegativePrompt param.Field[string] `json:"negative_prompt"` // The number of diffusion steps; higher values can improve quality but take longer @@ -551,7 +549,9 @@ type AIRunParamsBody struct { TargetLang param.Field[string] `json:"target_lang"` // Controls the randomness of the output; higher values produce more random // results. - Temperature param.Field[float64] `json:"temperature"` + Temperature param.Field[float64] `json:"temperature"` + Text param.Field[interface{}] `json:"text"` + Tools param.Field[interface{}] `json:"tools"` // Limits the AI to choose from the top 'k' most probable words. Lower values make // responses more focused; higher values introduce more variety and potential // surprises. @@ -806,12 +806,12 @@ func (r AIRunParamsBodyMessagesFunction) MarshalJSON() (data []byte, err error) } type AIRunParamsBodyMessagesTool struct { - Function param.Field[interface{}] `json:"function,required"` - Parameters param.Field[interface{}] `json:"parameters,required"` // A brief description of what the tool does. - Description param.Field[string] `json:"description"` + Description param.Field[string] `json:"description"` + Function param.Field[interface{}] `json:"function"` // The name of the tool. More descriptive the better. - Name param.Field[string] `json:"name"` + Name param.Field[string] `json:"name"` + Parameters param.Field[interface{}] `json:"parameters"` // Specifies the type of tool (e.g., 'function'). Type param.Field[string] `json:"type"` } diff --git a/workers/script.go b/workers/script.go index 0d9a341f9e2..2acccf255be 100644 --- a/workers/script.go +++ b/workers/script.go @@ -354,11 +354,11 @@ func (r ScriptUpdateParams) URLQuery() (v url.Values) { } type ScriptUpdateParamsBody struct { - AnyPartName param.Field[interface{}] `json:",required"` - Metadata param.Field[interface{}] `json:"metadata,required"` + AnyPartName param.Field[interface{}] `json:""` // Rollback message to be associated with this deployment. Only parsed when query // param `"rollback_to"` is present. - Message param.Field[string] `json:"message"` + Message param.Field[string] `json:"message"` + Metadata param.Field[interface{}] `json:"metadata"` } func (r ScriptUpdateParamsBody) MarshalJSON() (data []byte, err error) { @@ -512,17 +512,17 @@ func (r ScriptUpdateParamsBodyObjectMetadataBinding) MarshalJSON() (data []byte, // Migrations to apply for Durable Objects associated with this Worker. type ScriptUpdateParamsBodyObjectMetadataMigrations struct { - DeletedClasses param.Field[interface{}] `json:"deleted_classes,required"` - NewClasses param.Field[interface{}] `json:"new_classes,required"` - NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes,required"` - RenamedClasses param.Field[interface{}] `json:"renamed_classes,required"` - Steps param.Field[interface{}] `json:"steps,required"` - TransferredClasses param.Field[interface{}] `json:"transferred_classes,required"` + DeletedClasses param.Field[interface{}] `json:"deleted_classes"` + NewClasses param.Field[interface{}] `json:"new_classes"` + NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. - OldTag param.Field[string] `json:"old_tag"` + OldTag param.Field[string] `json:"old_tag"` + RenamedClasses param.Field[interface{}] `json:"renamed_classes"` + Steps param.Field[interface{}] `json:"steps"` + TransferredClasses param.Field[interface{}] `json:"transferred_classes"` } func (r ScriptUpdateParamsBodyObjectMetadataMigrations) MarshalJSON() (data []byte, err error) { diff --git a/workers/worker.go b/workers/worker.go index d35b96df371..92120a93aef 100644 --- a/workers/worker.go +++ b/workers/worker.go @@ -44,8 +44,6 @@ func NewWorkerService(opts ...option.RequestOption) (r *WorkerService) { type Binding struct { // A JavaScript variable name for the binding. Name string `json:"name,required"` - // This field can have the runtime type of [DispatchNamespaceBindingOutbound]. - Outbound interface{} `json:"outbound,required"` // The class of resource that the binding provides. Type BindingType `json:"type,required"` // ID of the D1 database to bind to @@ -64,6 +62,8 @@ type Binding struct { Namespace string `json:"namespace"` // Namespace identifier tag. NamespaceID string `json:"namespace_id"` + // This field can have the runtime type of [DispatchNamespaceBindingOutbound]. + Outbound interface{} `json:"outbound"` // Name of the Queue to bind to QueueName string `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this Worker @@ -77,7 +77,6 @@ type Binding struct { // bindingJSON contains the JSON metadata for the struct [Binding] type bindingJSON struct { Name apijson.Field - Outbound apijson.Field Type apijson.Field ID apijson.Field Binding apijson.Field @@ -87,6 +86,7 @@ type bindingJSON struct { Environment apijson.Field Namespace apijson.Field NamespaceID apijson.Field + Outbound apijson.Field QueueName apijson.Field ScriptName apijson.Field Service apijson.Field @@ -285,7 +285,6 @@ func (r BindingType) IsKnown() bool { // A binding to allow the Worker to communicate with resources type BindingParam struct { - Outbound param.Field[interface{}] `json:"outbound,required"` // The class of resource that the binding provides. Type param.Field[BindingType] `json:"type,required"` // ID of the D1 database to bind to @@ -299,7 +298,8 @@ type BindingParam struct { // Optional environment if the Worker utilizes one. Environment param.Field[string] `json:"environment"` // Namespace to bind to - Namespace param.Field[string] `json:"namespace"` + Namespace param.Field[string] `json:"namespace"` + Outbound param.Field[interface{}] `json:"outbound"` // Name of the Queue to bind to QueueName param.Field[string] `json:"queue_name"` // The script where the Durable Object is defined, if it is external to this Worker diff --git a/workers_for_platforms/dispatchnamespacescript.go b/workers_for_platforms/dispatchnamespacescript.go index d6012e5f9b0..42cd47ccce0 100644 --- a/workers_for_platforms/dispatchnamespacescript.go +++ b/workers_for_platforms/dispatchnamespacescript.go @@ -229,11 +229,11 @@ func (r DispatchNamespaceScriptUpdateParams) MarshalMultipart() (data []byte, co } type DispatchNamespaceScriptUpdateParamsBody struct { - AnyPartName param.Field[interface{}] `json:",required"` - Metadata param.Field[interface{}] `json:"metadata,required"` + AnyPartName param.Field[interface{}] `json:""` // Rollback message to be associated with this deployment. Only parsed when query // param `"rollback_to"` is present. - Message param.Field[string] `json:"message"` + Message param.Field[string] `json:"message"` + Metadata param.Field[interface{}] `json:"metadata"` } func (r DispatchNamespaceScriptUpdateParamsBody) MarshalJSON() (data []byte, err error) { @@ -391,17 +391,17 @@ func (r DispatchNamespaceScriptUpdateParamsBodyObjectMetadataBinding) MarshalJSO // Migrations to apply for Durable Objects associated with this Worker. type DispatchNamespaceScriptUpdateParamsBodyObjectMetadataMigrations struct { - DeletedClasses param.Field[interface{}] `json:"deleted_classes,required"` - NewClasses param.Field[interface{}] `json:"new_classes,required"` - NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes,required"` - RenamedClasses param.Field[interface{}] `json:"renamed_classes,required"` - Steps param.Field[interface{}] `json:"steps,required"` - TransferredClasses param.Field[interface{}] `json:"transferred_classes,required"` + DeletedClasses param.Field[interface{}] `json:"deleted_classes"` + NewClasses param.Field[interface{}] `json:"new_classes"` + NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. - OldTag param.Field[string] `json:"old_tag"` + OldTag param.Field[string] `json:"old_tag"` + RenamedClasses param.Field[interface{}] `json:"renamed_classes"` + Steps param.Field[interface{}] `json:"steps"` + TransferredClasses param.Field[interface{}] `json:"transferred_classes"` } func (r DispatchNamespaceScriptUpdateParamsBodyObjectMetadataMigrations) MarshalJSON() (data []byte, err error) { diff --git a/workers_for_platforms/dispatchnamespacescriptsetting.go b/workers_for_platforms/dispatchnamespacescriptsetting.go index c72039af8b6..98805f2ec04 100644 --- a/workers_for_platforms/dispatchnamespacescriptsetting.go +++ b/workers_for_platforms/dispatchnamespacescriptsetting.go @@ -167,26 +167,26 @@ func (r dispatchNamespaceScriptSettingEditResponseLimitsJSON) RawJSON() string { // Migrations to apply for Durable Objects associated with this Worker. type DispatchNamespaceScriptSettingEditResponseMigrations struct { // This field can have the runtime type of [[]string]. - DeletedClasses interface{} `json:"deleted_classes,required"` + DeletedClasses interface{} `json:"deleted_classes"` // This field can have the runtime type of [[]string]. - NewClasses interface{} `json:"new_classes,required"` + NewClasses interface{} `json:"new_classes"` // This field can have the runtime type of [[]string]. - NewSqliteClasses interface{} `json:"new_sqlite_classes,required"` + NewSqliteClasses interface{} `json:"new_sqlite_classes"` + // Tag to set as the latest migration tag. + NewTag string `json:"new_tag"` + // Tag used to verify against the latest migration tag for this Worker. If they + // don't match, the upload is rejected. + OldTag string `json:"old_tag"` // This field can have the runtime type of // [[]workers.SingleStepMigrationRenamedClass]. - RenamedClasses interface{} `json:"renamed_classes,required"` + RenamedClasses interface{} `json:"renamed_classes"` // This field can have the runtime type of [[]workers.MigrationStep]. - Steps interface{} `json:"steps,required"` + Steps interface{} `json:"steps"` // This field can have the runtime type of // [[]workers.SingleStepMigrationTransferredClass]. - TransferredClasses interface{} `json:"transferred_classes,required"` - // Tag to set as the latest migration tag. - NewTag string `json:"new_tag"` - // Tag used to verify against the latest migration tag for this Worker. If they - // don't match, the upload is rejected. - OldTag string `json:"old_tag"` - JSON dispatchNamespaceScriptSettingEditResponseMigrationsJSON `json:"-"` - union DispatchNamespaceScriptSettingEditResponseMigrationsUnion + TransferredClasses interface{} `json:"transferred_classes"` + JSON dispatchNamespaceScriptSettingEditResponseMigrationsJSON `json:"-"` + union DispatchNamespaceScriptSettingEditResponseMigrationsUnion } // dispatchNamespaceScriptSettingEditResponseMigrationsJSON contains the JSON @@ -195,11 +195,11 @@ type dispatchNamespaceScriptSettingEditResponseMigrationsJSON struct { DeletedClasses apijson.Field NewClasses apijson.Field NewSqliteClasses apijson.Field + NewTag apijson.Field + OldTag apijson.Field RenamedClasses apijson.Field Steps apijson.Field TransferredClasses apijson.Field - NewTag apijson.Field - OldTag apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -353,26 +353,26 @@ func (r dispatchNamespaceScriptSettingGetResponseLimitsJSON) RawJSON() string { // Migrations to apply for Durable Objects associated with this Worker. type DispatchNamespaceScriptSettingGetResponseMigrations struct { // This field can have the runtime type of [[]string]. - DeletedClasses interface{} `json:"deleted_classes,required"` + DeletedClasses interface{} `json:"deleted_classes"` // This field can have the runtime type of [[]string]. - NewClasses interface{} `json:"new_classes,required"` + NewClasses interface{} `json:"new_classes"` // This field can have the runtime type of [[]string]. - NewSqliteClasses interface{} `json:"new_sqlite_classes,required"` + NewSqliteClasses interface{} `json:"new_sqlite_classes"` + // Tag to set as the latest migration tag. + NewTag string `json:"new_tag"` + // Tag used to verify against the latest migration tag for this Worker. If they + // don't match, the upload is rejected. + OldTag string `json:"old_tag"` // This field can have the runtime type of // [[]workers.SingleStepMigrationRenamedClass]. - RenamedClasses interface{} `json:"renamed_classes,required"` + RenamedClasses interface{} `json:"renamed_classes"` // This field can have the runtime type of [[]workers.MigrationStep]. - Steps interface{} `json:"steps,required"` + Steps interface{} `json:"steps"` // This field can have the runtime type of // [[]workers.SingleStepMigrationTransferredClass]. - TransferredClasses interface{} `json:"transferred_classes,required"` - // Tag to set as the latest migration tag. - NewTag string `json:"new_tag"` - // Tag used to verify against the latest migration tag for this Worker. If they - // don't match, the upload is rejected. - OldTag string `json:"old_tag"` - JSON dispatchNamespaceScriptSettingGetResponseMigrationsJSON `json:"-"` - union DispatchNamespaceScriptSettingGetResponseMigrationsUnion + TransferredClasses interface{} `json:"transferred_classes"` + JSON dispatchNamespaceScriptSettingGetResponseMigrationsJSON `json:"-"` + union DispatchNamespaceScriptSettingGetResponseMigrationsUnion } // dispatchNamespaceScriptSettingGetResponseMigrationsJSON contains the JSON @@ -381,11 +381,11 @@ type dispatchNamespaceScriptSettingGetResponseMigrationsJSON struct { DeletedClasses apijson.Field NewClasses apijson.Field NewSqliteClasses apijson.Field + NewTag apijson.Field + OldTag apijson.Field RenamedClasses apijson.Field Steps apijson.Field TransferredClasses apijson.Field - NewTag apijson.Field - OldTag apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -522,17 +522,17 @@ func (r DispatchNamespaceScriptSettingEditParamsSettingsLimits) MarshalJSON() (d // Migrations to apply for Durable Objects associated with this Worker. type DispatchNamespaceScriptSettingEditParamsSettingsMigrations struct { - DeletedClasses param.Field[interface{}] `json:"deleted_classes,required"` - NewClasses param.Field[interface{}] `json:"new_classes,required"` - NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes,required"` - RenamedClasses param.Field[interface{}] `json:"renamed_classes,required"` - Steps param.Field[interface{}] `json:"steps,required"` - TransferredClasses param.Field[interface{}] `json:"transferred_classes,required"` + DeletedClasses param.Field[interface{}] `json:"deleted_classes"` + NewClasses param.Field[interface{}] `json:"new_classes"` + NewSqliteClasses param.Field[interface{}] `json:"new_sqlite_classes"` // Tag to set as the latest migration tag. NewTag param.Field[string] `json:"new_tag"` // Tag used to verify against the latest migration tag for this Worker. If they // don't match, the upload is rejected. - OldTag param.Field[string] `json:"old_tag"` + OldTag param.Field[string] `json:"old_tag"` + RenamedClasses param.Field[interface{}] `json:"renamed_classes"` + Steps param.Field[interface{}] `json:"steps"` + TransferredClasses param.Field[interface{}] `json:"transferred_classes"` } func (r DispatchNamespaceScriptSettingEditParamsSettingsMigrations) MarshalJSON() (data []byte, err error) { diff --git a/workflowinstance.go b/workflowinstance.go index 7802828a2ce..42e57dd1872 100644 --- a/workflowinstance.go +++ b/workflowinstance.go @@ -328,44 +328,44 @@ func (r WorkflowInstanceGetResponseStatus) IsKnown() bool { } type WorkflowInstanceGetResponseStep struct { + Type WorkflowInstanceGetResponseStepsType `json:"type,required"` // This field can have the runtime type of // [[]WorkflowInstanceGetResponseStepsObjectAttempt]. - Attempts interface{} `json:"attempts,required"` + Attempts interface{} `json:"attempts"` // This field can have the runtime type of // [WorkflowInstanceGetResponseStepsObjectConfig]. - Config interface{} `json:"config,required"` + Config interface{} `json:"config"` + End time.Time `json:"end,nullable" format:"date-time"` // This field can have the runtime type of // [WorkflowInstanceGetResponseStepsObjectError]. - Error interface{} `json:"error,required"` + Error interface{} `json:"error"` + Finished bool `json:"finished"` + Name string `json:"name"` // This field can have the runtime type of [interface{}]. - Output interface{} `json:"output,required"` + Output interface{} `json:"output"` + Start time.Time `json:"start" format:"date-time"` + Success bool `json:"success,nullable"` // This field can have the runtime type of // [WorkflowInstanceGetResponseStepsObjectTrigger]. - Trigger interface{} `json:"trigger,required"` - Type WorkflowInstanceGetResponseStepsType `json:"type,required"` - End time.Time `json:"end,nullable" format:"date-time"` - Finished bool `json:"finished"` - Name string `json:"name"` - Start time.Time `json:"start" format:"date-time"` - Success bool `json:"success,nullable"` - JSON workflowInstanceGetResponseStepJSON `json:"-"` - union WorkflowInstanceGetResponseStepsUnion + Trigger interface{} `json:"trigger"` + JSON workflowInstanceGetResponseStepJSON `json:"-"` + union WorkflowInstanceGetResponseStepsUnion } // workflowInstanceGetResponseStepJSON contains the JSON metadata for the struct // [WorkflowInstanceGetResponseStep] type workflowInstanceGetResponseStepJSON struct { + Type apijson.Field Attempts apijson.Field Config apijson.Field - Error apijson.Field - Output apijson.Field - Trigger apijson.Field - Type apijson.Field End apijson.Field + Error apijson.Field Finished apijson.Field Name apijson.Field + Output apijson.Field Start apijson.Field Success apijson.Field + Trigger apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/access.go b/zero_trust/access.go index 70d21f79103..769fc6af2cf 100644 --- a/zero_trust/access.go +++ b/zero_trust/access.go @@ -124,45 +124,45 @@ func (r AccessDevicePostureRuleDevicePostureParam) MarshalJSON() (data []byte, e type AccessRule struct { // This field can have the runtime type of // [AnyValidServiceTokenRuleAnyValidServiceToken]. - AnyValidServiceToken interface{} `json:"any_valid_service_token,required"` + AnyValidServiceToken interface{} `json:"any_valid_service_token"` // This field can have the runtime type of [AuthenticationMethodRuleAuthMethod]. - AuthMethod interface{} `json:"auth_method,required"` + AuthMethod interface{} `json:"auth_method"` // This field can have the runtime type of [AzureGroupRuleAzureAD]. - AzureAD interface{} `json:"azureAD,required"` + AzureAD interface{} `json:"azureAD"` // This field can have the runtime type of [CertificateRuleCertificate]. - Certificate interface{} `json:"certificate,required"` + Certificate interface{} `json:"certificate"` // This field can have the runtime type of [AccessDevicePostureRuleDevicePosture]. - DevicePosture interface{} `json:"device_posture,required"` + DevicePosture interface{} `json:"device_posture"` // This field can have the runtime type of [EmailRuleEmail]. - Email interface{} `json:"email,required"` + Email interface{} `json:"email"` // This field can have the runtime type of [DomainRuleEmailDomain]. - EmailDomain interface{} `json:"email_domain,required"` + EmailDomain interface{} `json:"email_domain"` // This field can have the runtime type of [EmailListRuleEmailList]. - EmailList interface{} `json:"email_list,required"` + EmailList interface{} `json:"email_list"` // This field can have the runtime type of [EveryoneRuleEveryone]. - Everyone interface{} `json:"everyone,required"` + Everyone interface{} `json:"everyone"` // This field can have the runtime type of // [ExternalEvaluationRuleExternalEvaluation]. - ExternalEvaluation interface{} `json:"external_evaluation,required"` + ExternalEvaluation interface{} `json:"external_evaluation"` // This field can have the runtime type of [CountryRuleGeo]. - Geo interface{} `json:"geo,required"` + Geo interface{} `json:"geo"` // This field can have the runtime type of // [GitHubOrganizationRuleGitHubOrganization]. - GitHubOrganization interface{} `json:"github-organization,required"` + GitHubOrganization interface{} `json:"github-organization"` // This field can have the runtime type of [GroupRuleGroup]. - Group interface{} `json:"group,required"` + Group interface{} `json:"group"` // This field can have the runtime type of [GSuiteGroupRuleGSuite]. - GSuite interface{} `json:"gsuite,required"` + GSuite interface{} `json:"gsuite"` // This field can have the runtime type of [IPRuleIP]. - IP interface{} `json:"ip,required"` + IP interface{} `json:"ip"` // This field can have the runtime type of [IPListRuleIPList]. - IPList interface{} `json:"ip_list,required"` + IPList interface{} `json:"ip_list"` // This field can have the runtime type of [OktaGroupRuleOkta]. - Okta interface{} `json:"okta,required"` + Okta interface{} `json:"okta"` // This field can have the runtime type of [SAMLGroupRuleSAML]. - SAML interface{} `json:"saml,required"` + SAML interface{} `json:"saml"` // This field can have the runtime type of [ServiceTokenRuleServiceToken]. - ServiceToken interface{} `json:"service_token,required"` + ServiceToken interface{} `json:"service_token"` JSON accessRuleJSON `json:"-"` union AccessRuleUnion } @@ -321,25 +321,25 @@ func init() { // Matches a specific email. type AccessRuleParam struct { - AnyValidServiceToken param.Field[interface{}] `json:"any_valid_service_token,required"` - AuthMethod param.Field[interface{}] `json:"auth_method,required"` - AzureAD param.Field[interface{}] `json:"azureAD,required"` - Certificate param.Field[interface{}] `json:"certificate,required"` - DevicePosture param.Field[interface{}] `json:"device_posture,required"` - Email param.Field[interface{}] `json:"email,required"` - EmailDomain param.Field[interface{}] `json:"email_domain,required"` - EmailList param.Field[interface{}] `json:"email_list,required"` - Everyone param.Field[interface{}] `json:"everyone,required"` - ExternalEvaluation param.Field[interface{}] `json:"external_evaluation,required"` - Geo param.Field[interface{}] `json:"geo,required"` - GitHubOrganization param.Field[interface{}] `json:"github-organization,required"` - Group param.Field[interface{}] `json:"group,required"` - GSuite param.Field[interface{}] `json:"gsuite,required"` - IP param.Field[interface{}] `json:"ip,required"` - IPList param.Field[interface{}] `json:"ip_list,required"` - Okta param.Field[interface{}] `json:"okta,required"` - SAML param.Field[interface{}] `json:"saml,required"` - ServiceToken param.Field[interface{}] `json:"service_token,required"` + AnyValidServiceToken param.Field[interface{}] `json:"any_valid_service_token"` + AuthMethod param.Field[interface{}] `json:"auth_method"` + AzureAD param.Field[interface{}] `json:"azureAD"` + Certificate param.Field[interface{}] `json:"certificate"` + DevicePosture param.Field[interface{}] `json:"device_posture"` + Email param.Field[interface{}] `json:"email"` + EmailDomain param.Field[interface{}] `json:"email_domain"` + EmailList param.Field[interface{}] `json:"email_list"` + Everyone param.Field[interface{}] `json:"everyone"` + ExternalEvaluation param.Field[interface{}] `json:"external_evaluation"` + Geo param.Field[interface{}] `json:"geo"` + GitHubOrganization param.Field[interface{}] `json:"github-organization"` + Group param.Field[interface{}] `json:"group"` + GSuite param.Field[interface{}] `json:"gsuite"` + IP param.Field[interface{}] `json:"ip"` + IPList param.Field[interface{}] `json:"ip_list"` + Okta param.Field[interface{}] `json:"okta"` + SAML param.Field[interface{}] `json:"saml"` + ServiceToken param.Field[interface{}] `json:"service_token"` } func (r AccessRuleParam) MarshalJSON() (data []byte, err error) { diff --git a/zero_trust/accessapplication.go b/zero_trust/accessapplication.go index 84617e466e7..4c1c5135bb1 100644 --- a/zero_trust/accessapplication.go +++ b/zero_trust/accessapplication.go @@ -1861,44 +1861,6 @@ type SelfHostedDomains = string type SelfHostedDomainsParam = string type AccessApplicationNewResponse struct { - // This field can have the runtime type of [[]AllowedIdPs]. - AllowedIdPs interface{} `json:"allowed_idps,required"` - // This field can have the runtime type of [[]string]. - CustomPages interface{} `json:"custom_pages,required"` - // This field can have the runtime type of - // [[]AccessApplicationNewResponseAppLauncherApplicationFooterLink], - // [[]AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationFooterLink], - // [[]AccessApplicationNewResponseBrowserIsolationPermissionsApplicationFooterLink]. - FooterLinks interface{} `json:"footer_links,required"` - // This field can have the runtime type of - // [AccessApplicationNewResponseAppLauncherApplicationLandingPageDesign], - // [AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], - // [AccessApplicationNewResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. - LandingPageDesign interface{} `json:"landing_page_design,required"` - // This field can have the runtime type of [[]ApplicationPolicy], - // [[]AccessApplicationNewResponseInfrastructureApplicationPolicy]. - Policies interface{} `json:"policies,required"` - // This field can have the runtime type of - // [AccessApplicationNewResponseSaaSApplicationSaaSApp]. - SaaSApp interface{} `json:"saas_app,required"` - // This field can have the runtime type of - // [AccessApplicationNewResponseSelfHostedApplicationSCIMConfig], - // [AccessApplicationNewResponseSaaSApplicationSCIMConfig], - // [AccessApplicationNewResponseBrowserSSHApplicationSCIMConfig], - // [AccessApplicationNewResponseBrowserVNCApplicationSCIMConfig], - // [AccessApplicationNewResponseAppLauncherApplicationSCIMConfig], - // [AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], - // [AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfig], - // [AccessApplicationNewResponseBookmarkApplicationSCIMConfig], - // [AccessApplicationNewResponseInfrastructureApplicationSCIMConfig]. - SCIMConfig interface{} `json:"scim_config,required"` - // This field can have the runtime type of [[]SelfHostedDomains]. - SelfHostedDomains interface{} `json:"self_hosted_domains,required"` - // This field can have the runtime type of [[]string]. - Tags interface{} `json:"tags,required"` - // This field can have the runtime type of - // [[]AccessApplicationNewResponseInfrastructureApplicationTargetCriterion]. - TargetCriteria interface{} `json:"target_criteria,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP @@ -1906,6 +1868,8 @@ type AccessApplicationNewResponse struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` + // This field can have the runtime type of [[]AllowedIdPs]. + AllowedIdPs interface{} `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL string `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -1928,17 +1892,29 @@ type AccessApplicationNewResponse struct { // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` + // This field can have the runtime type of [[]string]. + CustomPages interface{} `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` + // This field can have the runtime type of + // [[]AccessApplicationNewResponseAppLauncherApplicationFooterLink], + // [[]AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationFooterLink], + // [[]AccessApplicationNewResponseBrowserIsolationPermissionsApplicationFooterLink]. + FooterLinks interface{} `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor string `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationNewResponseAppLauncherApplicationLandingPageDesign], + // [AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], + // [AccessApplicationNewResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. + LandingPageDesign interface{} `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. @@ -1949,9 +1925,28 @@ type AccessApplicationNewResponse struct { // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` + // This field can have the runtime type of [[]ApplicationPolicy], + // [[]AccessApplicationNewResponseInfrastructureApplicationPolicy]. + Policies interface{} `json:"policies"` + // This field can have the runtime type of + // [AccessApplicationNewResponseSaaSApplicationSaaSApp]. + SaaSApp interface{} `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationNewResponseSelfHostedApplicationSCIMConfig], + // [AccessApplicationNewResponseSaaSApplicationSCIMConfig], + // [AccessApplicationNewResponseBrowserSSHApplicationSCIMConfig], + // [AccessApplicationNewResponseBrowserVNCApplicationSCIMConfig], + // [AccessApplicationNewResponseAppLauncherApplicationSCIMConfig], + // [AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], + // [AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfig], + // [AccessApplicationNewResponseBookmarkApplicationSCIMConfig], + // [AccessApplicationNewResponseInfrastructureApplicationSCIMConfig]. + SCIMConfig interface{} `json:"scim_config"` + // This field can have the runtime type of [[]SelfHostedDomains]. + SelfHostedDomains interface{} `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -1962,6 +1957,11 @@ type AccessApplicationNewResponse struct { SkipAppLauncherLoginPage bool `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` + // This field can have the runtime type of [[]string]. + Tags interface{} `json:"tags"` + // This field can have the runtime type of + // [[]AccessApplicationNewResponseInfrastructureApplicationTargetCriterion]. + TargetCriteria interface{} `json:"target_criteria"` // The application type. Type string `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` @@ -1972,18 +1972,9 @@ type AccessApplicationNewResponse struct { // accessApplicationNewResponseJSON contains the JSON metadata for the struct // [AccessApplicationNewResponse] type accessApplicationNewResponseJSON struct { - AllowedIdPs apijson.Field - CustomPages apijson.Field - FooterLinks apijson.Field - LandingPageDesign apijson.Field - Policies apijson.Field - SaaSApp apijson.Field - SCIMConfig apijson.Field - SelfHostedDomains apijson.Field - Tags apijson.Field - TargetCriteria apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field + AllowedIdPs apijson.Field AppLauncherLogoURL apijson.Field AppLauncherVisible apijson.Field AUD apijson.Field @@ -1994,19 +1985,28 @@ type accessApplicationNewResponseJSON struct { CustomDenyMessage apijson.Field CustomDenyURL apijson.Field CustomNonIdentityDenyURL apijson.Field + CustomPages apijson.Field Domain apijson.Field EnableBindingCookie apijson.Field + FooterLinks apijson.Field HeaderBgColor apijson.Field HTTPOnlyCookieAttribute apijson.Field + LandingPageDesign apijson.Field LogoURL apijson.Field Name apijson.Field OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field + Policies apijson.Field + SaaSApp apijson.Field SameSiteCookieAttribute apijson.Field + SCIMConfig apijson.Field + SelfHostedDomains apijson.Field ServiceAuth401Redirect apijson.Field SessionDuration apijson.Field SkipAppLauncherLoginPage apijson.Field SkipInterstitial apijson.Field + Tags apijson.Field + TargetCriteria apijson.Field Type apijson.Field UpdatedAt apijson.Field raw string @@ -2273,8 +2273,6 @@ func (r accessApplicationNewResponseSelfHostedApplicationSCIMConfigJSON) RawJSON type AccessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -2287,6 +2285,8 @@ type AccessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -2301,12 +2301,12 @@ type AccessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthentication s // [AccessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthentication] type accessApplicationNewResponseSelfHostedApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -2452,20 +2452,6 @@ func (r AccessApplicationNewResponseSaaSApplication) implementsZeroTrustAccessAp } type AccessApplicationNewResponseSaaSApplicationSaaSApp struct { - // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. - CustomAttributes interface{} `json:"custom_attributes,required"` - // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. - CustomClaims interface{} `json:"custom_claims,required"` - // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. - GrantTypes interface{} `json:"grant_types,required"` - // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. - HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options,required"` - // This field can have the runtime type of [[]string]. - RedirectURIs interface{} `json:"redirect_uris,required"` - // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. - RefreshTokenOptions interface{} `json:"refresh_token_options,required"` - // This field can have the runtime type of [[]OIDCSaaSAppScope]. - Scopes interface{} `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime string `json:"access_token_lifetime"` @@ -2485,11 +2471,19 @@ type AccessApplicationNewResponseSaaSApplicationSaaSApp struct { // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` + // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. + CustomAttributes interface{} `json:"custom_attributes"` + // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. + CustomClaims interface{} `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` + // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. + GrantTypes interface{} `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` + // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. + HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -2501,12 +2495,18 @@ type AccessApplicationNewResponseSaaSApplicationSaaSApp struct { NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` + // This field can have the runtime type of [[]string]. + RedirectURIs interface{} `json:"redirect_uris"` + // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. + RefreshTokenOptions interface{} `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` + // This field can have the runtime type of [[]OIDCSaaSAppScope]. + Scopes interface{} `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -2519,13 +2519,6 @@ type AccessApplicationNewResponseSaaSApplicationSaaSApp struct { // accessApplicationNewResponseSaaSApplicationSaaSAppJSON contains the JSON // metadata for the struct [AccessApplicationNewResponseSaaSApplicationSaaSApp] type accessApplicationNewResponseSaaSApplicationSaaSAppJSON struct { - CustomAttributes apijson.Field - CustomClaims apijson.Field - GrantTypes apijson.Field - HybridAndImplicitOptions apijson.Field - RedirectURIs apijson.Field - RefreshTokenOptions apijson.Field - Scopes apijson.Field AccessTokenLifetime apijson.Field AllowPKCEWithoutClientSecret apijson.Field AppLauncherURL apijson.Field @@ -2534,13 +2527,20 @@ type accessApplicationNewResponseSaaSApplicationSaaSAppJSON struct { ClientSecret apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field + CustomAttributes apijson.Field + CustomClaims apijson.Field DefaultRelayState apijson.Field + GrantTypes apijson.Field GroupFilterRegex apijson.Field + HybridAndImplicitOptions apijson.Field IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field + RedirectURIs apijson.Field + RefreshTokenOptions apijson.Field SAMLAttributeTransformJsonata apijson.Field + Scopes apijson.Field SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field @@ -2656,8 +2656,6 @@ func (r accessApplicationNewResponseSaaSApplicationSCIMConfigJSON) RawJSON() str type AccessApplicationNewResponseSaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseSaaSApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -2670,6 +2668,8 @@ type AccessApplicationNewResponseSaaSApplicationSCIMConfigAuthentication struct ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -2684,12 +2684,12 @@ type AccessApplicationNewResponseSaaSApplicationSCIMConfigAuthentication struct // [AccessApplicationNewResponseSaaSApplicationSCIMConfigAuthentication] type accessApplicationNewResponseSaaSApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -2940,8 +2940,6 @@ func (r accessApplicationNewResponseBrowserSSHApplicationSCIMConfigJSON) RawJSON type AccessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -2954,6 +2952,8 @@ type AccessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -2968,12 +2968,12 @@ type AccessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthentication s // [AccessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthentication] type accessApplicationNewResponseBrowserSSHApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -3224,8 +3224,6 @@ func (r accessApplicationNewResponseBrowserVNCApplicationSCIMConfigJSON) RawJSON type AccessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -3238,6 +3236,8 @@ type AccessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -3252,12 +3252,12 @@ type AccessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthentication s // [AccessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthentication] type accessApplicationNewResponseBrowserVNCApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -3526,8 +3526,6 @@ func (r accessApplicationNewResponseAppLauncherApplicationSCIMConfigJSON) RawJSO type AccessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -3540,6 +3538,8 @@ type AccessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -3554,12 +3554,12 @@ type AccessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthentication // [AccessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthentication] type accessApplicationNewResponseAppLauncherApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -3829,8 +3829,6 @@ func (r accessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMCo type AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -3843,6 +3841,8 @@ type AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfi ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -3857,12 +3857,12 @@ type AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfi // [AccessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication] type accessApplicationNewResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -4132,8 +4132,6 @@ func (r accessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMCo type AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -4146,6 +4144,8 @@ type AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfi ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -4160,12 +4160,12 @@ type AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfi // [AccessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication] type accessApplicationNewResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -4348,8 +4348,6 @@ func (r accessApplicationNewResponseBookmarkApplicationSCIMConfigJSON) RawJSON() type AccessApplicationNewResponseBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseBookmarkApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -4362,6 +4360,8 @@ type AccessApplicationNewResponseBookmarkApplicationSCIMConfigAuthentication str ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -4376,12 +4376,12 @@ type AccessApplicationNewResponseBookmarkApplicationSCIMConfigAuthentication str // [AccessApplicationNewResponseBookmarkApplicationSCIMConfigAuthentication] type accessApplicationNewResponseBookmarkApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -4646,8 +4646,6 @@ func (r accessApplicationNewResponseInfrastructureApplicationSCIMConfigJSON) Raw type AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -4660,6 +4658,8 @@ type AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthenticati ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -4674,12 +4674,12 @@ type AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthenticati // [AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthentication] type accessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -4758,44 +4758,6 @@ func (r AccessApplicationNewResponseInfrastructureApplicationSCIMConfigAuthentic } type AccessApplicationUpdateResponse struct { - // This field can have the runtime type of [[]AllowedIdPs]. - AllowedIdPs interface{} `json:"allowed_idps,required"` - // This field can have the runtime type of [[]string]. - CustomPages interface{} `json:"custom_pages,required"` - // This field can have the runtime type of - // [[]AccessApplicationUpdateResponseAppLauncherApplicationFooterLink], - // [[]AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationFooterLink], - // [[]AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationFooterLink]. - FooterLinks interface{} `json:"footer_links,required"` - // This field can have the runtime type of - // [AccessApplicationUpdateResponseAppLauncherApplicationLandingPageDesign], - // [AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], - // [AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. - LandingPageDesign interface{} `json:"landing_page_design,required"` - // This field can have the runtime type of [[]ApplicationPolicy], - // [[]AccessApplicationUpdateResponseInfrastructureApplicationPolicy]. - Policies interface{} `json:"policies,required"` - // This field can have the runtime type of - // [AccessApplicationUpdateResponseSaaSApplicationSaaSApp]. - SaaSApp interface{} `json:"saas_app,required"` - // This field can have the runtime type of - // [AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfig], - // [AccessApplicationUpdateResponseSaaSApplicationSCIMConfig], - // [AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfig], - // [AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfig], - // [AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfig], - // [AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], - // [AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfig], - // [AccessApplicationUpdateResponseBookmarkApplicationSCIMConfig], - // [AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfig]. - SCIMConfig interface{} `json:"scim_config,required"` - // This field can have the runtime type of [[]SelfHostedDomains]. - SelfHostedDomains interface{} `json:"self_hosted_domains,required"` - // This field can have the runtime type of [[]string]. - Tags interface{} `json:"tags,required"` - // This field can have the runtime type of - // [[]AccessApplicationUpdateResponseInfrastructureApplicationTargetCriterion]. - TargetCriteria interface{} `json:"target_criteria,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP @@ -4803,6 +4765,8 @@ type AccessApplicationUpdateResponse struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` + // This field can have the runtime type of [[]AllowedIdPs]. + AllowedIdPs interface{} `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL string `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -4825,17 +4789,29 @@ type AccessApplicationUpdateResponse struct { // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` + // This field can have the runtime type of [[]string]. + CustomPages interface{} `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` + // This field can have the runtime type of + // [[]AccessApplicationUpdateResponseAppLauncherApplicationFooterLink], + // [[]AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationFooterLink], + // [[]AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationFooterLink]. + FooterLinks interface{} `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor string `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationUpdateResponseAppLauncherApplicationLandingPageDesign], + // [AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], + // [AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. + LandingPageDesign interface{} `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. @@ -4846,9 +4822,28 @@ type AccessApplicationUpdateResponse struct { // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` + // This field can have the runtime type of [[]ApplicationPolicy], + // [[]AccessApplicationUpdateResponseInfrastructureApplicationPolicy]. + Policies interface{} `json:"policies"` + // This field can have the runtime type of + // [AccessApplicationUpdateResponseSaaSApplicationSaaSApp]. + SaaSApp interface{} `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfig], + // [AccessApplicationUpdateResponseSaaSApplicationSCIMConfig], + // [AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfig], + // [AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfig], + // [AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfig], + // [AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], + // [AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfig], + // [AccessApplicationUpdateResponseBookmarkApplicationSCIMConfig], + // [AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfig]. + SCIMConfig interface{} `json:"scim_config"` + // This field can have the runtime type of [[]SelfHostedDomains]. + SelfHostedDomains interface{} `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -4859,6 +4854,11 @@ type AccessApplicationUpdateResponse struct { SkipAppLauncherLoginPage bool `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` + // This field can have the runtime type of [[]string]. + Tags interface{} `json:"tags"` + // This field can have the runtime type of + // [[]AccessApplicationUpdateResponseInfrastructureApplicationTargetCriterion]. + TargetCriteria interface{} `json:"target_criteria"` // The application type. Type string `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` @@ -4869,18 +4869,9 @@ type AccessApplicationUpdateResponse struct { // accessApplicationUpdateResponseJSON contains the JSON metadata for the struct // [AccessApplicationUpdateResponse] type accessApplicationUpdateResponseJSON struct { - AllowedIdPs apijson.Field - CustomPages apijson.Field - FooterLinks apijson.Field - LandingPageDesign apijson.Field - Policies apijson.Field - SaaSApp apijson.Field - SCIMConfig apijson.Field - SelfHostedDomains apijson.Field - Tags apijson.Field - TargetCriteria apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field + AllowedIdPs apijson.Field AppLauncherLogoURL apijson.Field AppLauncherVisible apijson.Field AUD apijson.Field @@ -4891,19 +4882,28 @@ type accessApplicationUpdateResponseJSON struct { CustomDenyMessage apijson.Field CustomDenyURL apijson.Field CustomNonIdentityDenyURL apijson.Field + CustomPages apijson.Field Domain apijson.Field EnableBindingCookie apijson.Field + FooterLinks apijson.Field HeaderBgColor apijson.Field HTTPOnlyCookieAttribute apijson.Field + LandingPageDesign apijson.Field LogoURL apijson.Field Name apijson.Field OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field + Policies apijson.Field + SaaSApp apijson.Field SameSiteCookieAttribute apijson.Field + SCIMConfig apijson.Field + SelfHostedDomains apijson.Field ServiceAuth401Redirect apijson.Field SessionDuration apijson.Field SkipAppLauncherLoginPage apijson.Field SkipInterstitial apijson.Field + Tags apijson.Field + TargetCriteria apijson.Field Type apijson.Field UpdatedAt apijson.Field raw string @@ -5170,8 +5170,6 @@ func (r accessApplicationUpdateResponseSelfHostedApplicationSCIMConfigJSON) RawJ type AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -5184,6 +5182,8 @@ type AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthenticatio ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -5198,12 +5198,12 @@ type AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthenticatio // [AccessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseSelfHostedApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -5349,20 +5349,6 @@ func (r AccessApplicationUpdateResponseSaaSApplication) implementsZeroTrustAcces } type AccessApplicationUpdateResponseSaaSApplicationSaaSApp struct { - // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. - CustomAttributes interface{} `json:"custom_attributes,required"` - // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. - CustomClaims interface{} `json:"custom_claims,required"` - // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. - GrantTypes interface{} `json:"grant_types,required"` - // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. - HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options,required"` - // This field can have the runtime type of [[]string]. - RedirectURIs interface{} `json:"redirect_uris,required"` - // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. - RefreshTokenOptions interface{} `json:"refresh_token_options,required"` - // This field can have the runtime type of [[]OIDCSaaSAppScope]. - Scopes interface{} `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime string `json:"access_token_lifetime"` @@ -5382,11 +5368,19 @@ type AccessApplicationUpdateResponseSaaSApplicationSaaSApp struct { // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` + // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. + CustomAttributes interface{} `json:"custom_attributes"` + // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. + CustomClaims interface{} `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` + // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. + GrantTypes interface{} `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` + // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. + HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -5398,12 +5392,18 @@ type AccessApplicationUpdateResponseSaaSApplicationSaaSApp struct { NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` + // This field can have the runtime type of [[]string]. + RedirectURIs interface{} `json:"redirect_uris"` + // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. + RefreshTokenOptions interface{} `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` + // This field can have the runtime type of [[]OIDCSaaSAppScope]. + Scopes interface{} `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -5416,13 +5416,6 @@ type AccessApplicationUpdateResponseSaaSApplicationSaaSApp struct { // accessApplicationUpdateResponseSaaSApplicationSaaSAppJSON contains the JSON // metadata for the struct [AccessApplicationUpdateResponseSaaSApplicationSaaSApp] type accessApplicationUpdateResponseSaaSApplicationSaaSAppJSON struct { - CustomAttributes apijson.Field - CustomClaims apijson.Field - GrantTypes apijson.Field - HybridAndImplicitOptions apijson.Field - RedirectURIs apijson.Field - RefreshTokenOptions apijson.Field - Scopes apijson.Field AccessTokenLifetime apijson.Field AllowPKCEWithoutClientSecret apijson.Field AppLauncherURL apijson.Field @@ -5431,13 +5424,20 @@ type accessApplicationUpdateResponseSaaSApplicationSaaSAppJSON struct { ClientSecret apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field + CustomAttributes apijson.Field + CustomClaims apijson.Field DefaultRelayState apijson.Field + GrantTypes apijson.Field GroupFilterRegex apijson.Field + HybridAndImplicitOptions apijson.Field IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field + RedirectURIs apijson.Field + RefreshTokenOptions apijson.Field SAMLAttributeTransformJsonata apijson.Field + Scopes apijson.Field SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field @@ -5554,8 +5554,6 @@ func (r accessApplicationUpdateResponseSaaSApplicationSCIMConfigJSON) RawJSON() type AccessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -5568,6 +5566,8 @@ type AccessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthentication stru ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -5582,12 +5582,12 @@ type AccessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthentication stru // [AccessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseSaaSApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -5838,8 +5838,6 @@ func (r accessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigJSON) RawJ type AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -5852,6 +5850,8 @@ type AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthenticatio ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -5866,12 +5866,12 @@ type AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthenticatio // [AccessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseBrowserSSHApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -6122,8 +6122,6 @@ func (r accessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigJSON) RawJ type AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -6136,6 +6134,8 @@ type AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthenticatio ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -6150,12 +6150,12 @@ type AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthenticatio // [AccessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseBrowserVNCApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -6424,8 +6424,6 @@ func (r accessApplicationUpdateResponseAppLauncherApplicationSCIMConfigJSON) Raw type AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -6438,6 +6436,8 @@ type AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthenticati ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -6452,12 +6452,12 @@ type AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthenticati // [AccessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseAppLauncherApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -6727,8 +6727,6 @@ func (r accessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCI type AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -6741,6 +6739,8 @@ type AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMCo ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -6755,12 +6755,12 @@ type AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMCo // [AccessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -7030,8 +7030,6 @@ func (r accessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCI type AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -7044,6 +7042,8 @@ type AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMCo ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -7058,12 +7058,12 @@ type AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMCo // [AccessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -7246,8 +7246,6 @@ func (r accessApplicationUpdateResponseBookmarkApplicationSCIMConfigJSON) RawJSO type AccessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -7260,6 +7258,8 @@ type AccessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -7274,12 +7274,12 @@ type AccessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthentication // [AccessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseBookmarkApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -7545,8 +7545,6 @@ func (r accessApplicationUpdateResponseInfrastructureApplicationSCIMConfigJSON) type AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -7559,6 +7557,8 @@ type AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthentic ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -7573,12 +7573,12 @@ type AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthentic // [AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthentication] type accessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -7657,44 +7657,6 @@ func (r AccessApplicationUpdateResponseInfrastructureApplicationSCIMConfigAuthen } type AccessApplicationListResponse struct { - // This field can have the runtime type of [[]AllowedIdPs]. - AllowedIdPs interface{} `json:"allowed_idps,required"` - // This field can have the runtime type of [[]string]. - CustomPages interface{} `json:"custom_pages,required"` - // This field can have the runtime type of - // [[]AccessApplicationListResponseAppLauncherApplicationFooterLink], - // [[]AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationFooterLink], - // [[]AccessApplicationListResponseBrowserIsolationPermissionsApplicationFooterLink]. - FooterLinks interface{} `json:"footer_links,required"` - // This field can have the runtime type of - // [AccessApplicationListResponseAppLauncherApplicationLandingPageDesign], - // [AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], - // [AccessApplicationListResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. - LandingPageDesign interface{} `json:"landing_page_design,required"` - // This field can have the runtime type of [[]ApplicationPolicy], - // [[]AccessApplicationListResponseInfrastructureApplicationPolicy]. - Policies interface{} `json:"policies,required"` - // This field can have the runtime type of - // [AccessApplicationListResponseSaaSApplicationSaaSApp]. - SaaSApp interface{} `json:"saas_app,required"` - // This field can have the runtime type of - // [AccessApplicationListResponseSelfHostedApplicationSCIMConfig], - // [AccessApplicationListResponseSaaSApplicationSCIMConfig], - // [AccessApplicationListResponseBrowserSSHApplicationSCIMConfig], - // [AccessApplicationListResponseBrowserVNCApplicationSCIMConfig], - // [AccessApplicationListResponseAppLauncherApplicationSCIMConfig], - // [AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], - // [AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfig], - // [AccessApplicationListResponseBookmarkApplicationSCIMConfig], - // [AccessApplicationListResponseInfrastructureApplicationSCIMConfig]. - SCIMConfig interface{} `json:"scim_config,required"` - // This field can have the runtime type of [[]SelfHostedDomains]. - SelfHostedDomains interface{} `json:"self_hosted_domains,required"` - // This field can have the runtime type of [[]string]. - Tags interface{} `json:"tags,required"` - // This field can have the runtime type of - // [[]AccessApplicationListResponseInfrastructureApplicationTargetCriterion]. - TargetCriteria interface{} `json:"target_criteria,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP @@ -7702,6 +7664,8 @@ type AccessApplicationListResponse struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` + // This field can have the runtime type of [[]AllowedIdPs]. + AllowedIdPs interface{} `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL string `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -7724,17 +7688,29 @@ type AccessApplicationListResponse struct { // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` + // This field can have the runtime type of [[]string]. + CustomPages interface{} `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` + // This field can have the runtime type of + // [[]AccessApplicationListResponseAppLauncherApplicationFooterLink], + // [[]AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationFooterLink], + // [[]AccessApplicationListResponseBrowserIsolationPermissionsApplicationFooterLink]. + FooterLinks interface{} `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor string `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationListResponseAppLauncherApplicationLandingPageDesign], + // [AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], + // [AccessApplicationListResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. + LandingPageDesign interface{} `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. @@ -7745,9 +7721,28 @@ type AccessApplicationListResponse struct { // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` + // This field can have the runtime type of [[]ApplicationPolicy], + // [[]AccessApplicationListResponseInfrastructureApplicationPolicy]. + Policies interface{} `json:"policies"` + // This field can have the runtime type of + // [AccessApplicationListResponseSaaSApplicationSaaSApp]. + SaaSApp interface{} `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationListResponseSelfHostedApplicationSCIMConfig], + // [AccessApplicationListResponseSaaSApplicationSCIMConfig], + // [AccessApplicationListResponseBrowserSSHApplicationSCIMConfig], + // [AccessApplicationListResponseBrowserVNCApplicationSCIMConfig], + // [AccessApplicationListResponseAppLauncherApplicationSCIMConfig], + // [AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], + // [AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfig], + // [AccessApplicationListResponseBookmarkApplicationSCIMConfig], + // [AccessApplicationListResponseInfrastructureApplicationSCIMConfig]. + SCIMConfig interface{} `json:"scim_config"` + // This field can have the runtime type of [[]SelfHostedDomains]. + SelfHostedDomains interface{} `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -7758,28 +7753,24 @@ type AccessApplicationListResponse struct { SkipAppLauncherLoginPage bool `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` + // This field can have the runtime type of [[]string]. + Tags interface{} `json:"tags"` + // This field can have the runtime type of + // [[]AccessApplicationListResponseInfrastructureApplicationTargetCriterion]. + TargetCriteria interface{} `json:"target_criteria"` // The application type. Type string `json:"type"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON accessApplicationListResponseJSON `json:"-"` - union AccessApplicationListResponseUnion -} - -// accessApplicationListResponseJSON contains the JSON metadata for the struct -// [AccessApplicationListResponse] -type accessApplicationListResponseJSON struct { - AllowedIdPs apijson.Field - CustomPages apijson.Field - FooterLinks apijson.Field - LandingPageDesign apijson.Field - Policies apijson.Field - SaaSApp apijson.Field - SCIMConfig apijson.Field - SelfHostedDomains apijson.Field - Tags apijson.Field - TargetCriteria apijson.Field + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON accessApplicationListResponseJSON `json:"-"` + union AccessApplicationListResponseUnion +} + +// accessApplicationListResponseJSON contains the JSON metadata for the struct +// [AccessApplicationListResponse] +type accessApplicationListResponseJSON struct { ID apijson.Field AllowAuthenticateViaWARP apijson.Field + AllowedIdPs apijson.Field AppLauncherLogoURL apijson.Field AppLauncherVisible apijson.Field AUD apijson.Field @@ -7790,19 +7781,28 @@ type accessApplicationListResponseJSON struct { CustomDenyMessage apijson.Field CustomDenyURL apijson.Field CustomNonIdentityDenyURL apijson.Field + CustomPages apijson.Field Domain apijson.Field EnableBindingCookie apijson.Field + FooterLinks apijson.Field HeaderBgColor apijson.Field HTTPOnlyCookieAttribute apijson.Field + LandingPageDesign apijson.Field LogoURL apijson.Field Name apijson.Field OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field + Policies apijson.Field + SaaSApp apijson.Field SameSiteCookieAttribute apijson.Field + SCIMConfig apijson.Field + SelfHostedDomains apijson.Field ServiceAuth401Redirect apijson.Field SessionDuration apijson.Field SkipAppLauncherLoginPage apijson.Field SkipInterstitial apijson.Field + Tags apijson.Field + TargetCriteria apijson.Field Type apijson.Field UpdatedAt apijson.Field raw string @@ -8069,8 +8069,6 @@ func (r accessApplicationListResponseSelfHostedApplicationSCIMConfigJSON) RawJSO type AccessApplicationListResponseSelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseSelfHostedApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -8083,6 +8081,8 @@ type AccessApplicationListResponseSelfHostedApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -8097,12 +8097,12 @@ type AccessApplicationListResponseSelfHostedApplicationSCIMConfigAuthentication // [AccessApplicationListResponseSelfHostedApplicationSCIMConfigAuthentication] type accessApplicationListResponseSelfHostedApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -8248,20 +8248,6 @@ func (r AccessApplicationListResponseSaaSApplication) implementsZeroTrustAccessA } type AccessApplicationListResponseSaaSApplicationSaaSApp struct { - // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. - CustomAttributes interface{} `json:"custom_attributes,required"` - // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. - CustomClaims interface{} `json:"custom_claims,required"` - // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. - GrantTypes interface{} `json:"grant_types,required"` - // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. - HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options,required"` - // This field can have the runtime type of [[]string]. - RedirectURIs interface{} `json:"redirect_uris,required"` - // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. - RefreshTokenOptions interface{} `json:"refresh_token_options,required"` - // This field can have the runtime type of [[]OIDCSaaSAppScope]. - Scopes interface{} `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime string `json:"access_token_lifetime"` @@ -8281,11 +8267,19 @@ type AccessApplicationListResponseSaaSApplicationSaaSApp struct { // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` + // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. + CustomAttributes interface{} `json:"custom_attributes"` + // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. + CustomClaims interface{} `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` + // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. + GrantTypes interface{} `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` + // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. + HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -8297,12 +8291,18 @@ type AccessApplicationListResponseSaaSApplicationSaaSApp struct { NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` + // This field can have the runtime type of [[]string]. + RedirectURIs interface{} `json:"redirect_uris"` + // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. + RefreshTokenOptions interface{} `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` + // This field can have the runtime type of [[]OIDCSaaSAppScope]. + Scopes interface{} `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -8315,13 +8315,6 @@ type AccessApplicationListResponseSaaSApplicationSaaSApp struct { // accessApplicationListResponseSaaSApplicationSaaSAppJSON contains the JSON // metadata for the struct [AccessApplicationListResponseSaaSApplicationSaaSApp] type accessApplicationListResponseSaaSApplicationSaaSAppJSON struct { - CustomAttributes apijson.Field - CustomClaims apijson.Field - GrantTypes apijson.Field - HybridAndImplicitOptions apijson.Field - RedirectURIs apijson.Field - RefreshTokenOptions apijson.Field - Scopes apijson.Field AccessTokenLifetime apijson.Field AllowPKCEWithoutClientSecret apijson.Field AppLauncherURL apijson.Field @@ -8330,13 +8323,20 @@ type accessApplicationListResponseSaaSApplicationSaaSAppJSON struct { ClientSecret apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field + CustomAttributes apijson.Field + CustomClaims apijson.Field DefaultRelayState apijson.Field + GrantTypes apijson.Field GroupFilterRegex apijson.Field + HybridAndImplicitOptions apijson.Field IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field + RedirectURIs apijson.Field + RefreshTokenOptions apijson.Field SAMLAttributeTransformJsonata apijson.Field + Scopes apijson.Field SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field @@ -8452,8 +8452,6 @@ func (r accessApplicationListResponseSaaSApplicationSCIMConfigJSON) RawJSON() st type AccessApplicationListResponseSaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseSaaSApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -8466,6 +8464,8 @@ type AccessApplicationListResponseSaaSApplicationSCIMConfigAuthentication struct ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -8480,12 +8480,12 @@ type AccessApplicationListResponseSaaSApplicationSCIMConfigAuthentication struct // [AccessApplicationListResponseSaaSApplicationSCIMConfigAuthentication] type accessApplicationListResponseSaaSApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -8736,8 +8736,6 @@ func (r accessApplicationListResponseBrowserSSHApplicationSCIMConfigJSON) RawJSO type AccessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -8750,6 +8748,8 @@ type AccessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -8764,12 +8764,12 @@ type AccessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthentication // [AccessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthentication] type accessApplicationListResponseBrowserSSHApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -9020,8 +9020,6 @@ func (r accessApplicationListResponseBrowserVNCApplicationSCIMConfigJSON) RawJSO type AccessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -9034,6 +9032,8 @@ type AccessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -9048,12 +9048,12 @@ type AccessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthentication // [AccessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthentication] type accessApplicationListResponseBrowserVNCApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -9322,8 +9322,6 @@ func (r accessApplicationListResponseAppLauncherApplicationSCIMConfigJSON) RawJS type AccessApplicationListResponseAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseAppLauncherApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -9336,6 +9334,8 @@ type AccessApplicationListResponseAppLauncherApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -9350,12 +9350,12 @@ type AccessApplicationListResponseAppLauncherApplicationSCIMConfigAuthentication // [AccessApplicationListResponseAppLauncherApplicationSCIMConfigAuthentication] type accessApplicationListResponseAppLauncherApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -9625,8 +9625,6 @@ func (r accessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMC type AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -9639,6 +9637,8 @@ type AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConf ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -9653,12 +9653,12 @@ type AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConf // [AccessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication] type accessApplicationListResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -9928,8 +9928,6 @@ func (r accessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMC type AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -9942,6 +9940,8 @@ type AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConf ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -9956,12 +9956,12 @@ type AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConf // [AccessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication] type accessApplicationListResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -10144,8 +10144,6 @@ func (r accessApplicationListResponseBookmarkApplicationSCIMConfigJSON) RawJSON( type AccessApplicationListResponseBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseBookmarkApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -10158,6 +10156,8 @@ type AccessApplicationListResponseBookmarkApplicationSCIMConfigAuthentication st ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -10172,12 +10172,12 @@ type AccessApplicationListResponseBookmarkApplicationSCIMConfigAuthentication st // [AccessApplicationListResponseBookmarkApplicationSCIMConfigAuthentication] type accessApplicationListResponseBookmarkApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -10442,8 +10442,6 @@ func (r accessApplicationListResponseInfrastructureApplicationSCIMConfigJSON) Ra type AccessApplicationListResponseInfrastructureApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationListResponseInfrastructureApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -10456,6 +10454,8 @@ type AccessApplicationListResponseInfrastructureApplicationSCIMConfigAuthenticat ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -10470,12 +10470,12 @@ type AccessApplicationListResponseInfrastructureApplicationSCIMConfigAuthenticat // [AccessApplicationListResponseInfrastructureApplicationSCIMConfigAuthentication] type accessApplicationListResponseInfrastructureApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -10576,44 +10576,6 @@ func (r accessApplicationDeleteResponseJSON) RawJSON() string { } type AccessApplicationGetResponse struct { - // This field can have the runtime type of [[]AllowedIdPs]. - AllowedIdPs interface{} `json:"allowed_idps,required"` - // This field can have the runtime type of [[]string]. - CustomPages interface{} `json:"custom_pages,required"` - // This field can have the runtime type of - // [[]AccessApplicationGetResponseAppLauncherApplicationFooterLink], - // [[]AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationFooterLink], - // [[]AccessApplicationGetResponseBrowserIsolationPermissionsApplicationFooterLink]. - FooterLinks interface{} `json:"footer_links,required"` - // This field can have the runtime type of - // [AccessApplicationGetResponseAppLauncherApplicationLandingPageDesign], - // [AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], - // [AccessApplicationGetResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. - LandingPageDesign interface{} `json:"landing_page_design,required"` - // This field can have the runtime type of [[]ApplicationPolicy], - // [[]AccessApplicationGetResponseInfrastructureApplicationPolicy]. - Policies interface{} `json:"policies,required"` - // This field can have the runtime type of - // [AccessApplicationGetResponseSaaSApplicationSaaSApp]. - SaaSApp interface{} `json:"saas_app,required"` - // This field can have the runtime type of - // [AccessApplicationGetResponseSelfHostedApplicationSCIMConfig], - // [AccessApplicationGetResponseSaaSApplicationSCIMConfig], - // [AccessApplicationGetResponseBrowserSSHApplicationSCIMConfig], - // [AccessApplicationGetResponseBrowserVNCApplicationSCIMConfig], - // [AccessApplicationGetResponseAppLauncherApplicationSCIMConfig], - // [AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], - // [AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfig], - // [AccessApplicationGetResponseBookmarkApplicationSCIMConfig], - // [AccessApplicationGetResponseInfrastructureApplicationSCIMConfig]. - SCIMConfig interface{} `json:"scim_config,required"` - // This field can have the runtime type of [[]SelfHostedDomains]. - SelfHostedDomains interface{} `json:"self_hosted_domains,required"` - // This field can have the runtime type of [[]string]. - Tags interface{} `json:"tags,required"` - // This field can have the runtime type of - // [[]AccessApplicationGetResponseInfrastructureApplicationTargetCriterion]. - TargetCriteria interface{} `json:"target_criteria,required"` // UUID ID string `json:"id"` // When set to true, users can authenticate to this application using their WARP @@ -10621,6 +10583,8 @@ type AccessApplicationGetResponse struct { // authentication. This setting always overrides the organization setting for WARP // authentication. AllowAuthenticateViaWARP bool `json:"allow_authenticate_via_warp"` + // This field can have the runtime type of [[]AllowedIdPs]. + AllowedIdPs interface{} `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL string `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -10643,17 +10607,29 @@ type AccessApplicationGetResponse struct { // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. CustomNonIdentityDenyURL string `json:"custom_non_identity_deny_url"` + // This field can have the runtime type of [[]string]. + CustomPages interface{} `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain string `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. EnableBindingCookie bool `json:"enable_binding_cookie"` + // This field can have the runtime type of + // [[]AccessApplicationGetResponseAppLauncherApplicationFooterLink], + // [[]AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationFooterLink], + // [[]AccessApplicationGetResponseBrowserIsolationPermissionsApplicationFooterLink]. + FooterLinks interface{} `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor string `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. HTTPOnlyCookieAttribute bool `json:"http_only_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationGetResponseAppLauncherApplicationLandingPageDesign], + // [AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationLandingPageDesign], + // [AccessApplicationGetResponseBrowserIsolationPermissionsApplicationLandingPageDesign]. + LandingPageDesign interface{} `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL string `json:"logo_url"` // The name of the application. @@ -10664,9 +10640,28 @@ type AccessApplicationGetResponse struct { // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default PathCookieAttribute bool `json:"path_cookie_attribute"` + // This field can have the runtime type of [[]ApplicationPolicy], + // [[]AccessApplicationGetResponseInfrastructureApplicationPolicy]. + Policies interface{} `json:"policies"` + // This field can have the runtime type of + // [AccessApplicationGetResponseSaaSApplicationSaaSApp]. + SaaSApp interface{} `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. SameSiteCookieAttribute string `json:"same_site_cookie_attribute"` + // This field can have the runtime type of + // [AccessApplicationGetResponseSelfHostedApplicationSCIMConfig], + // [AccessApplicationGetResponseSaaSApplicationSCIMConfig], + // [AccessApplicationGetResponseBrowserSSHApplicationSCIMConfig], + // [AccessApplicationGetResponseBrowserVNCApplicationSCIMConfig], + // [AccessApplicationGetResponseAppLauncherApplicationSCIMConfig], + // [AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfig], + // [AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfig], + // [AccessApplicationGetResponseBookmarkApplicationSCIMConfig], + // [AccessApplicationGetResponseInfrastructureApplicationSCIMConfig]. + SCIMConfig interface{} `json:"scim_config"` + // This field can have the runtime type of [[]SelfHostedDomains]. + SelfHostedDomains interface{} `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect bool `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -10677,6 +10672,11 @@ type AccessApplicationGetResponse struct { SkipAppLauncherLoginPage bool `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. SkipInterstitial bool `json:"skip_interstitial"` + // This field can have the runtime type of [[]string]. + Tags interface{} `json:"tags"` + // This field can have the runtime type of + // [[]AccessApplicationGetResponseInfrastructureApplicationTargetCriterion]. + TargetCriteria interface{} `json:"target_criteria"` // The application type. Type string `json:"type"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` @@ -10687,18 +10687,9 @@ type AccessApplicationGetResponse struct { // accessApplicationGetResponseJSON contains the JSON metadata for the struct // [AccessApplicationGetResponse] type accessApplicationGetResponseJSON struct { - AllowedIdPs apijson.Field - CustomPages apijson.Field - FooterLinks apijson.Field - LandingPageDesign apijson.Field - Policies apijson.Field - SaaSApp apijson.Field - SCIMConfig apijson.Field - SelfHostedDomains apijson.Field - Tags apijson.Field - TargetCriteria apijson.Field ID apijson.Field AllowAuthenticateViaWARP apijson.Field + AllowedIdPs apijson.Field AppLauncherLogoURL apijson.Field AppLauncherVisible apijson.Field AUD apijson.Field @@ -10709,19 +10700,28 @@ type accessApplicationGetResponseJSON struct { CustomDenyMessage apijson.Field CustomDenyURL apijson.Field CustomNonIdentityDenyURL apijson.Field + CustomPages apijson.Field Domain apijson.Field EnableBindingCookie apijson.Field + FooterLinks apijson.Field HeaderBgColor apijson.Field HTTPOnlyCookieAttribute apijson.Field + LandingPageDesign apijson.Field LogoURL apijson.Field Name apijson.Field OptionsPreflightBypass apijson.Field PathCookieAttribute apijson.Field + Policies apijson.Field + SaaSApp apijson.Field SameSiteCookieAttribute apijson.Field + SCIMConfig apijson.Field + SelfHostedDomains apijson.Field ServiceAuth401Redirect apijson.Field SessionDuration apijson.Field SkipAppLauncherLoginPage apijson.Field SkipInterstitial apijson.Field + Tags apijson.Field + TargetCriteria apijson.Field Type apijson.Field UpdatedAt apijson.Field raw string @@ -10988,8 +10988,6 @@ func (r accessApplicationGetResponseSelfHostedApplicationSCIMConfigJSON) RawJSON type AccessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -11002,6 +11000,8 @@ type AccessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -11016,12 +11016,12 @@ type AccessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthentication s // [AccessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthentication] type accessApplicationGetResponseSelfHostedApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -11167,20 +11167,6 @@ func (r AccessApplicationGetResponseSaaSApplication) implementsZeroTrustAccessAp } type AccessApplicationGetResponseSaaSApplicationSaaSApp struct { - // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. - CustomAttributes interface{} `json:"custom_attributes,required"` - // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. - CustomClaims interface{} `json:"custom_claims,required"` - // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. - GrantTypes interface{} `json:"grant_types,required"` - // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. - HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options,required"` - // This field can have the runtime type of [[]string]. - RedirectURIs interface{} `json:"redirect_uris,required"` - // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. - RefreshTokenOptions interface{} `json:"refresh_token_options,required"` - // This field can have the runtime type of [[]OIDCSaaSAppScope]. - Scopes interface{} `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime string `json:"access_token_lifetime"` @@ -11200,11 +11186,19 @@ type AccessApplicationGetResponseSaaSApplicationSaaSApp struct { // SAML assertion. ConsumerServiceURL string `json:"consumer_service_url"` CreatedAt time.Time `json:"created_at" format:"date-time"` + // This field can have the runtime type of [[]SAMLSaaSAppCustomAttribute]. + CustomAttributes interface{} `json:"custom_attributes"` + // This field can have the runtime type of [[]OIDCSaaSAppCustomClaim]. + CustomClaims interface{} `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. DefaultRelayState string `json:"default_relay_state"` + // This field can have the runtime type of [[]OIDCSaaSAppGrantType]. + GrantTypes interface{} `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint GroupFilterRegex string `json:"group_filter_regex"` + // This field can have the runtime type of [OIDCSaaSAppHybridAndImplicitOptions]. + HybridAndImplicitOptions interface{} `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID string `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -11216,12 +11210,18 @@ type AccessApplicationGetResponseSaaSApplicationSaaSApp struct { NameIDTransformJsonata string `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. PublicKey string `json:"public_key"` + // This field can have the runtime type of [[]string]. + RedirectURIs interface{} `json:"redirect_uris"` + // This field can have the runtime type of [OIDCSaaSAppRefreshTokenOptions]. + RefreshTokenOptions interface{} `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. SAMLAttributeTransformJsonata string `json:"saml_attribute_transform_jsonata"` + // This field can have the runtime type of [[]OIDCSaaSAppScope]. + Scopes interface{} `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID string `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -11234,13 +11234,6 @@ type AccessApplicationGetResponseSaaSApplicationSaaSApp struct { // accessApplicationGetResponseSaaSApplicationSaaSAppJSON contains the JSON // metadata for the struct [AccessApplicationGetResponseSaaSApplicationSaaSApp] type accessApplicationGetResponseSaaSApplicationSaaSAppJSON struct { - CustomAttributes apijson.Field - CustomClaims apijson.Field - GrantTypes apijson.Field - HybridAndImplicitOptions apijson.Field - RedirectURIs apijson.Field - RefreshTokenOptions apijson.Field - Scopes apijson.Field AccessTokenLifetime apijson.Field AllowPKCEWithoutClientSecret apijson.Field AppLauncherURL apijson.Field @@ -11249,13 +11242,20 @@ type accessApplicationGetResponseSaaSApplicationSaaSAppJSON struct { ClientSecret apijson.Field ConsumerServiceURL apijson.Field CreatedAt apijson.Field + CustomAttributes apijson.Field + CustomClaims apijson.Field DefaultRelayState apijson.Field + GrantTypes apijson.Field GroupFilterRegex apijson.Field + HybridAndImplicitOptions apijson.Field IdPEntityID apijson.Field NameIDFormat apijson.Field NameIDTransformJsonata apijson.Field PublicKey apijson.Field + RedirectURIs apijson.Field + RefreshTokenOptions apijson.Field SAMLAttributeTransformJsonata apijson.Field + Scopes apijson.Field SPEntityID apijson.Field SSOEndpoint apijson.Field UpdatedAt apijson.Field @@ -11371,8 +11371,6 @@ func (r accessApplicationGetResponseSaaSApplicationSCIMConfigJSON) RawJSON() str type AccessApplicationGetResponseSaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseSaaSApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -11385,6 +11383,8 @@ type AccessApplicationGetResponseSaaSApplicationSCIMConfigAuthentication struct ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -11399,12 +11399,12 @@ type AccessApplicationGetResponseSaaSApplicationSCIMConfigAuthentication struct // [AccessApplicationGetResponseSaaSApplicationSCIMConfigAuthentication] type accessApplicationGetResponseSaaSApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -11655,8 +11655,6 @@ func (r accessApplicationGetResponseBrowserSSHApplicationSCIMConfigJSON) RawJSON type AccessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -11669,6 +11667,8 @@ type AccessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -11683,12 +11683,12 @@ type AccessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthentication s // [AccessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthentication] type accessApplicationGetResponseBrowserSSHApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -11939,8 +11939,6 @@ func (r accessApplicationGetResponseBrowserVNCApplicationSCIMConfigJSON) RawJSON type AccessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -11953,6 +11951,8 @@ type AccessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthentication s ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -11967,12 +11967,12 @@ type AccessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthentication s // [AccessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthentication] type accessApplicationGetResponseBrowserVNCApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -12241,8 +12241,6 @@ func (r accessApplicationGetResponseAppLauncherApplicationSCIMConfigJSON) RawJSO type AccessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -12255,6 +12253,8 @@ type AccessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthentication ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -12269,12 +12269,12 @@ type AccessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthentication // [AccessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthentication] type accessApplicationGetResponseAppLauncherApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -12544,8 +12544,6 @@ func (r accessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMCo type AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -12558,6 +12556,8 @@ type AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfi ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -12572,12 +12572,12 @@ type AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfi // [AccessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication] type accessApplicationGetResponseDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -12847,8 +12847,6 @@ func (r accessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMCo type AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -12861,6 +12859,8 @@ type AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfi ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -12875,12 +12875,12 @@ type AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfi // [AccessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthentication] type accessApplicationGetResponseBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -13063,8 +13063,6 @@ func (r accessApplicationGetResponseBookmarkApplicationSCIMConfigJSON) RawJSON() type AccessApplicationGetResponseBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseBookmarkApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -13077,6 +13075,8 @@ type AccessApplicationGetResponseBookmarkApplicationSCIMConfigAuthentication str ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -13091,12 +13091,12 @@ type AccessApplicationGetResponseBookmarkApplicationSCIMConfigAuthentication str // [AccessApplicationGetResponseBookmarkApplicationSCIMConfigAuthentication] type accessApplicationGetResponseBookmarkApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -13361,8 +13361,6 @@ func (r accessApplicationGetResponseInfrastructureApplicationSCIMConfigJSON) Raw type AccessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme AccessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthenticationScheme `json:"scheme,required"` - // This field can have the runtime type of [[]string]. - Scopes interface{} `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token string `json:"token"` // URL used to generate the auth code used during token generation. @@ -13375,6 +13373,8 @@ type AccessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthenticati ClientSecret string `json:"client_secret"` // Password used to authenticate with the remote SCIM service. Password string `json:"password"` + // This field can have the runtime type of [[]string]. + Scopes interface{} `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL string `json:"token_url"` @@ -13389,12 +13389,12 @@ type AccessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthenticati // [AccessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthentication] type accessApplicationGetResponseInfrastructureApplicationSCIMConfigAuthenticationJSON struct { Scheme apijson.Field - Scopes apijson.Field Token apijson.Field AuthorizationURL apijson.Field ClientID apijson.Field ClientSecret apijson.Field Password apijson.Field + Scopes apijson.Field TokenURL apijson.Field User apijson.Field raw string @@ -13487,21 +13487,12 @@ func (r AccessApplicationNewParams) MarshalJSON() (data []byte, err error) { } type AccessApplicationNewParamsBody struct { - AllowedIdPs param.Field[interface{}] `json:"allowed_idps,required"` - CustomPages param.Field[interface{}] `json:"custom_pages,required"` - FooterLinks param.Field[interface{}] `json:"footer_links,required"` - LandingPageDesign param.Field[interface{}] `json:"landing_page_design,required"` - Policies param.Field[interface{}] `json:"policies,required"` - SaaSApp param.Field[interface{}] `json:"saas_app,required"` - SCIMConfig param.Field[interface{}] `json:"scim_config,required"` - SelfHostedDomains param.Field[interface{}] `json:"self_hosted_domains,required"` - Tags param.Field[interface{}] `json:"tags,required"` - TargetCriteria param.Field[interface{}] `json:"target_criteria,required"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. - AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` + AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` + AllowedIdPs param.Field[interface{}] `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL param.Field[string] `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -13520,18 +13511,21 @@ type AccessApplicationNewParamsBody struct { CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. - CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` + CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` + CustomPages param.Field[interface{}] `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. - EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` + EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` + FooterLinks param.Field[interface{}] `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor param.Field[string] `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. - HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` + HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` + LandingPageDesign param.Field[interface{}] `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. @@ -13541,10 +13535,14 @@ type AccessApplicationNewParamsBody struct { OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default - PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` + PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` + Policies param.Field[interface{}] `json:"policies"` + SaaSApp param.Field[interface{}] `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. - SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` + SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` + SCIMConfig param.Field[interface{}] `json:"scim_config"` + SelfHostedDomains param.Field[interface{}] `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -13554,7 +13552,9 @@ type AccessApplicationNewParamsBody struct { // Determines when to skip the App Launcher landing page. SkipAppLauncherLoginPage param.Field[bool] `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. - SkipInterstitial param.Field[bool] `json:"skip_interstitial"` + SkipInterstitial param.Field[bool] `json:"skip_interstitial"` + Tags param.Field[interface{}] `json:"tags"` + TargetCriteria param.Field[interface{}] `json:"target_criteria"` // The application type. Type param.Field[string] `json:"type"` } @@ -13660,9 +13660,9 @@ func (r AccessApplicationNewParamsBodySelfHostedApplication) implementsZeroTrust // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodySelfHostedApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -13780,7 +13780,6 @@ func (r AccessApplicationNewParamsBodySelfHostedApplicationSCIMConfig) MarshalJS type AccessApplicationNewParamsBodySelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodySelfHostedApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -13792,7 +13791,8 @@ type AccessApplicationNewParamsBodySelfHostedApplicationSCIMConfigAuthentication // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -13874,9 +13874,9 @@ func (r AccessApplicationNewParamsBodySaaSApplication) implementsZeroTrustAccess // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodySaaSApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -13964,13 +13964,6 @@ func (r AccessApplicationNewParamsBodySaaSApplicationPoliciesObject) ImplementsZ } type AccessApplicationNewParamsBodySaaSApplicationSaaSApp struct { - CustomAttributes param.Field[interface{}] `json:"custom_attributes,required"` - CustomClaims param.Field[interface{}] `json:"custom_claims,required"` - GrantTypes param.Field[interface{}] `json:"grant_types,required"` - HybridAndImplicitOptions param.Field[interface{}] `json:"hybrid_and_implicit_options,required"` - RedirectURIs param.Field[interface{}] `json:"redirect_uris,required"` - RefreshTokenOptions param.Field[interface{}] `json:"refresh_token_options,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime param.Field[string] `json:"access_token_lifetime"` @@ -13988,12 +13981,16 @@ type AccessApplicationNewParamsBodySaaSApplicationSaaSApp struct { ClientSecret param.Field[string] `json:"client_secret"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. - ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` + ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` + CustomAttributes param.Field[interface{}] `json:"custom_attributes"` + CustomClaims param.Field[interface{}] `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. - DefaultRelayState param.Field[string] `json:"default_relay_state"` + DefaultRelayState param.Field[string] `json:"default_relay_state"` + GrantTypes param.Field[interface{}] `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint - GroupFilterRegex param.Field[string] `json:"group_filter_regex"` + GroupFilterRegex param.Field[string] `json:"group_filter_regex"` + HybridAndImplicitOptions param.Field[interface{}] `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -14004,13 +14001,16 @@ type AccessApplicationNewParamsBodySaaSApplicationSaaSApp struct { // the `name_id_format` setting. NameIDTransformJsonata param.Field[string] `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. - PublicKey param.Field[string] `json:"public_key"` + PublicKey param.Field[string] `json:"public_key"` + RedirectURIs param.Field[interface{}] `json:"redirect_uris"` + RefreshTokenOptions param.Field[interface{}] `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. - SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` + SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` + Scopes param.Field[interface{}] `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -14078,7 +14078,6 @@ func (r AccessApplicationNewParamsBodySaaSApplicationSCIMConfig) MarshalJSON() ( type AccessApplicationNewParamsBodySaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodySaaSApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -14090,7 +14089,8 @@ type AccessApplicationNewParamsBodySaaSApplicationSCIMConfigAuthentication struc // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -14214,9 +14214,9 @@ func (r AccessApplicationNewParamsBodyBrowserSSHApplication) implementsZeroTrust // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodyBrowserSSHApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -14334,7 +14334,6 @@ func (r AccessApplicationNewParamsBodyBrowserSSHApplicationSCIMConfig) MarshalJS type AccessApplicationNewParamsBodyBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyBrowserSSHApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -14346,7 +14345,8 @@ type AccessApplicationNewParamsBodyBrowserSSHApplicationSCIMConfigAuthentication // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -14470,9 +14470,9 @@ func (r AccessApplicationNewParamsBodyBrowserVNCApplication) implementsZeroTrust // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodyBrowserVNCApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -14590,7 +14590,6 @@ func (r AccessApplicationNewParamsBodyBrowserVNCApplicationSCIMConfig) MarshalJS type AccessApplicationNewParamsBodyBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyBrowserVNCApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -14602,7 +14601,8 @@ type AccessApplicationNewParamsBodyBrowserVNCApplicationSCIMConfigAuthentication // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -14717,9 +14717,9 @@ func (r AccessApplicationNewParamsBodyAppLauncherApplicationLandingPageDesign) M // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodyAppLauncherApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -14837,7 +14837,6 @@ func (r AccessApplicationNewParamsBodyAppLauncherApplicationSCIMConfig) MarshalJ type AccessApplicationNewParamsBodyAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyAppLauncherApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -14849,7 +14848,8 @@ type AccessApplicationNewParamsBodyAppLauncherApplicationSCIMConfigAuthenticatio // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -14964,9 +14964,9 @@ func (r AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationLand // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -15084,7 +15084,6 @@ func (r AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationSCIM type AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -15096,7 +15095,8 @@ type AccessApplicationNewParamsBodyDeviceEnrollmentPermissionsApplicationSCIMCon // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -15211,9 +15211,9 @@ func (r AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationLand // A JSON that links a reusable policy to an application. type AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -15331,7 +15331,6 @@ func (r AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationSCIM type AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -15343,7 +15342,8 @@ type AccessApplicationNewParamsBodyBrowserIsolationPermissionsApplicationSCIMCon // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -15443,7 +15443,6 @@ func (r AccessApplicationNewParamsBodyBookmarkApplicationSCIMConfig) MarshalJSON type AccessApplicationNewParamsBodyBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationNewParamsBodyBookmarkApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -15455,7 +15454,8 @@ type AccessApplicationNewParamsBodyBookmarkApplicationSCIMConfigAuthentication s // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -15621,21 +15621,12 @@ func (r AccessApplicationUpdateParams) MarshalJSON() (data []byte, err error) { } type AccessApplicationUpdateParamsBody struct { - AllowedIdPs param.Field[interface{}] `json:"allowed_idps,required"` - CustomPages param.Field[interface{}] `json:"custom_pages,required"` - FooterLinks param.Field[interface{}] `json:"footer_links,required"` - LandingPageDesign param.Field[interface{}] `json:"landing_page_design,required"` - Policies param.Field[interface{}] `json:"policies,required"` - SaaSApp param.Field[interface{}] `json:"saas_app,required"` - SCIMConfig param.Field[interface{}] `json:"scim_config,required"` - SelfHostedDomains param.Field[interface{}] `json:"self_hosted_domains,required"` - Tags param.Field[interface{}] `json:"tags,required"` - TargetCriteria param.Field[interface{}] `json:"target_criteria,required"` // When set to true, users can authenticate to this application using their WARP // session. When set to false this application will always require direct IdP // authentication. This setting always overrides the organization setting for WARP // authentication. - AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` + AllowAuthenticateViaWARP param.Field[bool] `json:"allow_authenticate_via_warp"` + AllowedIdPs param.Field[interface{}] `json:"allowed_idps"` // The image URL of the logo shown in the App Launcher header. AppLauncherLogoURL param.Field[string] `json:"app_launcher_logo_url"` // Displays the application in the App Launcher. @@ -15654,18 +15645,21 @@ type AccessApplicationUpdateParamsBody struct { CustomDenyURL param.Field[string] `json:"custom_deny_url"` // The custom URL a user is redirected to when they are denied access to the // application when failing non-identity rules. - CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` + CustomNonIdentityDenyURL param.Field[string] `json:"custom_non_identity_deny_url"` + CustomPages param.Field[interface{}] `json:"custom_pages"` // The primary hostname and path that Access will secure. If the app is visible in // the App Launcher dashboard, this is the domain that will be displayed. Domain param.Field[string] `json:"domain"` // Enables the binding cookie, which increases security against compromised // authorization tokens and CSRF attacks. - EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` + EnableBindingCookie param.Field[bool] `json:"enable_binding_cookie"` + FooterLinks param.Field[interface{}] `json:"footer_links"` // The background color of the App Launcher header. HeaderBgColor param.Field[string] `json:"header_bg_color"` // Enables the HttpOnly cookie attribute, which increases security against XSS // attacks. - HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` + HTTPOnlyCookieAttribute param.Field[bool] `json:"http_only_cookie_attribute"` + LandingPageDesign param.Field[interface{}] `json:"landing_page_design"` // The image URL for the logo shown in the App Launcher dashboard. LogoURL param.Field[string] `json:"logo_url"` // The name of the application. @@ -15675,10 +15669,14 @@ type AccessApplicationUpdateParamsBody struct { OptionsPreflightBypass param.Field[bool] `json:"options_preflight_bypass"` // Enables cookie paths to scope an application's JWT to the application path. If // disabled, the JWT will scope to the hostname by default - PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` + PathCookieAttribute param.Field[bool] `json:"path_cookie_attribute"` + Policies param.Field[interface{}] `json:"policies"` + SaaSApp param.Field[interface{}] `json:"saas_app"` // Sets the SameSite cookie setting, which provides increased security against CSRF // attacks. - SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` + SameSiteCookieAttribute param.Field[string] `json:"same_site_cookie_attribute"` + SCIMConfig param.Field[interface{}] `json:"scim_config"` + SelfHostedDomains param.Field[interface{}] `json:"self_hosted_domains"` // Returns a 401 status code when the request is blocked by a Service Auth policy. ServiceAuth401Redirect param.Field[bool] `json:"service_auth_401_redirect"` // The amount of time that tokens issued for this application will be valid. Must @@ -15688,7 +15686,9 @@ type AccessApplicationUpdateParamsBody struct { // Determines when to skip the App Launcher landing page. SkipAppLauncherLoginPage param.Field[bool] `json:"skip_app_launcher_login_page"` // Enables automatic authentication through cloudflared. - SkipInterstitial param.Field[bool] `json:"skip_interstitial"` + SkipInterstitial param.Field[bool] `json:"skip_interstitial"` + Tags param.Field[interface{}] `json:"tags"` + TargetCriteria param.Field[interface{}] `json:"target_criteria"` // The application type. Type param.Field[string] `json:"type"` } @@ -15796,9 +15796,9 @@ func (r AccessApplicationUpdateParamsBodySelfHostedApplication) implementsZeroTr // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodySelfHostedApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -15916,7 +15916,6 @@ func (r AccessApplicationUpdateParamsBodySelfHostedApplicationSCIMConfig) Marsha type AccessApplicationUpdateParamsBodySelfHostedApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodySelfHostedApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -15928,7 +15927,8 @@ type AccessApplicationUpdateParamsBodySelfHostedApplicationSCIMConfigAuthenticat // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -16010,9 +16010,9 @@ func (r AccessApplicationUpdateParamsBodySaaSApplication) implementsZeroTrustAcc // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodySaaSApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -16100,13 +16100,6 @@ func (r AccessApplicationUpdateParamsBodySaaSApplicationPoliciesObject) Implemen } type AccessApplicationUpdateParamsBodySaaSApplicationSaaSApp struct { - CustomAttributes param.Field[interface{}] `json:"custom_attributes,required"` - CustomClaims param.Field[interface{}] `json:"custom_claims,required"` - GrantTypes param.Field[interface{}] `json:"grant_types,required"` - HybridAndImplicitOptions param.Field[interface{}] `json:"hybrid_and_implicit_options,required"` - RedirectURIs param.Field[interface{}] `json:"redirect_uris,required"` - RefreshTokenOptions param.Field[interface{}] `json:"refresh_token_options,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // The lifetime of the OIDC Access Token after creation. Valid units are m,h. Must // be greater than or equal to 1m and less than or equal to 24h. AccessTokenLifetime param.Field[string] `json:"access_token_lifetime"` @@ -16124,12 +16117,16 @@ type AccessApplicationUpdateParamsBodySaaSApplicationSaaSApp struct { ClientSecret param.Field[string] `json:"client_secret"` // The service provider's endpoint that is responsible for receiving and parsing a // SAML assertion. - ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` + ConsumerServiceURL param.Field[string] `json:"consumer_service_url"` + CustomAttributes param.Field[interface{}] `json:"custom_attributes"` + CustomClaims param.Field[interface{}] `json:"custom_claims"` // The URL that the user will be redirected to after a successful login for IDP // initiated logins. - DefaultRelayState param.Field[string] `json:"default_relay_state"` + DefaultRelayState param.Field[string] `json:"default_relay_state"` + GrantTypes param.Field[interface{}] `json:"grant_types"` // A regex to filter Cloudflare groups returned in ID token and userinfo endpoint - GroupFilterRegex param.Field[string] `json:"group_filter_regex"` + GroupFilterRegex param.Field[string] `json:"group_filter_regex"` + HybridAndImplicitOptions param.Field[interface{}] `json:"hybrid_and_implicit_options"` // The unique identifier for your SaaS application. IdPEntityID param.Field[string] `json:"idp_entity_id"` // The format of the name identifier sent to the SaaS application. @@ -16140,13 +16137,16 @@ type AccessApplicationUpdateParamsBodySaaSApplicationSaaSApp struct { // the `name_id_format` setting. NameIDTransformJsonata param.Field[string] `json:"name_id_transform_jsonata"` // The Access public certificate that will be used to verify your identity. - PublicKey param.Field[string] `json:"public_key"` + PublicKey param.Field[string] `json:"public_key"` + RedirectURIs param.Field[interface{}] `json:"redirect_uris"` + RefreshTokenOptions param.Field[interface{}] `json:"refresh_token_options"` // A [JSONata] (https://jsonata.org/) expression that transforms an application's // user identities into attribute assertions in the SAML response. The expression // can transform id, email, name, and groups values. It can also transform fields // listed in the saml_attributes or oidc_fields of the identity provider used to // authenticate. The output of this expression must be a JSON object. - SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` + SAMLAttributeTransformJsonata param.Field[string] `json:"saml_attribute_transform_jsonata"` + Scopes param.Field[interface{}] `json:"scopes"` // A globally unique name for an identity or service provider. SPEntityID param.Field[string] `json:"sp_entity_id"` // The endpoint where your SaaS application will send login requests. @@ -16214,7 +16214,6 @@ func (r AccessApplicationUpdateParamsBodySaaSApplicationSCIMConfig) MarshalJSON( type AccessApplicationUpdateParamsBodySaaSApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodySaaSApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -16226,7 +16225,8 @@ type AccessApplicationUpdateParamsBodySaaSApplicationSCIMConfigAuthentication st // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -16350,9 +16350,9 @@ func (r AccessApplicationUpdateParamsBodyBrowserSSHApplication) implementsZeroTr // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodyBrowserSSHApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -16470,7 +16470,6 @@ func (r AccessApplicationUpdateParamsBodyBrowserSSHApplicationSCIMConfig) Marsha type AccessApplicationUpdateParamsBodyBrowserSSHApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyBrowserSSHApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -16482,7 +16481,8 @@ type AccessApplicationUpdateParamsBodyBrowserSSHApplicationSCIMConfigAuthenticat // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -16606,9 +16606,9 @@ func (r AccessApplicationUpdateParamsBodyBrowserVNCApplication) implementsZeroTr // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodyBrowserVNCApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -16726,7 +16726,6 @@ func (r AccessApplicationUpdateParamsBodyBrowserVNCApplicationSCIMConfig) Marsha type AccessApplicationUpdateParamsBodyBrowserVNCApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyBrowserVNCApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -16738,7 +16737,8 @@ type AccessApplicationUpdateParamsBodyBrowserVNCApplicationSCIMConfigAuthenticat // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -16853,9 +16853,9 @@ func (r AccessApplicationUpdateParamsBodyAppLauncherApplicationLandingPageDesign // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodyAppLauncherApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -16973,7 +16973,6 @@ func (r AccessApplicationUpdateParamsBodyAppLauncherApplicationSCIMConfig) Marsh type AccessApplicationUpdateParamsBodyAppLauncherApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyAppLauncherApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -16985,7 +16984,8 @@ type AccessApplicationUpdateParamsBodyAppLauncherApplicationSCIMConfigAuthentica // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -17100,9 +17100,9 @@ func (r AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationL // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -17220,7 +17220,6 @@ func (r AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationS type AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -17232,7 +17231,8 @@ type AccessApplicationUpdateParamsBodyDeviceEnrollmentPermissionsApplicationSCIM // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -17347,9 +17347,9 @@ func (r AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationL // A JSON that links a reusable policy to an application. type AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationPolicy struct { - ApprovalGroups param.Field[interface{}] `json:"approval_groups,required"` // The UUID of the policy - ID param.Field[string] `json:"id"` + ID param.Field[string] `json:"id"` + ApprovalGroups param.Field[interface{}] `json:"approval_groups"` // Requires the user to request access from an administrator at the start of each // session. ApprovalRequired param.Field[bool] `json:"approval_required"` @@ -17467,7 +17467,6 @@ func (r AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationS type AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -17479,7 +17478,8 @@ type AccessApplicationUpdateParamsBodyBrowserIsolationPermissionsApplicationSCIM // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` @@ -17579,7 +17579,6 @@ func (r AccessApplicationUpdateParamsBodyBookmarkApplicationSCIMConfig) MarshalJ type AccessApplicationUpdateParamsBodyBookmarkApplicationSCIMConfigAuthentication struct { // The authentication scheme to use when making SCIM requests to this application. Scheme param.Field[AccessApplicationUpdateParamsBodyBookmarkApplicationSCIMConfigAuthenticationScheme] `json:"scheme,required"` - Scopes param.Field[interface{}] `json:"scopes,required"` // Token used to authenticate with the remote SCIM service. Token param.Field[string] `json:"token"` // URL used to generate the auth code used during token generation. @@ -17591,7 +17590,8 @@ type AccessApplicationUpdateParamsBodyBookmarkApplicationSCIMConfigAuthenticatio // remove SCIM service. ClientSecret param.Field[string] `json:"client_secret"` // Password used to authenticate with the remote SCIM service. - Password param.Field[string] `json:"password"` + Password param.Field[string] `json:"password"` + Scopes param.Field[interface{}] `json:"scopes"` // URL used to generate the token used to authenticate with the remote SCIM // service. TokenURL param.Field[string] `json:"token_url"` diff --git a/zero_trust/accessservicetoken.go b/zero_trust/accessservicetoken.go index 0c347fb207b..aa3c39a7e9e 100644 --- a/zero_trust/accessservicetoken.go +++ b/zero_trust/accessservicetoken.go @@ -7,9 +7,11 @@ import ( "errors" "fmt" "net/http" + "net/url" "time" "github.com/cloudflare/cloudflare-go/v3/internal/apijson" + "github.com/cloudflare/cloudflare-go/v3/internal/apiquery" "github.com/cloudflare/cloudflare-go/v3/internal/param" "github.com/cloudflare/cloudflare-go/v3/internal/requestconfig" "github.com/cloudflare/cloudflare-go/v3/option" @@ -105,30 +107,30 @@ func (r *AccessServiceTokenService) Update(ctx context.Context, serviceTokenID s } // Lists all service tokens. -func (r *AccessServiceTokenService) List(ctx context.Context, query AccessServiceTokenListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ServiceToken], err error) { +func (r *AccessServiceTokenService) List(ctx context.Context, params AccessServiceTokenListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ServiceToken], err error) { var raw *http.Response opts = append(r.Options[:], opts...) opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...) var accountOrZone string var accountOrZoneID param.Field[string] - if query.AccountID.Value != "" && query.ZoneID.Value != "" { + if params.AccountID.Value != "" && params.ZoneID.Value != "" { err = errors.New("account ID and zone ID are mutually exclusive") return } - if query.AccountID.Value == "" && query.ZoneID.Value == "" { + if params.AccountID.Value == "" && params.ZoneID.Value == "" { err = errors.New("either account ID or zone ID must be provided") return } - if query.AccountID.Value != "" { + if params.AccountID.Value != "" { accountOrZone = "accounts" - accountOrZoneID = query.AccountID + accountOrZoneID = params.AccountID } - if query.ZoneID.Value != "" { + if params.ZoneID.Value != "" { accountOrZone = "zones" - accountOrZoneID = query.ZoneID + accountOrZoneID = params.ZoneID } path := fmt.Sprintf("%s/%s/access/service_tokens", accountOrZone, accountOrZoneID) - cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, nil, &res, opts...) + cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, params, &res, opts...) if err != nil { return nil, err } @@ -141,8 +143,8 @@ func (r *AccessServiceTokenService) List(ctx context.Context, query AccessServic } // Lists all service tokens. -func (r *AccessServiceTokenService) ListAutoPaging(ctx context.Context, query AccessServiceTokenListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ServiceToken] { - return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...)) +func (r *AccessServiceTokenService) ListAutoPaging(ctx context.Context, params AccessServiceTokenListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ServiceToken] { + return pagination.NewSinglePageAutoPager(r.List(ctx, params, opts...)) } // Deletes a service token. @@ -505,6 +507,19 @@ type AccessServiceTokenListParams struct { AccountID param.Field[string] `path:"account_id"` // The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. ZoneID param.Field[string] `path:"zone_id"` + // The name of the service token. + Name param.Field[string] `query:"name"` + // Search for service tokens by other listed query parameters. + Search param.Field[string] `query:"search"` +} + +// URLQuery serializes [AccessServiceTokenListParams]'s query parameters as +// `url.Values`. +func (r AccessServiceTokenListParams) URLQuery() (v url.Values) { + return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{ + ArrayFormat: apiquery.ArrayQueryFormatRepeat, + NestedFormat: apiquery.NestedQueryFormatDots, + }) } type AccessServiceTokenDeleteParams struct { diff --git a/zero_trust/accessservicetoken_test.go b/zero_trust/accessservicetoken_test.go index 34a2be08218..88082f8a123 100644 --- a/zero_trust/accessservicetoken_test.go +++ b/zero_trust/accessservicetoken_test.go @@ -90,6 +90,8 @@ func TestAccessServiceTokenListWithOptionalParams(t *testing.T) { ) _, err := client.ZeroTrust.Access.ServiceTokens.List(context.TODO(), zero_trust.AccessServiceTokenListParams{ AccountID: cloudflare.F("account_id"), + Name: cloudflare.F("name"), + Search: cloudflare.F("search"), }) if err != nil { var apierr *cloudflare.Error diff --git a/zero_trust/deviceposture.go b/zero_trust/deviceposture.go index 230b6f47413..cc012b50d1b 100644 --- a/zero_trust/deviceposture.go +++ b/zero_trust/deviceposture.go @@ -322,14 +322,6 @@ func (r CrowdstrikeInputParam) implementsZeroTrustDeviceInputUnionParam() {} // The value to be checked against. type DeviceInput struct { - // This field can have the runtime type of [[]CarbonblackInput]. - CheckDisks interface{} `json:"checkDisks,required"` - // This field can have the runtime type of - // [[]DeviceInputTeamsDevicesClientCertificateV2InputRequestExtendedKeyUsage]. - ExtendedKeyUsage interface{} `json:"extended_key_usage,required"` - // This field can have the runtime type of - // [DeviceInputTeamsDevicesClientCertificateV2InputRequestLocations]. - Locations interface{} `json:"locations,required"` // List ID. ID string `json:"id"` // The Number of active threats. @@ -339,6 +331,8 @@ type DeviceInput struct { // Confirm the certificate was not imported from another device. We recommend // keeping this enabled unless the certificate was deployed without a private key. CheckPrivateKey bool `json:"check_private_key"` + // This field can have the runtime type of [[]CarbonblackInput]. + CheckDisks interface{} `json:"checkDisks"` // Common Name that is protected by the certificate Cn string `json:"cn"` // Compliance Status @@ -355,6 +349,9 @@ type DeviceInput struct { Enabled bool `json:"enabled"` // Whether or not file exists Exists bool `json:"exists"` + // This field can have the runtime type of + // [[]DeviceInputTeamsDevicesClientCertificateV2InputRequestExtendedKeyUsage]. + ExtendedKeyUsage interface{} `json:"extended_key_usage"` // Whether device is infected. Infected bool `json:"infected"` // Whether device is active. @@ -363,6 +360,9 @@ type DeviceInput struct { IssueCount string `json:"issue_count"` // For more details on last seen, please refer to the Crowdstrike documentation. LastSeen string `json:"last_seen"` + // This field can have the runtime type of + // [DeviceInputTeamsDevicesClientCertificateV2InputRequestLocations]. + Locations interface{} `json:"locations"` // Network status of device. NetworkStatus DeviceInputNetworkStatus `json:"network_status"` // Operating system @@ -412,13 +412,11 @@ type DeviceInput struct { // deviceInputJSON contains the JSON metadata for the struct [DeviceInput] type deviceInputJSON struct { - CheckDisks apijson.Field - ExtendedKeyUsage apijson.Field - Locations apijson.Field ID apijson.Field ActiveThreats apijson.Field CertificateID apijson.Field CheckPrivateKey apijson.Field + CheckDisks apijson.Field Cn apijson.Field ComplianceStatus apijson.Field ConnectionID apijson.Field @@ -427,10 +425,12 @@ type deviceInputJSON struct { EidLastSeen apijson.Field Enabled apijson.Field Exists apijson.Field + ExtendedKeyUsage apijson.Field Infected apijson.Field IsActive apijson.Field IssueCount apijson.Field LastSeen apijson.Field + Locations apijson.Field NetworkStatus apijson.Field OperatingSystem apijson.Field OperationalState apijson.Field @@ -1042,9 +1042,6 @@ func (r DeviceInputVersionOperator) IsKnown() bool { // The value to be checked against. type DeviceInputParam struct { - CheckDisks param.Field[interface{}] `json:"checkDisks,required"` - ExtendedKeyUsage param.Field[interface{}] `json:"extended_key_usage,required"` - Locations param.Field[interface{}] `json:"locations,required"` // List ID. ID param.Field[string] `json:"id"` // The Number of active threats. @@ -1053,7 +1050,8 @@ type DeviceInputParam struct { CertificateID param.Field[string] `json:"certificate_id"` // Confirm the certificate was not imported from another device. We recommend // keeping this enabled unless the certificate was deployed without a private key. - CheckPrivateKey param.Field[bool] `json:"check_private_key"` + CheckPrivateKey param.Field[bool] `json:"check_private_key"` + CheckDisks param.Field[interface{}] `json:"checkDisks"` // Common Name that is protected by the certificate Cn param.Field[string] `json:"cn"` // Compliance Status @@ -1069,7 +1067,8 @@ type DeviceInputParam struct { // Enabled Enabled param.Field[bool] `json:"enabled"` // Whether or not file exists - Exists param.Field[bool] `json:"exists"` + Exists param.Field[bool] `json:"exists"` + ExtendedKeyUsage param.Field[interface{}] `json:"extended_key_usage"` // Whether device is infected. Infected param.Field[bool] `json:"infected"` // Whether device is active. @@ -1077,7 +1076,8 @@ type DeviceInputParam struct { // The Number of Issues. IssueCount param.Field[string] `json:"issue_count"` // For more details on last seen, please refer to the Crowdstrike documentation. - LastSeen param.Field[string] `json:"last_seen"` + LastSeen param.Field[string] `json:"last_seen"` + Locations param.Field[interface{}] `json:"locations"` // Network status of device. NetworkStatus param.Field[DeviceInputNetworkStatus] `json:"network_status"` // Operating system diff --git a/zero_trust/dlpprofile.go b/zero_trust/dlpprofile.go index a4929a4853d..e17516b5baf 100644 --- a/zero_trust/dlpprofile.go +++ b/zero_trust/dlpprofile.go @@ -137,6 +137,9 @@ func (r ContextAwarenessParam) MarshalJSON() (data []byte, err error) { type Profile struct { // The id of the profile (uuid) ID string `json:"id,required" format:"uuid"` + // This field can have the runtime type of [[]ProfileCustomEntry], + // [[]ProfilePredefinedEntry], [[]ProfileIntegrationEntry]. + Entries interface{} `json:"entries,required"` // The name of the profile Name string `json:"name,required"` Type ProfileType `json:"type,required"` @@ -150,10 +153,7 @@ type Profile struct { CreatedAt time.Time `json:"created_at" format:"date-time"` // The description of the profile Description string `json:"description,nullable"` - // This field can have the runtime type of [[]ProfileCustomEntry], - // [[]ProfilePredefinedEntry], [[]ProfileIntegrationEntry]. - Entries interface{} `json:"entries"` - OCREnabled bool `json:"ocr_enabled"` + OCREnabled bool `json:"ocr_enabled"` // Whether this profile can be accessed by anyone OpenAccess bool `json:"open_access"` // When the profile was lasted updated @@ -165,6 +165,7 @@ type Profile struct { // profileJSON contains the JSON metadata for the struct [Profile] type profileJSON struct { ID apijson.Field + Entries apijson.Field Name apijson.Field Type apijson.Field AllowedMatchCount apijson.Field @@ -172,7 +173,6 @@ type profileJSON struct { ContextAwareness apijson.Field CreatedAt apijson.Field Description apijson.Field - Entries apijson.Field OCREnabled apijson.Field OpenAccess apijson.Field UpdatedAt apijson.Field @@ -281,38 +281,38 @@ func (r profileCustomJSON) RawJSON() string { func (r ProfileCustom) implementsZeroTrustProfile() {} type ProfileCustomEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type ProfileCustomEntriesType `json:"type,required"` // This field can have the runtime type of // [ProfileCustomEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type ProfileCustomEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON profileCustomEntryJSON `json:"-"` - union ProfileCustomEntriesUnion + WordList interface{} `json:"word_list"` + JSON profileCustomEntryJSON `json:"-"` + union ProfileCustomEntriesUnion } // profileCustomEntryJSON contains the JSON metadata for the struct // [ProfileCustomEntry] type profileCustomEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -748,38 +748,38 @@ func (r profilePredefinedJSON) RawJSON() string { func (r ProfilePredefined) implementsZeroTrustProfile() {} type ProfilePredefinedEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type ProfilePredefinedEntriesType `json:"type,required"` // This field can have the runtime type of // [ProfilePredefinedEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type ProfilePredefinedEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON profilePredefinedEntryJSON `json:"-"` - union ProfilePredefinedEntriesUnion + WordList interface{} `json:"word_list"` + JSON profilePredefinedEntryJSON `json:"-"` + union ProfilePredefinedEntriesUnion } // profilePredefinedEntryJSON contains the JSON metadata for the struct // [ProfilePredefinedEntry] type profilePredefinedEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1208,38 +1208,38 @@ func (r profileIntegrationJSON) RawJSON() string { func (r ProfileIntegration) implementsZeroTrustProfile() {} type ProfileIntegrationEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type ProfileIntegrationEntriesType `json:"type,required"` // This field can have the runtime type of // [ProfileIntegrationEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type ProfileIntegrationEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON profileIntegrationEntryJSON `json:"-"` - union ProfileIntegrationEntriesUnion + WordList interface{} `json:"word_list"` + JSON profileIntegrationEntryJSON `json:"-"` + union ProfileIntegrationEntriesUnion } // profileIntegrationEntryJSON contains the JSON metadata for the struct // [ProfileIntegrationEntry] type profileIntegrationEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dlpprofilecustom.go b/zero_trust/dlpprofilecustom.go index 02e14bba792..b3cb23903ee 100644 --- a/zero_trust/dlpprofilecustom.go +++ b/zero_trust/dlpprofilecustom.go @@ -246,38 +246,38 @@ func (r DLPProfileCustomNewResponseCustomProfile) implementsZeroTrustDLPProfileC } type DLPProfileCustomNewResponseCustomProfileEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type DLPProfileCustomNewResponseCustomProfileEntriesType `json:"type,required"` // This field can have the runtime type of // [DLPProfileCustomNewResponseCustomProfileEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type DLPProfileCustomNewResponseCustomProfileEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON dlpProfileCustomNewResponseCustomProfileEntryJSON `json:"-"` - union DLPProfileCustomNewResponseCustomProfileEntriesUnion + WordList interface{} `json:"word_list"` + JSON dlpProfileCustomNewResponseCustomProfileEntryJSON `json:"-"` + union DLPProfileCustomNewResponseCustomProfileEntriesUnion } // dlpProfileCustomNewResponseCustomProfileEntryJSON contains the JSON metadata for // the struct [DLPProfileCustomNewResponseCustomProfileEntry] type dlpProfileCustomNewResponseCustomProfileEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -726,38 +726,38 @@ func (r DLPProfileCustomNewResponsePredefinedProfile) implementsZeroTrustDLPProf } type DLPProfileCustomNewResponsePredefinedProfileEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type DLPProfileCustomNewResponsePredefinedProfileEntriesType `json:"type,required"` // This field can have the runtime type of // [DLPProfileCustomNewResponsePredefinedProfileEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type DLPProfileCustomNewResponsePredefinedProfileEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON dlpProfileCustomNewResponsePredefinedProfileEntryJSON `json:"-"` - union DLPProfileCustomNewResponsePredefinedProfileEntriesUnion + WordList interface{} `json:"word_list"` + JSON dlpProfileCustomNewResponsePredefinedProfileEntryJSON `json:"-"` + union DLPProfileCustomNewResponsePredefinedProfileEntriesUnion } // dlpProfileCustomNewResponsePredefinedProfileEntryJSON contains the JSON metadata // for the struct [DLPProfileCustomNewResponsePredefinedProfileEntry] type dlpProfileCustomNewResponsePredefinedProfileEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1199,38 +1199,38 @@ func (r DLPProfileCustomNewResponseIntegrationProfile) implementsZeroTrustDLPPro } type DLPProfileCustomNewResponseIntegrationProfileEntry struct { - ID string `json:"id,required" format:"uuid"` + ID string `json:"id,required" format:"uuid"` + Enabled bool `json:"enabled,required"` + Name string `json:"name,required"` + Type DLPProfileCustomNewResponseIntegrationProfileEntriesType `json:"type,required"` // This field can have the runtime type of // [DLPProfileCustomNewResponseIntegrationProfileEntriesPredefinedConfidence]. - Confidence interface{} `json:"confidence,required"` - Enabled bool `json:"enabled,required"` - Name string `json:"name,required"` - Type DLPProfileCustomNewResponseIntegrationProfileEntriesType `json:"type,required"` + Confidence interface{} `json:"confidence"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Pattern Pattern `json:"pattern"` + ProfileID string `json:"profile_id,nullable" format:"uuid"` + Secret bool `json:"secret"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` // This field can have the runtime type of [interface{}]. - WordList interface{} `json:"word_list,required"` - CreatedAt time.Time `json:"created_at" format:"date-time"` - Pattern Pattern `json:"pattern"` - ProfileID string `json:"profile_id,nullable" format:"uuid"` - Secret bool `json:"secret"` - UpdatedAt time.Time `json:"updated_at" format:"date-time"` - JSON dlpProfileCustomNewResponseIntegrationProfileEntryJSON `json:"-"` - union DLPProfileCustomNewResponseIntegrationProfileEntriesUnion + WordList interface{} `json:"word_list"` + JSON dlpProfileCustomNewResponseIntegrationProfileEntryJSON `json:"-"` + union DLPProfileCustomNewResponseIntegrationProfileEntriesUnion } // dlpProfileCustomNewResponseIntegrationProfileEntryJSON contains the JSON // metadata for the struct [DLPProfileCustomNewResponseIntegrationProfileEntry] type dlpProfileCustomNewResponseIntegrationProfileEntryJSON struct { ID apijson.Field - Confidence apijson.Field Enabled apijson.Field Name apijson.Field Type apijson.Field - WordList apijson.Field + Confidence apijson.Field CreatedAt apijson.Field Pattern apijson.Field ProfileID apijson.Field Secret apijson.Field UpdatedAt apijson.Field + WordList apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -1633,9 +1633,6 @@ func (r DLPProfileCustomNewParams) MarshalJSON() (data []byte, err error) { } type DLPProfileCustomNewParamsBody struct { - Entries param.Field[interface{}] `json:"entries,required"` - Profiles param.Field[interface{}] `json:"profiles,required"` - SharedEntries param.Field[interface{}] `json:"shared_entries,required"` // Related DLP policies will trigger when the match count exceeds the number set. AllowedMatchCount param.Field[int64] `json:"allowed_match_count"` ConfidenceThreshold param.Field[string] `json:"confidence_threshold"` @@ -1643,9 +1640,12 @@ type DLPProfileCustomNewParamsBody struct { // keywords. ContextAwareness param.Field[ContextAwarenessParam] `json:"context_awareness"` // The description of the profile - Description param.Field[string] `json:"description"` - Name param.Field[string] `json:"name"` - OCREnabled param.Field[bool] `json:"ocr_enabled"` + Description param.Field[string] `json:"description"` + Entries param.Field[interface{}] `json:"entries"` + Name param.Field[string] `json:"name"` + OCREnabled param.Field[bool] `json:"ocr_enabled"` + Profiles param.Field[interface{}] `json:"profiles"` + SharedEntries param.Field[interface{}] `json:"shared_entries"` } func (r DLPProfileCustomNewParamsBody) MarshalJSON() (data []byte, err error) { @@ -1696,8 +1696,8 @@ func (r DLPProfileCustomNewParamsBodyProfilesProfile) MarshalJSON() (data []byte type DLPProfileCustomNewParamsBodyProfilesProfilesEntry struct { Enabled param.Field[bool] `json:"enabled,required"` Name param.Field[string] `json:"name,required"` - Words param.Field[interface{}] `json:"words,required"` Pattern param.Field[PatternParam] `json:"pattern"` + Words param.Field[interface{}] `json:"words"` } func (r DLPProfileCustomNewParamsBodyProfilesProfilesEntry) MarshalJSON() (data []byte, err error) { @@ -1916,8 +1916,8 @@ func (r DLPProfileCustomNewParamsBodyDLPNewCustomProfile) implementsZeroTrustDLP type DLPProfileCustomNewParamsBodyDLPNewCustomProfileEntry struct { Enabled param.Field[bool] `json:"enabled,required"` Name param.Field[string] `json:"name,required"` - Words param.Field[interface{}] `json:"words,required"` Pattern param.Field[PatternParam] `json:"pattern"` + Words param.Field[interface{}] `json:"words"` } func (r DLPProfileCustomNewParamsBodyDLPNewCustomProfileEntry) MarshalJSON() (data []byte, err error) { diff --git a/zero_trust/identityprovider.go b/zero_trust/identityprovider.go index bd08e0b7dd7..0ec6b1aa58b 100644 --- a/zero_trust/identityprovider.go +++ b/zero_trust/identityprovider.go @@ -424,6 +424,13 @@ func (r GenericOAuthConfigParam) MarshalJSON() (data []byte, err error) { } type IdentityProvider struct { + // This field can have the runtime type of [AzureADConfig], + // [IdentityProviderAccessCentrifyConfig], [GenericOAuthConfig], + // [IdentityProviderAccessGoogleConfig], [IdentityProviderAccessGoogleAppsConfig], + // [IdentityProviderAccessOIDCConfig], [IdentityProviderAccessOktaConfig], + // [IdentityProviderAccessOneloginConfig], [IdentityProviderAccessPingoneConfig], + // [IdentityProviderAccessSAMLConfig], [IdentityProviderAccessOnetimepinConfig]. + Config interface{} `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, @@ -432,13 +439,6 @@ type IdentityProvider struct { Type IdentityProviderType `json:"type,required"` // UUID ID string `json:"id"` - // This field can have the runtime type of [AzureADConfig], - // [IdentityProviderAccessCentrifyConfig], [GenericOAuthConfig], - // [IdentityProviderAccessGoogleConfig], [IdentityProviderAccessGoogleAppsConfig], - // [IdentityProviderAccessOIDCConfig], [IdentityProviderAccessOktaConfig], - // [IdentityProviderAccessOneloginConfig], [IdentityProviderAccessPingoneConfig], - // [IdentityProviderAccessSAMLConfig], [interface{}]. - Config interface{} `json:"config"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. SCIMConfig IdentityProviderSCIMConfig `json:"scim_config"` @@ -449,10 +449,10 @@ type IdentityProvider struct { // identityProviderJSON contains the JSON metadata for the struct // [IdentityProvider] type identityProviderJSON struct { + Config apijson.Field Name apijson.Field Type apijson.Field ID apijson.Field - Config apijson.Field SCIMConfig apijson.Field raw string ExtraFields map[string]apijson.Field @@ -1411,7 +1411,7 @@ type IdentityProviderAccessOnetimepin struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - Config interface{} `json:"config,required"` + Config IdentityProviderAccessOnetimepinConfig `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name string `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, @@ -1448,14 +1448,38 @@ func (r identityProviderAccessOnetimepinJSON) RawJSON() string { func (r IdentityProviderAccessOnetimepin) implementsZeroTrustIdentityProvider() {} +// The configuration parameters for the identity provider. To view the required +// parameters for a specific provider, refer to our +// [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). +type IdentityProviderAccessOnetimepinConfig struct { + RedirectURL string `json:"redirect_url"` + JSON identityProviderAccessOnetimepinConfigJSON `json:"-"` +} + +// identityProviderAccessOnetimepinConfigJSON contains the JSON metadata for the +// struct [IdentityProviderAccessOnetimepinConfig] +type identityProviderAccessOnetimepinConfigJSON struct { + RedirectURL apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *IdentityProviderAccessOnetimepinConfig) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r identityProviderAccessOnetimepinConfigJSON) RawJSON() string { + return r.raw +} + type IdentityProviderParam struct { + Config param.Field[interface{}] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, // refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - Type param.Field[IdentityProviderType] `json:"type,required"` - Config param.Field[interface{}] `json:"config"` + Type param.Field[IdentityProviderType] `json:"type,required"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. SCIMConfig param.Field[IdentityProviderSCIMConfigParam] `json:"scim_config"` @@ -1939,7 +1963,7 @@ type IdentityProviderAccessOnetimepinParam struct { // The configuration parameters for the identity provider. To view the required // parameters for a specific provider, refer to our // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - Config param.Field[interface{}] `json:"config,required"` + Config param.Field[IdentityProviderAccessOnetimepinConfigParam] `json:"config,required"` // The name of the identity provider, shown to users on the login page. Name param.Field[string] `json:"name,required"` // The type of identity provider. To determine the value for a specific provider, @@ -1957,6 +1981,16 @@ func (r IdentityProviderAccessOnetimepinParam) MarshalJSON() (data []byte, err e func (r IdentityProviderAccessOnetimepinParam) implementsZeroTrustIdentityProviderUnionParam() {} +// The configuration parameters for the identity provider. To view the required +// parameters for a specific provider, refer to our +// [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). +type IdentityProviderAccessOnetimepinConfigParam struct { +} + +func (r IdentityProviderAccessOnetimepinConfigParam) MarshalJSON() (data []byte, err error) { + return apijson.MarshalRoot(r) +} + // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. type IdentityProviderSCIMConfig struct { @@ -2053,14 +2087,6 @@ func (r IdentityProviderType) IsKnown() bool { } type IdentityProviderListResponse struct { - // The name of the identity provider, shown to users on the login page. - Name string `json:"name,required"` - // The type of identity provider. To determine the value for a specific provider, - // refer to our - // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). - Type IdentityProviderType `json:"type,required"` - // UUID - ID string `json:"id"` // This field can have the runtime type of [AzureADConfig], // [IdentityProviderListResponseAccessCentrifyConfig], [GenericOAuthConfig], // [IdentityProviderListResponseAccessGoogleConfig], @@ -2070,7 +2096,15 @@ type IdentityProviderListResponse struct { // [IdentityProviderListResponseAccessOneloginConfig], // [IdentityProviderListResponseAccessPingoneConfig], // [IdentityProviderListResponseAccessSAMLConfig]. - Config interface{} `json:"config"` + Config interface{} `json:"config,required"` + // The name of the identity provider, shown to users on the login page. + Name string `json:"name,required"` + // The type of identity provider. To determine the value for a specific provider, + // refer to our + // [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/). + Type IdentityProviderType `json:"type,required"` + // UUID + ID string `json:"id"` // The configuration settings for enabling a System for Cross-Domain Identity // Management (SCIM) with the identity provider. SCIMConfig IdentityProviderSCIMConfig `json:"scim_config"` @@ -2081,10 +2115,10 @@ type IdentityProviderListResponse struct { // identityProviderListResponseJSON contains the JSON metadata for the struct // [IdentityProviderListResponse] type identityProviderListResponseJSON struct { + Config apijson.Field Name apijson.Field Type apijson.Field ID apijson.Field - Config apijson.Field SCIMConfig apijson.Field raw string ExtraFields map[string]apijson.Field diff --git a/zero_trust/tunnel.go b/zero_trust/tunnel.go index c082d598920..8067da9ac2b 100644 --- a/zero_trust/tunnel.go +++ b/zero_trust/tunnel.go @@ -159,15 +159,13 @@ func (r *TunnelService) Get(ctx context.Context, tunnelID string, query TunnelGe // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type TunnelNewResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]TunnelNewResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]TunnelNewResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -179,6 +177,8 @@ type TunnelNewResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -198,14 +198,14 @@ type TunnelNewResponse struct { // tunnelNewResponseJSON contains the JSON metadata for the struct // [TunnelNewResponse] type tunnelNewResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -448,15 +448,13 @@ func (r TunnelNewResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type TunnelListResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]TunnelListResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]TunnelListResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -468,6 +466,8 @@ type TunnelListResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -487,14 +487,14 @@ type TunnelListResponse struct { // tunnelListResponseJSON contains the JSON metadata for the struct // [TunnelListResponse] type tunnelListResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -737,15 +737,13 @@ func (r TunnelListResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type TunnelDeleteResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]TunnelDeleteResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]TunnelDeleteResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -757,6 +755,8 @@ type TunnelDeleteResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -776,14 +776,14 @@ type TunnelDeleteResponse struct { // tunnelDeleteResponseJSON contains the JSON metadata for the struct // [TunnelDeleteResponse] type tunnelDeleteResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -1027,15 +1027,13 @@ func (r TunnelDeleteResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type TunnelEditResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]TunnelEditResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]TunnelEditResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -1047,6 +1045,8 @@ type TunnelEditResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -1066,14 +1066,14 @@ type TunnelEditResponse struct { // tunnelEditResponseJSON contains the JSON metadata for the struct // [TunnelEditResponse] type tunnelEditResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field @@ -1316,15 +1316,13 @@ func (r TunnelEditResponseTunType) IsKnown() bool { // A Cloudflare Tunnel that connects your origin to Cloudflare's edge. type TunnelGetResponse struct { - // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], - // [[]TunnelGetResponseTunnelWARPConnectorTunnelConnection]. - Connections interface{} `json:"connections,required"` - // This field can have the runtime type of [interface{}]. - Metadata interface{} `json:"metadata,required"` // UUID of the tunnel. ID string `json:"id" format:"uuid"` // Cloudflare account ID AccountTag string `json:"account_tag"` + // This field can have the runtime type of [[]shared.CloudflareTunnelConnection], + // [[]TunnelGetResponseTunnelWARPConnectorTunnelConnection]. + Connections interface{} `json:"connections"` // Timestamp of when the tunnel established at least one connection to Cloudflare's // edge. If `null`, the tunnel is inactive. ConnsActiveAt time.Time `json:"conns_active_at" format:"date-time"` @@ -1336,6 +1334,8 @@ type TunnelGetResponse struct { // Timestamp of when the resource was deleted. If `null`, the resource has not been // deleted. DeletedAt time.Time `json:"deleted_at" format:"date-time"` + // This field can have the runtime type of [interface{}]. + Metadata interface{} `json:"metadata"` // A user-friendly name for a tunnel. Name string `json:"name"` // If `true`, the tunnel can be configured remotely from the Zero Trust dashboard. @@ -1355,14 +1355,14 @@ type TunnelGetResponse struct { // tunnelGetResponseJSON contains the JSON metadata for the struct // [TunnelGetResponse] type tunnelGetResponseJSON struct { - Connections apijson.Field - Metadata apijson.Field ID apijson.Field AccountTag apijson.Field + Connections apijson.Field ConnsActiveAt apijson.Field ConnsInactiveAt apijson.Field CreatedAt apijson.Field DeletedAt apijson.Field + Metadata apijson.Field Name apijson.Field RemoteConfig apijson.Field Status apijson.Field diff --git a/zones/setting.go b/zones/setting.go index 4bffb4d922b..7bb0330629a 100644 --- a/zones/setting.go +++ b/zones/setting.go @@ -4988,6 +4988,19 @@ func (r ZeroRTTParam) implementsZonesSettingEditParamsBodyUnion() {} // 0-RTT session resumption enabled for this zone. type SettingEditResponse struct { + // ID of the zone setting. + ID SettingEditResponseID `json:"id"` + // Whether or not this setting can be modified for this zone (based on your + // Cloudflare plan level). + Editable SettingEditResponseEditable `json:"editable"` + // ssl-recommender enrollment setting. + Enabled bool `json:"enabled"` + // last time this setting was modified. + ModifiedOn time.Time `json:"modified_on,nullable" format:"date-time"` + // Value of the zone setting. Notes: The interval (in seconds) from when + // development mode expires (positive integer) or last expired (negative integer) + // for the domain. If development mode has never been enabled, this value is false. + TimeRemaining float64 `json:"time_remaining"` // This field can have the runtime type of [ZeroRTTValue], [AdvancedDDoSValue], // [AlwaysOnlineValue], [AlwaysUseHTTPSValue], [AutomaticHTTPSRewritesValue], // [BrotliValue], [BrowserCacheTTLValue], [BrowserCheckValue], [CacheLevelValue], @@ -5007,33 +5020,20 @@ type SettingEditResponse struct { // [SSLValue], [SettingEditResponseZonesTLS1_2OnlyValue], [TLS1_3Value], // [TLSClientAuthValue], [TrueClientIPHeaderValue], [WAFValue], [WebPValue], // [WebsocketValue]. - Value interface{} `json:"value,required"` - // ID of the zone setting. - ID SettingEditResponseID `json:"id"` - // Whether or not this setting can be modified for this zone (based on your - // Cloudflare plan level). - Editable SettingEditResponseEditable `json:"editable"` - // ssl-recommender enrollment setting. - Enabled bool `json:"enabled"` - // last time this setting was modified. - ModifiedOn time.Time `json:"modified_on,nullable" format:"date-time"` - // Value of the zone setting. Notes: The interval (in seconds) from when - // development mode expires (positive integer) or last expired (negative integer) - // for the domain. If development mode has never been enabled, this value is false. - TimeRemaining float64 `json:"time_remaining"` - JSON settingEditResponseJSON `json:"-"` - union SettingEditResponseUnion + Value interface{} `json:"value"` + JSON settingEditResponseJSON `json:"-"` + union SettingEditResponseUnion } // settingEditResponseJSON contains the JSON metadata for the struct // [SettingEditResponse] type settingEditResponseJSON struct { - Value apijson.Field ID apijson.Field Editable apijson.Field Enabled apijson.Field ModifiedOn apijson.Field TimeRemaining apijson.Field + Value apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -6003,6 +6003,19 @@ func (r SettingEditResponseEditable) IsKnown() bool { // 0-RTT session resumption enabled for this zone. type SettingGetResponse struct { + // ID of the zone setting. + ID SettingGetResponseID `json:"id"` + // Whether or not this setting can be modified for this zone (based on your + // Cloudflare plan level). + Editable SettingGetResponseEditable `json:"editable"` + // ssl-recommender enrollment setting. + Enabled bool `json:"enabled"` + // last time this setting was modified. + ModifiedOn time.Time `json:"modified_on,nullable" format:"date-time"` + // Value of the zone setting. Notes: The interval (in seconds) from when + // development mode expires (positive integer) or last expired (negative integer) + // for the domain. If development mode has never been enabled, this value is false. + TimeRemaining float64 `json:"time_remaining"` // This field can have the runtime type of [ZeroRTTValue], [AdvancedDDoSValue], // [AlwaysOnlineValue], [AlwaysUseHTTPSValue], [AutomaticHTTPSRewritesValue], // [BrotliValue], [BrowserCacheTTLValue], [BrowserCheckValue], [CacheLevelValue], @@ -6022,33 +6035,20 @@ type SettingGetResponse struct { // [SSLValue], [SettingGetResponseZonesTLS1_2OnlyValue], [TLS1_3Value], // [TLSClientAuthValue], [TrueClientIPHeaderValue], [WAFValue], [WebPValue], // [WebsocketValue]. - Value interface{} `json:"value,required"` - // ID of the zone setting. - ID SettingGetResponseID `json:"id"` - // Whether or not this setting can be modified for this zone (based on your - // Cloudflare plan level). - Editable SettingGetResponseEditable `json:"editable"` - // ssl-recommender enrollment setting. - Enabled bool `json:"enabled"` - // last time this setting was modified. - ModifiedOn time.Time `json:"modified_on,nullable" format:"date-time"` - // Value of the zone setting. Notes: The interval (in seconds) from when - // development mode expires (positive integer) or last expired (negative integer) - // for the domain. If development mode has never been enabled, this value is false. - TimeRemaining float64 `json:"time_remaining"` - JSON settingGetResponseJSON `json:"-"` - union SettingGetResponseUnion + Value interface{} `json:"value"` + JSON settingGetResponseJSON `json:"-"` + union SettingGetResponseUnion } // settingGetResponseJSON contains the JSON metadata for the struct // [SettingGetResponse] type settingGetResponseJSON struct { - Value apijson.Field ID apijson.Field Editable apijson.Field Enabled apijson.Field ModifiedOn apijson.Field TimeRemaining apijson.Field + Value apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -7029,11 +7029,11 @@ func (r SettingEditParams) MarshalJSON() (data []byte, err error) { // 0-RTT session resumption enabled for this zone. type SettingEditParamsBody struct { - Value param.Field[interface{}] `json:"value,required"` // ID of the zone setting. ID param.Field[SettingEditParamsBodyID] `json:"id"` // ssl-recommender enrollment setting. - Enabled param.Field[bool] `json:"enabled"` + Enabled param.Field[bool] `json:"enabled"` + Value param.Field[interface{}] `json:"value"` } func (r SettingEditParamsBody) MarshalJSON() (data []byte, err error) {