@haakco/custd-sdk 0.0.0-stage → 3.71.1

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 (196) hide show
  1. package/README.md +958 -2
  2. package/dist/admin-accounting-evidence.d.ts +48 -0
  3. package/dist/admin-accounting-evidence.js +24 -0
  4. package/dist/admin-app-releases.d.ts +116 -0
  5. package/dist/admin-app-releases.js +8 -0
  6. package/dist/admin-apps.d.ts +120 -0
  7. package/dist/admin-apps.js +47 -0
  8. package/dist/admin-auth-project-domain.d.ts +125 -0
  9. package/dist/admin-auth-project-domain.js +37 -0
  10. package/dist/admin-auth-projects.d.ts +989 -0
  11. package/dist/admin-auth-projects.js +527 -0
  12. package/dist/admin-campaign-email.d.ts +120 -0
  13. package/dist/admin-campaign-email.js +64 -0
  14. package/dist/admin-client-setup.d.ts +122 -0
  15. package/dist/admin-client-setup.js +408 -0
  16. package/dist/admin-data-labels.d.ts +124 -0
  17. package/dist/admin-data-labels.js +51 -0
  18. package/dist/admin-data-scopes.d.ts +93 -0
  19. package/dist/admin-data-scopes.js +154 -0
  20. package/dist/admin-email-relay.d.ts +66 -0
  21. package/dist/admin-email-relay.js +25 -0
  22. package/dist/admin-environment-policy.d.ts +32 -0
  23. package/dist/admin-environment-policy.js +26 -0
  24. package/dist/admin-error-issues.d.ts +91 -0
  25. package/dist/admin-error-issues.js +52 -0
  26. package/dist/admin-event-types.d.ts +57 -0
  27. package/dist/admin-event-types.js +28 -0
  28. package/dist/admin-impersonation.d.ts +48 -0
  29. package/dist/admin-impersonation.js +27 -0
  30. package/dist/admin-ingest-claims.d.ts +35 -0
  31. package/dist/admin-ingest-claims.js +26 -0
  32. package/dist/admin-managed-audit.d.ts +13 -0
  33. package/dist/admin-managed-audit.js +13 -0
  34. package/dist/admin-measurement-projects.d.ts +166 -0
  35. package/dist/admin-measurement-projects.js +120 -0
  36. package/dist/admin-notification-destinations.d.ts +31 -0
  37. package/dist/admin-notification-destinations.js +19 -0
  38. package/dist/admin-notification-webhooks.d.ts +64 -0
  39. package/dist/admin-notification-webhooks.js +42 -0
  40. package/dist/admin-oauth-client-admissions.d.ts +65 -0
  41. package/dist/admin-oauth-client-admissions.js +46 -0
  42. package/dist/admin-offboarding.d.ts +123 -0
  43. package/dist/admin-offboarding.js +129 -0
  44. package/dist/admin-predictions.d.ts +266 -0
  45. package/dist/admin-predictions.js +93 -0
  46. package/dist/admin-privacy-erasures.d.ts +74 -0
  47. package/dist/admin-privacy-erasures.js +73 -0
  48. package/dist/admin-retention.d.ts +99 -0
  49. package/dist/admin-retention.js +60 -0
  50. package/dist/admin-rls.d.ts +94 -0
  51. package/dist/admin-rls.js +33 -0
  52. package/dist/admin-sdk-usage.d.ts +41 -0
  53. package/dist/admin-sdk-usage.js +23 -0
  54. package/dist/admin-site-ai.d.ts +72 -0
  55. package/dist/admin-site-ai.js +1 -0
  56. package/dist/admin-site-analytics.d.ts +52 -0
  57. package/dist/admin-site-analytics.js +14 -0
  58. package/dist/admin-site-audit-pages.d.ts +76 -0
  59. package/dist/admin-site-audit-pages.js +27 -0
  60. package/dist/admin-site-campaign-links.d.ts +40 -0
  61. package/dist/admin-site-campaign-links.js +9 -0
  62. package/dist/admin-site-domains.d.ts +733 -0
  63. package/dist/admin-site-domains.js +768 -0
  64. package/dist/admin-site-export.d.ts +76 -0
  65. package/dist/admin-site-export.js +15 -0
  66. package/dist/admin-site-insights-tasks.d.ts +44 -0
  67. package/dist/admin-site-insights-tasks.js +28 -0
  68. package/dist/admin-site-insights.d.ts +527 -0
  69. package/dist/admin-site-insights.js +61 -0
  70. package/dist/admin-site-links.d.ts +87 -0
  71. package/dist/admin-site-links.js +16 -0
  72. package/dist/admin-site-monitors.d.ts +110 -0
  73. package/dist/admin-site-monitors.js +25 -0
  74. package/dist/admin-site-next-actions.d.ts +93 -0
  75. package/dist/admin-site-next-actions.js +36 -0
  76. package/dist/admin-site-page-queries.d.ts +63 -0
  77. package/dist/admin-site-page-queries.js +20 -0
  78. package/dist/admin-site-rankings.d.ts +98 -0
  79. package/dist/admin-site-rankings.js +46 -0
  80. package/dist/admin-site-regional-trends.d.ts +30 -0
  81. package/dist/admin-site-regional-trends.js +1 -0
  82. package/dist/admin-site-saved-reports.d.ts +45 -0
  83. package/dist/admin-site-saved-reports.js +13 -0
  84. package/dist/admin-site-search-pool.d.ts +77 -0
  85. package/dist/admin-site-search-pool.js +41 -0
  86. package/dist/admin-site-search-value.d.ts +97 -0
  87. package/dist/admin-site-search-value.js +29 -0
  88. package/dist/admin-site-status-page.d.ts +57 -0
  89. package/dist/admin-site-status-page.js +10 -0
  90. package/dist/admin-site-traffic.d.ts +145 -0
  91. package/dist/admin-site-traffic.js +32 -0
  92. package/dist/admin-site-web-data.d.ts +258 -0
  93. package/dist/admin-site-web-data.js +60 -0
  94. package/dist/admin-subject-exports.d.ts +79 -0
  95. package/dist/admin-subject-exports.js +44 -0
  96. package/dist/admin-support-access.d.ts +32 -0
  97. package/dist/admin-support-access.js +21 -0
  98. package/dist/admin-system.d.ts +283 -0
  99. package/dist/admin-system.js +65 -0
  100. package/dist/admin-tenant-storage.d.ts +35 -0
  101. package/dist/admin-tenant-storage.js +24 -0
  102. package/dist/admin-timeplans.d.ts +512 -0
  103. package/dist/admin-timeplans.js +200 -0
  104. package/dist/admin-uncertainty-models.d.ts +42 -0
  105. package/dist/admin-uncertainty-models.js +53 -0
  106. package/dist/admin-usage.d.ts +124 -0
  107. package/dist/admin-usage.js +169 -0
  108. package/dist/admin-users.d.ts +124 -0
  109. package/dist/admin-users.js +82 -0
  110. package/dist/admin-workflow-timings.d.ts +367 -0
  111. package/dist/admin-workflow-timings.js +117 -0
  112. package/dist/analytics-events.d.ts +167 -0
  113. package/dist/analytics-events.js +197 -0
  114. package/dist/analytics-reads.d.ts +81 -0
  115. package/dist/analytics-reads.js +5 -0
  116. package/dist/app-account.d.ts +84 -0
  117. package/dist/app-account.js +177 -0
  118. package/dist/app-alerts.d.ts +120 -0
  119. package/dist/app-alerts.js +44 -0
  120. package/dist/app-items.d.ts +786 -0
  121. package/dist/app-items.js +524 -0
  122. package/dist/app-live.d.ts +84 -0
  123. package/dist/app-live.js +228 -0
  124. package/dist/app-meetings.d.ts +95 -0
  125. package/dist/app-meetings.js +26 -0
  126. package/dist/app-models.d.ts +271 -0
  127. package/dist/app-models.js +83 -0
  128. package/dist/app-push.d.ts +64 -0
  129. package/dist/app-push.js +178 -0
  130. package/dist/backend-lifecycle.d.ts +85 -0
  131. package/dist/backend-lifecycle.js +212 -0
  132. package/dist/browser-manifest.json +7 -0
  133. package/dist/browser-script-BWnwDjAC.js +711 -0
  134. package/dist/browser-script.d.ts +1 -0
  135. package/dist/browser-script.js +5 -0
  136. package/dist/browser-sign-in.d.ts +153 -0
  137. package/dist/browser-sign-in.js +410 -0
  138. package/dist/browser-tracker.d.ts +142 -0
  139. package/dist/browser-tracker.js +775 -0
  140. package/dist/browser-web-vitals.d.ts +22 -0
  141. package/dist/browser-web-vitals.js +116 -0
  142. package/dist/browser.d.ts +10 -0
  143. package/dist/browser.js +10 -0
  144. package/dist/download-stream.d.ts +16 -0
  145. package/dist/download-stream.js +55 -0
  146. package/dist/error-capture.d.ts +62 -0
  147. package/dist/error-capture.js +168 -0
  148. package/dist/hosted-app.d.ts +115 -0
  149. package/dist/hosted-app.js +275 -0
  150. package/dist/index.d.ts +2324 -0
  151. package/dist/index.js +2226 -0
  152. package/dist/ingest-operations.d.ts +483 -0
  153. package/dist/ingest-operations.js +154 -0
  154. package/dist/measurement.d.ts +164 -0
  155. package/dist/measurement.js +104 -0
  156. package/dist/mobile-adapter.d.ts +25 -0
  157. package/dist/mobile-adapter.js +57 -0
  158. package/dist/mobile-context.d.ts +32 -0
  159. package/dist/mobile-context.js +156 -0
  160. package/dist/mobile-queue.d.ts +22 -0
  161. package/dist/mobile-queue.js +73 -0
  162. package/dist/oauth.d.ts +1 -0
  163. package/dist/oauth.js +8 -0
  164. package/dist/parsers.d.ts +149 -0
  165. package/dist/parsers.js +115 -0
  166. package/dist/public-reads.d.ts +79 -0
  167. package/dist/public-reads.js +57 -0
  168. package/dist/reporting-catalogue.d.ts +264 -0
  169. package/dist/reporting-catalogue.js +5 -0
  170. package/dist/reporting-state.d.ts +46 -0
  171. package/dist/reporting-state.js +76 -0
  172. package/dist/response-lists.d.ts +16 -0
  173. package/dist/response-lists.generated.d.ts +7 -0
  174. package/dist/response-lists.generated.js +1927 -0
  175. package/dist/response-lists.js +70 -0
  176. package/dist/response-validation.d.ts +30 -0
  177. package/dist/response-validation.js +94 -0
  178. package/dist/runtime-readiness.d.ts +30 -0
  179. package/dist/runtime-readiness.js +150 -0
  180. package/dist/schema-registry.d.ts +45 -0
  181. package/dist/schema-registry.js +9 -0
  182. package/dist/secure-url.d.ts +4 -0
  183. package/dist/secure-url.js +23 -0
  184. package/dist/site-ai-owner.d.ts +34 -0
  185. package/dist/site-ai-owner.js +99 -0
  186. package/dist/site-monitor-reports.d.ts +15 -0
  187. package/dist/site-monitor-reports.js +87 -0
  188. package/dist/testing/fake-custd.d.ts +150 -0
  189. package/dist/testing/fake-custd.js +842 -0
  190. package/dist/testing/fake-results.d.ts +30 -0
  191. package/dist/testing/fake-results.js +293 -0
  192. package/dist/testing.d.ts +2 -0
  193. package/dist/testing.js +3 -0
  194. package/dist/version.d.ts +10 -0
  195. package/dist/version.js +10 -0
  196. package/package.json +57 -4
