@atlasauth/backend 0.25.0 → 0.26.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/dist/client/abac.d.ts +389 -0
  3. package/dist/client/abac.js +98 -0
  4. package/dist/client/abac.js.map +1 -1
  5. package/dist/client/analytics-reports.d.ts +1 -1
  6. package/dist/client/authz-decisions.d.ts +108 -0
  7. package/dist/client/authz-decisions.js +40 -0
  8. package/dist/client/authz-decisions.js.map +1 -0
  9. package/dist/client/connections.d.ts +507 -0
  10. package/dist/client/connections.js +164 -0
  11. package/dist/client/connections.js.map +1 -0
  12. package/dist/client/custom-oauth-providers.d.ts +15 -0
  13. package/dist/client/custom-oauth-providers.js.map +1 -1
  14. package/dist/client/desktop-mfa.d.ts +104 -0
  15. package/dist/client/desktop-mfa.js +44 -0
  16. package/dist/client/desktop-mfa.js.map +1 -0
  17. package/dist/client/email-templates.d.ts +1 -1
  18. package/dist/client/email-templates.js.map +1 -1
  19. package/dist/client/fga.d.ts +125 -4
  20. package/dist/client/fga.js +40 -0
  21. package/dist/client/fga.js.map +1 -1
  22. package/dist/client/iga.d.ts +436 -0
  23. package/dist/client/iga.js +82 -0
  24. package/dist/client/iga.js.map +1 -0
  25. package/dist/client/index.d.ts +490 -2
  26. package/dist/client/index.js +23 -0
  27. package/dist/client/index.js.map +1 -1
  28. package/dist/client/least-privilege.d.ts +95 -0
  29. package/dist/client/least-privilege.js +28 -0
  30. package/dist/client/least-privilege.js.map +1 -0
  31. package/dist/client/managed-grants.d.ts +52 -0
  32. package/dist/client/managed-grants.js +28 -0
  33. package/dist/client/managed-grants.js.map +1 -0
  34. package/dist/client/mcp-gateways.d.ts +72 -0
  35. package/dist/client/mcp-gateways.js +22 -0
  36. package/dist/client/mcp-gateways.js.map +1 -1
  37. package/dist/client/oauth-clients.d.ts +4 -0
  38. package/dist/client/oauth-clients.js.map +1 -1
  39. package/dist/client/openfga.d.ts +90 -3
  40. package/dist/client/openfga.js +27 -1
  41. package/dist/client/openfga.js.map +1 -1
  42. package/dist/client/policy-bundles.d.ts +105 -0
  43. package/dist/client/policy-bundles.js +38 -0
  44. package/dist/client/policy-bundles.js.map +1 -0
  45. package/dist/client/resources.d.ts +1 -0
  46. package/dist/client/resources.js.map +1 -1
  47. package/dist/client/ssf.d.ts +2 -1
  48. package/dist/client/ssf.js.map +1 -1
  49. package/dist/client/vc.d.ts +8 -0
  50. package/dist/client/vc.js.map +1 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +3 -0
  53. package/dist/index.js.map +1 -1
  54. package/dist/policy-bundle.d.ts +110 -0
  55. package/dist/policy-bundle.js +289 -0
  56. package/dist/policy-bundle.js.map +1 -0
  57. package/dist/uma.d.ts +77 -0
  58. package/dist/uma.js +95 -0
  59. package/dist/uma.js.map +1 -0
  60. package/package.json +2 -2
