diff --git a/flutter/packages/authsome_core/lib/src/generated/api_types.dart b/flutter/packages/authsome_core/lib/src/generated/api_types.dart index ce9d5654..386644d1 100644 --- a/flutter/packages/authsome_core/lib/src/generated/api_types.dart +++ b/flutter/packages/authsome_core/lib/src/generated/api_types.dart @@ -3460,7 +3460,7 @@ class DeclineInvitationRequest { class Definition { final String category; - final String defaultValue; + final dynamic defaultValue; final String description; final String displayName; final bool enforceable; @@ -3488,7 +3488,7 @@ class Definition { factory Definition.fromJson(Map json) { return Definition( category: json['category'] as String, - defaultValue: json['default'] as String, + defaultValue: json['default'], description: json['description'] as String, displayName: json['display_name'] as String, enforceable: json['enforceable'] as bool, @@ -4016,7 +4016,7 @@ class EnforceSettingRequest { final String? orgId; final String scope; final String? scopeId; - final String value; + final dynamic value; const EnforceSettingRequest({ this.appId, @@ -4032,7 +4032,7 @@ class EnforceSettingRequest { orgId: json['org_id'] as String?, scope: json['scope'] as String, scopeId: json['scope_id'] as String?, - value: json['value'] as String, + value: json['value'], ); } @@ -6973,7 +6973,7 @@ class ResetPasswordRequest { class ResolvedSetting { final bool canOverride; final Definition? definition; - final String effectiveValue; + final dynamic effectiveValue; final String? enforcedAt; final List scopeValues; @@ -6989,7 +6989,7 @@ class ResolvedSetting { return ResolvedSetting( canOverride: json['can_override'] as bool, definition: json['definition'] == null ? null : Definition.fromJson(Map.from(json['definition'] as Map)), - effectiveValue: json['effective_value'] as String, + effectiveValue: json['effective_value'], enforcedAt: json['enforced_at'] as String?, scopeValues: (json['scope_values'] as List).map((e) => ScopeValue.fromJson(Map.from(e as Map))).toList(), ); @@ -7516,7 +7516,7 @@ class ScopeValue { final String? scopeId; final String? updatedAt; final String? updatedBy; - final String value; + final dynamic value; final int? version; const ScopeValue({ @@ -7536,7 +7536,7 @@ class ScopeValue { scopeId: json['scope_id'] as String?, updatedAt: json['updated_at'] as String?, updatedBy: json['updated_by'] as String?, - value: json['value'] as String, + value: json['value'], version: json['version'] == null ? null : (json['version'] as num).toInt(), ); } @@ -7841,7 +7841,7 @@ class SetSettingRequest { final String? orgId; final String scope; final String? scopeId; - final String value; + final dynamic value; const SetSettingRequest({ this.appId, @@ -7857,7 +7857,7 @@ class SetSettingRequest { orgId: json['org_id'] as String?, scope: json['scope'] as String, scopeId: json['scope_id'] as String?, - value: json['value'] as String, + value: json['value'], ); } @@ -7880,7 +7880,7 @@ class SettingValueResponse { final String scope; final String? scopeId; final String status; - final String value; + final dynamic value; const SettingValueResponse({ required this.key, @@ -7896,7 +7896,7 @@ class SettingValueResponse { scope: json['scope'] as String, scopeId: json['scope_id'] as String?, status: json['status'] as String, - value: json['value'] as String, + value: json['value'], ); } @@ -9893,7 +9893,7 @@ class VerifyMFAResponse { class VisibilityCondition { final String key; final String? operatorValue; - final String value; + final dynamic value; const VisibilityCondition({ required this.key, @@ -9905,7 +9905,7 @@ class VisibilityCondition { return VisibilityCondition( key: json['key'] as String, operatorValue: json['operator'] as String?, - value: json['value'] as String, + value: json['value'], ); } diff --git a/go.mod b/go.mod index 3f5ba89c..12d0e2d9 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/xraph/authsome go 1.26.0 -toolchain go1.26.10 +toolchain go1.26.11 // replace github.com/xraph/forge => ../../forge @@ -17,21 +17,21 @@ require ( github.com/stretchr/testify v1.12.1 github.com/testcontainers/testcontainers-go/modules/postgres v0.44.0 github.com/xraph/chronicle v1.11.0 - github.com/xraph/dispatch v1.9.4 - github.com/xraph/forge v1.13.2 - github.com/xraph/forge/extensions/auth v1.12.9 + github.com/xraph/dispatch v1.9.5 + github.com/xraph/forge v1.13.6 + github.com/xraph/forge/extensions/auth v1.13.6 github.com/xraph/go-utils v1.5.0 github.com/xraph/grove v1.10.2 - github.com/xraph/grove/drivers/mongodriver v1.10.1 + github.com/xraph/grove/drivers/mongodriver v1.10.2 github.com/xraph/grove/drivers/pgdriver v1.10.2 - github.com/xraph/grove/drivers/sqlitedriver v1.10.1 - github.com/xraph/herald v1.10.2 - github.com/xraph/keysmith v1.8.0 - github.com/xraph/ledger v1.9.1 - github.com/xraph/relay v1.8.0 - github.com/xraph/vault v1.8.0 + github.com/xraph/grove/drivers/sqlitedriver v1.10.2 + github.com/xraph/herald v1.10.3 + github.com/xraph/keysmith v1.9.1 + github.com/xraph/ledger v1.9.2 + github.com/xraph/relay v1.8.2 + github.com/xraph/vault v1.8.2 github.com/xraph/vessel v1.0.5 - github.com/xraph/warden v1.8.0 + github.com/xraph/warden v1.8.2 go.jetify.com/typeid/v2 v2.0.0-alpha.3 go.mongodb.org/mongo-driver/v2 v2.9.1 go.opentelemetry.io/otel/sdk v1.47.0 @@ -124,7 +124,7 @@ require ( github.com/felixge/httpsnoop v1.1.0 // indirect github.com/fsnotify/fsnotify v1.10.1 // indirect github.com/fxamacker/cbor/v2 v2.9.2 // indirect - github.com/gabriel-vasile/mimetype v1.4.15 // indirect + github.com/gabriel-vasile/mimetype v1.4.16 // indirect github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.3.0 // indirect diff --git a/go.sum b/go.sum index 800812b8..44fed64d 100644 --- a/go.sum +++ b/go.sum @@ -83,8 +83,8 @@ github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx5 github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo= github.com/fxamacker/cbor/v2 v2.9.2 h1:X4Ksno9+x3cz0TZv69ec1hxP/+tymuR8PXQJyDwfh78= github.com/fxamacker/cbor/v2 v2.9.2/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ= -github.com/gabriel-vasile/mimetype v1.4.15 h1:05iP/CYtZ/w455R/KZM6rZ5ieAdh99UPtd+d3YzLmaI= -github.com/gabriel-vasile/mimetype v1.4.15/go.mod h1:azpTcoLcDZRNgFou5j+APrqQx9HqVPWa6ijYQIIVswQ= +github.com/gabriel-vasile/mimetype v1.4.16 h1:5izNFuvA37st1dDRAcA7TtmngBmRgiIPDmTtiEvjx1E= +github.com/gabriel-vasile/mimetype v1.4.16/go.mod h1:3oFFwxX8kTklZwzIl2aQEDZT0lKY8xH92ST88bAwba4= github.com/go-jose/go-jose/v4 v4.1.8 h1:k38WifTutpGuqt6Imq9xW1OgCvnWFri0Nz7FnfiACM8= github.com/go-jose/go-jose/v4 v4.1.8/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= @@ -429,38 +429,38 @@ github.com/xraph/chronicle v1.11.0 h1:+aRFsdO089LfVym2qyct+0GIF/G+WnDVFG7NTlw6o8 github.com/xraph/chronicle v1.11.0/go.mod h1:d9XH4nOcKcB7KY8bvAEeWkPiefNZl0gygQKxskX6XVU= github.com/xraph/confy v1.1.0 h1:xkWaujezyxi+8AcSgmkWarB6MacGlrhozJi+QcOD5P0= github.com/xraph/confy v1.1.0/go.mod h1:HZwQ/RixbBNtBMT7IcULVYbAkyFjeXcJDNJDYj6m5oI= -github.com/xraph/dispatch v1.9.4 h1:Hs8KW0EOzYtdSuZoFvmJl/GNWhNI0CfPmQoWE/cMJJI= -github.com/xraph/dispatch v1.9.4/go.mod h1:m9oDvAx9xyk2tIQkA9GzuxswuQJdSwDUkR+5FuWZwHk= -github.com/xraph/forge v1.13.2 h1:C8YYmV8vrtemyo5jA0rc0gbiijqFxAYSxuZ54XV+YA8= -github.com/xraph/forge v1.13.2/go.mod h1:EK/cIPvIidlr/iVaRH/mcHKktWg45OrM0+zzuqyE/f0= -github.com/xraph/forge/extensions/auth v1.12.9 h1:ZzvVev+KMAclQYuNg/28hS1bO2Vhaa+7QvKE2SPD8i0= -github.com/xraph/forge/extensions/auth v1.12.9/go.mod h1:+RriGL+jRZ5zO4GiSLm8eHb8Ypmnp8braypoj8s4YjA= +github.com/xraph/dispatch v1.9.5 h1:yl+Ib+ROIl6N83Y5CFWO5OLi0jvae+uTIyBieyMokik= +github.com/xraph/dispatch v1.9.5/go.mod h1:V4slR2pJiMBgVJND2DJp7Wr7ty3cLlh7EiHtdmbwYY8= +github.com/xraph/forge v1.13.6 h1:JCLMd1eEd7Ay96iVg8tFlYDBMyVO8ltZSIMGRL7ktko= +github.com/xraph/forge v1.13.6/go.mod h1:gg/KN2RcPOZl0DMxLRp7QQYBW3wLscXgYdUzfcpWDeI= +github.com/xraph/forge/extensions/auth v1.13.6 h1:3OIiG/fkn0i3FmO7NGO9S9RoK1l5kWM95L+ViZZ3+fQ= +github.com/xraph/forge/extensions/auth v1.13.6/go.mod h1:TXaOpGXHhjtZfFSzhjDu23uEM16wfjbJscou0Yfy8uk= github.com/xraph/go-utils v1.5.0 h1:44pIJooK565ds/Ica0yyPoRNbr0qUTgj1aay8ewad1w= github.com/xraph/go-utils v1.5.0/go.mod h1:fMahP6kPUjJP5UmzVje2GSL7OGT9+xpYkukK2dLjSMM= github.com/xraph/grove v1.10.2 h1:3ZoKJpU21gIv8p98RjQE4wFcAhesXvTqSSqrroNOXaI= github.com/xraph/grove v1.10.2/go.mod h1:oQ5d+MiSDkDxiRCKBOlmieJmzFXvanY/kk9VfvQO40w= -github.com/xraph/grove/drivers/mongodriver v1.10.1 h1:XnYIxYbqaF5Yg+gtZ1IxuAbo2IEv0XGRwQdrN36o2sI= -github.com/xraph/grove/drivers/mongodriver v1.10.1/go.mod h1:x/t82VUmjCAuUluOHHfDrJCHdGKtd3M2pnKvBnUxvwU= +github.com/xraph/grove/drivers/mongodriver v1.10.2 h1:IrIqWzg72iL6qroh/llft+CH0FygMS2wyBwYkVeNQ2s= +github.com/xraph/grove/drivers/mongodriver v1.10.2/go.mod h1:x/t82VUmjCAuUluOHHfDrJCHdGKtd3M2pnKvBnUxvwU= github.com/xraph/grove/drivers/pgdriver v1.10.2 h1:LMMqPMPtj1OgA1npfqOWsknMQZbJ7kFwMrdrj32Mp3I= github.com/xraph/grove/drivers/pgdriver v1.10.2/go.mod h1:aV31nDRM4Igx4vqwjM9u8v0A1URL8YyDyXCuABLOuPA= -github.com/xraph/grove/drivers/sqlitedriver v1.10.1 h1:Uyc2W0MjvROh4pTO+XuRgER05dzvo78mfI9wqNMVs0A= -github.com/xraph/grove/drivers/sqlitedriver v1.10.1/go.mod h1:UlTGQQRp7VD4Rjj8HN6XjW1TMZl0iSNI4LApoQnChYQ= -github.com/xraph/grove/kv v1.9.0 h1:vHu4/4ksXtCGfJTxUionBU2Ouo62MHROAWZIsiIhLVU= -github.com/xraph/grove/kv v1.9.0/go.mod h1:dRzQTDR3/btTAxaBr/gXLv5KtSgkdQKWxzE7jaQAoDI= -github.com/xraph/herald v1.10.2 h1:zInCemPqEyTfybLhwO9hGfBzYA575XV2TV0Ps6QHh/k= -github.com/xraph/herald v1.10.2/go.mod h1:xSSLiY2tjTbqTcl4ZO+VpmQpcgBWRX01bQIESjgOJxM= -github.com/xraph/keysmith v1.8.0 h1:KIGF5XbJDw7133PX1NnnrTyEgUf13g/Jb1IG3JjePzU= -github.com/xraph/keysmith v1.8.0/go.mod h1:SiYAYp+gtEdFHHjrAf7luCd2BrYAORWXxhzwyqaDIp4= -github.com/xraph/ledger v1.9.1 h1:eg5LXE7cI3SwPL969faq/Zxqm0bM43Ppb7VAUJ7uukk= -github.com/xraph/ledger v1.9.1/go.mod h1:4Zx1pyGToQOxSdCxGnzTlZZy3QwE7xqtG7YlaV6AKCo= -github.com/xraph/relay v1.8.0 h1:Pfa76U4S1p0NUS87ZZLw5mzqzXz50gp/0wmUE/xSRvQ= -github.com/xraph/relay v1.8.0/go.mod h1:ymuGmz2y2PLfHE7Thynf4L4lgRH3ruv5vbazfjMo1X4= -github.com/xraph/vault v1.8.0 h1:C/rmu9v331pIlLIx1kxD6QEQWI8VDAcUIhpxHkY4BmE= -github.com/xraph/vault v1.8.0/go.mod h1:+UzreUI4t131KxMLCCaz9WR4jVu3sKjy6pvejSspolA= +github.com/xraph/grove/drivers/sqlitedriver v1.10.2 h1:YLB9bGSxJnIquPN31etQGtrCWQfuuqfbcjk4eCkPT9Y= +github.com/xraph/grove/drivers/sqlitedriver v1.10.2/go.mod h1:UlTGQQRp7VD4Rjj8HN6XjW1TMZl0iSNI4LApoQnChYQ= +github.com/xraph/grove/kv v1.10.2 h1:3ic9NWFSGLmcxmy+eHw9t0HrU4WCGnTsSdn56rabS1U= +github.com/xraph/grove/kv v1.10.2/go.mod h1:qW3j9k8OV14itMSQTLpC/INh35HL5ppWRknzUNas2/o= +github.com/xraph/herald v1.10.3 h1:eLPh3/RnVzoTriD5VuRg8cZmJMzG2Fj7HXFMJLG3+Us= +github.com/xraph/herald v1.10.3/go.mod h1:oYZ8gO/3Btksbo2LlXv1Wz+n+645xHn/o93eghDRBEc= +github.com/xraph/keysmith v1.9.1 h1:ZtZ+j1ZbxHKMJzkRnZWwo0hJLsB86Ro5oe7sWCoMKlQ= +github.com/xraph/keysmith v1.9.1/go.mod h1:WPSJLvoXi8g8LvV2+Tg4JOafGeb+/PlC8ZaW8XYIYss= +github.com/xraph/ledger v1.9.2 h1:h+9wWFkf1rGmdWknqTlaVu7eBTIZw0qpuWzQ+vQuPV0= +github.com/xraph/ledger v1.9.2/go.mod h1:k769SQtmWXI9I4DKbja26oZdH/sW29qE/8Y5iNstsdg= +github.com/xraph/relay v1.8.2 h1:4e5FnIeCR+CspSiByP/3/LNPF3In5Yxz8b33ZbhP6yg= +github.com/xraph/relay v1.8.2/go.mod h1:pMUfW8t9IAZQSRNKlhP1E4N/xvQ3z386N2xXfaJs2VQ= +github.com/xraph/vault v1.8.2 h1:dO3KpfW3GyhZYeq9SnHu05UWAd96ny/xHQuQPYtf0uM= +github.com/xraph/vault v1.8.2/go.mod h1:jFBiyO/ztAgZvtLpDzmujiWDMdfWIY03rlgRFOa2mpM= github.com/xraph/vessel v1.0.5 h1:4In3UmIJzOrym5+FXE/uvm1jR+gofUqVmEjKjjgE3gw= github.com/xraph/vessel v1.0.5/go.mod h1:5hgrMbuczxu2kRIM3iVJ3wPSb6HOvbMhV4nkRFaPNqs= -github.com/xraph/warden v1.8.0 h1:U4ErO2KRr7XPwa/NZllU9YBc0pLlfabp00LIIH3FBn0= -github.com/xraph/warden v1.8.0/go.mod h1:LfjpZAVXPQFev8rG2Kp5Qj0UQVP8eLLvzr3yfBvf9dM= +github.com/xraph/warden v1.8.2 h1:nt+bDh+999lfCMZcG2iOvcA8ZJwFV0pgBDcbdp3nPyc= +github.com/xraph/warden v1.8.2/go.mod h1:FbUNtqi8jbAeQZR7DCyhzA4r9SrbOSwDG91cRK2NUJo= github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 h1:ilQV1hzziu+LLM3zUTJ0trRztfwgjqKnBWNtSRkbmwM= github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78/go.mod h1:aL8wCCfTfSfmXjznFBSZNN13rSJjlIOI1fUNAtF7rmI= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= diff --git a/sdk/dart/lib/src/types.dart b/sdk/dart/lib/src/types.dart index ce9d5654..386644d1 100644 --- a/sdk/dart/lib/src/types.dart +++ b/sdk/dart/lib/src/types.dart @@ -3460,7 +3460,7 @@ class DeclineInvitationRequest { class Definition { final String category; - final String defaultValue; + final dynamic defaultValue; final String description; final String displayName; final bool enforceable; @@ -3488,7 +3488,7 @@ class Definition { factory Definition.fromJson(Map json) { return Definition( category: json['category'] as String, - defaultValue: json['default'] as String, + defaultValue: json['default'], description: json['description'] as String, displayName: json['display_name'] as String, enforceable: json['enforceable'] as bool, @@ -4016,7 +4016,7 @@ class EnforceSettingRequest { final String? orgId; final String scope; final String? scopeId; - final String value; + final dynamic value; const EnforceSettingRequest({ this.appId, @@ -4032,7 +4032,7 @@ class EnforceSettingRequest { orgId: json['org_id'] as String?, scope: json['scope'] as String, scopeId: json['scope_id'] as String?, - value: json['value'] as String, + value: json['value'], ); } @@ -6973,7 +6973,7 @@ class ResetPasswordRequest { class ResolvedSetting { final bool canOverride; final Definition? definition; - final String effectiveValue; + final dynamic effectiveValue; final String? enforcedAt; final List scopeValues; @@ -6989,7 +6989,7 @@ class ResolvedSetting { return ResolvedSetting( canOverride: json['can_override'] as bool, definition: json['definition'] == null ? null : Definition.fromJson(Map.from(json['definition'] as Map)), - effectiveValue: json['effective_value'] as String, + effectiveValue: json['effective_value'], enforcedAt: json['enforced_at'] as String?, scopeValues: (json['scope_values'] as List).map((e) => ScopeValue.fromJson(Map.from(e as Map))).toList(), ); @@ -7516,7 +7516,7 @@ class ScopeValue { final String? scopeId; final String? updatedAt; final String? updatedBy; - final String value; + final dynamic value; final int? version; const ScopeValue({ @@ -7536,7 +7536,7 @@ class ScopeValue { scopeId: json['scope_id'] as String?, updatedAt: json['updated_at'] as String?, updatedBy: json['updated_by'] as String?, - value: json['value'] as String, + value: json['value'], version: json['version'] == null ? null : (json['version'] as num).toInt(), ); } @@ -7841,7 +7841,7 @@ class SetSettingRequest { final String? orgId; final String scope; final String? scopeId; - final String value; + final dynamic value; const SetSettingRequest({ this.appId, @@ -7857,7 +7857,7 @@ class SetSettingRequest { orgId: json['org_id'] as String?, scope: json['scope'] as String, scopeId: json['scope_id'] as String?, - value: json['value'] as String, + value: json['value'], ); } @@ -7880,7 +7880,7 @@ class SettingValueResponse { final String scope; final String? scopeId; final String status; - final String value; + final dynamic value; const SettingValueResponse({ required this.key, @@ -7896,7 +7896,7 @@ class SettingValueResponse { scope: json['scope'] as String, scopeId: json['scope_id'] as String?, status: json['status'] as String, - value: json['value'] as String, + value: json['value'], ); } @@ -9893,7 +9893,7 @@ class VerifyMFAResponse { class VisibilityCondition { final String key; final String? operatorValue; - final String value; + final dynamic value; const VisibilityCondition({ required this.key, @@ -9905,7 +9905,7 @@ class VisibilityCondition { return VisibilityCondition( key: json['key'] as String, operatorValue: json['operator'] as String?, - value: json['value'] as String, + value: json['value'], ); } diff --git a/sdk/go/types.go b/sdk/go/types.go index 76fba26d..c741eb66 100644 --- a/sdk/go/types.go +++ b/sdk/go/types.go @@ -800,7 +800,7 @@ type DeclineInvitationRequest struct { // Definition represents the Definition schema. type Definition struct { Category string `json:"category"` - Default string `json:"default"` + Default any `json:"default"` Description string `json:"description"` DisplayName string `json:"display_name"` Enforceable bool `json:"enforceable"` @@ -931,7 +931,7 @@ type EnforceSettingRequest struct { OrgID string `json:"org_id,omitempty"` Scope string `json:"scope"` ScopeID string `json:"scope_id,omitempty"` - Value string `json:"value"` + Value any `json:"value"` } // EnrollRequest represents the EnrollRequest schema. @@ -1608,7 +1608,7 @@ type ResetPasswordRequest struct { type ResolvedSetting struct { CanOverride bool `json:"can_override"` Definition *Definition `json:"definition,omitempty"` - EffectiveValue string `json:"effective_value"` + EffectiveValue any `json:"effective_value"` EnforcedAt string `json:"enforced_at,omitempty"` ScopeValues []*ScopeValue `json:"scope_values"` } @@ -1733,7 +1733,7 @@ type ScopeValue struct { ScopeID string `json:"scope_id,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` UpdatedBy string `json:"updated_by,omitempty"` - Value string `json:"value"` + Value any `json:"value"` Version int64 `json:"version,omitempty"` } @@ -1807,7 +1807,7 @@ type SetSettingRequest struct { OrgID string `json:"org_id,omitempty"` Scope string `json:"scope"` ScopeID string `json:"scope_id,omitempty"` - Value string `json:"value"` + Value any `json:"value"` } // SettingValueResponse represents the SettingValueResponse schema. @@ -1816,7 +1816,7 @@ type SettingValueResponse struct { Scope string `json:"scope"` ScopeID string `json:"scope_id,omitempty"` Status string `json:"status"` - Value string `json:"value"` + Value any `json:"value"` } // Settings represents the Settings schema. @@ -2281,7 +2281,7 @@ type VerifyMFAResponse struct { type VisibilityCondition struct { Key string `json:"key"` Operator string `json:"operator,omitempty"` - Value string `json:"value"` + Value any `json:"value"` } // VoidInvoiceRequest represents the VoidInvoiceRequest schema. diff --git a/sdk/typescript/src/types.ts b/sdk/typescript/src/types.ts index 76eaa6cc..3771e3af 100644 --- a/sdk/typescript/src/types.ts +++ b/sdk/typescript/src/types.ts @@ -705,7 +705,7 @@ export interface DeclineInvitationRequest { export interface Definition { category: string; - default: string; + default: unknown; description: string; display_name: string; enforceable: boolean; @@ -822,7 +822,7 @@ export interface EnforceSettingRequest { org_id?: string; scope: string; scope_id?: string; - value: string; + value: unknown; } export interface EnrollRequest { @@ -1418,7 +1418,7 @@ export interface ResetPasswordRequest { export interface ResolvedSetting { can_override: boolean; definition?: Definition; - effective_value: string; + effective_value: unknown; enforced_at?: string; scope_values: ScopeValue[]; } @@ -1525,7 +1525,7 @@ export interface ScopeValue { scope_id?: string; updated_at?: string; updated_by?: string; - value: string; + value: unknown; version?: number; } @@ -1590,7 +1590,7 @@ export interface SetSettingRequest { org_id?: string; scope: string; scope_id?: string; - value: string; + value: unknown; } export interface SettingValueResponse { @@ -1598,7 +1598,7 @@ export interface SettingValueResponse { scope: string; scope_id?: string; status: string; - value: string; + value: unknown; } export interface Settings { @@ -2014,7 +2014,7 @@ export interface VerifyMFAResponse { export interface VisibilityCondition { key: string; operator?: string; - value: string; + value: unknown; } export interface VoidInvoiceRequest { diff --git a/sdkgen/spec.json b/sdkgen/spec.json index 7f86004a..48b461c5 100644 --- a/sdkgen/spec.json +++ b/sdkgen/spec.json @@ -2616,9 +2616,7 @@ "category": { "type": "string" }, - "default": { - "type": "string" - }, + "default": {}, "description": { "type": "string" }, @@ -3060,8 +3058,7 @@ "type": "string" }, "value": { - "description": "Setting value (JSON)", - "type": "string" + "description": "Setting value (JSON)" } }, "required": [ @@ -5152,9 +5149,7 @@ "definition": { "$ref": "#/components/schemas/Definition" }, - "effective_value": { - "type": "string" - }, + "effective_value": {}, "enforced_at": { "type": "string" }, @@ -5504,9 +5499,7 @@ "updated_by": { "type": "string" }, - "value": { - "type": "string" - }, + "value": {}, "version": { "type": "integer" } @@ -5721,8 +5714,7 @@ "type": "string" }, "value": { - "description": "Setting value (JSON)", - "type": "string" + "description": "Setting value (JSON)" } }, "required": [ @@ -5750,8 +5742,7 @@ "type": "string" }, "value": { - "description": "Setting value", - "type": "string" + "description": "Setting value" } }, "required": [ @@ -7139,9 +7130,7 @@ "operator": { "type": "string" }, - "value": { - "type": "string" - } + "value": {} }, "required": [ "key", diff --git a/ui/packages/core/src/generated/api-types.ts b/ui/packages/core/src/generated/api-types.ts index 482be94d..96a1cf66 100644 --- a/ui/packages/core/src/generated/api-types.ts +++ b/ui/packages/core/src/generated/api-types.ts @@ -705,7 +705,7 @@ export interface DeclineInvitationRequest { export interface Definition { category: string; - default: string; + default: unknown; description: string; display_name: string; enforceable: boolean; @@ -822,7 +822,7 @@ export interface EnforceSettingRequest { org_id?: string; scope: string; scope_id?: string; - value: string; + value: unknown; } export interface EnrollRequest { @@ -1418,7 +1418,7 @@ export interface ResetPasswordRequest { export interface ResolvedSetting { can_override: boolean; definition?: Definition; - effective_value: string; + effective_value: unknown; enforced_at?: string; scope_values: ScopeValue[]; } @@ -1525,7 +1525,7 @@ export interface ScopeValue { scope_id?: string; updated_at?: string; updated_by?: string; - value: string; + value: unknown; version?: number; } @@ -1590,7 +1590,7 @@ export interface SetSettingRequest { org_id?: string; scope: string; scope_id?: string; - value: string; + value: unknown; } export interface SettingValueResponse { @@ -1598,7 +1598,7 @@ export interface SettingValueResponse { scope: string; scope_id?: string; status: string; - value: string; + value: unknown; } export interface Settings { @@ -2014,7 +2014,7 @@ export interface VerifyMFAResponse { export interface VisibilityCondition { key: string; operator?: string; - value: string; + value: unknown; } export interface VoidInvoiceRequest {