@@ -0,0 +1,989 @@
1
+ import type { AppRelease, AppReleaseCreateRequest, AppReleaseList, AppReleasePromotion, AppReleaseUploadedFile } from "./admin-app-releases.js";
2
+ import { type AppCreateRequest, type AppCreation, type AppDeployCredential, type AppDeployCredentialList, type AppListResponse, type AppOverview, type AppSignInRequest, type AppSummary } from "./admin-apps.js";
3
+ import type { AuthProjectAppLinkList, AuthProjectBrandLogo, AuthProjectDomainBinding, AuthProjectDomainBindRequest, AuthProjectDomainImageOverrideRequest, AuthProjectDomainMintRequest } from "./admin-auth-project-domain.js";
4
+ import type { RequestOptions } from "./index.js";
5
+ /** How an environment's identity boundary is shared. Custd owns both values. */
6
+ export type AuthProjectIdentityMode = "isolated" | "shared";
7
+ /**
8
+ * How an environment decides which principals an audience admits.
9
+ *
10
+ * "organisation_membership" is the pre-existing behaviour: any live member of the environment's
11
+ * organisation is admitted for every registered audience. "explicit_grants" admits an audience only
12
+ * when the principal holds a grant for that exact audience. The caller must declare it on creation
13
+ * and it cannot be changed afterwards.
14
+ */
15
+ export type AuthProjectAudienceEntitlementMode = "organisation_membership" | "explicit_grants";
16
+ /** Body of POST /api/v1/admin/auth-projects. */
17
+ export type AuthProjectCreateRequest = {
18
+ slug: string;
19
+ name: string;
20
+ environmentSlug: string;
21
+ identityMode: AuthProjectIdentityMode;
22
+ audienceEntitlementMode: AuthProjectAudienceEntitlementMode;
23
+ };
24
+ /** Body of POST /api/v1/admin/auth-projects/{projectId}/environments. */
25
+ export type AuthProjectEnvironmentCreateRequest = {
26
+ slug: string;
27
+ name: string;
28
+ identityMode: AuthProjectIdentityMode;
29
+ audienceEntitlementMode: AuthProjectAudienceEntitlementMode;
30
+ };
31
+ /** One project and the environment the call is scoped to. */
32
+ export type AuthProjectSummary = {
33
+ projectId: string;
34
+ slug: string;
35
+ name: string;
36
+ environmentId: string;
37
+ environmentSlug: string;
38
+ identityMode: AuthProjectIdentityMode;
39
+ audienceEntitlementMode: AuthProjectAudienceEntitlementMode;
40
+ /** Persisted company of this project; null means explicitly unbound, never inferred. */
41
+ companyUuid: string | null;
42
+ };
43
+ /** Result of binding an explicitly unbound project to the authenticated human owner's company. */
44
+ export type AuthProjectCompanyBinding = {
45
+ projectId: string;
46
+ companyUuid: string;
47
+ };
48
+ /** Response to creating a project. */
49
+ export type AuthProjectCreation = {
50
+ project: AuthProjectSummary;
51
+ operationId: string;
52
+ /** The same body and Idempotency-Key returned the original operation. */
53
+ replayed: boolean;
54
+ /** The environment is serving; it does not mean application login is enabled. */
55
+ runtimeReady: boolean;
56
+ };
57
+ /** One page of GET /api/v1/admin/auth-projects. */
58
+ export type AuthProjectListResponse = {
59
+ projects: AuthProjectSummary[];
60
+ /** Cursor for the next page; absent on the last page. */
61
+ nextAfter?: string;
62
+ };
63
+ /** One session a directory holds for an application principal. No token or credential. */
64
+ export type ApplicationSession = {
65
+ sessionId: string;
66
+ active: boolean;
67
+ authenticatedAt?: string;
68
+ authenticatorAssuranceLevel?: string;
69
+ expiresAt?: string;
70
+ issuedAt?: string;
71
+ };
72
+ /** Response to listing one application principal's live sessions. */
73
+ export type ApplicationSessionInventory = {
74
+ projectId: string;
75
+ environmentId: string;
76
+ directoryId: string;
77
+ principalId: string;
78
+ sessions: ApplicationSession[];
79
+ };
80
+ /**
81
+ * Query for GET /api/v1/admin/auth-projects/{projectId}/environments/{environmentId}/principals.
82
+ * `cursor` is the opaque `nextCursor` the previous page returned and is left off when
83
+ * empty. `limit` bounds the page; Custd applies its own default of 100 and maximum of
84
+ * 100, so a positive limit is passed through unchanged.
85
+ */
86
+ export type ApplicationPrincipalListQuery = {
87
+ cursor?: string;
88
+ limit?: number;
89
+ };
90
+ /**
91
+ * One application principal admitted to one directory. `providerSubject` is the
92
+ * opaque management address the principal routes take; `principalId` is the
93
+ * application identity UUID it resolves to.
94
+ */
95
+ export type ApplicationPrincipalListItem = {
96
+ principalId: string;
97
+ directoryId: string;
98
+ providerSubject: string;
99
+ enabled: boolean;
100
+ };
101
+ /** One page of an environment's application principals. */
102
+ export type ApplicationPrincipalListResponse = {
103
+ /** Empty, never null, when the environment holds no principals. */
104
+ principals: ApplicationPrincipalListItem[];
105
+ /** Cursor for the next page; absent on the last page. */
106
+ nextCursor?: string;
107
+ };
108
+ /** Body of POST .../principals/{providerSubject}/sessions/revoke. */
109
+ export type ApplicationSessionRevokeRequest = {
110
+ sessionId: string;
111
+ };
112
+ /** Response to revoking sessions. */
113
+ export type ApplicationSessionRevocation = {
114
+ projectId: string;
115
+ directoryId: string;
116
+ principalId: string;
117
+ /** Number of sessions ended. */
118
+ revoked: number;
119
+ sessionId?: string;
120
+ };
121
+ /** Body of POST .../principals/{providerSubject}/sessions/revoke-all. */
122
+ export type ApplicationSessionsRevokeAllRequest = {
123
+ /** Must be true; a missing field is never read as the strongest action. */
124
+ confirm: boolean;
125
+ };
126
+ /** Body of POST .../principals/{providerSubject}/memberships/revoke. */
127
+ export type ApplicationMembershipRevokeRequest = {
128
+ organisationId: string;
129
+ };
130
+ /** Response to ending a membership. The row is kept with removedAt stamped. */
131
+ export type ApplicationMembershipRevocation = {
132
+ projectId: string;
133
+ environmentId: string;
134
+ directoryId: string;
135
+ principalId: string;
136
+ organisationId: string;
137
+ removedAt: string;
138
+ removed: boolean;
139
+ };
140
+ /** Server-owned principal address; every identifier is escaped as a path segment. */
141
+ export type ApplicationPrincipalTarget = {
142
+ projectId: string;
143
+ environmentId: string;
144
+ directoryId: string;
145
+ providerSubject: string;
146
+ };
147
+ export type ApplicationPrincipalSuspension = {
148
+ projectId: string;
149
+ environmentId: string;
150
+ directoryId: string;
151
+ principalId: string;
152
+ enabled: boolean;
153
+ sessionsRevoked: number;
154
+ revision: number;
155
+ replayed: boolean;
156
+ };
157
+ export type ApplicationPrincipalMembershipView = {
158
+ organisationId: string;
159
+ organisationSlug: string;
160
+ organisationName: string;
161
+ role: "administrator" | "member" | "viewer";
162
+ createdAt: string;
163
+ removedAt?: string;
164
+ };
165
+ export type ApplicationPrincipalProfileValueView = {
166
+ fieldKey: string;
167
+ value: string;
168
+ };
169
+ export type ApplicationIdentityTraitValue = string | number | boolean | null | ApplicationIdentityTraitValue[] | {
170
+ [name: string]: ApplicationIdentityTraitValue;
171
+ };
172
+ export type ApplicationIdentityTrait = {
173
+ name: string;
174
+ value: ApplicationIdentityTraitValue;
175
+ };
176
+ export type ApplicationIdentityTraitsStatus = "included" | "incomplete" | "identity_absent" | "directory_unavailable" | "provider_unreadable";
177
+ export type ApplicationPrincipalIdentityExport = {
178
+ providerIssuer: string;
179
+ providerSubject: string;
180
+ traitsStatus: ApplicationIdentityTraitsStatus;
181
+ traits: ApplicationIdentityTrait[] | null;
182
+ };
183
+ /** Every public identity carries its own completeness status; never credential material. */
184
+ export type ApplicationPrincipalExport = {
185
+ projectId: string;
186
+ environmentId: string;
187
+ directoryId: string;
188
+ principalId: string;
189
+ enabled: boolean;
190
+ createdAt: string;
191
+ identities: ApplicationPrincipalIdentityExport[] | null;
192
+ memberships: ApplicationPrincipalMembershipView[] | null;
193
+ profileValues: ApplicationPrincipalProfileValueView[] | null;
194
+ };
195
+ /** Explicit confirmation is mandatory; erasure has no default strongest action. */
196
+ export type ApplicationPrincipalErasureRequest = {
197
+ confirm: true;
198
+ };
199
+ export type ApplicationPrincipalErasure = {
200
+ projectId: string;
201
+ environmentId: string;
202
+ directoryId: string;
203
+ principalId: string;
204
+ status: string;
205
+ invitations: number;
206
+ magicLinks: number;
207
+ memberships: number;
208
+ mappings: number;
209
+ profileValues: number;
210
+ principals: number;
211
+ revision: number;
212
+ replayed: boolean;
213
+ /** False on a replay whose receipt does not carry the original deletion counts. */
214
+ countsRecorded: boolean;
215
+ };
216
+ /** One application audience the environment admits and its provider registration settings. */
217
+ export type AuthProjectAudienceBinding = {
218
+ audience: string;
219
+ publicClient: boolean;
220
+ redirectUris: string[] | null;
221
+ postLogoutRedirectUris: string[] | null;
222
+ allowedOrigins: string[] | null;
223
+ };
224
+ /** One profile field's policy inside the environment's desired state. */
225
+ export type AuthProjectProfileField = {
226
+ key: string;
227
+ required: boolean;
228
+ visibleToApplication: boolean;
229
+ editableBy: string;
230
+ };
231
+ /**
232
+ * The environment configuration an apply writes. A consumer builds it from these
233
+ * fields alone: `audiences` carries the audience binding, and the remaining
234
+ * fields carry the rest. The legal scalar vocabularies are read from the
235
+ * environment's capability operation, not fixed here.
236
+ *
237
+ * The realm fields `loginPaused`, `entryPath`, `brandAccent`, `signInMethods` and
238
+ * `profileFields` follow one rule: leaving a field out, or sending null, keeps the
239
+ * stored value; `""` or `[]` clears it; `loginPaused` true or false sets the pause.
240
+ * A tool that manages only its own sections therefore never wipes the others.
241
+ */
242
+ export type AuthProjectDesiredState = {
243
+ identityMode: AuthProjectIdentityMode;
244
+ registrationPolicy: string;
245
+ /** Pauses the realm's sign-in. Leaving it out keeps the stored pause. */
246
+ loginPaused?: boolean | null;
247
+ audiences: AuthProjectAudienceBinding[] | null;
248
+ /** The profile-field policy, replaced in full when sent. Leaving it out keeps it; `[]` clears it. */
249
+ profileFields?: AuthProjectProfileField[] | null;
250
+ /** The realm's public entry path. Leaving it out keeps it; `""` clears it. */
251
+ entryPath?: string | null;
252
+ /** The sign-in accent as #rrggbb. Leaving it out keeps it; `""` restores the shared default. */
253
+ brandAccent?: string | null;
254
+ /** The application name shown on invitations and hosted sign-in; empty when none is chosen. */
255
+ displayName?: string;
256
+ /** Which surface owns the display name: `application` or `hosting`. Provenance, never authority. */
257
+ displayNameSource?: string;
258
+ /** With an empty displayName and a declared source, gives up a name that source set. Never returned. */
259
+ withdrawDisplayName?: boolean;
260
+ /**
261
+ * Narrows the offered sign-in methods. Leaving it out keeps the stored set; `[]` clears it, which
262
+ * offers whatever the credential store can complete.
263
+ */
264
+ signInMethods?: string[] | null;
265
+ /** The remembered-session offer. Leaving it out keeps the stored setting. */
266
+ applicationSessionPolicy?: AuthProjectApplicationSessionPolicy;
267
+ /** The social providers offered. Leaving it out keeps the stored section. */
268
+ socialSignIn?: AuthProjectSocialSignIn;
269
+ /**
270
+ * Serves the environment as a hosted application. Leaving it out keeps the
271
+ * stored section, so an apply cannot switch an app off by omission.
272
+ */
273
+ hosting?: AuthProjectHosting;
274
+ };
275
+ /**
276
+ * The environment configuration a status reports. It always carries the realm fields an
277
+ * apply may leave out: `entryPath` and `brandAccent` are `""` when unset, and `loginPaused`
278
+ * is false when sign-in is not paused.
279
+ */
280
+ export type AuthProjectConfiguredState = AuthProjectDesiredState & {
281
+ loginPaused: boolean;
282
+ profileFields: AuthProjectProfileField[] | null;
283
+ entryPath: string;
284
+ brandAccent: string;
285
+ signInMethods: string[] | null;
286
+ };
287
+ export type AuthProjectApplicationSessionPolicy = "offer_remember_me" | "short_only";
288
+ export type AuthProjectSocialProviderName = "google" | "github";
289
+ /** One social provider. `shared` uses Custd's provider app; `own` needs the owner's clientId and, once, its secret. */
290
+ export type AuthProjectSocialProvider = {
291
+ provider: AuthProjectSocialProviderName;
292
+ mode: "shared" | "own";
293
+ clientId?: string;
294
+ /** Write-only; leaving it out keeps the stored secret while clientId is unchanged. */
295
+ clientSecret?: string;
296
+ /** Read-only: whether a secret is stored. */
297
+ clientSecretSet?: boolean;
298
+ };
299
+ /** Read-only: what the sign-in directory offers now, and the callback URLs to register with an own provider app. */
300
+ export type AuthProjectSocialSignInStatus = {
301
+ callbackUrls: Array<{
302
+ provider: AuthProjectSocialProviderName;
303
+ url: string;
304
+ }> | null;
305
+ providers: Array<{
306
+ provider: AuthProjectSocialProviderName;
307
+ mode: "shared" | "own";
308
+ state: "active" | "applying" | "unavailable" | "waiting_for_directory";
309
+ note: string;
310
+ }> | null;
311
+ };
312
+ export type AuthProjectSocialSignIn = {
313
+ providers: AuthProjectSocialProvider[] | null;
314
+ status?: AuthProjectSocialSignInStatus;
315
+ };
316
+ /** Whether an environment is served as a hosted application. */
317
+ export type AuthProjectHostingMode = "disabled" | "enabled";
318
+ /** One capability a hosted application turns on; the discovery document lists the enabled ones. */
319
+ export type AuthProjectHostingCapability = "tracking" | "error_capture" | "app_data" | "sign_in";
320
+ /** The tenant data scope and resource the hosted Site writes to. */
321
+ export type AuthProjectHostingIngestTarget = {
322
+ scopeUuid: string;
323
+ resourceUuid: string;
324
+ };
325
+ /**
326
+ * The environment's application hosting section. The host is not part of it:
327
+ * the server derives it from the project and environment slugs and reports it
328
+ * on `AuthProjectStatus.hosting`. `ingestTarget` is required while enabled.
329
+ */
330
+ export type AuthProjectHosting = {
331
+ mode: AuthProjectHostingMode;
332
+ capabilities: AuthProjectHostingCapability[];
333
+ ingestTarget?: AuthProjectHostingIngestTarget;
334
+ };
335
+ /** The public client a hosted app signs people in with. */
336
+ export type AuthProjectHostedSignIn = {
337
+ clientId: string;
338
+ audience: string;
339
+ redirectUri: string;
340
+ postLogoutRedirectUri: string;
341
+ };
342
+ /** A hosted environment's derived serving identity. `signIn` is absent unless `sign_in` is on. */
343
+ export type AuthProjectHostingStatus = {
344
+ host: string;
345
+ origin: string;
346
+ signIn?: AuthProjectHostedSignIn;
347
+ };
348
+ /**
349
+ * Body of both the apply and preview operations. `expectedRevision` is the
350
+ * revision the caller read; Custd refuses an apply when the stored revision has
351
+ * moved.
352
+ */
353
+ export type AuthProjectDesiredStateRequest = {
354
+ desiredState: AuthProjectDesiredState;
355
+ expectedRevision: number;
356
+ };
357
+ /** The receipt an apply returns. */
358
+ export type AuthProjectOperation = {
359
+ id: string;
360
+ kind: string;
361
+ status: string;
362
+ revision: number;
363
+ idempotencyKey: string;
364
+ appliedAt: string;
365
+ /** The same body and Idempotency-Key returned the original operation. */
366
+ replayed: boolean;
367
+ };
368
+ /** One field-level change a preview reports. */
369
+ export type AuthProjectChange = {
370
+ field: string;
371
+ before: string;
372
+ after: string;
373
+ };
374
+ /** The field-level change set an apply would write. A preview writes nothing. */
375
+ export type AuthProjectPreview = {
376
+ projectId: string;
377
+ environmentId: string;
378
+ revision: number;
379
+ changes: AuthProjectChange[] | null;
380
+ sideEffects: string[] | null;
381
+ noOp: boolean;
382
+ };
383
+ /**
384
+ * One audience's provider registration read back from status. `clientId` is the
385
+ * derived `custd-app-<environmentId>-<audienceSlug>` the binding resolves to.
386
+ */
387
+ export type AuthProjectClientRegistration = {
388
+ audience: string;
389
+ clientId: string;
390
+ observed: boolean;
391
+ };
392
+ /** The registration half of status: the provider clients Custd is known to hold. */
393
+ export type AuthProjectClientSync = {
394
+ clientIds: string[] | null;
395
+ revision: number;
396
+ checkedAt: string;
397
+ current: boolean;
398
+ registrations: AuthProjectClientRegistration[] | null;
399
+ issuer?: string;
400
+ errorCategory?: string;
401
+ };
402
+ /**
403
+ * The environment's configured state and applied revision. `desired.audiences`
404
+ * is the audience binding the caller applied, so the
405
+ * project/environment/audience mapping is readable here after an apply.
406
+ * `reconciled` describes the configuration and `loginReady` describes
407
+ * execution; neither is inferred from the other. `clientSync` is absent until
408
+ * registration has run.
409
+ */
410
+ export type AuthProjectStatus = {
411
+ projectId: string;
412
+ environmentId: string;
413
+ revision: number;
414
+ desired: AuthProjectConfiguredState;
415
+ reconciled: boolean;
416
+ reconcileNote: string;
417
+ loginReady: boolean;
418
+ loginNote: string;
419
+ clientSync?: AuthProjectClientSync;
420
+ /** Persisted company of this environment's project; null means explicitly unbound, never inferred. */
421
+ companyUuid: string | null;
422
+ companySlug?: string;
423
+ /** The URL of the realm's uploaded logo, absent when it has none. */
424
+ brandLogoUrl?: string;
425
+ /** The derived serving identity of a hosted environment, absent when it is not served. */
426
+ hosting?: AuthProjectHostingStatus;
427
+ };
428
+ /** One directory credential-store action Custd defines. */
429
+ export type AuthProjectDirectoryAction = "enable" | "pause" | "resume" | "release";
430
+ /**
431
+ * The configured modes one environment may use, so a caller can show
432
+ * unavailable options honestly rather than offering them. The legal
433
+ * vocabularies are server-owned and surfaced unchanged.
434
+ */
435
+ export type AuthProjectCapability = {
436
+ identityModes: string[] | null;
437
+ registrationPolicies: string[] | null;
438
+ profileFieldKeys: string[] | null;
439
+ audienceConstraints: string;
440
+ subjectUniqueness: string;
441
+ };
442
+ /** One directory's credential-store state as reported. */
443
+ export type AuthProjectDirectoryView = {
444
+ poolId: string;
445
+ poolSlug: string;
446
+ state: string;
447
+ slotRef?: string;
448
+ runtimePublicUrl?: string;
449
+ revision: number;
450
+ attemptCount: number;
451
+ lastErrorCategory?: string;
452
+ readyAt?: string;
453
+ };
454
+ /**
455
+ * The deployment's declared credential-store pool. The pool is deployment-wide,
456
+ * so every environment's report carries the same numbers.
457
+ */
458
+ export type AuthProjectDirectoryCapacity = {
459
+ declared: number;
460
+ inUse: number;
461
+ free: number;
462
+ };
463
+ /**
464
+ * The environment's identity directories and their credential-store readiness.
465
+ * `ready` is true only when every directory that has a store row is serving.
466
+ */
467
+ export type AuthProjectDirectoryStatus = {
468
+ projectId: string;
469
+ environmentId: string;
470
+ revision: number;
471
+ directories: AuthProjectDirectoryView[] | null;
472
+ ready: boolean;
473
+ capacity: AuthProjectDirectoryCapacity;
474
+ };
475
+ /** Body of a directory action. It cannot name a store, runtime URL or state. */
476
+ export type AuthProjectDirectoryRequest = {
477
+ poolId: string;
478
+ expectedRevision: number;
479
+ };
480
+ /** One organisation an environment's directory holds. It carries no member data. */
481
+ export type AuthProjectEnvironmentOrganisation = {
482
+ organisationId: string;
483
+ slug: string;
484
+ name: string;
485
+ identityPoolId: string;
486
+ };
487
+ /** The named list an environment's organisation read answers with. */
488
+ export type AuthProjectEnvironmentOrganisationList = {
489
+ projectId: string;
490
+ environmentId: string;
491
+ organisations: AuthProjectEnvironmentOrganisation[] | null;
492
+ };
493
+ /** Body of clients/reconcile: the revision the caller read. */
494
+ export type AuthProjectClientSyncRequest = {
495
+ expectedRevision: number;
496
+ };
497
+ /** One audience's reconcile outcome, reporting what the provider was observed to hold. */
498
+ export type AuthProjectClientSyncRegistration = {
499
+ audience: string;
500
+ clientId: string;
501
+ action: string;
502
+ reason?: string;
503
+ };
504
+ /**
505
+ * One reconcile's outcome. `superseded` reports that the environment's
506
+ * configuration moved while this run was writing.
507
+ */
508
+ export type AuthProjectClientSyncReport = {
509
+ environmentId: string;
510
+ revision: number;
511
+ checkedAt: string;
512
+ errorCategory?: string;
513
+ superseded: boolean;
514
+ clients: AuthProjectClientSyncRegistration[] | null;
515
+ };
516
+ /** One invitation as a caller sees it. It never carries the token or its hash. */
517
+ export type AuthProjectInvitation = {
518
+ invitationId: string;
519
+ email: string;
520
+ membershipRole: string;
521
+ poolId: string;
522
+ organisationId: string;
523
+ expiresAt: string;
524
+ createdAt: string;
525
+ /** open, accepted, revoked or expired. */
526
+ state: string;
527
+ /** Only meaningful on the response to issuing an invitation; absent elsewhere. */
528
+ delivered?: boolean;
529
+ /** Server-recorded acceptance linkage. Unavailable when absent/null; never infer from email. */
530
+ acceptedPrincipalId?: string | null;
531
+ };
532
+ /** Body of POST .../invitations. It cannot name a project, environment, token or state. */
533
+ export type AuthProjectInvitationIssueRequest = {
534
+ poolId: string;
535
+ organisationId: string;
536
+ email: string;
537
+ membershipRole: string;
538
+ expiresInSeconds: number;
539
+ };
540
+ /** Response to issuing one invitation; `inviteUrl` is returned exactly once. */
541
+ export type AuthProjectInvitationIssued = {
542
+ invitation: AuthProjectInvitation;
543
+ inviteUrl: string;
544
+ replayed: boolean;
545
+ };
546
+ /** An environment's invitations, newest first. */
547
+ export type AuthProjectInvitationListResponse = {
548
+ invitations: AuthProjectInvitation[] | null;
549
+ };
550
+ /** Body of POST .../invitations/revoke. */
551
+ export type AuthProjectInvitationRevocationRequest = {
552
+ invitationId: string;
553
+ };
554
+ /** Body of POST .../invitations/redeliver. It cannot carry a link. */
555
+ export type AuthProjectInvitationRedeliveryRequest = {
556
+ invitationId: string;
557
+ };
558
+ /** One audience's admission state; managed means explicit grants are required. */
559
+ export type PrincipalAudience = {
560
+ audience: string;
561
+ granted: boolean;
562
+ managed: boolean;
563
+ };
564
+ export type PrincipalAudiences = {
565
+ audienceEntitlementMode: AuthProjectAudienceEntitlementMode;
566
+ audiences: PrincipalAudience[];
567
+ };
568
+ /** Directory, organisation and exact registered audience for a grant or revoke. */
569
+ export type AudienceGrantRequest = {
570
+ directoryId: string;
571
+ audience: string;
572
+ organisationId: string;
573
+ };
574
+ export type AudienceGrant = {
575
+ principalId: string;
576
+ organisationId: string;
577
+ audience: string;
578
+ granted: boolean;
579
+ managed: boolean;
580
+ };
581
+ /** One field of a principal's profile as the policy discloses it. */
582
+ export type ApplicationProfileField = {
583
+ fieldKey: string;
584
+ value?: string;
585
+ present: boolean;
586
+ required: boolean;
587
+ editableBy: "user" | "provider" | "administrator";
588
+ editable: boolean;
589
+ };
590
+ /**
591
+ * One principal's profile. It carries only the fields the policy marks visible
592
+ * and names required fields with no stored value as `missingRequired`.
593
+ */
594
+ export type ApplicationPrincipalProfile = {
595
+ projectId: string;
596
+ environmentId: string;
597
+ directoryId: string;
598
+ principalId: string;
599
+ fields: ApplicationProfileField[] | null;
600
+ missingRequired: string[] | null;
601
+ };
602
+ /** One field value a caller asks to store. */
603
+ export type ApplicationProfileValue = {
604
+ fieldKey: string;
605
+ value: string;
606
+ };
607
+ /** Body of POST .../profile. The boundary comes from the address, not the body. */
608
+ export type ApplicationProfileValuesRequest = {
609
+ values: ApplicationProfileValue[];
610
+ };
611
+ /** One organisation an application principal may act for, with its role there. */
612
+ export type ApplicationMembershipChoice = {
613
+ organisationId: string;
614
+ organisationSlug: string;
615
+ organisationName: string;
616
+ role: "administrator" | "member" | "viewer";
617
+ };
618
+ /** The set of organisations one application principal may act for. */
619
+ export type ApplicationMembershipContext = {
620
+ projectId: string;
621
+ environmentId: string;
622
+ directoryId: string;
623
+ principalId: string;
624
+ memberships: ApplicationMembershipChoice[] | null;
625
+ };
626
+ /**
627
+ * Body of POST /auth-projects/{projectId}/delete. `confirmSlug` must equal the
628
+ * stored project slug exactly.
629
+ */
630
+ export type AuthProjectDeletionRequest = {
631
+ confirmSlug: string;
632
+ };
633
+ /** What deleting a project released, grouped so the receipt documents the cascade. */
634
+ export type AuthProjectReleasedResources = {
635
+ environments: number;
636
+ directories: number;
637
+ organisations: number;
638
+ memberships: number;
639
+ invitations: number;
640
+ audienceBindings: number;
641
+ operations: number;
642
+ };
643
+ /** The receipt for a deleted project. */
644
+ export type AuthProjectDeletion = {
645
+ projectId: string;
646
+ slug: string;
647
+ name: string;
648
+ released: AuthProjectReleasedResources;
649
+ /** The hosted application data removed from each environment. */
650
+ hosting: AuthProjectHostingRemoval[] | null;
651
+ };
652
+ /** The hosted application rows removed with one environment. */
653
+ export type AuthEnvironmentHostingRemoval = {
654
+ sites: number;
655
+ releases: number;
656
+ releaseObjects: number;
657
+ shareCardObjects: number;
658
+ items: number;
659
+ links: number;
660
+ collectionEntries: number;
661
+ measurementProjects: number;
662
+ meetings: number;
663
+ uncertaintyModels: number;
664
+ requestSummaries: number;
665
+ alertRules: number;
666
+ alertSubscriptions: number;
667
+ alertWebhooks: number;
668
+ alertDeliveries: number;
669
+ };
670
+ export type AuthProjectHostingRemoval = {
671
+ environmentId: string;
672
+ slug: string;
673
+ removed: AuthEnvironmentHostingRemoval;
674
+ };
675
+ /**
676
+ * Body of POST .../environments/{environmentId}/delete. `confirmSlug` must equal
677
+ * the stored environment slug exactly.
678
+ */
679
+ export type AuthProjectEnvironmentDeletionRequest = {
680
+ confirmSlug: string;
681
+ };
682
+ /** What deleting one environment released, grouped for the receipt. */
683
+ export type AuthProjectEnvironmentReleasedResources = {
684
+ directories: number;
685
+ organisations: number;
686
+ memberships: number;
687
+ invitations: number;
688
+ audienceBindings: number;
689
+ operations: number;
690
+ profileValues: number;
691
+ };
692
+ /** The receipt for a deleted environment; it names both project and environment. */
693
+ export type AuthProjectEnvironmentDeletion = {
694
+ projectId: string;
695
+ projectSlug: string;
696
+ environmentId: string;
697
+ slug: string;
698
+ name: string;
699
+ released: AuthProjectEnvironmentReleasedResources;
700
+ hosting: AuthEnvironmentHostingRemoval;
701
+ };
702
+ /**
703
+ * Body of POST .../environments/{environmentId}/offboard. `confirmSlug` must equal
704
+ * the stored environment slug exactly.
705
+ */
706
+ export type AuthProjectEnvironmentOffboardRequest = {
707
+ confirmSlug: string;
708
+ };
709
+ /** The provider half of one offboard; `status` is complete, pending or unavailable. */
710
+ export type AuthEnvironmentClientCleanup = {
711
+ status: string;
712
+ clientsRemoved: number;
713
+ errorCategory?: string;
714
+ };
715
+ /** What an offboard kept, so the receipt states plainly that nothing was destroyed. */
716
+ export type AuthEnvironmentRetainedResources = {
717
+ directories: number;
718
+ organisations: number;
719
+ memberships: number;
720
+ invitations: number;
721
+ profileValues: number;
722
+ reservedSlots: number;
723
+ };
724
+ /**
725
+ * The receipt for one offboarded environment: its authority is withdrawn and its
726
+ * owned provider clients reconciled away, while the environment and its identity
727
+ * data are retained.
728
+ */
729
+ export type AuthProjectEnvironmentOffboarding = {
730
+ projectId: string;
731
+ projectSlug: string;
732
+ environmentId: string;
733
+ slug: string;
734
+ name: string;
735
+ authorityWithdrawn: boolean;
736
+ loginPaused: boolean;
737
+ revision: number;
738
+ clientCleanup: AuthEnvironmentClientCleanup;
739
+ retained: AuthEnvironmentRetainedResources;
740
+ hosting: AuthEnvironmentHostingWithdrawal;
741
+ };
742
+ /** What offboarding withdrew from a hosted environment; `status` says whether it finished. */
743
+ export type AuthEnvironmentHostingWithdrawal = {
744
+ status: string;
745
+ sites: number;
746
+ activeReleases: number;
747
+ alertRules: number;
748
+ alertDeliveries: number;
749
+ errorCategory?: string;
750
+ };
751
+ /**
752
+ * One step of a realm provision, reported so a caller knows where it stopped.
753
+ * The names match the service's ordering: the apply's implicit registration is
754
+ * re-reconciled after the directory enable moves the authority revision.
755
+ */
756
+ export type AuthProjectRealmStep = "apply" | "directory_enable" | "client_reconcile" | "status";
757
+ /**
758
+ * One environment's realm setup: the state to apply and the directory to enable.
759
+ * It carries no directory revision: the directory enable must name the revision
760
+ * the apply produced, which the helper derives rather than trusting a caller.
761
+ */
762
+ export type AuthProjectRealmProvisionRequest = {
763
+ desiredStateRequest: AuthProjectDesiredStateRequest;
764
+ directoryPoolId: string;
765
+ };
766
+ /**
767
+ * What a realm provision wrote and, on failure, which step failed. Completed
768
+ * steps are always kept so a caller can resume from `failedStep`.
769
+ */
770
+ export type AuthProjectRealmProvisionReceipt = {
771
+ projectId: string;
772
+ environmentId: string;
773
+ apply?: AuthProjectOperation;
774
+ directory?: AuthProjectOperation;
775
+ reconcile?: AuthProjectClientSyncReport;
776
+ status?: AuthProjectStatus;
777
+ /** Empty only when every step completed and the realm converged. */
778
+ failedStep?: AuthProjectRealmStep;
779
+ };
780
+ /**
781
+ * Raised when every step ran but the provider registrations are not known to
782
+ * describe the environment's current configuration: the honest answer for a
783
+ * provision that is not finished, rather than a success whose status is
784
+ * visibly unreconciled.
785
+ */
786
+ export declare class AuthProjectRealmNotConvergedError extends Error {
787
+ readonly reconcileNote: string;
788
+ constructor(reconcileNote: string);
789
+ }
790
+ /**
791
+ * Raised when a realm provision stops early. It carries the failed step and the
792
+ * receipt of every step that completed.
793
+ */
794
+ export declare class AuthProjectRealmProvisionError extends Error {
795
+ readonly failedStep: AuthProjectRealmStep;
796
+ readonly receipt: AuthProjectRealmProvisionReceipt;
797
+ readonly cause?: unknown;
798
+ constructor(failedStep: AuthProjectRealmStep, receipt: AuthProjectRealmProvisionReceipt, cause?: unknown);
799
+ }
800
+ type AdminRequester = <T>(method: string, path: string, body?: unknown, options?: RequestOptions) => Promise<T>;
801
+ export declare class AuthProjectAdminClient {
802
+ private readonly request;
803
+ constructor(request: AdminRequester);
804
+ /**
805
+ * List up to 100 environments the named owning user owns or operates. Pass the
806
+ * previous page's `nextAfter` as `after` for the next page.
807
+ */
808
+ listProjects(after?: string, options?: RequestOptions): Promise<AuthProjectListResponse>;
809
+ /** Create the named owning user's project ownership, identity pool and first paused environment. */
810
+ createProject(body: AuthProjectCreateRequest, options?: RequestOptions): Promise<AuthProjectCreation>;
811
+ /**
812
+ * Record the authenticated human owner's company on an explicitly unbound historical project.
813
+ *
814
+ * It is the actionable step a `company_binding_required` refusal names: the body is empty, Custd
815
+ * refuses a machine credential and a foreign rebind, and repeating it for the same company is
816
+ * safe, so it carries no idempotency key.
817
+ */
818
+ bindProjectCompany(projectId: string, options?: RequestOptions): Promise<AuthProjectCompanyBinding>;
819
+ /** Add a further environment to an existing project. The new environment starts paused. */
820
+ createEnvironment(projectId: string, body: AuthProjectEnvironmentCreateRequest, options?: RequestOptions): Promise<AuthProjectSummary>;
821
+ /** Report the sessions the directory currently holds for one application principal. */
822
+ listPrincipalSessions(projectId: string, environmentId: string, directoryId: string, providerSubject: string, options?: RequestOptions): Promise<ApplicationSessionInventory>;
823
+ /** End exactly one of a principal's sessions, leaving its other sessions untouched. */
824
+ revokePrincipalSession(projectId: string, environmentId: string, directoryId: string, providerSubject: string, body: ApplicationSessionRevokeRequest, options?: RequestOptions): Promise<ApplicationSessionRevocation>;
825
+ /** End every session the directory holds for one application principal. */
826
+ revokePrincipalSessions(projectId: string, environmentId: string, directoryId: string, providerSubject: string, body: ApplicationSessionsRevokeAllRequest, options?: RequestOptions): Promise<ApplicationSessionRevocation>;
827
+ /** Withdraw authority and revoke the sessions of every identity owned by this principal. */
828
+ suspendPrincipal(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<ApplicationPrincipalSuspension>;
829
+ /** Restore authority without changing factors; a pending erasure cannot be restored. */
830
+ restorePrincipal(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<ApplicationPrincipalSuspension>;
831
+ /** Read the portable public record and its provider-trait completeness status. */
832
+ exportPrincipal(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<ApplicationPrincipalExport>;
833
+ /** Erase the complete principal-owned mapping set through the server's durable operation. */
834
+ erasePrincipal(target: ApplicationPrincipalTarget, body: ApplicationPrincipalErasureRequest, options?: RequestOptions): Promise<ApplicationPrincipalErasure>;
835
+ /** End one application identity's membership of one organisation. */
836
+ revokePrincipalMembership(projectId: string, environmentId: string, directoryId: string, providerSubject: string, body: ApplicationMembershipRevokeRequest, options?: RequestOptions): Promise<ApplicationMembershipRevocation>;
837
+ /**
838
+ * Write the environment's desired state and return the operation receipt.
839
+ * Custd makes it retry-safe per Idempotency-Key, so the key is required. The
840
+ * audience binding the consumer's edge admits against is written here and read
841
+ * back through `getEnvironmentStatus`.
842
+ */
843
+ applyEnvironmentDesiredState(projectId: string, environmentId: string, body: AuthProjectDesiredStateRequest, options?: RequestOptions): Promise<AuthProjectOperation>;
844
+ /** Report the field-level changes an apply would make. A preview writes nothing. */
845
+ previewEnvironmentDesiredState(projectId: string, environmentId: string, body: AuthProjectDesiredStateRequest, options?: RequestOptions): Promise<AuthProjectPreview>;
846
+ /**
847
+ * Read the environment's configured state and applied revision. `status.desired.audiences`
848
+ * carries the applied audience binding and `status.environmentId` the
849
+ * environment binding, so a caller reads the mapping back here after an apply.
850
+ */
851
+ getEnvironmentStatus(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectStatus>;
852
+ /** Read the environment's most recent releases. Omit `limit` for the server default (20, capped at 100). */
853
+ listAppReleases(projectId: string, environmentId: string, limit?: number, options?: RequestOptions): Promise<AppReleaseList>;
854
+ /** Record a new, pending release from its manifest. */
855
+ createAppRelease(projectId: string, environmentId: string, body: AppReleaseCreateRequest, options?: RequestOptions): Promise<AppRelease>;
856
+ /**
857
+ * Store one manifest file of a pending release as its raw bytes. The server
858
+ * refuses bytes whose size or sha256 differ from the manifest.
859
+ */
860
+ uploadAppReleaseFile(projectId: string, environmentId: string, releaseId: string, filePath: string, bytes: Uint8Array, options?: RequestOptions): Promise<AppReleaseUploadedFile>;
861
+ /** Read every file back and mark the release verified when all of them match the manifest. */
862
+ verifyAppRelease(projectId: string, environmentId: string, releaseId: string, options?: RequestOptions): Promise<AppRelease>;
863
+ /** Make a verified release the one the environment's host serves. */
864
+ promoteAppRelease(projectId: string, environmentId: string, releaseId: string, options?: RequestOptions): Promise<AppReleasePromotion>;
865
+ /**
866
+ * Create an app with hosting, traffic, error capture and app data on; `signIn` also turns on
867
+ * invite-only sign-in. Repeating the same body and Idempotency-Key finishes a create that did
868
+ * not complete (`app_setup_incomplete`) or reads the same app back, so the key is required.
869
+ */
870
+ createApp(body: AppCreateRequest, options?: RequestOptions): Promise<AppCreation>;
871
+ /** List one page of the caller's apps, worst status first. Pass the previous `nextAfter` as `after`. */
872
+ listApps(after?: string, options?: RequestOptions): Promise<AppListResponse>;
873
+ /** Read one app by its slug, with its latest release and link counts. */
874
+ getApp(slug: string, options?: RequestOptions): Promise<AppOverview>;
875
+ /** Create a CI credential that can deploy only this app, acting for the caller. Its secret is shown once. */
876
+ createAppDeployCredential(slug: string, options?: RequestOptions): Promise<AppDeployCredential>;
877
+ /** List the app's deploy credentials, newest first. */
878
+ listAppDeployCredentials(slug: string, options?: RequestOptions): Promise<AppDeployCredentialList>;
879
+ /** Take the app offline, keeping its releases and data. The Idempotency-Key finishes an incomplete pause. */
880
+ pauseApp(slug: string, options?: RequestOptions): Promise<AppSummary>;
881
+ /** Serve the app again, with its newest verified release when none is active. */
882
+ resumeApp(slug: string, options?: RequestOptions): Promise<AppSummary>;
883
+ /** Retry the app's Site registration and sign-in setup from its saved hosting configuration. */
884
+ repairApp(slug: string, options?: RequestOptions): Promise<AppSummary>;
885
+ /** Change who may sign in to the app. Only the project owner may. */
886
+ setAppSignIn(slug: string, body: AppSignInRequest, options?: RequestOptions): Promise<AppSummary>;
887
+ /** Remove a deploy credential. Repeating a delete that failed part-way finishes it. */
888
+ deleteAppDeployCredential(slug: string, clientId: string, options?: RequestOptions): Promise<void>;
889
+ /** Read the environment's authentication hostname, its state and the DNS records it needs. */
890
+ getEnvironmentAuthDomain(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
891
+ /** Reserve a verified hostname for the environment. */
892
+ bindEnvironmentAuthDomain(projectId: string, environmentId: string, body: AuthProjectDomainBindRequest, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
893
+ /** Reserve a platform-generated issuer hostname for an installed environment. Operators only. */
894
+ mintEnvironmentAuthDomain(projectId: string, environmentId: string, body: AuthProjectDomainMintRequest, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
895
+ /** Claim installed capacity for a reserved realm. A replay returns the same claim. */
896
+ admitEnvironmentAuthDomain(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
897
+ /** Ask for the hostname to be reconciled again. */
898
+ retryEnvironmentAuthDomain(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
899
+ /** Disable the issuer while keeping the hostname reserved. */
900
+ disableEnvironmentAuthDomain(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
901
+ /** Start the cleanup that frees the hostname for a new binding. */
902
+ releaseEnvironmentAuthDomain(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
903
+ /** Pin one realm component to an exact incident image until it expires. System operators only. */
904
+ setEnvironmentAuthDomainImageOverride(projectId: string, environmentId: string, body: AuthProjectDomainImageOverrideRequest, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
905
+ /** End the realm's incident image override. */
906
+ clearEnvironmentAuthDomainImageOverride(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDomainBinding>;
907
+ /** Upload or replace the realm's brand logo. The server checks the image format from its bytes. */
908
+ setAuthProjectBrandLogo(projectId: string, environmentId: string, logo: Blob, filename?: string, options?: RequestOptions): Promise<AuthProjectBrandLogo>;
909
+ /** Remove the realm's brand logo. */
910
+ clearAuthProjectBrandLogo(projectId: string, environmentId: string, options?: RequestOptions): Promise<void>;
911
+ /** List the owner and share links to app items in the environment. */
912
+ listEnvironmentAppLinks(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectAppLinkList>;
913
+ private authDomainRequest;
914
+ /** Read the environment's supported auth configuration. */
915
+ getEnvironmentCapability(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectCapability>;
916
+ /** Report every directory in the environment and whether it is fully stored. */
917
+ listDirectories(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectDirectoryStatus>;
918
+ /** Enable, pause, resume or release one directory credential store. */
919
+ actOnDirectory(projectId: string, environmentId: string, action: AuthProjectDirectoryAction, body: AuthProjectDirectoryRequest, options?: RequestOptions): Promise<AuthProjectOperation>;
920
+ /** Report the organisations one environment's directory holds. */
921
+ listEnvironmentOrganisations(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectEnvironmentOrganisationList>;
922
+ /**
923
+ * List the application principals every directory in the environment holds. The
924
+ * owning-user header is taken from `options` like the other project-auth reads,
925
+ * and paging continues with the opaque `nextCursor` the previous page returned.
926
+ */
927
+ listPrincipals(projectId: string, environmentId: string, query?: ApplicationPrincipalListQuery, options?: RequestOptions): Promise<ApplicationPrincipalListResponse>;
928
+ /** Register the environment's application clients with the provider. */
929
+ reconcileEnvironmentClients(projectId: string, environmentId: string, body: AuthProjectClientSyncRequest, options?: RequestOptions): Promise<AuthProjectClientSyncReport>;
930
+ /** Report the environment's invitations, newest first. */
931
+ listInvitations(projectId: string, environmentId: string, options?: RequestOptions): Promise<AuthProjectInvitationListResponse>;
932
+ /** Invite one address into a directory and return the one-time link. */
933
+ issueInvitation(projectId: string, environmentId: string, body: AuthProjectInvitationIssueRequest, options?: RequestOptions): Promise<AuthProjectInvitationIssued>;
934
+ /** Withdraw a live invitation before it is used. */
935
+ revokeInvitation(projectId: string, environmentId: string, body: AuthProjectInvitationRevocationRequest, options?: RequestOptions): Promise<AuthProjectInvitation>;
936
+ /** Replace one live invitation's link and return the fresh one-time link. */
937
+ redeliverInvitation(projectId: string, environmentId: string, body: AuthProjectInvitationRedeliveryRequest, options?: RequestOptions): Promise<AuthProjectInvitationIssued>;
938
+ /** List admission state for the existing directory/provider-subject address. */
939
+ listPrincipalAudiences(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<PrincipalAudiences>;
940
+ /** Grant exactly one audience; idempotent and audited server-side. */
941
+ grantPrincipalAudience(target: ApplicationPrincipalTarget, body: AudienceGrantRequest, options?: RequestOptions): Promise<AudienceGrant>;
942
+ /** Revoke only this audience, leaving sibling audiences and organisation membership untouched.
943
+ * Idempotent and audited server-side; no replacement audience is required.
944
+ */
945
+ revokePrincipalAudience(target: ApplicationPrincipalTarget, body: AudienceGrantRequest, options?: RequestOptions): Promise<AudienceGrant>;
946
+ /** Read one application principal's profile values. */
947
+ getPrincipalProfile(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<ApplicationPrincipalProfile>;
948
+ /** Set one application principal's profile values as an upsert. */
949
+ setPrincipalProfile(target: ApplicationPrincipalTarget, body: ApplicationProfileValuesRequest, options?: RequestOptions): Promise<ApplicationPrincipalProfile>;
950
+ /** List the organisations one application principal may act for. */
951
+ listPrincipalMemberships(target: ApplicationPrincipalTarget, options?: RequestOptions): Promise<ApplicationMembershipContext>;
952
+ /** Delete a project and everything scoped to it. `confirmSlug` must name the stored project slug. */
953
+ deleteProject(projectId: string, body: AuthProjectDeletionRequest, options?: RequestOptions): Promise<AuthProjectDeletion>;
954
+ /** Delete one environment without touching its siblings. `confirmSlug` must name the stored environment slug. */
955
+ deleteEnvironment(projectId: string, environmentId: string, body: AuthProjectEnvironmentDeletionRequest, options?: RequestOptions): Promise<AuthProjectEnvironmentDeletion>;
956
+ /**
957
+ * Withdraw one environment's authority and reconcile its owned provider clients
958
+ * away while retaining the environment and its identity data. It is the safe step
959
+ * for an environment whose directory still holds a credential store, which a
960
+ * physical delete refuses. `confirmSlug` must name the stored environment slug.
961
+ * The route has no idempotency key: a retry resumes the provider stage.
962
+ */
963
+ offboardEnvironment(projectId: string, environmentId: string, body: AuthProjectEnvironmentOffboardRequest, options?: RequestOptions): Promise<AuthProjectEnvironmentOffboarding>;
964
+ /**
965
+ * Set one environment's identity realm up through the public control plane in
966
+ * the order the service requires, so a consumer does not have to sequence
967
+ * separate calls itself. Each write advances the environment's authority
968
+ * revision, so the order matters:
969
+ *
970
+ * 1. Apply the desired state (which also runs the client registration it implies).
971
+ * 2. Enable the directory credential store, naming the revision the apply produced.
972
+ * The service compares that revision against the environment's current revision,
973
+ * so a caller-supplied revision would conflict on every fresh setup.
974
+ * 3. Reconcile the environment's clients at the revision the directory enable
975
+ * produced, because the enable moved the revision past the observation the apply
976
+ * recorded and status reports a stale observation as unreconciled.
977
+ * 4. Read status and refuse to report success while the provider is not known to
978
+ * hold the configured registrations.
979
+ *
980
+ * Each mutating step derives a stable key from the base `idempotencyKey` in
981
+ * options, so retrying the whole call with the same base key resumes rather
982
+ * than duplicating. The base must be 8 to 111 characters, so every derived key
983
+ * stays within the service's 8 to 128 bound. On failure the thrown
984
+ * {@link AuthProjectRealmProvisionError} carries `failedStep` and the receipt
985
+ * of every step that completed, with the original error as its `cause`.
986
+ */
987
+ provisionRealm(projectId: string, environmentId: string, request: AuthProjectRealmProvisionRequest, options?: RequestOptions): Promise<AuthProjectRealmProvisionReceipt>;
988
+ }
989
+ export {};