@@ -617,6 +617,7 @@ declare function buildNamespaces(request: RequestFn): {
617
617
  vct: string;
618
618
  format?: import("./vc").VcFormat;
619
619
  iaca_roots?: string[];
620
+ revocation_policy?: import("./vc").VcRevocationPolicy;
620
621
  claims?: string[];
621
622
  trusted_issuers?: Array<{
622
623
  issuer: string;
@@ -1083,6 +1084,10 @@ declare function buildNamespaces(request: RequestFn): {
1083
1084
  syncGroup(id: string, organizationId: string): Promise<import("./scim-provisioning").ScimProvisioningGroupSyncResult>;
1084
1085
  };
1085
1086
  fga: {
1087
+ settings: {
1088
+ get(): Promise<import("./fga").FgaSettings>;
1089
+ update(body: import("./fga").UpdateFgaSettingsBody): Promise<import("./fga").FgaSettings>;
1090
+ };
1086
1091
  stores: {
1087
1092
  list(): Promise<import("./types").ListPage<import("./fga").FgaStore>>;
1088
1093
  create(body: {
@@ -1107,6 +1112,7 @@ declare function buildNamespaces(request: RequestFn): {
1107
1112
  object: "fga.write_result";
1108
1113
  writes: number;
1109
1114
  deletes: number;
1115
+ consistency_token: string;
1110
1116
  }>;
1111
1117
  read(storeId: string, body: {
1112
1118
  user?: string;
@@ -1117,16 +1123,23 @@ declare function buildNamespaces(request: RequestFn): {
1117
1123
  object: "fga.check";
1118
1124
  allowed: boolean;
1119
1125
  authorization_model_id: string;
1126
+ consistency_token: string;
1120
1127
  }>;
1121
1128
  batchCheck(storeId: string, body: {
1122
1129
  checks: import("./fga").FgaBatchCheckItem[];
1123
1130
  authorization_model_id?: string;
1124
- }): Promise<import("./fga").FgaBatchCheckResult>;
1131
+ } & import("./fga").FgaConsistencyOptions): Promise<import("./fga").FgaBatchCheckResult>;
1125
1132
  listObjects(storeId: string, body: import("./fga").FgaListObjectsBody): Promise<{
1126
1133
  object: "fga.list_objects";
1127
1134
  objects: string[];
1135
+ has_more: boolean;
1136
+ next_cursor: string | null;
1128
1137
  authorization_model_id: string;
1138
+ consistency_token: string;
1129
1139
  }>;
1140
+ listUsers(storeId: string, body: import("./fga").FgaListUsersBody): Promise<import("./fga").FgaListUsersResult>;
1141
+ listAllUsers(storeId: string, body: import("./fga").FgaListUsersBody): Promise<import("./fga").FgaListUsersResult>;
1142
+ readChanges(storeId: string, params?: import("./fga").FgaReadChangesParams): Promise<import("./fga").FgaChangesPage>;
1130
1143
  expand(storeId: string, body: {
1131
1144
  object: string;
1132
1145
  relation: string;
@@ -1144,6 +1157,7 @@ declare function buildNamespaces(request: RequestFn): {
1144
1157
  object: "fga.write_result";
1145
1158
  writes: number;
1146
1159
  deletes: number;
1160
+ consistency_token: string;
1147
1161
  }>;
1148
1162
  read: (body: {
1149
1163
  user?: string;
@@ -1154,16 +1168,23 @@ declare function buildNamespaces(request: RequestFn): {
1154
1168
  object: "fga.check";
1155
1169
  allowed: boolean;
1156
1170
  authorization_model_id: string;
1171
+ consistency_token: string;
1157
1172
  }>;
1158
1173
  batchCheck: (body: {
1159
1174
  checks: import("./fga").FgaBatchCheckItem[];
1160
1175
  authorization_model_id?: string;
1161
- }) => Promise<import("./fga").FgaBatchCheckResult>;
1176
+ } & import("./fga").FgaConsistencyOptions) => Promise<import("./fga").FgaBatchCheckResult>;
1162
1177
  listObjects: (body: import("./fga").FgaListObjectsBody) => Promise<{
1163
1178
  object: "fga.list_objects";
1164
1179
  objects: string[];
1180
+ has_more: boolean;
1181
+ next_cursor: string | null;
1165
1182
  authorization_model_id: string;
1183
+ consistency_token: string;
1166
1184
  }>;
1185
+ listUsers: (body: import("./fga").FgaListUsersBody) => Promise<import("./fga").FgaListUsersResult>;
1186
+ listAllUsers: (body: import("./fga").FgaListUsersBody) => Promise<import("./fga").FgaListUsersResult>;
1187
+ readChanges: (params?: import("./fga").FgaReadChangesParams) => Promise<import("./fga").FgaChangesPage>;
1167
1188
  expand: (body: {
1168
1189
  object: string;
1169
1190
  relation: string;
@@ -1248,6 +1269,40 @@ declare function buildNamespaces(request: RequestFn): {
1248
1269
  delete(id: string): Promise<void>;
1249
1270
  };
1250
1271
  };
1272
+ managedGrants: {
1273
+ list(query?: import("./managed-grants").ListManagedGrantsQuery): Promise<{
1274
+ object: "list";
1275
+ data: import("./managed-grants").ManagedGrant[];
1276
+ }>;
1277
+ get(id: string): Promise<import("./managed-grants").ManagedGrant>;
1278
+ narrow(id: string, body: {
1279
+ scopes?: string[];
1280
+ authorization_details?: Record<string, unknown>[];
1281
+ }): Promise<import("./managed-grants").ManagedGrant>;
1282
+ revoke(id: string): Promise<{
1283
+ object: "managed_grant";
1284
+ id: string;
1285
+ deleted: true;
1286
+ tokens_ended: number;
1287
+ }>;
1288
+ };
1289
+ leastPrivilege: {
1290
+ report(query?: import("./least-privilege").LeastPrivilegeReportQuery): Promise<import("./least-privilege").LeastPrivilegeReport>;
1291
+ get(type: import("./least-privilege").LeastPrivilegeSubjectType, id: string, query?: {
1292
+ days?: number;
1293
+ }): Promise<import("./least-privilege").LeastPrivilegeSubject>;
1294
+ exportCsv(query?: import("./least-privilege").LeastPrivilegeReportQuery): Promise<string>;
1295
+ apply(body: import("./least-privilege").ApplyLeastPrivilegeBody, options?: {
1296
+ dryRun?: boolean;
1297
+ }): Promise<{
1298
+ object: "least_privilege_change";
1299
+ subject_type: import("./least-privilege").LeastPrivilegeSubjectType;
1300
+ subject_id: string;
1301
+ applied: true;
1302
+ summary: string;
1303
+ changes: import("./least-privilege").LeastPrivilegeChange[];
1304
+ }>;
1305
+ };
1251
1306
  botSignals: {
1252
1307
  list(query?: import("./bot-signals").BotExportParams): Promise<import("./bot-signals").BotExportPage<import("./bot-signals").BotSignal>>;
1253
1308
  listLabels(query?: import("./bot-signals").BotExportParams): Promise<import("./bot-signals").BotExportPage<import("./bot-signals").BotLabel>>;
@@ -1305,6 +1360,76 @@ declare function buildNamespaces(request: RequestFn): {
1305
1360
  tests?: import("./abac").AbacPolicyTestCase[];
1306
1361
  }): Promise<import("./abac").AbacTestRun>;
1307
1362
  evaluate(body: import("./abac").AbacEvaluateBody): Promise<import("./abac").AbacDecision>;
1363
+ partialEvaluate(body: import("./abac").AbacPartialBody): Promise<import("./abac").AbacResidual>;
1364
+ accessibleResources(body: import("./abac").AbacAccessibleBody): Promise<import("./abac").AbacAccessibleList>;
1365
+ templates: {
1366
+ list(): Promise<import("./types").ListPage<import("./abac").AbacPolicyTemplate>>;
1367
+ get(id: string): Promise<import("./abac").AbacPolicyTemplate>;
1368
+ create(body: import("./abac").CreateAbacTemplateBody, idempotencyKey?: string): Promise<import("./abac").AbacPolicyTemplate>;
1369
+ update(id: string, body: Partial<import("./abac").CreateAbacTemplateBody>): Promise<import("./abac").AbacPolicyTemplate>;
1370
+ delete(id: string, opts?: {
1371
+ force?: boolean;
1372
+ }): Promise<{
1373
+ object: "abac_policy_template";
1374
+ id: string;
1375
+ deleted: true;
1376
+ links_deleted: number;
1377
+ }>;
1378
+ };
1379
+ links: {
1380
+ list(query?: {
1381
+ template_id?: string;
1382
+ }): Promise<import("./types").ListPage<import("./abac").AbacPolicyLink>>;
1383
+ get(id: string): Promise<import("./abac").AbacPolicyLink>;
1384
+ create(body: import("./abac").CreateAbacLinkBody, idempotencyKey?: string): Promise<import("./abac").AbacPolicyLink>;
1385
+ update(id: string, body: Partial<Omit<import("./abac").CreateAbacLinkBody, "template_id">>): Promise<import("./abac").AbacPolicyLink>;
1386
+ delete(id: string): Promise<{
1387
+ object: "abac_policy_link";
1388
+ id: string;
1389
+ deleted: true;
1390
+ }>;
1391
+ };
1392
+ schema: {
1393
+ get(): Promise<import("./abac").AbacSchemaState>;
1394
+ set(schema: import("./abac").AbacSchemaDocument): Promise<import("./abac").AbacSchemaState>;
1395
+ delete(): Promise<{
1396
+ object: "abac_schema";
1397
+ deleted: true;
1398
+ }>;
1399
+ validate(body: {
1400
+ source: string;
1401
+ schema?: import("./abac").AbacSchemaDocument;
1402
+ template?: boolean;
1403
+ }): Promise<import("./abac").AbacValidation>;
1404
+ };
1405
+ diff(id: string, opts?: import("./abac").AbacDiffOptions): Promise<import("./abac").AbacPolicyDiff>;
1406
+ diffSources(body: {
1407
+ before: string;
1408
+ after: string;
1409
+ semantic?: boolean;
1410
+ max_requests?: number;
1411
+ max_changes?: number;
1412
+ }): Promise<import("./abac").AbacPolicyDiff>;
1413
+ authzenSearchSubject(body: import("./abac").AuthzenSearchRequest): Promise<{
1414
+ results: Array<{
1415
+ type: string;
1416
+ id: string;
1417
+ }>;
1418
+ page: import("./abac").AuthzenSearchPage;
1419
+ }>;
1420
+ authzenSearchResource(body: import("./abac").AuthzenSearchRequest): Promise<{
1421
+ results: Array<{
1422
+ type: string;
1423
+ id: string;
1424
+ }>;
1425
+ page: import("./abac").AuthzenSearchPage;
1426
+ }>;
1427
+ authzenSearchAction(body: import("./abac").AuthzenSearchRequest): Promise<{
1428
+ results: Array<{
1429
+ name: string;
1430
+ }>;
1431
+ page: import("./abac").AuthzenSearchPage;
1432
+ }>;
1308
1433
  isAllowed(body: import("./abac").AbacEvaluateBody): Promise<boolean>;
1309
1434
  authzenEvaluation(body: import("./abac").AuthzenEvaluation): Promise<{
1310
1435
  decision: boolean;
@@ -1321,6 +1446,37 @@ declare function buildNamespaces(request: RequestFn): {
1321
1446
  }>;
1322
1447
  }>;
1323
1448
  };
1449
+ authzDecisions: {
1450
+ list(params?: import("./authz-decisions").ListAuthzDecisionsParams): Promise<import("./authz-decisions").AuthzDecisionPage>;
1451
+ iterate(params?: Omit<import("./authz-decisions").ListAuthzDecisionsParams, "starting_after">): AsyncGenerator<import("./authz-decisions").AuthzDecision>;
1452
+ get(id: string): Promise<import("./authz-decisions").AuthzDecision>;
1453
+ stats(params?: {
1454
+ since?: string | number;
1455
+ until?: string | number;
1456
+ }): Promise<import("./authz-decisions").AuthzDecisionStats>;
1457
+ settings: {
1458
+ get(): Promise<import("./authz-decisions").AuthzDecisionSettings>;
1459
+ update(body: import("./authz-decisions").UpdateAuthzDecisionSettingsBody): Promise<import("./authz-decisions").AuthzDecisionSettings>;
1460
+ };
1461
+ };
1462
+ policyBundles: {
1463
+ list(): Promise<{
1464
+ object: "list";
1465
+ data: import("./policy-bundles").PolicyBundle[];
1466
+ has_more: boolean;
1467
+ }>;
1468
+ current(): Promise<{
1469
+ object: "policy_bundle_revision";
1470
+ revision: string;
1471
+ }>;
1472
+ export(): Promise<import("./policy-bundles").PolicyBundle>;
1473
+ get(revision: string): Promise<import("./policy-bundles").PolicyBundle>;
1474
+ verify(body: import("./policy-bundles").PolicyBundleUpload): Promise<import("./policy-bundles").PolicyBundleVerification>;
1475
+ import(body: import("./policy-bundles").PolicyBundleUpload & {
1476
+ dry_run?: boolean;
1477
+ prune?: boolean;
1478
+ }): Promise<import("./policy-bundles").PolicyBundleImport>;
1479
+ };
1324
1480
  resources: {
1325
1481
  types: {
1326
1482
  list(): Promise<import("./types").ListPage<import("./resources").ResourceType>>;
@@ -1373,6 +1529,7 @@ declare function buildNamespaces(request: RequestFn): {
1373
1529
  type?: string;
1374
1530
  groups?: string[];
1375
1531
  limit?: number;
1532
+ starting_after?: string;
1376
1533
  }): Promise<import("./types").ListPage<import("./resources").Resource>>;
1377
1534
  };
1378
1535
  orgRoleGrants: {
@@ -1814,6 +1971,21 @@ declare function buildNamespaces(request: RequestFn): {
1814
1971
  id: string;
1815
1972
  deleted: true;
1816
1973
  }>;
1974
+ budgets: {
1975
+ list(gatewayId: string): Promise<import("./types").ListPage<import("./mcp-gateways").McpBudget>>;
1976
+ create(gatewayId: string, body: import("./mcp-gateways").CreateMcpBudgetBody): Promise<import("./mcp-gateways").McpBudget>;
1977
+ get(gatewayId: string, budgetId: string): Promise<import("./mcp-gateways").McpBudget>;
1978
+ update(gatewayId: string, budgetId: string, body: Partial<import("./mcp-gateways").CreateMcpBudgetBody>): Promise<import("./mcp-gateways").McpBudget>;
1979
+ delete(gatewayId: string, budgetId: string): Promise<{
1980
+ object: "mcp_budget";
1981
+ id: string;
1982
+ deleted: true;
1983
+ }>;
1984
+ usage(gatewayId: string, budgetId: string, query?: {
1985
+ agent_id?: string;
1986
+ session_id?: string;
1987
+ }): Promise<import("./mcp-gateways").McpBudgetUsage>;
1988
+ };
1817
1989
  };
1818
1990
  ltiPlatforms: {
1819
1991
  list(): Promise<import("./types").ListPage<import("./lti-platforms").LtiPlatform>>;
@@ -2232,6 +2404,12 @@ declare function buildNamespaces(request: RequestFn): {
2232
2404
  listObjects(store: string, body: import("./openfga").OpenFgaListObjectsBody): Promise<{
2233
2405
  objects: string[];
2234
2406
  }>;
2407
+ listUsers(store: string, body: import("./openfga").OpenFgaListUsersBody): Promise<import("./openfga").OpenFgaListUsersResult>;
2408
+ listAllUsers(store: string, body: import("./openfga").OpenFgaListUsersBody): Promise<import("./openfga").OpenFgaListUsersResult>;
2409
+ readChanges(store: string, params?: import("./openfga").OpenFgaReadChangesParams): Promise<{
2410
+ changes: import("./openfga").OpenFgaTupleChange[];
2411
+ continuation_token: string;
2412
+ }>;
2235
2413
  read(store: string, body?: import("./openfga").OpenFgaReadBody): Promise<{
2236
2414
  tuples: import("./openfga").OpenFgaTuple[];
2237
2415
  continuation_token: string;
@@ -2265,6 +2443,65 @@ declare function buildNamespaces(request: RequestFn): {
2265
2443
  data: import("./connectors").ConnectorDirectoryEntry[];
2266
2444
  }>;
2267
2445
  };
2446
+ connections: {
2447
+ create(body: import("./connections").CreateConnectionBody, idempotencyKey?: string): Promise<import("./connections").Connection>;
2448
+ list(params?: import("./connections").ListConnectionsParams): Promise<import("./types").ListPage<import("./connections").Connection>>;
2449
+ get(id: string): Promise<import("./connections").Connection>;
2450
+ update(id: string, body: import("./connections").UpdateConnectionBody): Promise<import("./connections").Connection>;
2451
+ delete<R extends boolean = false>(id: string, options?: {
2452
+ revoke?: R;
2453
+ }): Promise<R extends true ? import("./connections").ConnectionDeletion : void>;
2454
+ connect(id: string, body: import("./connections").ConnectConnectionBody): Promise<import("./connections").ConnectionAuthorization>;
2455
+ revoke(id: string): Promise<import("./connections").ConnectionRevoked>;
2456
+ token(id: string, options?: import("./connections").TokenReadOptions): Promise<import("./connections").ConnectionToken>;
2457
+ refreshToken(id: string, options?: {
2458
+ staleAccessToken?: string;
2459
+ reason?: "provider_401" | "expired" | "manual";
2460
+ }): Promise<import("./connections").ConnectionToken>;
2461
+ tokens(ids: string[], options?: {
2462
+ minTtlSeconds?: number;
2463
+ }): Promise<{
2464
+ object: "list";
2465
+ data: import("./connections").ConnectionTokenBatchItem[];
2466
+ has_more: false;
2467
+ }>;
2468
+ importConnections(body: import("./connections").ImportConnectionsBody, idempotencyKey?: string): Promise<import("./connections").ImportConnectionsResult>;
2469
+ exportConnections(body?: import("./connections").ExportConnectionsBody): Promise<import("./connections").ExportConnectionsResult>;
2470
+ setCredentials(id: string, body: import("./connections").SetConnectionCredentialsBody): Promise<import("./connections").Connection>;
2471
+ rotateCredentials(id: string, body: import("./connections").RotateConnectionCredentialsBody): Promise<import("./connections").Connection>;
2472
+ secretVersions(id: string): Promise<import("./connections").ConnectionSecretVersions>;
2473
+ secret(id: string, options?: {
2474
+ version?: "current" | "previous" | number;
2475
+ organizationId?: string;
2476
+ }): Promise<import("./connections").ConnectionSecret>;
2477
+ oauth1Sign(id: string, body: {
2478
+ method?: string;
2479
+ url: string;
2480
+ body?: string;
2481
+ content_type?: string;
2482
+ }): Promise<import("./connections").ConnectionSignature>;
2483
+ webhooks: {
2484
+ verify(id: string, body: import("./connections").VerifyConnectionWebhookBody): Promise<import("./connections").ConnectionWebhookVerification>;
2485
+ createEndpoint(id: string, body: import("./connections").CreateConnectionWebhookEndpointBody): Promise<import("./connections").ConnectionWebhookEndpoint>;
2486
+ listEndpoints(id: string): Promise<import("./types").ListPage<import("./connections").ConnectionWebhookEndpoint>>;
2487
+ updateEndpoint(id: string, endpointId: string, body: {
2488
+ forward_url?: string;
2489
+ enabled?: boolean;
2490
+ signing_secret?: string;
2491
+ }): Promise<import("./connections").ConnectionWebhookEndpoint>;
2492
+ deleteEndpoint(id: string, endpointId: string): Promise<void>;
2493
+ };
2494
+ oauthClients: {
2495
+ set(body: import("./connections").SetConnectionOAuthClientBody): Promise<import("./connections").ConnectionOAuthClient>;
2496
+ list(params?: {
2497
+ owner_type?: import("./connections").ConnectionOwnerType;
2498
+ owner_id?: string;
2499
+ provider?: string;
2500
+ }): Promise<import("./types").ListPage<import("./connections").ConnectionOAuthClient>>;
2501
+ get(id: string): Promise<import("./connections").ConnectionOAuthClient>;
2502
+ delete(id: string): Promise<void>;
2503
+ };
2504
+ };
2268
2505
  customOAuthProviders: {
2269
2506
  list(): Promise<import("./types").ListPage<import("./custom-oauth-providers").CustomOAuthProvider>>;
2270
2507
  get(id: string): Promise<import("./custom-oauth-providers").CustomOAuthProvider>;
@@ -2436,6 +2673,39 @@ declare function buildNamespaces(request: RequestFn): {
2436
2673
  result: Record<string, unknown>;
2437
2674
  }>;
2438
2675
  };
2676
+ desktopMfa: {
2677
+ getPolicy(): Promise<import("./desktop-mfa").DesktopMfaPolicy>;
2678
+ updatePolicy(body: import("./desktop-mfa").UpdateDesktopMfaPolicyBody): Promise<import("./desktop-mfa").DesktopMfaPolicy>;
2679
+ createEnrolmentCode(body: {
2680
+ user_id: string;
2681
+ expires_in_minutes?: number;
2682
+ }): Promise<import("./desktop-mfa").DesktopEnrolmentCode>;
2683
+ listDevices(query?: {
2684
+ user_id?: string;
2685
+ }): Promise<{
2686
+ object: "list";
2687
+ data: import("./desktop-mfa").DesktopDevice[];
2688
+ has_more: boolean;
2689
+ }>;
2690
+ getDevice(id: string): Promise<import("./desktop-mfa").DesktopDeviceDetail>;
2691
+ listDevicePasskeys(id: string): Promise<{
2692
+ object: "list";
2693
+ data: import("./desktop-mfa").DesktopPasskey[];
2694
+ has_more: boolean;
2695
+ }>;
2696
+ deleteDevicePasskey(id: string, passkeyId: string): Promise<{
2697
+ object: "desktop_passkey";
2698
+ id: string;
2699
+ deleted: boolean;
2700
+ }>;
2701
+ revokeDevice(id: string): Promise<import("./desktop-mfa").DesktopDevice>;
2702
+ revokeOfflineCache(id: string): Promise<import("./desktop-mfa").DesktopDevice>;
2703
+ deleteDevice(id: string): Promise<{
2704
+ object: "desktop_device";
2705
+ id: string;
2706
+ deleted: boolean;
2707
+ }>;
2708
+ };
2439
2709
  identityVerification: {
2440
2710
  settings(): Promise<import("./identity-verification").IdentityVerificationSettings>;
2441
2711
  updateSettings(body: {
@@ -2464,6 +2734,217 @@ declare function buildNamespaces(request: RequestFn): {
2464
2734
  redirect_url?: string;
2465
2735
  }): Promise<import("./identity-verification").IdentityVerification>;
2466
2736
  };
2737
+ iga: {
2738
+ entitlements: {
2739
+ list: (params?: {
2740
+ kind?: import("./iga").IgaKind;
2741
+ }) => Promise<{
2742
+ object: "list";
2743
+ data: import("./iga").IgaEntitlement[];
2744
+ has_more: boolean;
2745
+ }>;
2746
+ get: (idOrKey: string) => Promise<import("./iga").IgaEntitlement>;
2747
+ create: (body: import("./iga").IgaEntitlementInput) => Promise<import("./iga").IgaEntitlement>;
2748
+ update: (idOrKey: string, body: Partial<Omit<import("./iga").IgaEntitlementInput, "key" | "kind">>) => Promise<import("./iga").IgaEntitlement>;
2749
+ delete: (idOrKey: string) => Promise<{
2750
+ object: "iga_entitlement";
2751
+ id: string;
2752
+ deleted: true;
2753
+ }>;
2754
+ };
2755
+ requests: {
2756
+ list: (params?: {
2757
+ status?: import("./iga").IgaRequestStatus;
2758
+ user_id?: string;
2759
+ requester_user_id?: string;
2760
+ entitlement?: string;
2761
+ limit?: number;
2762
+ }) => Promise<{
2763
+ object: "list";
2764
+ data: import("./iga").IgaRequest[];
2765
+ has_more: boolean;
2766
+ }>;
2767
+ get: (id: string) => Promise<import("./iga").IgaRequest>;
2768
+ create: (body: {
2769
+ entitlement: string;
2770
+ user_id: string;
2771
+ requester_user_id?: string;
2772
+ justification?: string;
2773
+ duration_seconds?: number;
2774
+ }) => Promise<import("./iga").IgaRequest>;
2775
+ decide: (id: string, body: {
2776
+ decision: "approve" | "deny";
2777
+ comment?: string;
2778
+ approver_user_id?: string;
2779
+ }) => Promise<import("./iga").IgaRequest>;
2780
+ cancel: (id: string) => Promise<import("./iga").IgaRequest>;
2781
+ inbox: (approverUserId: string) => Promise<{
2782
+ object: "list";
2783
+ data: import("./iga").IgaRequest[];
2784
+ has_more: boolean;
2785
+ }>;
2786
+ };
2787
+ grants: {
2788
+ list: (params?: {
2789
+ user_id?: string;
2790
+ entitlement?: string;
2791
+ status?: "active" | "revoked" | "expired";
2792
+ limit?: number;
2793
+ }) => Promise<{
2794
+ object: "list";
2795
+ data: import("./iga").IgaGrant[];
2796
+ has_more: boolean;
2797
+ }>;
2798
+ create: (body: {
2799
+ entitlement: string;
2800
+ user_id: string;
2801
+ expires_at?: number;
2802
+ override_reason?: string;
2803
+ }) => Promise<import("./iga").IgaGrant>;
2804
+ revoke: (id: string, body?: {
2805
+ reason?: string;
2806
+ }) => Promise<import("./iga").IgaGrant>;
2807
+ };
2808
+ delegations: {
2809
+ list: (params?: {
2810
+ delegator_user_id?: string;
2811
+ }) => Promise<{
2812
+ object: "list";
2813
+ data: import("./iga").IgaDelegation[];
2814
+ has_more: boolean;
2815
+ }>;
2816
+ create: (body: {
2817
+ delegator_user_id: string;
2818
+ delegate_user_id: string;
2819
+ ends_at: number;
2820
+ starts_at?: number;
2821
+ }) => Promise<import("./iga").IgaDelegation>;
2822
+ delete: (id: string) => Promise<{
2823
+ object: "iga_delegation";
2824
+ id: string;
2825
+ deleted: true;
2826
+ }>;
2827
+ };
2828
+ sod: {
2829
+ listRules: () => Promise<{
2830
+ object: "list";
2831
+ data: import("./iga").IgaSodRule[];
2832
+ has_more: boolean;
2833
+ }>;
2834
+ createRule: (body: {
2835
+ name: string;
2836
+ entitlement_a: string;
2837
+ entitlement_b: string;
2838
+ mode?: "block" | "require_approval";
2839
+ approver?: import("./iga").IgaApprovalStep;
2840
+ description?: string;
2841
+ enabled? /** The data-rights executor protocol and the instance's orchestrator. */: boolean;
2842
+ }) => Promise<import("./iga").IgaSodRule>;
2843
+ updateRule: (id: string, body: {
2844
+ name?: string;
2845
+ description?: string;
2846
+ mode?: "block" | "require_approval";
2847
+ approver?: import("./iga").IgaApprovalStep;
2848
+ enabled?: boolean;
2849
+ }) => Promise<import("./iga").IgaSodRule>;
2850
+ deleteRule: (id: string) => Promise<{
2851
+ object: "iga_sod_rule";
2852
+ id: string;
2853
+ deleted: true;
2854
+ }>;
2855
+ violations: (params?: {
2856
+ status?: "open" | "accepted" | "resolved";
2857
+ }) => Promise<{
2858
+ object: "list";
2859
+ data: import("./iga").IgaSodViolation[];
2860
+ has_more: boolean;
2861
+ }>;
2862
+ scan: () => Promise<{
2863
+ object: "iga_sod_scan";
2864
+ found: number;
2865
+ resolved: number;
2866
+ }>;
2867
+ };
2868
+ lifecycle: {
2869
+ listBirthrightRules: () => Promise<{
2870
+ object: "list";
2871
+ data: import("./iga").IgaBirthrightRule[];
2872
+ has_more: boolean;
2873
+ }>;
2874
+ createBirthrightRule: (body: {
2875
+ name: string;
2876
+ match: import("./iga").IgaBirthrightMatch;
2877
+ entitlement_ids: string[];
2878
+ revoke_on_unmatch?: boolean;
2879
+ enabled?: boolean;
2880
+ }) => Promise<import("./iga").IgaBirthrightRule>;
2881
+ updateBirthrightRule: (id: string, body: Partial<{
2882
+ name: string;
2883
+ match: import("./iga").IgaBirthrightMatch;
2884
+ entitlement_ids: string[];
2885
+ revoke_on_unmatch: boolean;
2886
+ enabled: boolean;
2887
+ }>) => Promise<import("./iga").IgaBirthrightRule>;
2888
+ deleteBirthrightRule: (id: string) => Promise<{
2889
+ object: "iga_birthright_rule";
2890
+ id: string;
2891
+ deleted: true;
2892
+ }>;
2893
+ reconcile: (userId: string) => Promise<{
2894
+ object: "iga_jml";
2895
+ user_id: string;
2896
+ granted: string[];
2897
+ revoked: string[];
2898
+ }>;
2899
+ offboard: (userId: string, body?: {
2900
+ close_account?: boolean;
2901
+ grace_seconds?: number;
2902
+ reason?: string;
2903
+ }) => Promise<import("./iga").IgaOffboarding>;
2904
+ settings: () => Promise<import("./iga").IgaSettings>;
2905
+ updateSettings: (body: Partial<Omit<import("./iga").IgaSettings, "object">>) => Promise<import("./iga").IgaSettings>;
2906
+ };
2907
+ campaigns: {
2908
+ list: (params?: {
2909
+ status?: import("./iga").IgaCampaign["status"];
2910
+ }) => Promise<{
2911
+ object: "list";
2912
+ data: import("./iga").IgaCampaign[];
2913
+ has_more: boolean;
2914
+ }>;
2915
+ get: (id: string) => Promise<import("./iga").IgaCampaign & {
2916
+ progress: import("./iga").IgaCampaignProgress;
2917
+ }>;
2918
+ create: (body: import("./iga").IgaCampaignInput) => Promise<import("./iga").IgaCampaign>;
2919
+ delete: (id: string) => Promise<{
2920
+ object: "iga_campaign";
2921
+ id: string;
2922
+ deleted: true;
2923
+ }>;
2924
+ launch: (id: string) => Promise<import("./iga").IgaCampaign>;
2925
+ close: (id: string) => Promise<import("./iga").IgaCampaign>;
2926
+ items: (id: string, params?: {
2927
+ decision?: import("./iga").IgaCampaignItem["decision"];
2928
+ reviewer_user_id?: string;
2929
+ }) => Promise<{
2930
+ object: "list";
2931
+ data: import("./iga").IgaCampaignItem[];
2932
+ has_more: boolean;
2933
+ }>;
2934
+ progress: (id: string) => Promise<import("./iga").IgaCampaignProgress>;
2935
+ evidence: (id: string, params?: {
2936
+ masked_emails?: boolean;
2937
+ }) => Promise<import("./iga").IgaEvidence>;
2938
+ evidenceCsv: (id: string, params?: {
2939
+ masked_emails?: boolean;
2940
+ }) => Promise<string>;
2941
+ decide: (itemId: string, body: {
2942
+ decision: "certify" | "revoke";
2943
+ comment?: string;
2944
+ reviewer_user_id?: string;
2945
+ }) => Promise<import("./iga").IgaCampaignItem>;
2946
+ };
2947
+ };
2467
2948
  flags: {
2468
2949
  create(body: import("./flags").CreateFeatureFlagBody, idempotencyKey?: string): Promise<import("./flags").FeatureFlag>;
2469
2950
  list(params?: import("./types").CursorParams): Promise<{
@@ -2879,7 +3360,9 @@ export * from './types';
2879
3360
  export * from './compliance';
2880
3361
  export * from './vault';
2881
3362
  export * from './service-connectors';
3363
+ export * from './desktop-mfa';
2882
3364
  export * from './identity-verification';
3365
+ export * from './iga';
2883
3366
  export * from './flags';
2884
3367
  export * from './users';
2885
3368
  export * from './sessions';
@@ -2911,11 +3394,15 @@ export * from './fga';
2911
3394
  export * from './rate-limit';
2912
3395
  export * from './risk-based-mfa';
2913
3396
  export * from './ssf';
3397
+ export * from './managed-grants';
3398
+ export * from './least-privilege';
2914
3399
  export * from './bot-signals';
2915
3400
  export * from './network-acls';
2916
3401
  export * from './network-zones';
2917
3402
  export * from './access-policies';
2918
3403
  export * from './abac';
3404
+ export * from './authz-decisions';
3405
+ export * from './policy-bundles';
2919
3406
  export * from './resources';
2920
3407
  export * from './org-role-grants';
2921
3408
  export * from './devices';
@@ -2955,6 +3442,7 @@ export * from './organization-settings-schema';
2955
3442
  export * from './email-addresses';
2956
3443
  export * from './openfga';
2957
3444
  export * from './connectors';
3445
+ export * from './connections';
2958
3446
  export * from './passkey-api';
2959
3447
  export * from './delegated-ui-proxy';
2960
3448
  export * from './vc';