@atlasauth/backend 0.17.0 → 0.19.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/CHANGELOG.md +40 -0
- package/dist/backchannel-handlers.d.ts +87 -0
- package/dist/backchannel-handlers.js +137 -0
- package/dist/backchannel-handlers.js.map +1 -0
- package/dist/client/activity.d.ts +13 -2
- package/dist/client/activity.js.map +1 -1
- package/dist/client/audit-logs.d.ts +7 -0
- package/dist/client/audit-logs.js.map +1 -1
- package/dist/client/compliance.d.ts +216 -0
- package/dist/client/compliance.js +77 -0
- package/dist/client/compliance.js.map +1 -0
- package/dist/client/credentials.d.ts +409 -0
- package/dist/client/credentials.js +158 -0
- package/dist/client/credentials.js.map +1 -0
- package/dist/client/data-subject-requests.d.ts +36 -1
- package/dist/client/data-subject-requests.js.map +1 -1
- package/dist/client/design.d.ts +48 -0
- package/dist/client/design.js +9 -0
- package/dist/client/design.js.map +1 -1
- package/dist/client/entitlement-overrides.d.ts +30 -0
- package/dist/client/entitlement-overrides.js +9 -0
- package/dist/client/entitlement-overrides.js.map +1 -1
- package/dist/client/env.d.ts +16 -0
- package/dist/client/env.js +38 -0
- package/dist/client/env.js.map +1 -0
- package/dist/client/error.d.ts +10 -0
- package/dist/client/error.js +4 -0
- package/dist/client/error.js.map +1 -1
- package/dist/client/index.d.ts +382 -7
- package/dist/client/index.js +44 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/instance.d.ts +401 -3
- package/dist/client/instance.js +77 -3
- package/dist/client/instance.js.map +1 -1
- package/dist/client/integrations.d.ts +107 -0
- package/dist/client/integrations.js +25 -0
- package/dist/client/integrations.js.map +1 -0
- package/dist/client/messaging.d.ts +18 -4
- package/dist/client/messaging.js +6 -2
- package/dist/client/messaging.js.map +1 -1
- package/dist/client/oauth-clients.d.ts +11 -3
- package/dist/client/oauth-clients.js +4 -2
- package/dist/client/oauth-clients.js.map +1 -1
- package/dist/client/operator.d.ts +100 -0
- package/dist/client/operator.js +132 -0
- package/dist/client/operator.js.map +1 -0
- package/dist/client/platform.d.ts +233 -9
- package/dist/client/platform.js +74 -6
- package/dist/client/platform.js.map +1 -1
- package/dist/client/policies.d.ts +316 -0
- package/dist/client/policies.js +103 -0
- package/dist/client/policies.js.map +1 -0
- package/dist/client/privacy.d.ts +127 -0
- package/dist/client/privacy.js +44 -0
- package/dist/client/privacy.js.map +1 -0
- package/dist/client/referrals.d.ts +53 -6
- package/dist/client/referrals.js +9 -0
- package/dist/client/referrals.js.map +1 -1
- package/dist/client/request.d.ts +38 -1
- package/dist/client/request.js +6 -2
- package/dist/client/request.js.map +1 -1
- package/dist/client/sealed-box.d.ts +7 -0
- package/dist/client/sealed-box.js +62 -0
- package/dist/client/sealed-box.js.map +1 -0
- package/dist/client/sessions.d.ts +16 -5
- package/dist/client/sessions.js +7 -10
- package/dist/client/sessions.js.map +1 -1
- package/dist/client/status.d.ts +200 -0
- package/dist/client/status.js +54 -0
- package/dist/client/status.js.map +1 -0
- package/dist/client/users.d.ts +15 -0
- package/dist/client/webhooks.d.ts +244 -11
- package/dist/client/webhooks.js +52 -3
- package/dist/client/webhooks.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/oidc.d.ts +65 -1
- package/dist/oidc.js +46 -0
- package/dist/oidc.js.map +1 -1
- package/dist/policy-source.d.ts +104 -0
- package/dist/policy-source.js +99 -0
- package/dist/policy-source.js.map +1 -0
- package/dist/referral-test-calls.d.ts +26 -13
- package/dist/referral-test-calls.js +40 -14
- package/dist/referral-test-calls.js.map +1 -1
- package/dist/testing.d.ts +41 -6
- package/dist/testing.js +34 -2
- package/dist/testing.js.map +1 -1
- package/dist/webhooks.d.ts +8 -0
- package/dist/webhooks.js +13 -4
- package/dist/webhooks.js.map +1 -1
- package/package.json +6 -3
package/dist/client/index.d.ts
CHANGED
|
@@ -183,7 +183,12 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
183
183
|
setCustomData(id: string, customData: Record<string, unknown> | null): Promise<import("./sessions").Session>;
|
|
184
184
|
updateCustomData(id: string, patch: Record<string, unknown>): Promise<import("./sessions").Session>;
|
|
185
185
|
touch(id: string): Promise<import("./sessions").TouchedSession>;
|
|
186
|
-
getToken
|
|
186
|
+
getToken: {
|
|
187
|
+
(id: string, template: string): Promise<import("./sessions").SessionTemplateToken>;
|
|
188
|
+
(id: string, options: {
|
|
189
|
+
for: string;
|
|
190
|
+
}): Promise<import("./sessions").SessionIntegrationToken>;
|
|
191
|
+
};
|
|
187
192
|
};
|
|
188
193
|
organizations: {
|
|
189
194
|
list(params?: import("./types").CursorParams): Promise<import("./types").CursorPage<import("./organizations").Organization>>;
|
|
@@ -350,7 +355,9 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
350
355
|
import(body: {
|
|
351
356
|
clients: import("./oauth-clients").ImportOAuthClientEntry[];
|
|
352
357
|
}, idempotencyKey?: string): Promise<import("./types").ListPage<import("./oauth-clients").ImportedOAuthClient>>;
|
|
353
|
-
list(
|
|
358
|
+
list(params?: {
|
|
359
|
+
metadata?: import("./compliance").ProvisioningMetadata;
|
|
360
|
+
}): Promise<import("./types").ListPage<import("./oauth-clients").OAuthClient>>;
|
|
354
361
|
get(id: string): Promise<import("./oauth-clients").OAuthClient>;
|
|
355
362
|
create(body: import("./oauth-clients").CreateOAuthClientBody, idempotencyKey?: string): Promise<import("./oauth-clients").OAuthClientWithSecret>;
|
|
356
363
|
update(id: string, body: import("./oauth-clients").UpdateOAuthClientBody): Promise<import("./oauth-clients").OAuthClient>;
|
|
@@ -514,11 +521,27 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
514
521
|
};
|
|
515
522
|
webhooks: {
|
|
516
523
|
endpoints: {
|
|
517
|
-
list(
|
|
524
|
+
list(opts?: {
|
|
525
|
+
includeDeprecated?: boolean;
|
|
526
|
+
metadata?: import("./compliance").ProvisioningMetadata;
|
|
527
|
+
}): Promise<import("./webhooks").WebhookEndpointList>;
|
|
528
|
+
get(id: string): Promise<import("./webhooks").WebhookEndpoint>;
|
|
529
|
+
upsertByUrl(body: import("./webhooks").UpsertWebhookEndpointBody, idempotencyKey?: string): Promise<import("./webhooks").WebhookEndpoint & {
|
|
530
|
+
secret?: string;
|
|
531
|
+
created: boolean;
|
|
532
|
+
}>;
|
|
518
533
|
update(id: string, body: import("./webhooks").UpdateWebhookEndpointBody): Promise<import("./webhooks").WebhookEndpoint>;
|
|
519
534
|
revealSecret(id: string): Promise<import("./webhooks").WebhookSigningSecret>;
|
|
520
535
|
rotateSecret(id: string, body?: import("./webhooks").RotateWebhookSecretBody): Promise<import("./webhooks").WebhookSigningSecret>;
|
|
521
536
|
test(id: string): Promise<import("./webhooks").WebhookDeliveryQueued>;
|
|
537
|
+
testNow(id: string, wait?: string): Promise<import("./webhooks").WebhookTestResult>;
|
|
538
|
+
redeliverWindow(id: string, body?: import("./webhooks").WebhookWindow & {
|
|
539
|
+
status?: "failed" | "success";
|
|
540
|
+
}, idempotencyKey?: string): Promise<import("./webhooks").WebhookBulkResult>;
|
|
541
|
+
replay(id: string, body: import("./webhooks").WebhookWindow & {
|
|
542
|
+
since: number | string;
|
|
543
|
+
event_type?: string;
|
|
544
|
+
}, idempotencyKey?: string): Promise<import("./webhooks").WebhookBulkResult>;
|
|
522
545
|
redeliver(id: string, deliveryId: string): Promise<import("./webhooks").WebhookDeliveryQueued>;
|
|
523
546
|
create(body: import("./webhooks").CreateWebhookEndpointBody, idempotencyKey?: string): Promise<import("./webhooks").WebhookEndpointWithSecret>;
|
|
524
547
|
delete(id: string): Promise<{
|
|
@@ -532,6 +555,16 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
532
555
|
has_more: boolean;
|
|
533
556
|
next_cursor?: string | null;
|
|
534
557
|
}>;
|
|
558
|
+
egressIps(): Promise<import("./webhooks").EgressIps>;
|
|
559
|
+
health(params?: {
|
|
560
|
+
kind?: import("./webhooks").DeliveryTargetKind;
|
|
561
|
+
state?: "unhealthy" | "all";
|
|
562
|
+
}): Promise<{
|
|
563
|
+
data: import("./webhooks").DeliveryHealth[];
|
|
564
|
+
has_more: boolean;
|
|
565
|
+
unhealthy_count: number;
|
|
566
|
+
}>;
|
|
567
|
+
setAlertContacts(kind: import("./webhooks").DeliveryTargetKind, targetId: string, alertContacts: string[] | null): Promise<import("./webhooks").DeliveryHealth>;
|
|
535
568
|
redeliver(endpointId: string, deliveryId: string): Promise<import("./webhooks").WebhookDeliveryQueued>;
|
|
536
569
|
};
|
|
537
570
|
signInTokens: {
|
|
@@ -823,6 +856,40 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
823
856
|
}>;
|
|
824
857
|
test(id: string): Promise<import("./log-streams").LogStreamTestResult>;
|
|
825
858
|
};
|
|
859
|
+
auditExports: {
|
|
860
|
+
list(): Promise<import("./types").ListPage<import("./compliance").AuditExport> & {
|
|
861
|
+
mandatory_actions: string[];
|
|
862
|
+
}>;
|
|
863
|
+
get(id: string): Promise<import("./compliance").AuditExport>;
|
|
864
|
+
create(body: import("./compliance").CreateAuditExportBody, idempotencyKey?: string): Promise<import("./compliance").AuditExport>;
|
|
865
|
+
update(id: string, body: import("./compliance").UpdateAuditExportBody): Promise<import("./compliance").AuditExport>;
|
|
866
|
+
delete(id: string): Promise<{
|
|
867
|
+
object: "audit_export";
|
|
868
|
+
id: string;
|
|
869
|
+
deleted: true;
|
|
870
|
+
}>;
|
|
871
|
+
test(id: string): Promise<import("./compliance").AuditExportTestResult>;
|
|
872
|
+
rotateSecret(id: string): Promise<import("./compliance").AuditExport>;
|
|
873
|
+
};
|
|
874
|
+
notices: {
|
|
875
|
+
list(params?: {
|
|
876
|
+
all?: boolean;
|
|
877
|
+
}): Promise<import("./types").ListPage<import("./compliance").InstanceNotice> & {
|
|
878
|
+
unacknowledged: number;
|
|
879
|
+
changelog_url: string;
|
|
880
|
+
}>;
|
|
881
|
+
acknowledge(id: string): Promise<import("./compliance").InstanceNotice>;
|
|
882
|
+
};
|
|
883
|
+
securityAdvisories: {
|
|
884
|
+
list(): Promise<import("./types").ListPage<import("./compliance").SecurityAdvisory> & {
|
|
885
|
+
applying: number;
|
|
886
|
+
}>;
|
|
887
|
+
acknowledge(id: string): Promise<import("./compliance").SecurityAdvisory>;
|
|
888
|
+
catalog(): Promise<import("./types").ListPage<import("./compliance").SecurityAdvisory>>;
|
|
889
|
+
};
|
|
890
|
+
subProcessors: {
|
|
891
|
+
get(): Promise<import("./compliance").SubProcessorList>;
|
|
892
|
+
};
|
|
826
893
|
branding: {
|
|
827
894
|
get(): Promise<import("./branding").BrandingResponse>;
|
|
828
895
|
update(body: Partial<import("./branding").Branding>): Promise<import("./branding").BrandingResponse>;
|
|
@@ -929,6 +996,9 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
929
996
|
};
|
|
930
997
|
messaging: {
|
|
931
998
|
get(): Promise<import("./messaging").MessagingProviders>;
|
|
999
|
+
channel<C extends "email" | "sms">(channel: C): Promise<(C extends "email" ? import("./messaging").EmailProvider : import("./messaging").SmsProvider) | (import("./messaging").NotConfigured<"messaging_provider"> & {
|
|
1000
|
+
channel: C;
|
|
1001
|
+
})>;
|
|
932
1002
|
setEmail: {
|
|
933
1003
|
(body: import("./messaging").EmailProviderInput): Promise<import("./messaging").EmailProvider>;
|
|
934
1004
|
<T extends string>(body: Omit<import("./messaging").MessagingProviderInput, "transport"> & {
|
|
@@ -945,7 +1015,7 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
945
1015
|
force?: boolean;
|
|
946
1016
|
}): Promise<import("./messaging").DeletedMessagingProvider>;
|
|
947
1017
|
developmentEmail: {
|
|
948
|
-
get(): Promise<import("./messaging").DevelopmentEmail
|
|
1018
|
+
get(): Promise<import("./messaging").DevelopmentEmail | import("./messaging").NotConfigured<"development_email">>;
|
|
949
1019
|
enable(body: import("./messaging").EnableDevelopmentEmailBody): Promise<import("./messaging").DevelopmentEmail>;
|
|
950
1020
|
disable(): Promise<{
|
|
951
1021
|
object: "development_email";
|
|
@@ -955,7 +1025,7 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
955
1025
|
}>;
|
|
956
1026
|
};
|
|
957
1027
|
managedEmail: {
|
|
958
|
-
get(): Promise<import("./messaging").ManagedEmail
|
|
1028
|
+
get(): Promise<import("./messaging").ManagedEmail | import("./messaging").NotConfigured<"managed_email">>;
|
|
959
1029
|
create(body: import("./messaging").CreateManagedEmailBody): Promise<import("./messaging").ManagedEmail>;
|
|
960
1030
|
verify(): Promise<import("./messaging").ManagedEmail>;
|
|
961
1031
|
delete(options?: {
|
|
@@ -1028,6 +1098,25 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1028
1098
|
reason?: string;
|
|
1029
1099
|
}, idempotencyKey?: string): Promise<import("./data-subject-requests").DataSubjectRequest>;
|
|
1030
1100
|
};
|
|
1101
|
+
/** The data-rights executor protocol and the instance's orchestrator. */
|
|
1102
|
+
privacy: {
|
|
1103
|
+
discover(): Promise<Record<string, unknown>>;
|
|
1104
|
+
preset(id: string): Promise<Record<string, unknown>>;
|
|
1105
|
+
lookup(body: {
|
|
1106
|
+
emails?: string[];
|
|
1107
|
+
atlas?: import("./privacy").PrivacySubject;
|
|
1108
|
+
}): Promise<import("./privacy").PrivacyLookupResult>;
|
|
1109
|
+
createRequest(body: import("./privacy").CreatePrivacyRequestBody, idempotencyKey?: string): Promise<import("./privacy").PrivacyRequest>;
|
|
1110
|
+
getRequest(id: string): Promise<import("./privacy").PrivacyRequest>;
|
|
1111
|
+
cancelRequest(id: string, idempotencyKey?: string): Promise<import("./privacy").PrivacyRequest>;
|
|
1112
|
+
orchestrator: {
|
|
1113
|
+
get(): Promise<import("./privacy").PrivacyOrchestrator>;
|
|
1114
|
+
set(body: import("./privacy").PrivacyOrchestratorInput): Promise<import("./privacy").PrivacyOrchestrator>;
|
|
1115
|
+
delete(): Promise<import("./privacy").PrivacyOrchestrator & {
|
|
1116
|
+
deleted: boolean;
|
|
1117
|
+
}>;
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1031
1120
|
radiusClients: {
|
|
1032
1121
|
list(): Promise<import("./types").ListPage<import("./radius-clients").RadiusClient>>;
|
|
1033
1122
|
create(body: import("./radius-clients").CreateRadiusClientBody, idempotencyKey?: string): Promise<import("./radius-clients").RadiusClient>;
|
|
@@ -1053,10 +1142,62 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1053
1142
|
instance: {
|
|
1054
1143
|
get(): Promise<import("./instance").Instance>;
|
|
1055
1144
|
update(body: import("./instance").UpdateInstanceBody): Promise<import("./instance").InstanceUpdateResult>;
|
|
1056
|
-
preflight(): Promise<import("./instance").PreflightReport>;
|
|
1145
|
+
preflight(params?: import("./instance").PreflightParams): Promise<import("./instance").PreflightReport>;
|
|
1146
|
+
unknownFieldsReport(params?: {
|
|
1147
|
+
days?: number;
|
|
1148
|
+
}): Promise<import("./instance").UnknownFieldsReport>;
|
|
1149
|
+
openapiDiff(params: {
|
|
1150
|
+
since: string;
|
|
1151
|
+
surface?: string;
|
|
1152
|
+
}): Promise<import("./instance").OpenApiDiff>;
|
|
1057
1153
|
moveOrigin(body: import("./instance").OriginMoveRequest): Promise<import("./instance").OriginMove>;
|
|
1154
|
+
integrationHealth(params?: {
|
|
1155
|
+
only?: string[];
|
|
1156
|
+
probe?: boolean;
|
|
1157
|
+
}): Promise<import("./instance").IntegrationHealthReport>;
|
|
1158
|
+
integrationHealthProviders(): Promise<{
|
|
1159
|
+
object: "list";
|
|
1160
|
+
data: {
|
|
1161
|
+
object: "integration_health_provider";
|
|
1162
|
+
source: string;
|
|
1163
|
+
description: string;
|
|
1164
|
+
}[];
|
|
1165
|
+
has_more: false;
|
|
1166
|
+
}>;
|
|
1167
|
+
embed(params: {
|
|
1168
|
+
instance: string;
|
|
1169
|
+
origin?: string;
|
|
1170
|
+
shape?: "redirect" | "panel" | "button";
|
|
1171
|
+
}): Promise<import("./instance").EmbedManifest>;
|
|
1058
1172
|
connections(): Promise<import("./instance").InstanceConnections>;
|
|
1059
1173
|
integrations: {
|
|
1174
|
+
list(): Promise<{
|
|
1175
|
+
object: "list";
|
|
1176
|
+
data: import("./instance").Integration[];
|
|
1177
|
+
has_more: boolean;
|
|
1178
|
+
}>;
|
|
1179
|
+
get(id: string): Promise<import("./instance").Integration>;
|
|
1180
|
+
set(id: string, body: import("./instance").SetIntegrationBody, opts?: {
|
|
1181
|
+
dryRun?: boolean;
|
|
1182
|
+
}): Promise<import("./instance").Integration>;
|
|
1183
|
+
remove(id: string): Promise<import("./instance").Integration>;
|
|
1184
|
+
deliveries(id: string, query?: {
|
|
1185
|
+
limit?: number;
|
|
1186
|
+
trace?: string;
|
|
1187
|
+
kind?: "event" | "backchannel_logout";
|
|
1188
|
+
}): Promise<{
|
|
1189
|
+
object: "list";
|
|
1190
|
+
data: import("./instance").IntegrationDelivery[];
|
|
1191
|
+
has_more: boolean;
|
|
1192
|
+
}>;
|
|
1193
|
+
revealEventsSecret(id: string): Promise<{
|
|
1194
|
+
object: "integration_events_secret";
|
|
1195
|
+
integration: string;
|
|
1196
|
+
endpoint_id: string;
|
|
1197
|
+
url: string;
|
|
1198
|
+
secret: string;
|
|
1199
|
+
}>;
|
|
1200
|
+
atlasIdToken(id: string, accessToken: string): Promise<import("./instance").IntegrationTokenResponse>;
|
|
1060
1201
|
chatly: {
|
|
1061
1202
|
get(): Promise<import("./instance").ChatlyIntegration>;
|
|
1062
1203
|
set(body: import("./instance").SetChatlyIntegrationBody): Promise<import("./instance").ChatlyIntegration>;
|
|
@@ -1074,6 +1215,29 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1074
1215
|
delete(): Promise<import("./instance").CookieConsent>;
|
|
1075
1216
|
};
|
|
1076
1217
|
};
|
|
1218
|
+
integrations: {
|
|
1219
|
+
reportVerifyError(body: import("./integrations").ReportVerifyErrorBody): Promise<import("./integrations").IntegrationVerifyError>;
|
|
1220
|
+
card(integration: string, query: {
|
|
1221
|
+
sub: string;
|
|
1222
|
+
iss?: string;
|
|
1223
|
+
}): Promise<import("./integrations").IntegrationCard>;
|
|
1224
|
+
revokeSessions(integration: string, body: {
|
|
1225
|
+
sub: string;
|
|
1226
|
+
iss?: string;
|
|
1227
|
+
agent?: {
|
|
1228
|
+
id?: string;
|
|
1229
|
+
name?: string;
|
|
1230
|
+
email?: string;
|
|
1231
|
+
};
|
|
1232
|
+
}): Promise<{
|
|
1233
|
+
object: "integration_card_action";
|
|
1234
|
+
integration: string;
|
|
1235
|
+
action: "revoke_sessions";
|
|
1236
|
+
ok: boolean;
|
|
1237
|
+
sessions_revoked: number;
|
|
1238
|
+
}>;
|
|
1239
|
+
instanceMetadata(instanceId: string): Promise<import("./integrations").InstanceMetadata>;
|
|
1240
|
+
};
|
|
1077
1241
|
instanceSecurity: {
|
|
1078
1242
|
listSigningKeys(): Promise<{
|
|
1079
1243
|
object: "list";
|
|
@@ -1152,6 +1316,9 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1152
1316
|
kind?: import("./referrals").ReferralCallKind;
|
|
1153
1317
|
error_code?: string;
|
|
1154
1318
|
}, idempotencyKey?: string): Promise<import("./referrals").ReferralRetryFailedResult>;
|
|
1319
|
+
install(preset: string, body?: {
|
|
1320
|
+
return_to?: string | null;
|
|
1321
|
+
}): Promise<import("./referrals").ReferralInstall>;
|
|
1155
1322
|
simulate(body?: {
|
|
1156
1323
|
code?: string;
|
|
1157
1324
|
}): Promise<import("./referrals").ReferralSimulateResult>;
|
|
@@ -1159,6 +1326,103 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1159
1326
|
getBackfill(id: string): Promise<import("./referrals").ReferralBackfillJob>;
|
|
1160
1327
|
getForUser(userId: string): Promise<import("./users").UserReferralResult>;
|
|
1161
1328
|
};
|
|
1329
|
+
policies: {
|
|
1330
|
+
list(params?: {
|
|
1331
|
+
include_retired?: boolean;
|
|
1332
|
+
}): Promise<{
|
|
1333
|
+
object: "list";
|
|
1334
|
+
data: import("./policies").Policy[];
|
|
1335
|
+
}>;
|
|
1336
|
+
create(body: import("./policies").CreatePolicyBody): Promise<import("./policies").Policy>;
|
|
1337
|
+
get(idOrKey: string): Promise<import("./policies").Policy>;
|
|
1338
|
+
update(idOrKey: string, body: import("./policies").UpdatePolicyBody): Promise<import("./policies").Policy>;
|
|
1339
|
+
delete(idOrKey: string): Promise<{
|
|
1340
|
+
object: "policy";
|
|
1341
|
+
id: string;
|
|
1342
|
+
key: string;
|
|
1343
|
+
deleted: boolean;
|
|
1344
|
+
retired: boolean;
|
|
1345
|
+
policy?: import("./policies").Policy;
|
|
1346
|
+
}>;
|
|
1347
|
+
versions: {
|
|
1348
|
+
list(idOrKey: string): Promise<{
|
|
1349
|
+
object: "list";
|
|
1350
|
+
data: import("./policies").PolicyVersion[];
|
|
1351
|
+
}>;
|
|
1352
|
+
create(idOrKey: string, body: import("./policies").CreatePolicyVersionBody): Promise<import("./policies").PolicyVersion>;
|
|
1353
|
+
get(idOrKey: string, versionIdOrLabel: string): Promise<import("./policies").PolicyVersion>;
|
|
1354
|
+
update(idOrKey: string, versionIdOrLabel: string, body: import("./policies").UpdatePolicyVersionBody): Promise<import("./policies").PolicyVersion>;
|
|
1355
|
+
delete(idOrKey: string, versionIdOrLabel: string): Promise<{
|
|
1356
|
+
object: "policy_version";
|
|
1357
|
+
id: string;
|
|
1358
|
+
deleted: true;
|
|
1359
|
+
}>;
|
|
1360
|
+
publish(idOrKey: string, versionIdOrLabel: string, body?: {
|
|
1361
|
+
effective_at?: number | string;
|
|
1362
|
+
}): Promise<import("./policies").PolicyVersion>;
|
|
1363
|
+
retire(idOrKey: string, versionIdOrLabel: string): Promise<import("./policies").PolicyVersion>;
|
|
1364
|
+
};
|
|
1365
|
+
listAcceptances(idOrKey: string, params?: import("./policies").ListPolicyAcceptancesParams): Promise<import("./policies").PolicyAcceptancePage>;
|
|
1366
|
+
exportAcceptancesCsv(idOrKey: string, params?: Omit<import("./policies").ListPolicyAcceptancesParams, "limit" | "starting_after">): Promise<string>;
|
|
1367
|
+
forUser(userId: string): Promise<{
|
|
1368
|
+
object: "list";
|
|
1369
|
+
user_id: string;
|
|
1370
|
+
data: import("./policies").PolicyStanding[];
|
|
1371
|
+
needs_acceptance: boolean;
|
|
1372
|
+
}>;
|
|
1373
|
+
settings: {
|
|
1374
|
+
get(): Promise<import("./policies").PolicySettings>;
|
|
1375
|
+
update(body: {
|
|
1376
|
+
session_claim?: boolean;
|
|
1377
|
+
}): Promise<import("./policies").PolicySettings>;
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
policySource: {
|
|
1381
|
+
get(): Promise<import("./policies").PolicySource>;
|
|
1382
|
+
update(body: import("./policies").UpdatePolicySourceBody): Promise<import("./policies").PolicySource>;
|
|
1383
|
+
delete(): Promise<import("./policies").PolicySource>;
|
|
1384
|
+
test(): Promise<import("./policies").PolicySourceTest>;
|
|
1385
|
+
sync(): Promise<import("./policies").PolicySourceSync>;
|
|
1386
|
+
listDeliveries(params?: {
|
|
1387
|
+
limit?: number;
|
|
1388
|
+
starting_after?: string;
|
|
1389
|
+
kind?: string;
|
|
1390
|
+
status?: string;
|
|
1391
|
+
}): Promise<{
|
|
1392
|
+
object: "list";
|
|
1393
|
+
data: import("./policies").PolicySourceDelivery[];
|
|
1394
|
+
has_more: boolean;
|
|
1395
|
+
next_cursor: string | null;
|
|
1396
|
+
}>;
|
|
1397
|
+
};
|
|
1398
|
+
status: {
|
|
1399
|
+
service(): Promise<import("./status").ServiceStatus>;
|
|
1400
|
+
getSubscription(): Promise<import("./status").StatusSubscription>;
|
|
1401
|
+
updateSubscription(body: import("./status").UpdateStatusSubscriptionBody): Promise<import("./status").StatusSubscription>;
|
|
1402
|
+
disableSubscription(): Promise<import("./status").StatusSubscription>;
|
|
1403
|
+
rotateFeed(): Promise<import("./status").StatusSubscription>;
|
|
1404
|
+
listIncidents(params?: {
|
|
1405
|
+
open?: boolean;
|
|
1406
|
+
limit?: number;
|
|
1407
|
+
}): Promise<{
|
|
1408
|
+
object: "list";
|
|
1409
|
+
data: import("./status").StatusIncident[];
|
|
1410
|
+
}>;
|
|
1411
|
+
listDependencies(): Promise<{
|
|
1412
|
+
object: "list";
|
|
1413
|
+
data: import("./status").StatusDependency[];
|
|
1414
|
+
state: import("./status").StatusDependencyState;
|
|
1415
|
+
}>;
|
|
1416
|
+
createDependency(body: import("./status").CreateStatusDependencyBody): Promise<import("./status").StatusDependency>;
|
|
1417
|
+
getDependency(id: string): Promise<import("./status").StatusDependency>;
|
|
1418
|
+
updateDependency(id: string, body: import("./status").UpdateStatusDependencyBody): Promise<import("./status").StatusDependency>;
|
|
1419
|
+
deleteDependency(id: string): Promise<{
|
|
1420
|
+
object: "status_dependency";
|
|
1421
|
+
id: string;
|
|
1422
|
+
deleted: true;
|
|
1423
|
+
}>;
|
|
1424
|
+
refreshDependency(id: string): Promise<import("./status").StatusDependency>;
|
|
1425
|
+
};
|
|
1162
1426
|
userHooks: {
|
|
1163
1427
|
getBeforeUserCreate(): Promise<import("./user-hooks").BeforeUserCreateHook>;
|
|
1164
1428
|
updateBeforeUserCreate(body: import("./user-hooks").UpdateBeforeUserCreateHookBody): Promise<import("./user-hooks").BeforeUserCreateHook>;
|
|
@@ -1173,6 +1437,11 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1173
1437
|
design: {
|
|
1174
1438
|
get(): Promise<import("./design").DesignSettings>;
|
|
1175
1439
|
replace(design: import("./design").AtlasDesign): Promise<import("./design").DesignSettings>;
|
|
1440
|
+
importBrand(input: {
|
|
1441
|
+
brandUrl: string;
|
|
1442
|
+
} | {
|
|
1443
|
+
brand: Record<string, unknown> | null;
|
|
1444
|
+
}): Promise<import("./design").DesignSettings>;
|
|
1176
1445
|
update(design: import("./design").AtlasDesignPatch): Promise<import("./design").DesignSettings>;
|
|
1177
1446
|
preview(design: import("./design").AtlasDesign): Promise<import("./design").DesignPreview>;
|
|
1178
1447
|
organizations: {
|
|
@@ -1196,6 +1465,12 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1196
1465
|
deleted: true;
|
|
1197
1466
|
}>;
|
|
1198
1467
|
};
|
|
1468
|
+
entitlements: {
|
|
1469
|
+
get(params: {
|
|
1470
|
+
subject_type: import("./entitlement-overrides").EntitlementOverrideSubjectType;
|
|
1471
|
+
subject_id: string;
|
|
1472
|
+
}): Promise<import("./entitlement-overrides").Entitlements>;
|
|
1473
|
+
};
|
|
1199
1474
|
orgLdapConnections: {
|
|
1200
1475
|
list(params?: {
|
|
1201
1476
|
organization_id?: string;
|
|
@@ -1370,6 +1645,98 @@ declare function buildNamespaces(request: RequestFn): {
|
|
|
1370
1645
|
deleted: number;
|
|
1371
1646
|
}>;
|
|
1372
1647
|
};
|
|
1648
|
+
whoami: () => Promise<import("./credentials").Whoami>;
|
|
1649
|
+
secretKeys: {
|
|
1650
|
+
create(body: import("./credentials").CreateSecretKeyBody): Promise<import("./credentials").SecretKeyWithSecret>;
|
|
1651
|
+
list(params?: {
|
|
1652
|
+
metadata?: Record<string, string>;
|
|
1653
|
+
}): Promise<import("./types").ListPage<import("./credentials").SecretKey>>;
|
|
1654
|
+
get(id: string): Promise<import("./credentials").SecretKey>;
|
|
1655
|
+
update(id: string, body: {
|
|
1656
|
+
name?: string | null;
|
|
1657
|
+
owner?: string | null;
|
|
1658
|
+
expires_at?: number | string | null;
|
|
1659
|
+
allowed_ips?: string[];
|
|
1660
|
+
allowed_origins?: string[];
|
|
1661
|
+
metadata?: Record<string, string | number | boolean> | null;
|
|
1662
|
+
}): Promise<import("./credentials").SecretKey>;
|
|
1663
|
+
rotate(id: string, body?: {
|
|
1664
|
+
overlap_seconds?: number;
|
|
1665
|
+
key_format?: "atlas" | "legacy";
|
|
1666
|
+
}): Promise<import("./credentials").SecretKeyWithSecret & {
|
|
1667
|
+
replaces: string;
|
|
1668
|
+
previous_key_expires_at: number | null;
|
|
1669
|
+
}>;
|
|
1670
|
+
revoke(id: string): Promise<import("./credentials").SecretKey & {
|
|
1671
|
+
revoked: true;
|
|
1672
|
+
}>;
|
|
1673
|
+
};
|
|
1674
|
+
keys: {
|
|
1675
|
+
list(): Promise<import("./types").ListPage<import("./credentials").StandardKey>>;
|
|
1676
|
+
};
|
|
1677
|
+
partnerLinks: {
|
|
1678
|
+
create(body: {
|
|
1679
|
+
partner: string;
|
|
1680
|
+
name?: string;
|
|
1681
|
+
scopes: string[];
|
|
1682
|
+
expires_at?: number | string;
|
|
1683
|
+
cert_fingerprints?: string[];
|
|
1684
|
+
}): Promise<import("./credentials").PartnerLink>;
|
|
1685
|
+
setCertificates(id: string, certFingerprints: string[]): Promise<import("./credentials").PartnerLink>;
|
|
1686
|
+
requests: {
|
|
1687
|
+
list(params?: {
|
|
1688
|
+
direction?: "inbound" | "outbound";
|
|
1689
|
+
status?: import("./credentials").PartnerLinkRequest["status"][];
|
|
1690
|
+
}): Promise<import("./types").ListPage<import("./credentials").PartnerLinkRequest>>;
|
|
1691
|
+
get(id: string): Promise<import("./credentials").PartnerLinkRequest>;
|
|
1692
|
+
approve(id: string, body?: {
|
|
1693
|
+
scopes?: string[];
|
|
1694
|
+
expires_at?: number | string;
|
|
1695
|
+
}): Promise<import("./credentials").PartnerLinkRequestApproval>;
|
|
1696
|
+
deny(id: string): Promise<import("./credentials").PartnerLinkRequest>;
|
|
1697
|
+
};
|
|
1698
|
+
list(): Promise<import("./types").ListPage<import("./credentials").PartnerLink>>;
|
|
1699
|
+
get(id: string): Promise<import("./credentials").PartnerLink>;
|
|
1700
|
+
rotateSecret(id: string): Promise<import("./credentials").PartnerLink>;
|
|
1701
|
+
revoke(id: string): Promise<import("./credentials").PartnerLink & {
|
|
1702
|
+
revoked: true;
|
|
1703
|
+
}>;
|
|
1704
|
+
outbound: {
|
|
1705
|
+
list(): Promise<import("./types").ListPage<import("./credentials").OutboundPartnerLink>>;
|
|
1706
|
+
save(partner: string, body: import("./credentials").SaveOutboundPartnerLinkBody): Promise<import("./credentials").OutboundPartnerLink>;
|
|
1707
|
+
test(partner: string): Promise<{
|
|
1708
|
+
object: "partner_link_test";
|
|
1709
|
+
partner: string;
|
|
1710
|
+
ok: boolean;
|
|
1711
|
+
error?: string;
|
|
1712
|
+
}>;
|
|
1713
|
+
remove(partner: string): Promise<{
|
|
1714
|
+
object: "outbound_partner_link";
|
|
1715
|
+
partner: string;
|
|
1716
|
+
deleted: true;
|
|
1717
|
+
}>;
|
|
1718
|
+
request(partner: string, body: {
|
|
1719
|
+
scopes: string[];
|
|
1720
|
+
resource?: string;
|
|
1721
|
+
base_url?: string;
|
|
1722
|
+
token_url?: string;
|
|
1723
|
+
name?: string;
|
|
1724
|
+
}): Promise<import("./credentials").PartnerLinkRequest & {
|
|
1725
|
+
note: string;
|
|
1726
|
+
}>;
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
atlasIdGrants: {
|
|
1730
|
+
listApps(): Promise<import("./types").ListPage<{
|
|
1731
|
+
object: "atlas_id_app";
|
|
1732
|
+
id: string;
|
|
1733
|
+
client_id: string;
|
|
1734
|
+
name: string;
|
|
1735
|
+
managed_by_instance_id: string;
|
|
1736
|
+
}>>;
|
|
1737
|
+
lookup(appId: string, email: string): Promise<import("./types").ListPage<import("./credentials").AtlasIdGrantLookup>>;
|
|
1738
|
+
revoke(appId: string, grantId: string): Promise<import("./credentials").InstanceAtlasIdGrantRevocation>;
|
|
1739
|
+
};
|
|
1373
1740
|
events: {
|
|
1374
1741
|
list(params?: import("./activity").ListActivityEventsParams): Promise<import("./activity").ActivityEventsPage>;
|
|
1375
1742
|
};
|
|
@@ -1491,14 +1858,16 @@ export interface AtlasClient extends AtlasClientNamespaces {
|
|
|
1491
1858
|
*/
|
|
1492
1859
|
withOptions(overrides: AtlasRequestSettings): AtlasClient;
|
|
1493
1860
|
}
|
|
1494
|
-
export type { AtlasClientConfig, AtlasRequestSettings, UnknownFieldsEvent, RawBody, } from './request';
|
|
1861
|
+
export type { AtlasClientConfig, AtlasRequestSettings, UnknownFieldsEvent, RawBody, DryRunChange, DryRunResult, } from './request';
|
|
1495
1862
|
export { DEFAULT_API_URL } from './request';
|
|
1863
|
+
export { API_BASE_ENV_NAMES, apiBaseFromEnv, atlasConfigFromEnv, createAtlasClientFromEnv } from './env';
|
|
1496
1864
|
export { AtlasErrorCodes, type AtlasErrorCode } from './error';
|
|
1497
1865
|
export { createAtlasPlatformClient } from './platform';
|
|
1498
1866
|
export type { AtlasPlatformClient, AtlasPlatformClientConfig } from './platform';
|
|
1499
1867
|
export { AtlasApiError, type AtlasErrorItem } from './error';
|
|
1500
1868
|
export { paginate, collect } from './paginate';
|
|
1501
1869
|
export * from './types';
|
|
1870
|
+
export * from './compliance';
|
|
1502
1871
|
export * from './users';
|
|
1503
1872
|
export * from './sessions';
|
|
1504
1873
|
export * from './organizations';
|
|
@@ -1541,11 +1910,15 @@ export * from './messaging';
|
|
|
1541
1910
|
export * from './import-export';
|
|
1542
1911
|
export * from './better-auth-imports';
|
|
1543
1912
|
export * from './data-subject-requests';
|
|
1913
|
+
export * from './privacy';
|
|
1544
1914
|
export * from './radius-clients';
|
|
1545
1915
|
export * from './lti-platforms';
|
|
1546
1916
|
export * from './instance';
|
|
1917
|
+
export * from './integrations';
|
|
1547
1918
|
export * from './instance-security';
|
|
1548
1919
|
export * from './referrals';
|
|
1920
|
+
export * from './policies';
|
|
1921
|
+
export * from './status';
|
|
1549
1922
|
export * from './user-hooks';
|
|
1550
1923
|
export * from './tokens';
|
|
1551
1924
|
export * from './captcha';
|
|
@@ -1570,3 +1943,5 @@ export * from './test-mode';
|
|
|
1570
1943
|
export * from './diagnostics';
|
|
1571
1944
|
export * from './logout-notify-endpoints';
|
|
1572
1945
|
export * from './platform';
|
|
1946
|
+
export * from './credentials';
|
|
1947
|
+
export * from './operator';
|