@agntcy/slim-bindings-linux-arm64-gnu 2.0.0 → 2.1.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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agntcy/slim-bindings-linux-arm64-gnu",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "SLIM Node.js bindings (linux-arm64-gnu)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1001,11 +1001,205 @@ export declare const ClientJwtAuth: Readonly<{
1001
1001
  new: (partial: Partial<ClientJwtAuth> & Required<Omit<ClientJwtAuth, "key" | "duration" | "audience" | "issuer" | "subject">>) => ClientJwtAuth;
1002
1002
  defaults: () => Partial<ClientJwtAuth>;
1003
1003
  }>;
1004
+ export declare enum OidcPolicyConfig_Tags {
1005
+ Rego = "Rego",
1006
+ RegoFile = "RegoFile",
1007
+ Cel = "Cel"
1008
+ }
1009
+ /**
1010
+ * Policy evaluated against JWT claims on every authenticated request (server-side OIDC only)
1011
+ */
1012
+ export declare const OidcPolicyConfig: Readonly<{
1013
+ instanceOf: (obj: any) => obj is OidcPolicyConfig;
1014
+ Rego: {
1015
+ new (inner: {
1016
+ text: string;
1017
+ }): {
1018
+ readonly tag: OidcPolicyConfig_Tags.Rego;
1019
+ readonly inner: Readonly<{
1020
+ text: string;
1021
+ }>;
1022
+ /**
1023
+ * @private
1024
+ * This field is private and should not be used, use `tag` instead.
1025
+ */
1026
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1027
+ };
1028
+ "new"(inner: {
1029
+ text: string;
1030
+ }): {
1031
+ readonly tag: OidcPolicyConfig_Tags.Rego;
1032
+ readonly inner: Readonly<{
1033
+ text: string;
1034
+ }>;
1035
+ /**
1036
+ * @private
1037
+ * This field is private and should not be used, use `tag` instead.
1038
+ */
1039
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1040
+ };
1041
+ instanceOf(obj: any): obj is {
1042
+ readonly tag: OidcPolicyConfig_Tags.Rego;
1043
+ readonly inner: Readonly<{
1044
+ text: string;
1045
+ }>;
1046
+ /**
1047
+ * @private
1048
+ * This field is private and should not be used, use `tag` instead.
1049
+ */
1050
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1051
+ };
1052
+ };
1053
+ RegoFile: {
1054
+ new (inner: {
1055
+ path: string;
1056
+ }): {
1057
+ readonly tag: OidcPolicyConfig_Tags.RegoFile;
1058
+ readonly inner: Readonly<{
1059
+ path: string;
1060
+ }>;
1061
+ /**
1062
+ * @private
1063
+ * This field is private and should not be used, use `tag` instead.
1064
+ */
1065
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1066
+ };
1067
+ "new"(inner: {
1068
+ path: string;
1069
+ }): {
1070
+ readonly tag: OidcPolicyConfig_Tags.RegoFile;
1071
+ readonly inner: Readonly<{
1072
+ path: string;
1073
+ }>;
1074
+ /**
1075
+ * @private
1076
+ * This field is private and should not be used, use `tag` instead.
1077
+ */
1078
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1079
+ };
1080
+ instanceOf(obj: any): obj is {
1081
+ readonly tag: OidcPolicyConfig_Tags.RegoFile;
1082
+ readonly inner: Readonly<{
1083
+ path: string;
1084
+ }>;
1085
+ /**
1086
+ * @private
1087
+ * This field is private and should not be used, use `tag` instead.
1088
+ */
1089
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1090
+ };
1091
+ };
1092
+ Cel: {
1093
+ new (inner: {
1094
+ expression: string;
1095
+ }): {
1096
+ readonly tag: OidcPolicyConfig_Tags.Cel;
1097
+ readonly inner: Readonly<{
1098
+ expression: string;
1099
+ }>;
1100
+ /**
1101
+ * @private
1102
+ * This field is private and should not be used, use `tag` instead.
1103
+ */
1104
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1105
+ };
1106
+ "new"(inner: {
1107
+ expression: string;
1108
+ }): {
1109
+ readonly tag: OidcPolicyConfig_Tags.Cel;
1110
+ readonly inner: Readonly<{
1111
+ expression: string;
1112
+ }>;
1113
+ /**
1114
+ * @private
1115
+ * This field is private and should not be used, use `tag` instead.
1116
+ */
1117
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1118
+ };
1119
+ instanceOf(obj: any): obj is {
1120
+ readonly tag: OidcPolicyConfig_Tags.Cel;
1121
+ readonly inner: Readonly<{
1122
+ expression: string;
1123
+ }>;
1124
+ /**
1125
+ * @private
1126
+ * This field is private and should not be used, use `tag` instead.
1127
+ */
1128
+ readonly [uniffiTypeNameSymbol]: "OidcPolicyConfig";
1129
+ };
1130
+ };
1131
+ }>;
1132
+ /**
1133
+ * Policy evaluated against JWT claims on every authenticated request (server-side OIDC only)
1134
+ */
1135
+ export type OidcPolicyConfig = InstanceType<typeof OidcPolicyConfig['Rego' | 'RegoFile' | 'Cel']>;
1136
+ /**
1137
+ * OIDC authentication configuration (client-credentials, refresh-token, or JWKS verification)
1138
+ */
1139
+ export type OidcConfig = {
1140
+ /**
1141
+ * OIDC issuer URL (e.g., https://auth.example.com)
1142
+ */
1143
+ issuerUrl: string;
1144
+ /**
1145
+ * OAuth2 client ID (required for client-credentials and refresh-token flows)
1146
+ */
1147
+ clientId?: string;
1148
+ /**
1149
+ * OAuth2 client secret (for client-credentials flow)
1150
+ */
1151
+ clientSecret?: string;
1152
+ /**
1153
+ * Expected audience for JWT tokens (required for server-side verification)
1154
+ */
1155
+ audience?: string;
1156
+ /**
1157
+ * Inline refresh token (for authorization-code flow)
1158
+ */
1159
+ refreshToken?: string;
1160
+ /**
1161
+ * Path to file holding the refresh token (rotated tokens are written back automatically)
1162
+ */
1163
+ refreshTokenFile?: string;
1164
+ /**
1165
+ * Path to a file caching the current access token (optional companion to refresh_token_file)
1166
+ */
1167
+ accessTokenFile?: string;
1168
+ /**
1169
+ * OAuth2 scope parameter (client-side only)
1170
+ */
1171
+ scope?: string;
1172
+ /**
1173
+ * HTTP timeout for token requests in seconds (default: 30, client-side only)
1174
+ */
1175
+ timeout?: number;
1176
+ /**
1177
+ * JWKS cache TTL in seconds (default: 3600, server-side only)
1178
+ */
1179
+ jwksTtl?: number;
1180
+ /**
1181
+ * Cache TTL for merged JWT+userinfo claims in seconds (server-side only, absent = no cache)
1182
+ */
1183
+ claimCacheTtl?: number;
1184
+ /**
1185
+ * Policy evaluated against JWT claims on every authenticated request (server-side only)
1186
+ */
1187
+ policy?: OidcPolicyConfig;
1188
+ };
1189
+ /**
1190
+ * Generated factory for {@link OidcConfig} record objects.
1191
+ */
1192
+ export declare const OidcConfig: Readonly<{
1193
+ create: (partial: Partial<OidcConfig> & Required<Omit<OidcConfig, "timeout" | "audience" | "issuerUrl" | "clientId" | "clientSecret" | "refreshToken" | "refreshTokenFile" | "accessTokenFile" | "scope" | "jwksTtl" | "claimCacheTtl" | "policy">>) => OidcConfig;
1194
+ new: (partial: Partial<OidcConfig> & Required<Omit<OidcConfig, "timeout" | "audience" | "issuerUrl" | "clientId" | "clientSecret" | "refreshToken" | "refreshTokenFile" | "accessTokenFile" | "scope" | "jwksTtl" | "claimCacheTtl" | "policy">>) => OidcConfig;
1195
+ defaults: () => Partial<OidcConfig>;
1196
+ }>;
1004
1197
  export declare enum ClientAuthenticationConfig_Tags {
1005
1198
  Basic = "Basic",
1006
1199
  StaticJwt = "StaticJwt",
1007
1200
  Jwt = "Jwt",
1008
1201
  Spire = "Spire",
1202
+ Oidc = "Oidc",
1009
1203
  None = "None"
1010
1204
  }
