@authhero/adapter-interfaces 0.79.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +389 -424
- package/dist/adapter-interfaces.mjs +816 -782
- package/package.json +1 -1
|
@@ -13906,41 +13906,27 @@ export declare const resourceServerOptionsSchema: z.ZodObject<{
|
|
|
13906
13906
|
}, {
|
|
13907
13907
|
bound_access_tokens?: boolean | undefined;
|
|
13908
13908
|
}>>;
|
|
13909
|
-
}, "
|
|
13910
|
-
token_dialect
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
13918
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
13919
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
13920
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
13921
|
-
}, "strip", z.ZodTypeAny, {
|
|
13922
|
-
bound_access_tokens?: boolean | undefined;
|
|
13923
|
-
}, {
|
|
13924
|
-
bound_access_tokens?: boolean | undefined;
|
|
13925
|
-
}>>;
|
|
13926
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
13927
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
13928
|
-
"access_token",
|
|
13929
|
-
"access_token_authz"
|
|
13930
|
-
]>>;
|
|
13931
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
13932
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
13933
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
13934
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
13935
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
13936
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
13937
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
13938
|
-
}, "strip", z.ZodTypeAny, {
|
|
13909
|
+
}, "strip", z.ZodTypeAny, {
|
|
13910
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
13911
|
+
enforce_policies?: boolean | undefined;
|
|
13912
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
13913
|
+
skip_userinfo?: boolean | undefined;
|
|
13914
|
+
persist_client_authorization?: boolean | undefined;
|
|
13915
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
13916
|
+
mtls?: {
|
|
13939
13917
|
bound_access_tokens?: boolean | undefined;
|
|
13940
|
-
}
|
|
13918
|
+
} | undefined;
|
|
13919
|
+
}, {
|
|
13920
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
13921
|
+
enforce_policies?: boolean | undefined;
|
|
13922
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
13923
|
+
skip_userinfo?: boolean | undefined;
|
|
13924
|
+
persist_client_authorization?: boolean | undefined;
|
|
13925
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
13926
|
+
mtls?: {
|
|
13941
13927
|
bound_access_tokens?: boolean | undefined;
|
|
13942
|
-
}
|
|
13943
|
-
}
|
|
13928
|
+
} | undefined;
|
|
13929
|
+
}>;
|
|
13944
13930
|
export type ResourceServerOptions = z.infer<typeof resourceServerOptionsSchema>;
|
|
13945
13931
|
export declare const resourceServerInsertSchema: z.ZodObject<{
|
|
13946
13932
|
name: z.ZodString;
|
|
@@ -13979,62 +13965,41 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
13979
13965
|
}, {
|
|
13980
13966
|
bound_access_tokens?: boolean | undefined;
|
|
13981
13967
|
}>>;
|
|
13982
|
-
}, "
|
|
13983
|
-
token_dialect
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
13991
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
13992
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
13993
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
13994
|
-
}, "strip", z.ZodTypeAny, {
|
|
13995
|
-
bound_access_tokens?: boolean | undefined;
|
|
13996
|
-
}, {
|
|
13997
|
-
bound_access_tokens?: boolean | undefined;
|
|
13998
|
-
}>>;
|
|
13999
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14000
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
14001
|
-
"access_token",
|
|
14002
|
-
"access_token_authz"
|
|
14003
|
-
]>>;
|
|
14004
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
14005
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14006
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14007
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14008
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14009
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14010
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14011
|
-
}, "strip", z.ZodTypeAny, {
|
|
13968
|
+
}, "strip", z.ZodTypeAny, {
|
|
13969
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
13970
|
+
enforce_policies?: boolean | undefined;
|
|
13971
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
13972
|
+
skip_userinfo?: boolean | undefined;
|
|
13973
|
+
persist_client_authorization?: boolean | undefined;
|
|
13974
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
13975
|
+
mtls?: {
|
|
14012
13976
|
bound_access_tokens?: boolean | undefined;
|
|
14013
|
-
}
|
|
13977
|
+
} | undefined;
|
|
13978
|
+
}, {
|
|
13979
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
13980
|
+
enforce_policies?: boolean | undefined;
|
|
13981
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
13982
|
+
skip_userinfo?: boolean | undefined;
|
|
13983
|
+
persist_client_authorization?: boolean | undefined;
|
|
13984
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
13985
|
+
mtls?: {
|
|
14014
13986
|
bound_access_tokens?: boolean | undefined;
|
|
14015
|
-
}
|
|
14016
|
-
}
|
|
13987
|
+
} | undefined;
|
|
13988
|
+
}>>;
|
|
14017
13989
|
}, "strip", z.ZodTypeAny, {
|
|
14018
13990
|
name: string;
|
|
14019
13991
|
identifier: string;
|
|
14020
|
-
options?:
|
|
14021
|
-
token_dialect
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14029
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14030
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14031
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14032
|
-
}, "strip", z.ZodTypeAny, {
|
|
14033
|
-
bound_access_tokens?: boolean | undefined;
|
|
14034
|
-
}, {
|
|
13992
|
+
options?: {
|
|
13993
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
13994
|
+
enforce_policies?: boolean | undefined;
|
|
13995
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
13996
|
+
skip_userinfo?: boolean | undefined;
|
|
13997
|
+
persist_client_authorization?: boolean | undefined;
|
|
13998
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
13999
|
+
mtls?: {
|
|
14035
14000
|
bound_access_tokens?: boolean | undefined;
|
|
14036
|
-
}
|
|
14037
|
-
}
|
|
14001
|
+
} | undefined;
|
|
14002
|
+
} | undefined;
|
|
14038
14003
|
scopes?: {
|
|
14039
14004
|
value: string;
|
|
14040
14005
|
description?: string | undefined;
|
|
@@ -14049,24 +14014,17 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
14049
14014
|
}, {
|
|
14050
14015
|
name: string;
|
|
14051
14016
|
identifier: string;
|
|
14052
|
-
options?:
|
|
14053
|
-
token_dialect
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14061
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14062
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14063
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14064
|
-
}, "strip", z.ZodTypeAny, {
|
|
14065
|
-
bound_access_tokens?: boolean | undefined;
|
|
14066
|
-
}, {
|
|
14017
|
+
options?: {
|
|
14018
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14019
|
+
enforce_policies?: boolean | undefined;
|
|
14020
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14021
|
+
skip_userinfo?: boolean | undefined;
|
|
14022
|
+
persist_client_authorization?: boolean | undefined;
|
|
14023
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14024
|
+
mtls?: {
|
|
14067
14025
|
bound_access_tokens?: boolean | undefined;
|
|
14068
|
-
}
|
|
14069
|
-
}
|
|
14026
|
+
} | undefined;
|
|
14027
|
+
} | undefined;
|
|
14070
14028
|
scopes?: {
|
|
14071
14029
|
value: string;
|
|
14072
14030
|
description?: string | undefined;
|
|
@@ -14081,6 +14039,8 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
14081
14039
|
}>;
|
|
14082
14040
|
export type ResourceServerInsert = z.input<typeof resourceServerInsertSchema>;
|
|
14083
14041
|
export declare const resourceServerSchema: z.ZodObject<{
|
|
14042
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14043
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
14084
14044
|
name: z.ZodString;
|
|
14085
14045
|
identifier: z.ZodString;
|
|
14086
14046
|
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14117,63 +14077,44 @@ export declare const resourceServerSchema: z.ZodObject<{
|
|
|
14117
14077
|
}, {
|
|
14118
14078
|
bound_access_tokens?: boolean | undefined;
|
|
14119
14079
|
}>>;
|
|
14120
|
-
}, "
|
|
14121
|
-
token_dialect
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14129
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14130
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14131
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14132
|
-
}, "strip", z.ZodTypeAny, {
|
|
14133
|
-
bound_access_tokens?: boolean | undefined;
|
|
14134
|
-
}, {
|
|
14135
|
-
bound_access_tokens?: boolean | undefined;
|
|
14136
|
-
}>>;
|
|
14137
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14138
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
14139
|
-
"access_token",
|
|
14140
|
-
"access_token_authz"
|
|
14141
|
-
]>>;
|
|
14142
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
14143
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14144
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14145
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14146
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14147
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14148
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14149
|
-
}, "strip", z.ZodTypeAny, {
|
|
14080
|
+
}, "strip", z.ZodTypeAny, {
|
|
14081
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14082
|
+
enforce_policies?: boolean | undefined;
|
|
14083
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14084
|
+
skip_userinfo?: boolean | undefined;
|
|
14085
|
+
persist_client_authorization?: boolean | undefined;
|
|
14086
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14087
|
+
mtls?: {
|
|
14150
14088
|
bound_access_tokens?: boolean | undefined;
|
|
14151
|
-
}
|
|
14089
|
+
} | undefined;
|
|
14090
|
+
}, {
|
|
14091
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14092
|
+
enforce_policies?: boolean | undefined;
|
|
14093
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14094
|
+
skip_userinfo?: boolean | undefined;
|
|
14095
|
+
persist_client_authorization?: boolean | undefined;
|
|
14096
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14097
|
+
mtls?: {
|
|
14152
14098
|
bound_access_tokens?: boolean | undefined;
|
|
14153
|
-
}
|
|
14154
|
-
}
|
|
14099
|
+
} | undefined;
|
|
14100
|
+
}>>;
|
|
14155
14101
|
id: z.ZodOptional<z.ZodString>;
|
|
14156
14102
|
}, "strip", z.ZodTypeAny, {
|
|
14157
14103
|
name: string;
|
|
14158
14104
|
identifier: string;
|
|
14159
|
-
options?:
|
|
14160
|
-
token_dialect
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14168
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14169
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14170
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14171
|
-
}, "strip", z.ZodTypeAny, {
|
|
14172
|
-
bound_access_tokens?: boolean | undefined;
|
|
14173
|
-
}, {
|
|
14105
|
+
options?: {
|
|
14106
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14107
|
+
enforce_policies?: boolean | undefined;
|
|
14108
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14109
|
+
skip_userinfo?: boolean | undefined;
|
|
14110
|
+
persist_client_authorization?: boolean | undefined;
|
|
14111
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14112
|
+
mtls?: {
|
|
14174
14113
|
bound_access_tokens?: boolean | undefined;
|
|
14175
|
-
}
|
|
14176
|
-
}
|
|
14114
|
+
} | undefined;
|
|
14115
|
+
} | undefined;
|
|
14116
|
+
created_at?: string | undefined;
|
|
14117
|
+
updated_at?: string | undefined;
|
|
14177
14118
|
id?: string | undefined;
|
|
14178
14119
|
scopes?: {
|
|
14179
14120
|
value: string;
|
|
@@ -14189,24 +14130,19 @@ export declare const resourceServerSchema: z.ZodObject<{
|
|
|
14189
14130
|
}, {
|
|
14190
14131
|
name: string;
|
|
14191
14132
|
identifier: string;
|
|
14192
|
-
options?:
|
|
14193
|
-
token_dialect
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14201
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14202
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14203
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14204
|
-
}, "strip", z.ZodTypeAny, {
|
|
14205
|
-
bound_access_tokens?: boolean | undefined;
|
|
14206
|
-
}, {
|
|
14133
|
+
options?: {
|
|
14134
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14135
|
+
enforce_policies?: boolean | undefined;
|
|
14136
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14137
|
+
skip_userinfo?: boolean | undefined;
|
|
14138
|
+
persist_client_authorization?: boolean | undefined;
|
|
14139
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14140
|
+
mtls?: {
|
|
14207
14141
|
bound_access_tokens?: boolean | undefined;
|
|
14208
|
-
}
|
|
14209
|
-
}
|
|
14142
|
+
} | undefined;
|
|
14143
|
+
} | undefined;
|
|
14144
|
+
created_at?: string | undefined;
|
|
14145
|
+
updated_at?: string | undefined;
|
|
14210
14146
|
id?: string | undefined;
|
|
14211
14147
|
scopes?: {
|
|
14212
14148
|
value: string;
|
|
@@ -14222,6 +14158,8 @@ export declare const resourceServerSchema: z.ZodObject<{
|
|
|
14222
14158
|
}>;
|
|
14223
14159
|
export type ResourceServer = z.infer<typeof resourceServerSchema>;
|
|
14224
14160
|
export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
|
|
14161
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14162
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
14225
14163
|
name: z.ZodString;
|
|
14226
14164
|
identifier: z.ZodString;
|
|
14227
14165
|
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -14258,63 +14196,44 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
|
|
|
14258
14196
|
}, {
|
|
14259
14197
|
bound_access_tokens?: boolean | undefined;
|
|
14260
14198
|
}>>;
|
|
14261
|
-
}, "
|
|
14262
|
-
token_dialect
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14270
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14271
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14272
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14273
|
-
}, "strip", z.ZodTypeAny, {
|
|
14274
|
-
bound_access_tokens?: boolean | undefined;
|
|
14275
|
-
}, {
|
|
14276
|
-
bound_access_tokens?: boolean | undefined;
|
|
14277
|
-
}>>;
|
|
14278
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14279
|
-
token_dialect: z.ZodOptional<z.ZodEnum<[
|
|
14280
|
-
"access_token",
|
|
14281
|
-
"access_token_authz"
|
|
14282
|
-
]>>;
|
|
14283
|
-
enforce_policies: z.ZodOptional<z.ZodBoolean>;
|
|
14284
|
-
allow_skipping_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14285
|
-
skip_userinfo: z.ZodOptional<z.ZodBoolean>;
|
|
14286
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14287
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14288
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14289
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14290
|
-
}, "strip", z.ZodTypeAny, {
|
|
14199
|
+
}, "strip", z.ZodTypeAny, {
|
|
14200
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14201
|
+
enforce_policies?: boolean | undefined;
|
|
14202
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14203
|
+
skip_userinfo?: boolean | undefined;
|
|
14204
|
+
persist_client_authorization?: boolean | undefined;
|
|
14205
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14206
|
+
mtls?: {
|
|
14291
14207
|
bound_access_tokens?: boolean | undefined;
|
|
14292
|
-
}
|
|
14208
|
+
} | undefined;
|
|
14209
|
+
}, {
|
|
14210
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14211
|
+
enforce_policies?: boolean | undefined;
|
|
14212
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14213
|
+
skip_userinfo?: boolean | undefined;
|
|
14214
|
+
persist_client_authorization?: boolean | undefined;
|
|
14215
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14216
|
+
mtls?: {
|
|
14293
14217
|
bound_access_tokens?: boolean | undefined;
|
|
14294
|
-
}
|
|
14295
|
-
}
|
|
14218
|
+
} | undefined;
|
|
14219
|
+
}>>;
|
|
14296
14220
|
id: z.ZodOptional<z.ZodString>;
|
|
14297
14221
|
}, "strip", z.ZodTypeAny, {
|
|
14298
14222
|
name: string;
|
|
14299
14223
|
identifier: string;
|
|
14300
|
-
options?:
|
|
14301
|
-
token_dialect
|
|
14302
|
-
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14309
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14310
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14311
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14312
|
-
}, "strip", z.ZodTypeAny, {
|
|
14313
|
-
bound_access_tokens?: boolean | undefined;
|
|
14314
|
-
}, {
|
|
14224
|
+
options?: {
|
|
14225
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14226
|
+
enforce_policies?: boolean | undefined;
|
|
14227
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14228
|
+
skip_userinfo?: boolean | undefined;
|
|
14229
|
+
persist_client_authorization?: boolean | undefined;
|
|
14230
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14231
|
+
mtls?: {
|
|
14315
14232
|
bound_access_tokens?: boolean | undefined;
|
|
14316
|
-
}
|
|
14317
|
-
}
|
|
14233
|
+
} | undefined;
|
|
14234
|
+
} | undefined;
|
|
14235
|
+
created_at?: string | undefined;
|
|
14236
|
+
updated_at?: string | undefined;
|
|
14318
14237
|
id?: string | undefined;
|
|
14319
14238
|
scopes?: {
|
|
14320
14239
|
value: string;
|
|
@@ -14330,24 +14249,19 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
|
|
|
14330
14249
|
}, {
|
|
14331
14250
|
name: string;
|
|
14332
14251
|
identifier: string;
|
|
14333
|
-
options?:
|
|
14334
|
-
token_dialect
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
persist_client_authorization: z.ZodOptional<z.ZodBoolean>;
|
|
14342
|
-
enable_introspection_endpoint: z.ZodOptional<z.ZodBoolean>;
|
|
14343
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
14344
|
-
bound_access_tokens: z.ZodOptional<z.ZodBoolean>;
|
|
14345
|
-
}, "strip", z.ZodTypeAny, {
|
|
14346
|
-
bound_access_tokens?: boolean | undefined;
|
|
14347
|
-
}, {
|
|
14252
|
+
options?: {
|
|
14253
|
+
token_dialect?: "access_token" | "access_token_authz" | undefined;
|
|
14254
|
+
enforce_policies?: boolean | undefined;
|
|
14255
|
+
allow_skipping_userinfo?: boolean | undefined;
|
|
14256
|
+
skip_userinfo?: boolean | undefined;
|
|
14257
|
+
persist_client_authorization?: boolean | undefined;
|
|
14258
|
+
enable_introspection_endpoint?: boolean | undefined;
|
|
14259
|
+
mtls?: {
|
|
14348
14260
|
bound_access_tokens?: boolean | undefined;
|
|
14349
|
-
}
|
|
14350
|
-
}
|
|
14261
|
+
} | undefined;
|
|
14262
|
+
} | undefined;
|
|
14263
|
+
created_at?: string | undefined;
|
|
14264
|
+
updated_at?: string | undefined;
|
|
14351
14265
|
id?: string | undefined;
|
|
14352
14266
|
scopes?: {
|
|
14353
14267
|
value: string;
|
|
@@ -14362,211 +14276,257 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
|
|
|
14362
14276
|
verificationKey?: string | undefined;
|
|
14363
14277
|
}>, "many">;
|
|
14364
14278
|
export type ResourceServerList = z.infer<typeof resourceServerListSchema>;
|
|
14365
|
-
export declare const
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14369
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14370
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14371
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14372
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14373
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14374
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14375
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14376
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14377
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
14378
|
-
export type PermissionSource = z.infer<typeof permissionSourceSchema>;
|
|
14379
|
-
export declare const permissionSchema: z.ZodObject<{
|
|
14279
|
+
export declare const rolePermissionInsertSchema: z.ZodObject<{
|
|
14280
|
+
role_id: z.ZodString;
|
|
14281
|
+
resource_server_identifier: z.ZodString;
|
|
14380
14282
|
permission_name: z.ZodString;
|
|
14381
|
-
|
|
14283
|
+
}, "strip", z.ZodTypeAny, {
|
|
14284
|
+
role_id: string;
|
|
14285
|
+
resource_server_identifier: string;
|
|
14286
|
+
permission_name: string;
|
|
14287
|
+
}, {
|
|
14288
|
+
role_id: string;
|
|
14289
|
+
resource_server_identifier: string;
|
|
14290
|
+
permission_name: string;
|
|
14291
|
+
}>;
|
|
14292
|
+
export type RolePermissionInsert = z.infer<typeof rolePermissionInsertSchema>;
|
|
14293
|
+
export declare const rolePermissionSchema: z.ZodObject<{
|
|
14294
|
+
tenant_id: z.ZodString;
|
|
14295
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14296
|
+
role_id: z.ZodString;
|
|
14382
14297
|
resource_server_identifier: z.ZodString;
|
|
14383
|
-
resource_server_name: z.ZodString;
|
|
14384
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14385
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14386
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14387
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14388
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14389
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14390
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14391
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14392
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14393
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14394
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14395
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14396
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
14397
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14398
14298
|
permission_name: z.ZodString;
|
|
14399
|
-
|
|
14299
|
+
}, "strip", z.ZodTypeAny, {
|
|
14300
|
+
tenant_id: string;
|
|
14301
|
+
role_id: string;
|
|
14302
|
+
resource_server_identifier: string;
|
|
14303
|
+
permission_name: string;
|
|
14304
|
+
created_at?: string | undefined;
|
|
14305
|
+
}, {
|
|
14306
|
+
tenant_id: string;
|
|
14307
|
+
role_id: string;
|
|
14308
|
+
resource_server_identifier: string;
|
|
14309
|
+
permission_name: string;
|
|
14310
|
+
created_at?: string | undefined;
|
|
14311
|
+
}>;
|
|
14312
|
+
export type RolePermission = z.infer<typeof rolePermissionSchema>;
|
|
14313
|
+
export declare const rolePermissionListSchema: z.ZodArray<z.ZodObject<{
|
|
14314
|
+
tenant_id: z.ZodString;
|
|
14315
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14316
|
+
role_id: z.ZodString;
|
|
14400
14317
|
resource_server_identifier: z.ZodString;
|
|
14401
|
-
resource_server_name: z.ZodString;
|
|
14402
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14403
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14404
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14405
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14406
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14407
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14408
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14409
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14410
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14411
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14412
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14413
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14414
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
14415
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14416
14318
|
permission_name: z.ZodString;
|
|
14417
|
-
|
|
14319
|
+
}, "strip", z.ZodTypeAny, {
|
|
14320
|
+
tenant_id: string;
|
|
14321
|
+
role_id: string;
|
|
14322
|
+
resource_server_identifier: string;
|
|
14323
|
+
permission_name: string;
|
|
14324
|
+
created_at?: string | undefined;
|
|
14325
|
+
}, {
|
|
14326
|
+
tenant_id: string;
|
|
14327
|
+
role_id: string;
|
|
14328
|
+
resource_server_identifier: string;
|
|
14329
|
+
permission_name: string;
|
|
14330
|
+
created_at?: string | undefined;
|
|
14331
|
+
}>, "many">;
|
|
14332
|
+
export type RolePermissionList = z.infer<typeof rolePermissionListSchema>;
|
|
14333
|
+
export declare const rolePermissionWithDetailsSchema: z.ZodObject<{
|
|
14334
|
+
role_id: z.ZodString;
|
|
14418
14335
|
resource_server_identifier: z.ZodString;
|
|
14419
14336
|
resource_server_name: z.ZodString;
|
|
14420
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14421
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14422
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14423
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14424
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14425
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14426
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14427
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14428
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14429
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14430
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14431
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14432
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
14433
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
14434
|
-
export type Permission = z.infer<typeof permissionSchema>;
|
|
14435
|
-
export type PermissionInsert = z.input<typeof permissionSchema>;
|
|
14436
|
-
export declare const permissionListSchema: z.ZodArray<z.ZodObject<{
|
|
14437
14337
|
permission_name: z.ZodString;
|
|
14438
14338
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14339
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14340
|
+
}, "strip", z.ZodTypeAny, {
|
|
14341
|
+
role_id: string;
|
|
14342
|
+
resource_server_identifier: string;
|
|
14343
|
+
permission_name: string;
|
|
14344
|
+
resource_server_name: string;
|
|
14345
|
+
description?: string | null | undefined;
|
|
14346
|
+
created_at?: string | undefined;
|
|
14347
|
+
}, {
|
|
14348
|
+
role_id: string;
|
|
14349
|
+
resource_server_identifier: string;
|
|
14350
|
+
permission_name: string;
|
|
14351
|
+
resource_server_name: string;
|
|
14352
|
+
description?: string | null | undefined;
|
|
14353
|
+
created_at?: string | undefined;
|
|
14354
|
+
}>;
|
|
14355
|
+
export type RolePermissionWithDetails = z.infer<typeof rolePermissionWithDetailsSchema>;
|
|
14356
|
+
export declare const rolePermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
14357
|
+
role_id: z.ZodString;
|
|
14439
14358
|
resource_server_identifier: z.ZodString;
|
|
14440
14359
|
resource_server_name: z.ZodString;
|
|
14441
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14442
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14443
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14444
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14445
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14446
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14447
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14448
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14449
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14450
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14451
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14452
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14453
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
14454
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14455
14360
|
permission_name: z.ZodString;
|
|
14456
14361
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14362
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14363
|
+
}, "strip", z.ZodTypeAny, {
|
|
14364
|
+
role_id: string;
|
|
14365
|
+
resource_server_identifier: string;
|
|
14366
|
+
permission_name: string;
|
|
14367
|
+
resource_server_name: string;
|
|
14368
|
+
description?: string | null | undefined;
|
|
14369
|
+
created_at?: string | undefined;
|
|
14370
|
+
}, {
|
|
14371
|
+
role_id: string;
|
|
14372
|
+
resource_server_identifier: string;
|
|
14373
|
+
permission_name: string;
|
|
14374
|
+
resource_server_name: string;
|
|
14375
|
+
description?: string | null | undefined;
|
|
14376
|
+
created_at?: string | undefined;
|
|
14377
|
+
}>, "many">;
|
|
14378
|
+
export type RolePermissionWithDetailsList = z.infer<typeof rolePermissionWithDetailsListSchema>;
|
|
14379
|
+
export declare const userPermissionInsertSchema: z.ZodObject<{
|
|
14380
|
+
user_id: z.ZodString;
|
|
14381
|
+
resource_server_identifier: z.ZodString;
|
|
14382
|
+
permission_name: z.ZodString;
|
|
14383
|
+
}, "strip", z.ZodTypeAny, {
|
|
14384
|
+
user_id: string;
|
|
14385
|
+
resource_server_identifier: string;
|
|
14386
|
+
permission_name: string;
|
|
14387
|
+
}, {
|
|
14388
|
+
user_id: string;
|
|
14389
|
+
resource_server_identifier: string;
|
|
14390
|
+
permission_name: string;
|
|
14391
|
+
}>;
|
|
14392
|
+
export type UserPermissionInsert = z.infer<typeof userPermissionInsertSchema>;
|
|
14393
|
+
export declare const userPermissionSchema: z.ZodObject<{
|
|
14394
|
+
tenant_id: z.ZodString;
|
|
14395
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14396
|
+
user_id: z.ZodString;
|
|
14397
|
+
resource_server_identifier: z.ZodString;
|
|
14398
|
+
permission_name: z.ZodString;
|
|
14399
|
+
}, "strip", z.ZodTypeAny, {
|
|
14400
|
+
user_id: string;
|
|
14401
|
+
tenant_id: string;
|
|
14402
|
+
resource_server_identifier: string;
|
|
14403
|
+
permission_name: string;
|
|
14404
|
+
created_at?: string | undefined;
|
|
14405
|
+
}, {
|
|
14406
|
+
user_id: string;
|
|
14407
|
+
tenant_id: string;
|
|
14408
|
+
resource_server_identifier: string;
|
|
14409
|
+
permission_name: string;
|
|
14410
|
+
created_at?: string | undefined;
|
|
14411
|
+
}>;
|
|
14412
|
+
export type UserPermission = z.infer<typeof userPermissionSchema>;
|
|
14413
|
+
export declare const userPermissionListSchema: z.ZodArray<z.ZodObject<{
|
|
14414
|
+
tenant_id: z.ZodString;
|
|
14415
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14416
|
+
user_id: z.ZodString;
|
|
14417
|
+
resource_server_identifier: z.ZodString;
|
|
14418
|
+
permission_name: z.ZodString;
|
|
14419
|
+
}, "strip", z.ZodTypeAny, {
|
|
14420
|
+
user_id: string;
|
|
14421
|
+
tenant_id: string;
|
|
14422
|
+
resource_server_identifier: string;
|
|
14423
|
+
permission_name: string;
|
|
14424
|
+
created_at?: string | undefined;
|
|
14425
|
+
}, {
|
|
14426
|
+
user_id: string;
|
|
14427
|
+
tenant_id: string;
|
|
14428
|
+
resource_server_identifier: string;
|
|
14429
|
+
permission_name: string;
|
|
14430
|
+
created_at?: string | undefined;
|
|
14431
|
+
}>, "many">;
|
|
14432
|
+
export type UserPermissionList = z.infer<typeof userPermissionListSchema>;
|
|
14433
|
+
export declare const userPermissionWithDetailsSchema: z.ZodObject<{
|
|
14434
|
+
user_id: z.ZodString;
|
|
14457
14435
|
resource_server_identifier: z.ZodString;
|
|
14458
14436
|
resource_server_name: z.ZodString;
|
|
14459
|
-
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14460
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14461
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14462
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14463
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14464
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14465
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14466
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14467
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14468
|
-
source_id: z.ZodOptional<z.ZodString>;
|
|
14469
|
-
source_name: z.ZodOptional<z.ZodString>;
|
|
14470
|
-
source_type: z.ZodOptional<z.ZodString>;
|
|
14471
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
14472
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14473
14437
|
permission_name: z.ZodString;
|
|
14474
14438
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14439
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14440
|
+
}, "strip", z.ZodTypeAny, {
|
|
14441
|
+
user_id: string;
|
|
14442
|
+
resource_server_identifier: string;
|
|
14443
|
+
permission_name: string;
|
|
14444
|
+
resource_server_name: string;
|
|
14445
|
+
description?: string | null | undefined;
|
|
14446
|
+
created_at?: string | undefined;
|
|
14447
|
+
}, {
|
|
14448
|
+
user_id: string;
|
|
14449
|
+
resource_server_identifier: string;
|
|
14450
|
+
permission_name: string;
|
|
14451
|
+
resource_server_name: string;
|
|
14452
|
+
description?: string | null | undefined;
|
|
14453
|
+
created_at?: string | undefined;
|
|
14454
|
+
}>;
|
|
14455
|
+
export type UserPermissionWithDetails = z.infer<typeof userPermissionWithDetailsSchema>;
|
|
14456
|
+
export declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
14457
|
+
user_id: z.ZodString;
|
|
14475
14458
|
resource_server_identifier: z.ZodString;
|
|
14476
14459
|
resource_server_name: z.ZodString;
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14460
|
+
permission_name: z.ZodString;
|
|
14461
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14462
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
14463
|
+
}, "strip", z.ZodTypeAny, {
|
|
14464
|
+
user_id: string;
|
|
14465
|
+
resource_server_identifier: string;
|
|
14466
|
+
permission_name: string;
|
|
14467
|
+
resource_server_name: string;
|
|
14468
|
+
description?: string | null | undefined;
|
|
14469
|
+
created_at?: string | undefined;
|
|
14470
|
+
}, {
|
|
14471
|
+
user_id: string;
|
|
14472
|
+
resource_server_identifier: string;
|
|
14473
|
+
permission_name: string;
|
|
14474
|
+
resource_server_name: string;
|
|
14475
|
+
description?: string | null | undefined;
|
|
14476
|
+
created_at?: string | undefined;
|
|
14477
|
+
}>, "many">;
|
|
14478
|
+
export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
|
|
14479
|
+
export declare const roleInsertSchema: z.ZodObject<{
|
|
14493
14480
|
name: z.ZodString;
|
|
14494
|
-
|
|
14495
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14496
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14497
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14481
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14498
14482
|
}, "strip", z.ZodTypeAny, {
|
|
14499
14483
|
name: string;
|
|
14500
|
-
|
|
14501
|
-
enabled?: boolean | undefined;
|
|
14502
|
-
order?: number | undefined;
|
|
14503
|
-
stage?: string | undefined;
|
|
14484
|
+
description?: string | undefined;
|
|
14504
14485
|
}, {
|
|
14505
14486
|
name: string;
|
|
14506
|
-
|
|
14507
|
-
enabled?: boolean | undefined;
|
|
14508
|
-
order?: number | undefined;
|
|
14509
|
-
stage?: string | undefined;
|
|
14487
|
+
description?: string | undefined;
|
|
14510
14488
|
}>;
|
|
14511
|
-
export
|
|
14512
|
-
export declare const ruleSchema: z.ZodObject<{
|
|
14513
|
-
name: z.ZodString;
|
|
14514
|
-
script: z.ZodString;
|
|
14515
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14516
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14517
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14518
|
-
id: z.ZodString;
|
|
14519
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
14520
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
14521
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14522
|
-
name: z.ZodString;
|
|
14523
|
-
script: z.ZodString;
|
|
14524
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14525
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14526
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14527
|
-
id: z.ZodString;
|
|
14528
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
14529
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
14530
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14531
|
-
name: z.ZodString;
|
|
14532
|
-
script: z.ZodString;
|
|
14533
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14534
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14535
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14536
|
-
id: z.ZodString;
|
|
14489
|
+
export declare const roleSchema: z.ZodObject<{
|
|
14537
14490
|
created_at: z.ZodOptional<z.ZodString>;
|
|
14538
14491
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
14539
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
14540
|
-
export type Rule = z.infer<typeof ruleSchema>;
|
|
14541
|
-
export declare const ruleListSchema: z.ZodArray<z.ZodObject<{
|
|
14542
14492
|
name: z.ZodString;
|
|
14543
|
-
|
|
14544
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14545
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14546
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14547
|
-
id: z.ZodString;
|
|
14548
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
14549
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
14550
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14551
|
-
name: z.ZodString;
|
|
14552
|
-
script: z.ZodString;
|
|
14553
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14554
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14555
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14493
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14556
14494
|
id: z.ZodString;
|
|
14495
|
+
}, "strip", z.ZodTypeAny, {
|
|
14496
|
+
name: string;
|
|
14497
|
+
id: string;
|
|
14498
|
+
description?: string | undefined;
|
|
14499
|
+
created_at?: string | undefined;
|
|
14500
|
+
updated_at?: string | undefined;
|
|
14501
|
+
}, {
|
|
14502
|
+
name: string;
|
|
14503
|
+
id: string;
|
|
14504
|
+
description?: string | undefined;
|
|
14505
|
+
created_at?: string | undefined;
|
|
14506
|
+
updated_at?: string | undefined;
|
|
14507
|
+
}>;
|
|
14508
|
+
export type Role = z.infer<typeof roleSchema>;
|
|
14509
|
+
export type RoleInsert = z.infer<typeof roleInsertSchema>;
|
|
14510
|
+
export declare const roleListSchema: z.ZodArray<z.ZodObject<{
|
|
14557
14511
|
created_at: z.ZodOptional<z.ZodString>;
|
|
14558
14512
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
14559
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
14560
14513
|
name: z.ZodString;
|
|
14561
|
-
|
|
14562
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
14563
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14564
|
-
stage: z.ZodOptional<z.ZodString>;
|
|
14514
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14565
14515
|
id: z.ZodString;
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14516
|
+
}, "strip", z.ZodTypeAny, {
|
|
14517
|
+
name: string;
|
|
14518
|
+
id: string;
|
|
14519
|
+
description?: string | undefined;
|
|
14520
|
+
created_at?: string | undefined;
|
|
14521
|
+
updated_at?: string | undefined;
|
|
14522
|
+
}, {
|
|
14523
|
+
name: string;
|
|
14524
|
+
id: string;
|
|
14525
|
+
description?: string | undefined;
|
|
14526
|
+
created_at?: string | undefined;
|
|
14527
|
+
updated_at?: string | undefined;
|
|
14528
|
+
}>, "many">;
|
|
14529
|
+
export type RoleList = z.infer<typeof roleListSchema>;
|
|
14570
14530
|
export declare function parseUserId(user_id: string): {
|
|
14571
14531
|
connection: string;
|
|
14572
14532
|
id: string;
|
|
@@ -14733,25 +14693,29 @@ export interface ResourceServersAdapter {
|
|
|
14733
14693
|
update(tenant_id: string, id: string, resourceServer: Partial<ResourceServerInsert>): Promise<boolean>;
|
|
14734
14694
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
14735
14695
|
}
|
|
14736
|
-
export interface
|
|
14737
|
-
|
|
14696
|
+
export interface RolePermissionsAdapter {
|
|
14697
|
+
assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
|
|
14698
|
+
remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
14699
|
+
list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionWithDetailsList>;
|
|
14738
14700
|
}
|
|
14739
|
-
export interface
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
list(tenant_id: string, params?: ListParams): Promise<
|
|
14743
|
-
update(tenant_id: string, rule_id: string, rule: Partial<RuleInsert>): Promise<boolean>;
|
|
14744
|
-
remove(tenant_id: string, rule_id: string): Promise<boolean>;
|
|
14701
|
+
export interface UserPermissionsAdapter {
|
|
14702
|
+
assign(tenant_id: string, user_id: string, permissions: UserPermissionInsert[]): Promise<boolean>;
|
|
14703
|
+
remove(tenant_id: string, user_id: string, permissions: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
|
|
14704
|
+
list(tenant_id: string, user_id: string, params?: ListParams): Promise<UserPermissionWithDetailsList>;
|
|
14745
14705
|
}
|
|
14746
|
-
export interface
|
|
14747
|
-
|
|
14706
|
+
export interface ListRolesResponse {
|
|
14707
|
+
roles: Role[];
|
|
14708
|
+
totals?: Totals;
|
|
14709
|
+
start: number;
|
|
14710
|
+
limit: number;
|
|
14711
|
+
length: number;
|
|
14748
14712
|
}
|
|
14749
|
-
export interface
|
|
14750
|
-
create(
|
|
14751
|
-
get(
|
|
14752
|
-
list(
|
|
14753
|
-
update(
|
|
14754
|
-
remove(
|
|
14713
|
+
export interface RolesAdapter {
|
|
14714
|
+
create(tenantId: string, role: RoleInsert): Promise<Role>;
|
|
14715
|
+
get(tenantId: string, roleId: string): Promise<Role | null>;
|
|
14716
|
+
list(tenantId: string, params?: ListParams): Promise<ListRolesResponse>;
|
|
14717
|
+
update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
|
|
14718
|
+
remove(tenantId: string, roleId: string): Promise<boolean>;
|
|
14755
14719
|
}
|
|
14756
14720
|
export interface DataAdapters {
|
|
14757
14721
|
applications: ApplicationsAdapter;
|
|
@@ -14770,8 +14734,9 @@ export interface DataAdapters {
|
|
|
14770
14734
|
promptSettings: PromptSettingsAdapter;
|
|
14771
14735
|
refreshTokens: RefreshTokensAdapter;
|
|
14772
14736
|
resourceServers: ResourceServersAdapter;
|
|
14773
|
-
|
|
14774
|
-
|
|
14737
|
+
rolePermissions: RolePermissionsAdapter;
|
|
14738
|
+
userPermissions: UserPermissionsAdapter;
|
|
14739
|
+
roles: RolesAdapter;
|
|
14775
14740
|
sessions: SessionsAdapter;
|
|
14776
14741
|
tenants: TenantsDataAdapter;
|
|
14777
14742
|
themes: ThemesAdapter;
|