1011
1205
  /**
@@ -1169,6 +1363,45 @@ export declare const ClientAuthenticationConfig: Readonly<{
1169
1363
  readonly [uniffiTypeNameSymbol]: "ClientAuthenticationConfig";
1170
1364
  };
1171
1365
  };
1366
+ Oidc: {
1367
+ new (inner: {
1368
+ config: OidcConfig;
1369
+ }): {
1370
+ readonly tag: ClientAuthenticationConfig_Tags.Oidc;
1371
+ readonly inner: Readonly<{
1372
+ config: OidcConfig;
1373
+ }>;
1374
+ /**
1375
+ * @private
1376
+ * This field is private and should not be used, use `tag` instead.
1377
+ */
1378
+ readonly [uniffiTypeNameSymbol]: "ClientAuthenticationConfig";
1379
+ };
1380
+ "new"(inner: {
1381
+ config: OidcConfig;
1382
+ }): {
1383
+ readonly tag: ClientAuthenticationConfig_Tags.Oidc;
1384
+ readonly inner: Readonly<{
1385
+ config: OidcConfig;
1386
+ }>;
1387
+ /**
1388
+ * @private
1389
+ * This field is private and should not be used, use `tag` instead.
1390
+ */
1391
+ readonly [uniffiTypeNameSymbol]: "ClientAuthenticationConfig";
1392
+ };
1393
+ instanceOf(obj: any): obj is {
1394
+ readonly tag: ClientAuthenticationConfig_Tags.Oidc;
1395
+ readonly inner: Readonly<{
1396
+ config: OidcConfig;
1397
+ }>;
1398
+ /**
1399
+ * @private
1400
+ * This field is private and should not be used, use `tag` instead.
1401
+ */
1402
+ readonly [uniffiTypeNameSymbol]: "ClientAuthenticationConfig";
1403
+ };
1404
+ };
1172
1405
  None: {
1173
1406
  new (): {
1174
1407
  readonly tag: ClientAuthenticationConfig_Tags.None;
@@ -1199,7 +1432,7 @@ export declare const ClientAuthenticationConfig: Readonly<{
1199
1432
  /**
1200
1433
  * Authentication configuration enum for client
1201
1434
  */
1202
- export type ClientAuthenticationConfig = InstanceType<typeof ClientAuthenticationConfig['Basic' | 'StaticJwt' | 'Jwt' | 'Spire' | 'None']>;
1435
+ export type ClientAuthenticationConfig = InstanceType<typeof ClientAuthenticationConfig['Basic' | 'StaticJwt' | 'Jwt' | 'Spire' | 'Oidc' | 'None']>;
1203
1436
  /**
1204
1437
  * Exponential backoff configuration
1205
1438
  */
@@ -1533,6 +1766,7 @@ export declare enum ServerAuthenticationConfig_Tags {
1533
1766
  Basic = "Basic",
1534
1767
  Jwt = "Jwt",
1535
1768
  Spire = "Spire",
1769
+ Oidc = "Oidc",
1536
1770
  None = "None"
1537
1771
  }
1538
1772
  /**
@@ -1657,6 +1891,45 @@ export declare const ServerAuthenticationConfig: Readonly<{
1657
1891
  readonly [uniffiTypeNameSymbol]: "ServerAuthenticationConfig";
1658
1892
  };
1659
1893
  };
1894
+ Oidc: {
1895
+ new (inner: {
1896
+ config: OidcConfig;
1897
+ }): {
1898
+ readonly tag: ServerAuthenticationConfig_Tags.Oidc;
1899
+ readonly inner: Readonly<{
1900
+ config: OidcConfig;
1901
+ }>;
1902
+ /**
1903
+ * @private
1904
+ * This field is private and should not be used, use `tag` instead.
1905
+ */
1906
+ readonly [uniffiTypeNameSymbol]: "ServerAuthenticationConfig";
1907
+ };
1908
+ "new"(inner: {
1909
+ config: OidcConfig;
1910
+ }): {
1911
+ readonly tag: ServerAuthenticationConfig_Tags.Oidc;
1912
+ readonly inner: Readonly<{
1913
+ config: OidcConfig;
1914
+ }>;
1915
+ /**
1916
+ * @private
1917
+ * This field is private and should not be used, use `tag` instead.
1918
+ */
1919
+ readonly [uniffiTypeNameSymbol]: "ServerAuthenticationConfig";
1920
+ };
1921
+ instanceOf(obj: any): obj is {
1922
+ readonly tag: ServerAuthenticationConfig_Tags.Oidc;
1923
+ readonly inner: Readonly<{
1924
+ config: OidcConfig;
1925
+ }>;
1926
+ /**
1927
+ * @private
1928
+ * This field is private and should not be used, use `tag` instead.
1929
+ */
1930
+ readonly [uniffiTypeNameSymbol]: "ServerAuthenticationConfig";
1931
+ };
1932
+ };
1660
1933
  None: {
1661
1934
  new (): {
1662
1935
  readonly tag: ServerAuthenticationConfig_Tags.None;
@@ -1687,7 +1960,7 @@ export declare const ServerAuthenticationConfig: Readonly<{
1687
1960
  /**
1688
1961
  * Authentication configuration enum for server
1689
1962
  */
1690
- export type ServerAuthenticationConfig = InstanceType<typeof ServerAuthenticationConfig['Basic' | 'Jwt' | 'Spire' | 'None']>;
1963
+ export type ServerAuthenticationConfig = InstanceType<typeof ServerAuthenticationConfig['Basic' | 'Jwt' | 'Spire' | 'Oidc' | 'None']>;
1691
1964
  /**
1692
1965
  * Server configuration for running a SLIM server
1693
1966
  */
@@ -5034,6 +5307,20 @@ declare const _default: Readonly<{
5034
5307
  lower(value: MlsSettings, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
5035
5308
  };
5036
5309
  FfiConverterTypeName: FfiConverterObject<NameLike>;
5310
+ FfiConverterTypeOidcConfig: {
5311
+ read(from: RustBuffer): OidcConfig;
5312
+ write(value: OidcConfig, into: RustBuffer): void;
5313
+ allocationSize(value: OidcConfig): number;
5314
+ lift(value: UniffiByteArray): OidcConfig;
5315
+ lower(value: OidcConfig, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
5316
+ };
5317
+ FfiConverterTypeOidcPolicyConfig: {
5318
+ read(from: RustBuffer): OidcPolicyConfig;
5319
+ write(value: OidcPolicyConfig, into: RustBuffer): void;
5320
+ allocationSize(value: OidcPolicyConfig): number;
5321
+ lift(value: UniffiByteArray): OidcPolicyConfig;
5322
+ lower(value: OidcPolicyConfig, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
5323
+ };
5037
5324
  FfiConverterTypeParticipantInfo: {
5038
5325
  read(from: RustBuffer): ParticipantInfo;
5039
5326
  write(value: ParticipantInfo, into: RustBuffer): void;
package/slim_bindings.js CHANGED
@@ -1607,6 +1607,221 @@ const FfiConverterTypeClientJwtAuth = (() => {
1607
1607
  ;
1608
1608
  return new FFIConverter();
1609
1609
  })();
1610
+ // Enum: OidcPolicyConfig
1611
+ export var OidcPolicyConfig_Tags;
1612
+ (function (OidcPolicyConfig_Tags) {
1613
+ OidcPolicyConfig_Tags["Rego"] = "Rego";
1614
+ OidcPolicyConfig_Tags["RegoFile"] = "RegoFile";
1615
+ OidcPolicyConfig_Tags["Cel"] = "Cel";
1616
+ })(OidcPolicyConfig_Tags || (OidcPolicyConfig_Tags = {}));
1617
+ /**
1618
+ * Policy evaluated against JWT claims on every authenticated request (server-side OIDC only)
1619
+ */
1620
+ export const OidcPolicyConfig = (() => {
1621
+ var _f, _g, _h;
1622
+ /**
1623
+ * Inline Rego policy (must define `package slim.auth` with `default allow = false`)
1624
+ */
1625
+ class Rego_ extends UniffiEnum {
1626
+ constructor(inner) {
1627
+ super("OidcPolicyConfig", "Rego");
1628
+ /**
1629
+ * @private
1630
+ * This field is private and should not be used, use `tag` instead.
1631
+ */
1632
+ this[_f] = "OidcPolicyConfig";
1633
+ this.tag = OidcPolicyConfig_Tags.Rego;
1634
+ this.inner = Object.freeze(inner);
1635
+ }
1636
+ static new(inner) {
1637
+ return new Rego_(inner);
1638
+ }
1639
+ static instanceOf(obj) {
1640
+ return obj.tag === OidcPolicyConfig_Tags.Rego;
1641
+ }
1642
+ }
1643
+ _f = uniffiTypeNameSymbol;
1644
+ /**
1645
+ * Path to a Rego policy file read at server startup
1646
+ */
1647
+ class RegoFile_ extends UniffiEnum {
1648
+ constructor(inner) {
1649
+ super("OidcPolicyConfig", "RegoFile");
1650
+ /**
1651
+ * @private
1652
+ * This field is private and should not be used, use `tag` instead.
1653
+ */
1654
+ this[_g] = "OidcPolicyConfig";
1655
+ this.tag = OidcPolicyConfig_Tags.RegoFile;
1656
+ this.inner = Object.freeze(inner);
1657
+ }
1658
+ static new(inner) {
1659
+ return new RegoFile_(inner);
1660
+ }
1661
+ static instanceOf(obj) {
1662
+ return obj.tag === OidcPolicyConfig_Tags.RegoFile;
1663
+ }
1664
+ }
1665
+ _g = uniffiTypeNameSymbol;
1666
+ /**
1667
+ * CEL expression evaluated against JWT claims (e.g. `"admin" in claims.groups`)
1668
+ */
1669
+ class Cel_ extends UniffiEnum {
1670
+ constructor(inner) {
1671
+ super("OidcPolicyConfig", "Cel");
1672
+ /**
1673
+ * @private
1674
+ * This field is private and should not be used, use `tag` instead.
1675
+ */
1676
+ this[_h] = "OidcPolicyConfig";
1677
+ this.tag = OidcPolicyConfig_Tags.Cel;
1678
+ this.inner = Object.freeze(inner);
1679
+ }
1680
+ static new(inner) {
1681
+ return new Cel_(inner);
1682
+ }
1683
+ static instanceOf(obj) {
1684
+ return obj.tag === OidcPolicyConfig_Tags.Cel;
1685
+ }
1686
+ }
1687
+ _h = uniffiTypeNameSymbol;
1688
+ function instanceOf(obj) {
1689
+ return obj[uniffiTypeNameSymbol] === "OidcPolicyConfig";
1690
+ }
1691
+ return Object.freeze({
1692
+ instanceOf,
1693
+ Rego: Rego_,
1694
+ RegoFile: RegoFile_,
1695
+ Cel: Cel_
1696
+ });
1697
+ })();
1698
+ // FfiConverter for enum OidcPolicyConfig
1699
+ const FfiConverterTypeOidcPolicyConfig = (() => {
1700
+ const ordinalConverter = FfiConverterInt32;
1701
+ class FFIConverter extends AbstractFfiConverterByteArray {
1702
+ read(from) {
1703
+ switch (ordinalConverter.read(from)) {
1704
+ case 1: return new OidcPolicyConfig.Rego({ text: FfiConverterString.read(from) });
1705
+ case 2: return new OidcPolicyConfig.RegoFile({ path: FfiConverterString.read(from) });
1706
+ case 3: return new OidcPolicyConfig.Cel({ expression: FfiConverterString.read(from) });
1707
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1708
+ }
1709
+ }
1710
+ write(value, into) {
1711
+ switch (value.tag) {
1712
+ case OidcPolicyConfig_Tags.Rego: {
1713
+ ordinalConverter.write(1, into);
1714
+ const inner = value.inner;
1715
+ FfiConverterString.write(inner.text, into);
1716
+ return;
1717
+ }
1718
+ case OidcPolicyConfig_Tags.RegoFile: {
1719
+ ordinalConverter.write(2, into);
1720
+ const inner = value.inner;
1721
+ FfiConverterString.write(inner.path, into);
1722
+ return;
1723
+ }
1724
+ case OidcPolicyConfig_Tags.Cel: {
1725
+ ordinalConverter.write(3, into);
1726
+ const inner = value.inner;
1727
+ FfiConverterString.write(inner.expression, into);
1728
+ return;
1729
+ }
1730
+ default:
1731
+ // Throwing from here means that OidcPolicyConfig_Tags hasn't matched an ordinal.
1732
+ throw new UniffiInternalError.UnexpectedEnumCase();
1733
+ }
1734
+ }
1735
+ allocationSize(value) {
1736
+ switch (value.tag) {
1737
+ case OidcPolicyConfig_Tags.Rego: {
1738
+ const inner = value.inner;
1739
+ let size = ordinalConverter.allocationSize(1);
1740
+ size += FfiConverterString.allocationSize(inner.text);
1741
+ return size;
1742
+ }
1743
+ case OidcPolicyConfig_Tags.RegoFile: {
1744
+ const inner = value.inner;
1745
+ let size = ordinalConverter.allocationSize(2);
1746
+ size += FfiConverterString.allocationSize(inner.path);
1747
+ return size;
1748
+ }
1749
+ case OidcPolicyConfig_Tags.Cel: {
1750
+ const inner = value.inner;
1751
+ let size = ordinalConverter.allocationSize(3);
1752
+ size += FfiConverterString.allocationSize(inner.expression);
1753
+ return size;
1754
+ }
1755
+ default: throw new UniffiInternalError.UnexpectedEnumCase();
1756
+ }
1757
+ }
1758
+ }
1759
+ return new FFIConverter();
1760
+ })();
1761
+ /**
1762
+ * Generated factory for {@link OidcConfig} record objects.
1763
+ */
1764
+ export const OidcConfig = (() => {
1765
+ const defaults = () => ({});
1766
+ const create = (() => {
1767
+ return uniffiCreateRecord(defaults);
1768
+ })();
1769
+ return Object.freeze({
1770
+ create,
1771
+ new: create,
1772
+ defaults: () => Object.freeze(defaults()),
1773
+ });
1774
+ })();
1775
+ const FfiConverterTypeOidcConfig = (() => {
1776
+ class FFIConverter extends AbstractFfiConverterByteArray {
1777
+ read(from) {
1778
+ return {
1779
+ issuerUrl: FfiConverterString.read(from),
1780
+ clientId: FfiConverterOptionalString.read(from),
1781
+ clientSecret: FfiConverterOptionalString.read(from),
1782
+ audience: FfiConverterOptionalString.read(from),
1783
+ refreshToken: FfiConverterOptionalString.read(from),
1784
+ refreshTokenFile: FfiConverterOptionalString.read(from),
1785
+ accessTokenFile: FfiConverterOptionalString.read(from),
1786
+ scope: FfiConverterOptionalString.read(from),
1787
+ timeout: FfiConverterOptionalDuration.read(from),
1788
+ jwksTtl: FfiConverterOptionalDuration.read(from),
1789
+ claimCacheTtl: FfiConverterOptionalDuration.read(from),
1790
+ policy: FfiConverterOptionalTypeOidcPolicyConfig.read(from)
1791
+ };
1792
+ }
1793
+ write(value, into) {
1794
+ FfiConverterString.write(value.issuerUrl, into);
1795
+ FfiConverterOptionalString.write(value.clientId, into);
1796
+ FfiConverterOptionalString.write(value.clientSecret, into);
1797
+ FfiConverterOptionalString.write(value.audience, into);
1798
+ FfiConverterOptionalString.write(value.refreshToken, into);
1799
+ FfiConverterOptionalString.write(value.refreshTokenFile, into);
1800
+ FfiConverterOptionalString.write(value.accessTokenFile, into);
1801
+ FfiConverterOptionalString.write(value.scope, into);
1802
+ FfiConverterOptionalDuration.write(value.timeout, into);
1803
+ FfiConverterOptionalDuration.write(value.jwksTtl, into);
1804
+ FfiConverterOptionalDuration.write(value.claimCacheTtl, into);
1805
+ FfiConverterOptionalTypeOidcPolicyConfig.write(value.policy, into);
1806
+ }
1807
+ allocationSize(value) {
1808
+ return FfiConverterString.allocationSize(value.issuerUrl) +
1809
+ FfiConverterOptionalString.allocationSize(value.clientId) +
1810
+ FfiConverterOptionalString.allocationSize(value.clientSecret) +
1811
+ FfiConverterOptionalString.allocationSize(value.audience) +
1812
+ FfiConverterOptionalString.allocationSize(value.refreshToken) +
1813
+ FfiConverterOptionalString.allocationSize(value.refreshTokenFile) +
1814
+ FfiConverterOptionalString.allocationSize(value.accessTokenFile) +
1815
+ FfiConverterOptionalString.allocationSize(value.scope) +
1816
+ FfiConverterOptionalDuration.allocationSize(value.timeout) +
1817
+ FfiConverterOptionalDuration.allocationSize(value.jwksTtl) +
1818
+ FfiConverterOptionalDuration.allocationSize(value.claimCacheTtl) +
1819
+ FfiConverterOptionalTypeOidcPolicyConfig.allocationSize(value.policy);
1820
+ }
1821
+ }
1822
+ ;
1823
+ return new FFIConverter();
1824
+ })();
1610
1825
  // Enum: ClientAuthenticationConfig
1611
1826
  export var ClientAuthenticationConfig_Tags;
1612
1827
  (function (ClientAuthenticationConfig_Tags) {
@@ -1614,13 +1829,14 @@ export var ClientAuthenticationConfig_Tags;
1614
1829
  ClientAuthenticationConfig_Tags["StaticJwt"] = "StaticJwt";
1615
1830
  ClientAuthenticationConfig_Tags["Jwt"] = "Jwt";
1616
1831
  ClientAuthenticationConfig_Tags["Spire"] = "Spire";
1832
+ ClientAuthenticationConfig_Tags["Oidc"] = "Oidc";
1617
1833
  ClientAuthenticationConfig_Tags["None"] = "None";
1618
1834
  })(ClientAuthenticationConfig_Tags || (ClientAuthenticationConfig_Tags = {}));
1619
1835
  /**
1620
1836
  * Authentication configuration enum for client
1621
1837
  */
1622
1838
  export const ClientAuthenticationConfig = (() => {
1623
- var _f, _g, _h, _j, _k;
1839
+ var _f, _g, _h, _j, _k, _l;
1624
1840
  class Basic_ extends UniffiEnum {
1625
1841
  constructor(inner) {
1626
1842
  super("ClientAuthenticationConfig", "Basic");
@@ -1700,6 +1916,28 @@ export const ClientAuthenticationConfig = (() => {
1700
1916
  }
1701
1917
  }
1702
1918
  _j = uniffiTypeNameSymbol;
1919
+ /**
1920
+ * OIDC authentication (client-credentials or refresh-token flow)
1921
+ */
1922
+ class Oidc_ extends UniffiEnum {
1923
+ constructor(inner) {
1924
+ super("ClientAuthenticationConfig", "Oidc");
1925
+ /**
1926
+ * @private
1927
+ * This field is private and should not be used, use `tag` instead.
1928
+ */
1929
+ this[_k] = "ClientAuthenticationConfig";
1930
+ this.tag = ClientAuthenticationConfig_Tags.Oidc;
1931
+ this.inner = Object.freeze(inner);
1932
+ }
1933
+ static new(inner) {
1934
+ return new Oidc_(inner);
1935
+ }
1936
+ static instanceOf(obj) {
1937
+ return obj.tag === ClientAuthenticationConfig_Tags.Oidc;
1938
+ }
1939
+ }
1940
+ _k = uniffiTypeNameSymbol;
1703
1941
  class None_ extends UniffiEnum {
1704
1942
  constructor() {
1705
1943
  super("ClientAuthenticationConfig", "None");
@@ -1707,7 +1945,7 @@ export const ClientAuthenticationConfig = (() => {
1707
1945
  * @private
1708
1946
  * This field is private and should not be used, use `tag` instead.
1709
1947
  */
1710
- this[_k] = "ClientAuthenticationConfig";
1948
+ this[_l] = "ClientAuthenticationConfig";
1711
1949
  this.tag = ClientAuthenticationConfig_Tags.None;
1712
1950
  }
1713
1951
  static new() {
@@ -1717,7 +1955,7 @@ export const ClientAuthenticationConfig = (() => {
1717
1955
  return obj.tag === ClientAuthenticationConfig_Tags.None;
1718
1956
  }
1719
1957
  }
1720
- _k = uniffiTypeNameSymbol;
1958
+ _l = uniffiTypeNameSymbol;
1721
1959
  function instanceOf(obj) {
1722
1960
  return obj[uniffiTypeNameSymbol] === "ClientAuthenticationConfig";
1723
1961
  }
@@ -1727,6 +1965,7 @@ export const ClientAuthenticationConfig = (() => {
1727
1965
  StaticJwt: StaticJwt_,
1728
1966
  Jwt: Jwt_,
1729
1967
  Spire: Spire_,
1968
+ Oidc: Oidc_,
1730
1969
  None: None_
1731
1970
  });
1732
1971
  })();
@@ -1740,7 +1979,8 @@ const FfiConverterTypeClientAuthenticationConfig = (() => {
1740
1979
  case 2: return new ClientAuthenticationConfig.StaticJwt({ config: FfiConverterTypeStaticJwtAuth.read(from) });
1741
1980
  case 3: return new ClientAuthenticationConfig.Jwt({ config: FfiConverterTypeClientJwtAuth.read(from) });
1742
1981
  case 4: return new ClientAuthenticationConfig.Spire({ config: FfiConverterTypeSpireConfig.read(from) });
1743
- case 5: return new ClientAuthenticationConfig.None();
1982
+ case 5: return new ClientAuthenticationConfig.Oidc({ config: FfiConverterTypeOidcConfig.read(from) });
1983
+ case 6: return new ClientAuthenticationConfig.None();
1744
1984
  default: throw new UniffiInternalError.UnexpectedEnumCase();
1745
1985
  }
1746
1986
  }
@@ -1770,8 +2010,14 @@ const FfiConverterTypeClientAuthenticationConfig = (() => {
1770
2010
  FfiConverterTypeSpireConfig.write(inner.config, into);
1771
2011
  return;
1772
2012
  }
1773
- case ClientAuthenticationConfig_Tags.None: {
2013
+ case ClientAuthenticationConfig_Tags.Oidc: {
1774
2014
  ordinalConverter.write(5, into);
2015
+ const inner = value.inner;
2016
+ FfiConverterTypeOidcConfig.write(inner.config, into);
2017
+ return;
2018
+ }
2019
+ case ClientAuthenticationConfig_Tags.None: {
2020
+ ordinalConverter.write(6, into);
1775
2021
  return;
1776
2022
  }
1777
2023
  default:
@@ -1805,8 +2051,14 @@ const FfiConverterTypeClientAuthenticationConfig = (() => {
1805
2051
  size += FfiConverterTypeSpireConfig.allocationSize(inner.config);
1806
2052
  return size;
1807
2053
  }
2054
+ case ClientAuthenticationConfig_Tags.Oidc: {
2055
+ const inner = value.inner;
2056
+ let size = ordinalConverter.allocationSize(5);
2057
+ size += FfiConverterTypeOidcConfig.allocationSize(inner.config);
2058
+ return size;
2059
+ }
1808
2060
  case ClientAuthenticationConfig_Tags.None: {
1809
- return ordinalConverter.allocationSize(5);
2061
+ return ordinalConverter.allocationSize(6);
1810
2062
  }
1811
2063
  default: throw new UniffiInternalError.UnexpectedEnumCase();
1812
2064
  }
@@ -2213,13 +2465,14 @@ export var ServerAuthenticationConfig_Tags;
2213
2465
  ServerAuthenticationConfig_Tags["Basic"] = "Basic";
2214
2466
  ServerAuthenticationConfig_Tags["Jwt"] = "Jwt";
2215
2467
  ServerAuthenticationConfig_Tags["Spire"] = "Spire";
2468
+ ServerAuthenticationConfig_Tags["Oidc"] = "Oidc";
2216
2469
  ServerAuthenticationConfig_Tags["None"] = "None";
2217
2470
  })(ServerAuthenticationConfig_Tags || (ServerAuthenticationConfig_Tags = {}));
2218
2471
  /**
2219
2472
  * Authentication configuration enum for server
2220
2473
  */
2221
2474
  export const ServerAuthenticationConfig = (() => {
2222
- var _f, _g, _h, _j;
2475
+ var _f, _g, _h, _j, _k;
2223
2476
  class Basic_ extends UniffiEnum {
2224
2477
  constructor(inner) {
2225
2478
  super("ServerAuthenticationConfig", "Basic");
@@ -2280,6 +2533,28 @@ export const ServerAuthenticationConfig = (() => {
2280
2533
  }
2281
2534
  }
2282
2535
  _h = uniffiTypeNameSymbol;
2536
+ /**
2537
+ * OIDC authentication (JWKS-based JWT verification with optional policy)
2538
+ */
2539
+ class Oidc_ extends UniffiEnum {
2540
+ constructor(inner) {
2541
+ super("ServerAuthenticationConfig", "Oidc");
2542
+ /**
2543
+ * @private
2544
+ * This field is private and should not be used, use `tag` instead.
2545
+ */
2546
+ this[_j] = "ServerAuthenticationConfig";
2547
+ this.tag = ServerAuthenticationConfig_Tags.Oidc;
2548
+ this.inner = Object.freeze(inner);
2549
+ }
2550
+ static new(inner) {
2551
+ return new Oidc_(inner);
2552
+ }
2553
+ static instanceOf(obj) {
2554
+ return obj.tag === ServerAuthenticationConfig_Tags.Oidc;
2555
+ }
2556
+ }
2557
+ _j = uniffiTypeNameSymbol;
2283
2558
  class None_ extends UniffiEnum {
2284
2559
  constructor() {
2285
2560
  super("ServerAuthenticationConfig", "None");
@@ -2287,7 +2562,7 @@ export const ServerAuthenticationConfig = (() => {
2287
2562
  * @private
2288
2563
  * This field is private and should not be used, use `tag` instead.
2289
2564
  */
2290
- this[_j] = "ServerAuthenticationConfig";
2565
+ this[_k] = "ServerAuthenticationConfig";
2291
2566
  this.tag = ServerAuthenticationConfig_Tags.None;
2292
2567
  }
2293
2568
  static new() {
@@ -2297,7 +2572,7 @@ export const ServerAuthenticationConfig = (() => {
2297
2572
  return obj.tag === ServerAuthenticationConfig_Tags.None;
2298
2573
  }
2299
2574
  }
2300
- _j = uniffiTypeNameSymbol;
2575
+ _k = uniffiTypeNameSymbol;
2301
2576
  function instanceOf(obj) {
2302
2577
  return obj[uniffiTypeNameSymbol] === "ServerAuthenticationConfig";
2303
2578
  }
@@ -2306,6 +2581,7 @@ export const ServerAuthenticationConfig = (() => {
2306
2581
  Basic: Basic_,
2307
2582
  Jwt: Jwt_,
2308
2583
  Spire: Spire_,
2584
+ Oidc: Oidc_,
2309
2585
  None: None_
2310
2586
  });
2311
2587
  })();
@@ -2318,7 +2594,8 @@ const FfiConverterTypeServerAuthenticationConfig = (() => {
2318
2594
  case 1: return new ServerAuthenticationConfig.Basic({ config: FfiConverterTypeBasicAuth.read(from) });
2319
2595
  case 2: return new ServerAuthenticationConfig.Jwt({ config: FfiConverterTypeJwtAuth.read(from) });
2320
2596
  case 3: return new ServerAuthenticationConfig.Spire({ config: FfiConverterTypeSpireConfig.read(from) });
2321
- case 4: return new ServerAuthenticationConfig.None();
2597
+ case 4: return new ServerAuthenticationConfig.Oidc({ config: FfiConverterTypeOidcConfig.read(from) });
2598
+ case 5: return new ServerAuthenticationConfig.None();
2322
2599
  default: throw new UniffiInternalError.UnexpectedEnumCase();
2323
2600
  }
2324
2601
  }
@@ -2342,8 +2619,14 @@ const FfiConverterTypeServerAuthenticationConfig = (() => {
2342
2619
  FfiConverterTypeSpireConfig.write(inner.config, into);
2343
2620
  return;
2344
2621
  }
2345
- case ServerAuthenticationConfig_Tags.None: {
2622
+ case ServerAuthenticationConfig_Tags.Oidc: {
2346
2623
  ordinalConverter.write(4, into);
2624
+ const inner = value.inner;
2625
+ FfiConverterTypeOidcConfig.write(inner.config, into);
2626
+ return;
2627
+ }
2628
+ case ServerAuthenticationConfig_Tags.None: {
2629
+ ordinalConverter.write(5, into);
2347
2630
  return;
2348
2631
  }
2349
2632
  default:
@@ -2371,8 +2654,14 @@ const FfiConverterTypeServerAuthenticationConfig = (() => {
2371
2654
  size += FfiConverterTypeSpireConfig.allocationSize(inner.config);
2372
2655
  return size;
2373
2656
  }
2657
+ case ServerAuthenticationConfig_Tags.Oidc: {
2658
+ const inner = value.inner;
2659
+ let size = ordinalConverter.allocationSize(4);
2660
+ size += FfiConverterTypeOidcConfig.allocationSize(inner.config);
2661
+ return size;
2662
+ }
2374
2663
  case ServerAuthenticationConfig_Tags.None: {
2375
- return ordinalConverter.allocationSize(4);
2664
+ return ordinalConverter.allocationSize(5);
2376
2665
  }
2377
2666
  default: throw new UniffiInternalError.UnexpectedEnumCase();
2378
2667
  }
@@ -6444,6 +6733,8 @@ const FfiConverterOptionalUInt64 = new FfiConverterOptional(FfiConverterUInt64);
6444
6733
  const FfiConverterOptionalMapStringString = new FfiConverterOptional(FfiConverterMapStringString);
6445
6734
  // FfiConverter for Array<string> | undefined
6446
6735
  const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
6736
+ // FfiConverter for OidcPolicyConfig | undefined
6737
+ const FfiConverterOptionalTypeOidcPolicyConfig = new FfiConverterOptional(FfiConverterTypeOidcPolicyConfig);
6447
6738
  // FfiConverter for ClientAuthenticationConfig | undefined
6448
6739
  const FfiConverterOptionalTypeClientAuthenticationConfig = new FfiConverterOptional(FfiConverterTypeClientAuthenticationConfig);
6449
6740
  // FfiConverter for BackoffConfig | undefined
@@ -6894,6 +7185,8 @@ export default Object.freeze({
6894
7185
  FfiConverterTypeMessageContext,
6895
7186
  FfiConverterTypeMlsSettings,
6896
7187
  FfiConverterTypeName,
7188
+ FfiConverterTypeOidcConfig,
7189
+ FfiConverterTypeOidcPolicyConfig,
6897
7190
  FfiConverterTypeParticipantInfo,
6898
7191
  FfiConverterTypeParticipantStatus,
6899
7192
  FfiConverterTypePersistenceConfig,