@tearleads/client-sdk 0.1.93 → 0.1.95
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/client/root/index.d.ts +12 -2
- package/client/root/index.js +10 -1
- package/client/root/index.js.map +1 -1
- package/client/session/index.js +7 -4
- package/client/session/index.js.map +1 -1
- package/client/session/sessionLoginRefusal.js +17 -0
- package/client/session/sessionLoginRefusal.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +6 -1
- package/internal/api-client/ApiClient.js +17 -3
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/accountSuspension.d.ts +12 -0
- package/internal/api-client/accountSuspension.js +23 -0
- package/internal/api-client/accountSuspension.js.map +1 -0
- package/internal/api-client/index.d.ts +1 -0
- package/internal/api-client/index.js +1 -0
- package/internal/api-client/index.js.map +1 -1
- package/internal/validators/operation/auth.d.ts +104 -2
- package/internal/validators/operation/auth.js +2 -1
- package/internal/validators/operation/auth.js.map +1 -1
- package/internal/validators/operation/index.d.ts +2 -0
- package/internal/validators/operation/index.js +2 -0
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/registry.d.ts +5 -0
- package/internal/validators/operation/registry.js +5 -0
- package/internal/validators/operation/registry.js.map +1 -1
- package/internal/validators/operation/root.d.ts +8 -0
- package/internal/validators/operation/rootAudit.d.ts +4 -4
- package/internal/validators/operation/rootOpsHealth.d.ts +287 -0
- package/internal/validators/operation/rootOpsHealth.js +18 -0
- package/internal/validators/operation/rootOpsHealth.js.map +1 -0
- package/internal/validators/operation/rootOrganizations.d.ts +4 -0
- package/internal/validators/operation/rootSuspension.d.ts +352 -0
- package/internal/validators/operation/rootSuspension.js +45 -0
- package/internal/validators/operation/rootSuspension.js.map +1 -0
- package/internal/validators/response/auth/index.d.ts +1 -1
- package/internal/validators/response/auth/index.js +1 -1
- package/internal/validators/response/auth/index.js.map +1 -1
- package/internal/validators/response/auth/verify.d.ts +15 -0
- package/internal/validators/response/auth/verify.js +9 -0
- package/internal/validators/response/auth/verify.js.map +1 -1
- package/internal/validators/response/index.d.ts +3 -2
- package/internal/validators/response/index.js +3 -2
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/root.d.ts +60 -0
- package/internal/validators/response/root.js +9 -0
- package/internal/validators/response/root.js.map +1 -1
- package/internal/validators/response/rootAudit.d.ts +11 -10
- package/internal/validators/response/rootAudit.js +16 -1
- package/internal/validators/response/rootAudit.js.map +1 -1
- package/internal/validators/response/rootOpsHealth.d.ts +224 -0
- package/internal/validators/response/rootOpsHealth.js +79 -0
- package/internal/validators/response/rootOpsHealth.js.map +1 -0
- package/internal/validators/response/rootOrganizations.d.ts +8 -0
- package/package.json +1 -1
- package/workflows/root/audit.d.ts +11 -4
- package/workflows/root/audit.js.map +1 -1
- package/workflows/root/index.d.ts +2 -0
- package/workflows/root/index.js +2 -0
- package/workflows/root/index.js.map +1 -1
- package/workflows/root/opsHealth.d.ts +9 -0
- package/workflows/root/opsHealth.js +5 -0
- package/workflows/root/opsHealth.js.map +1 -0
- package/workflows/root/suspension.d.ts +13 -0
- package/workflows/root/suspension.js +17 -0
- package/workflows/root/suspension.js.map +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ErrorResponseSchema, RootIdentitySuspensionResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
|
|
2
|
+
import { defineJsonOperation } from "./definition.js";
|
|
3
|
+
import { RootIdentityPathParamsSchema } from "./root.js";
|
|
4
|
+
const rootSuspensionFailureResponses = {
|
|
5
|
+
400: ErrorResponseSchema,
|
|
6
|
+
401: SessionFailureResponseSchema,
|
|
7
|
+
403: ErrorResponseSchema,
|
|
8
|
+
404: ErrorResponseSchema,
|
|
9
|
+
500: ErrorResponseSchema,
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Suspends an identity: its devices can no longer sign in, and every live
|
|
13
|
+
* session is revoked. Repeating it is harmless and sweeps sessions again.
|
|
14
|
+
* Refused with 409 for a root identity or the operator's own, since root
|
|
15
|
+
* standing is managed only through the API CLI.
|
|
16
|
+
*/
|
|
17
|
+
export const suspendRootIdentityOperation = defineJsonOperation({
|
|
18
|
+
auth: "session",
|
|
19
|
+
failureResponses: {
|
|
20
|
+
...rootSuspensionFailureResponses,
|
|
21
|
+
409: ErrorResponseSchema,
|
|
22
|
+
},
|
|
23
|
+
failureStatuses: [400, 401, 403, 404, 409, 500],
|
|
24
|
+
id: "root.identities.suspension.put",
|
|
25
|
+
method: "PUT",
|
|
26
|
+
params: RootIdentityPathParamsSchema,
|
|
27
|
+
path: "/root/identities/{userId}/suspension",
|
|
28
|
+
responses: {
|
|
29
|
+
200: RootIdentitySuspensionResponseSchema,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
/** Lifts a suspension so the identity's devices can sign in again. */
|
|
33
|
+
export const liftRootIdentitySuspensionOperation = defineJsonOperation({
|
|
34
|
+
auth: "session",
|
|
35
|
+
failureResponses: rootSuspensionFailureResponses,
|
|
36
|
+
failureStatuses: [400, 401, 403, 404, 500],
|
|
37
|
+
id: "root.identities.suspension.delete",
|
|
38
|
+
method: "DELETE",
|
|
39
|
+
params: RootIdentityPathParamsSchema,
|
|
40
|
+
path: "/root/identities/{userId}/suspension",
|
|
41
|
+
responses: {
|
|
42
|
+
200: RootIdentitySuspensionResponseSchema,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=rootSuspension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rootSuspension.js","sourceRoot":"","sources":["rootSuspension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oCAAoC,EACpC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAEtD,MAAM,8BAA8B,GAAG;IACrC,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,4BAA4B;IACjC,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,mBAAmB;CAChB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IAC9D,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,8BAA8B;QACjC,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,gCAAgC;IACpC,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,4BAA4B;IACpC,IAAI,EAAE,sCAAsC;IAC5C,SAAS,EAAE;QACT,GAAG,EAAE,oCAAoC;KAC1C;CACF,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,mCAAmC,GAAG,mBAAmB,CAAC;IACrE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,8BAA8B;IAChD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC1C,EAAE,EAAE,mCAAmC;IACvC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,4BAA4B;IACpC,IAAI,EAAE,sCAAsC;IAC5C,SAAS,EAAE;QACT,GAAG,EAAE,oCAAoC;KAC1C;CACF,CAAC,CAAC","sourcesContent":["import {\n ErrorResponseSchema,\n RootIdentitySuspensionResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { defineJsonOperation } from \"./definition\";\nimport { RootIdentityPathParamsSchema } from \"./root\";\n\nconst rootSuspensionFailureResponses = {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n} as const;\n\n/**\n * Suspends an identity: its devices can no longer sign in, and every live\n * session is revoked. Repeating it is harmless and sweeps sessions again.\n * Refused with 409 for a root identity or the operator's own, since root\n * standing is managed only through the API CLI.\n */\nexport const suspendRootIdentityOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n ...rootSuspensionFailureResponses,\n 409: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"root.identities.suspension.put\",\n method: \"PUT\",\n params: RootIdentityPathParamsSchema,\n path: \"/root/identities/{userId}/suspension\",\n responses: {\n 200: RootIdentitySuspensionResponseSchema,\n },\n});\n\n/** Lifts a suspension so the identity's devices can sign in again. */\nexport const liftRootIdentitySuspensionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: rootSuspensionFailureResponses,\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"root.identities.suspension.delete\",\n method: \"DELETE\",\n params: RootIdentityPathParamsSchema,\n path: \"/root/identities/{userId}/suspension\",\n responses: {\n 200: RootIdentitySuspensionResponseSchema,\n },\n});\n"]}
|
|
@@ -2,5 +2,5 @@ export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type Challen
|
|
|
2
2
|
export { isSessionRefreshRequiredFailure, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, } from "./sessionFailure.js";
|
|
3
3
|
export { type DestroySessionResponse, DestroySessionResponseSchema, isDestroySessionResponse, isListSessionsResponse, isUserSessionResponse, type ListSessionsResponse, ListSessionsResponseSchema, type UserSessionResponse, UserSessionResponseSchema, } from "./sessions.js";
|
|
4
4
|
export { isUserIdentityResponse, type UserIdentityResponse, UserIdentityResponseSchema, } from "./userIdentity.js";
|
|
5
|
-
export { isVerifyResponse, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, } from "./verify.js";
|
|
5
|
+
export { isVerifyResponse, VERIFY_ERROR_CODES, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, } from "./verify.js";
|
|
6
6
|
export { isWebSocketTicketResponse, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./wsTicket.js";
|
|
@@ -2,6 +2,6 @@ export { ChallengeErrorResponseSchema, ChallengeResponseSchema, isChallengeError
|
|
|
2
2
|
export { isSessionRefreshRequiredFailure, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, } from "./sessionFailure.js";
|
|
3
3
|
export { DestroySessionResponseSchema, isDestroySessionResponse, isListSessionsResponse, isUserSessionResponse, ListSessionsResponseSchema, UserSessionResponseSchema, } from "./sessions.js";
|
|
4
4
|
export { isUserIdentityResponse, UserIdentityResponseSchema, } from "./userIdentity.js";
|
|
5
|
-
export { isVerifyResponse, VerifyFailureResponseSchema, VerifySuccessResponseSchema, } from "./verify.js";
|
|
5
|
+
export { isVerifyResponse, VERIFY_ERROR_CODES, VerifyFailureResponseSchema, VerifySuccessResponseSchema, } from "./verify.js";
|
|
6
6
|
export { isWebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./wsTicket.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EAErB,0BAA0B,EAE1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EAErB,0BAA0B,EAE1B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAElB,2BAA2B,EAG3B,2BAA2B,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,GAC9B,MAAM,YAAY,CAAC","sourcesContent":["export {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n} from \"./challenge\";\nexport {\n isSessionRefreshRequiredFailure,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n} from \"./sessionFailure\";\nexport {\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isDestroySessionResponse,\n isListSessionsResponse,\n isUserSessionResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n} from \"./sessions\";\nexport {\n isUserIdentityResponse,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n} from \"./userIdentity\";\nexport {\n isVerifyResponse,\n VERIFY_ERROR_CODES,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n} from \"./verify\";\nexport {\n isWebSocketTicketResponse,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./wsTicket\";\n"]}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const VERIFY_ERROR_CODES: {
|
|
3
|
+
/**
|
|
4
|
+
* The signature is valid but a platform operator suspended the account.
|
|
5
|
+
* Terminal: renewing the session cannot succeed until the suspension lifts.
|
|
6
|
+
*/
|
|
7
|
+
readonly accountSuspended: "account_suspended";
|
|
8
|
+
};
|
|
2
9
|
export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
3
10
|
authenticated: true;
|
|
4
11
|
isRoot: boolean;
|
|
@@ -7,6 +14,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
7
14
|
token: string;
|
|
8
15
|
userId: string;
|
|
9
16
|
wsTicket: string;
|
|
17
|
+
code?: undefined;
|
|
10
18
|
error?: undefined;
|
|
11
19
|
}, {
|
|
12
20
|
authenticated: true;
|
|
@@ -16,6 +24,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
16
24
|
token: string;
|
|
17
25
|
userId: string;
|
|
18
26
|
wsTicket: string;
|
|
27
|
+
code?: undefined;
|
|
19
28
|
error?: undefined;
|
|
20
29
|
}, z.core.$ZodTypeInternals<{
|
|
21
30
|
authenticated: true;
|
|
@@ -25,6 +34,7 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
25
34
|
token: string;
|
|
26
35
|
userId: string;
|
|
27
36
|
wsTicket: string;
|
|
37
|
+
code?: undefined;
|
|
28
38
|
error?: undefined;
|
|
29
39
|
}, {
|
|
30
40
|
authenticated: true;
|
|
@@ -34,10 +44,12 @@ export declare const VerifySuccessResponseSchema: z.ZodType<{
|
|
|
34
44
|
token: string;
|
|
35
45
|
userId: string;
|
|
36
46
|
wsTicket: string;
|
|
47
|
+
code?: undefined;
|
|
37
48
|
error?: undefined;
|
|
38
49
|
}>>;
|
|
39
50
|
export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
40
51
|
authenticated: false;
|
|
52
|
+
code?: "account_suspended" | undefined;
|
|
41
53
|
error?: string | undefined;
|
|
42
54
|
isRoot?: undefined;
|
|
43
55
|
organizationId?: undefined;
|
|
@@ -47,6 +59,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
47
59
|
wsTicket?: undefined;
|
|
48
60
|
}, {
|
|
49
61
|
authenticated: false;
|
|
62
|
+
code?: "account_suspended" | undefined;
|
|
50
63
|
error?: string | undefined;
|
|
51
64
|
isRoot?: undefined;
|
|
52
65
|
organizationId?: undefined;
|
|
@@ -56,6 +69,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
56
69
|
wsTicket?: undefined;
|
|
57
70
|
}, z.core.$ZodTypeInternals<{
|
|
58
71
|
authenticated: false;
|
|
72
|
+
code?: "account_suspended" | undefined;
|
|
59
73
|
error?: string | undefined;
|
|
60
74
|
isRoot?: undefined;
|
|
61
75
|
organizationId?: undefined;
|
|
@@ -65,6 +79,7 @@ export declare const VerifyFailureResponseSchema: z.ZodType<{
|
|
|
65
79
|
wsTicket?: undefined;
|
|
66
80
|
}, {
|
|
67
81
|
authenticated: false;
|
|
82
|
+
code?: "account_suspended" | undefined;
|
|
68
83
|
error?: string | undefined;
|
|
69
84
|
isRoot?: undefined;
|
|
70
85
|
organizationId?: undefined;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { loosePlainObject, nonEmptyStringSchema } from "../../schema.js";
|
|
3
|
+
export const VERIFY_ERROR_CODES = {
|
|
4
|
+
/**
|
|
5
|
+
* The signature is valid but a platform operator suspended the account.
|
|
6
|
+
* Terminal: renewing the session cannot succeed until the suspension lifts.
|
|
7
|
+
*/
|
|
8
|
+
accountSuspended: "account_suspended",
|
|
9
|
+
};
|
|
3
10
|
export const VerifySuccessResponseSchema = loosePlainObject({
|
|
4
11
|
authenticated: z.literal(true),
|
|
12
|
+
code: z.never().optional(),
|
|
5
13
|
error: z.never().optional(),
|
|
6
14
|
/** Platform-operator flag; gates the root console, enforced server-side. */
|
|
7
15
|
isRoot: z.boolean(),
|
|
@@ -14,6 +22,7 @@ export const VerifySuccessResponseSchema = loosePlainObject({
|
|
|
14
22
|
});
|
|
15
23
|
export const VerifyFailureResponseSchema = loosePlainObject({
|
|
16
24
|
authenticated: z.literal(false),
|
|
25
|
+
code: z.literal(VERIFY_ERROR_CODES.accountSuspended).optional(),
|
|
17
26
|
error: z.string().optional(),
|
|
18
27
|
isRoot: z.never().optional(),
|
|
19
28
|
organizationId: z.never().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.js","sourceRoot":"","sources":["verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,4EAA4E;IAC5E,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,oBAAoB;IAC5B,4EAA4E;IAC5E,QAAQ,EAAE,oBAAoB;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAMH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,CACL,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO;QACpD,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACrD,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, nonEmptyStringSchema } from \"../../schema\";\n\nexport const VerifySuccessResponseSchema = loosePlainObject({\n authenticated: z.literal(true),\n error: z.never().optional(),\n /** Platform-operator flag; gates the root console, enforced server-side. */\n isRoot: z.boolean(),\n organizationId: nonEmptyStringSchema,\n rootContainerId: nonEmptyStringSchema.nullable(),\n token: nonEmptyStringSchema,\n userId: nonEmptyStringSchema,\n /** Single-use upgrade ticket for this session's first websocket connect. */\n wsTicket: nonEmptyStringSchema,\n});\n\nexport const VerifyFailureResponseSchema = loosePlainObject({\n authenticated: z.literal(false),\n error: z.string().optional(),\n isRoot: z.never().optional(),\n organizationId: z.never().optional(),\n rootContainerId: z.never().optional(),\n token: z.never().optional(),\n userId: z.never().optional(),\n wsTicket: z.never().optional(),\n});\n\nexport type VerifySuccessResponse = z.infer<typeof VerifySuccessResponseSchema>;\nexport type VerifyFailureResponse = z.infer<typeof VerifyFailureResponseSchema>;\nexport type VerifyResponse = VerifySuccessResponse | VerifyFailureResponse;\n\nexport function isVerifyResponse(value: unknown): value is VerifyResponse {\n return (\n VerifySuccessResponseSchema.safeParse(value).success ||\n VerifyFailureResponseSchema.safeParse(value).success\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;;;OAGG;IACH,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC1B,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,4EAA4E;IAC5E,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,oBAAoB;IAC5B,4EAA4E;IAC5E,QAAQ,EAAE,oBAAoB;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAC/D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAMH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,OAAO,CACL,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO;QACpD,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CACrD,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, nonEmptyStringSchema } from \"../../schema\";\n\nexport const VERIFY_ERROR_CODES = {\n /**\n * The signature is valid but a platform operator suspended the account.\n * Terminal: renewing the session cannot succeed until the suspension lifts.\n */\n accountSuspended: \"account_suspended\",\n} as const;\n\nexport const VerifySuccessResponseSchema = loosePlainObject({\n authenticated: z.literal(true),\n code: z.never().optional(),\n error: z.never().optional(),\n /** Platform-operator flag; gates the root console, enforced server-side. */\n isRoot: z.boolean(),\n organizationId: nonEmptyStringSchema,\n rootContainerId: nonEmptyStringSchema.nullable(),\n token: nonEmptyStringSchema,\n userId: nonEmptyStringSchema,\n /** Single-use upgrade ticket for this session's first websocket connect. */\n wsTicket: nonEmptyStringSchema,\n});\n\nexport const VerifyFailureResponseSchema = loosePlainObject({\n authenticated: z.literal(false),\n code: z.literal(VERIFY_ERROR_CODES.accountSuspended).optional(),\n error: z.string().optional(),\n isRoot: z.never().optional(),\n organizationId: z.never().optional(),\n rootContainerId: z.never().optional(),\n token: z.never().optional(),\n userId: z.never().optional(),\n wsTicket: z.never().optional(),\n});\n\nexport type VerifySuccessResponse = z.infer<typeof VerifySuccessResponseSchema>;\nexport type VerifyFailureResponse = z.infer<typeof VerifyFailureResponseSchema>;\nexport type VerifyResponse = VerifySuccessResponse | VerifyFailureResponse;\n\nexport function isVerifyResponse(value: unknown): value is VerifyResponse {\n return (\n VerifySuccessResponseSchema.safeParse(value).success ||\n VerifyFailureResponseSchema.safeParse(value).success\n );\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type AccessManifestBundleWireResponse, isAccessManifestBundleWireResponse, } from "../util/index.js";
|
|
2
2
|
export { type EffectiveAccessLevel, EffectiveAccessLevelSchema, isEffectiveAccessLevel, } from "./accessLevel.js";
|
|
3
|
-
export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type ChallengeResponse, ChallengeResponseSchema, type DestroySessionResponse, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, type ListSessionsResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, type UserIdentityResponse, UserIdentityResponseSchema, type UserSessionResponse, UserSessionResponseSchema, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
3
|
+
export { type ChallengeErrorResponse, ChallengeErrorResponseSchema, type ChallengeResponse, ChallengeResponseSchema, type DestroySessionResponse, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, type ListSessionsResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, type SessionErrorCode, SessionErrorCodeSchema, type SessionFailureResponse, SessionFailureResponseSchema, type UserIdentityResponse, UserIdentityResponseSchema, type UserSessionResponse, UserSessionResponseSchema, VERIFY_ERROR_CODES, type VerifyFailureResponse, VerifyFailureResponseSchema, type VerifyResponse, type VerifySuccessResponse, VerifySuccessResponseSchema, type WebSocketTicketResponse, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
4
4
|
export { isRevenueCatWebhookResponse, isStripeWebhookResponse, type RevenueCatWebhookResponse, RevenueCatWebhookResponseSchema, type StripeWebhookResponse, StripeWebhookResponseSchema, } from "./billingWebhooks.js";
|
|
5
5
|
export { type BlobAttachmentBindResponse, BlobAttachmentBindResponseSchema, type BlobAttachmentDetachResponse, BlobAttachmentDetachResponseSchema, type BlobAttachmentSummary, BlobAttachmentSummarySchema, type BlobContentKeyBundleResponse, BlobContentKeyBundleResponseSchema, type BlobContentKeyTargetEnvelopeResponse, BlobContentKeyTargetEnvelopeResponseSchema, type BlobKekTargetsResponse, BlobKekTargetsResponseSchema, type InitiateMultipartBlobStageResponse, InitiateMultipartBlobStageResponseSchema, isBlobAttachmentBindResponse, isBlobAttachmentDetachResponse, isInitiateMultipartBlobStageResponse, isListDocumentAttachmentsResponse, isMultipartBlobStageStatusResponse, isUploadMultipartBlobPartResponse, type ListDocumentAttachmentsResponse, ListDocumentAttachmentsResponseSchema, type MultipartBlobStagePart, MultipartBlobStagePartSchema, type MultipartBlobStageStatusResponse, MultipartBlobStageStatusResponseSchema, type UploadMultipartBlobPartResponse, UploadMultipartBlobPartResponseSchema, } from "./blob.js";
|
|
6
6
|
export { BLOB_MUTATION_ERROR_CODES, type BlobMutationErrorCode, type BlobMutationFailureResponse, BlobMutationFailureResponseSchema, } from "./blobMutationError.js";
|
|
@@ -36,8 +36,9 @@ export { isPrincipalPolicySnapshotPageResponse, type PrincipalPolicyHistorySourc
|
|
|
36
36
|
export { isReferencedPrincipalStateResponse, type ReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
|
|
37
37
|
export { type ProjectionPolicyEvidenceResponse, ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
|
|
38
38
|
export { isRegistrationResponse, type RegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
|
|
39
|
-
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, type RootIdentitiesResponse, RootIdentitiesResponseSchema, type RootIdentityDetailResponse, RootIdentityDetailResponseSchema, type RootIdentityOrganizationBillingResponse, RootIdentityOrganizationBillingResponseSchema, type RootIdentityOrganizationResponse, RootIdentityOrganizationResponseSchema, type RootIdentityOrganizationsResponse, RootIdentityOrganizationsResponseSchema, type RootIdentitySessionResponse, RootIdentitySessionResponseSchema, type RootIdentitySummaryResponse, RootIdentitySummaryResponseSchema, } from "./root.js";
|
|
39
|
+
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, isRootIdentitySuspensionResponse, type RootIdentitiesResponse, RootIdentitiesResponseSchema, type RootIdentityDetailResponse, RootIdentityDetailResponseSchema, type RootIdentityOrganizationBillingResponse, RootIdentityOrganizationBillingResponseSchema, type RootIdentityOrganizationResponse, RootIdentityOrganizationResponseSchema, type RootIdentityOrganizationsResponse, RootIdentityOrganizationsResponseSchema, type RootIdentitySessionResponse, RootIdentitySessionResponseSchema, type RootIdentitySummaryResponse, RootIdentitySummaryResponseSchema, type RootIdentitySuspensionResponse, RootIdentitySuspensionResponseSchema, } from "./root.js";
|
|
40
40
|
export { ROOT_AUDIT_ACTIONS, type RootAuditAction, RootAuditActionSchema, type RootAuditEventResponse, RootAuditEventResponseSchema, type RootAuditEventsResponse, RootAuditEventsResponseSchema, } from "./rootAudit.js";
|
|
41
|
+
export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, type RootOpsHealthReportResponse, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
|
|
41
42
|
export { type RootDataUsageReportResponse, RootDataUsageReportResponseSchema, type RootOrganizationDetailResponse, RootOrganizationDetailResponseSchema, type RootOrganizationIdentitiesResponse, RootOrganizationIdentitiesResponseSchema, type RootOrganizationIdentityResponse, RootOrganizationIdentityResponseSchema, type RootOrganizationSummaryResponse, RootOrganizationSummaryResponseSchema, type RootOrganizationsResponse, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
|
|
42
43
|
export { isStripeCancelResponse, isStripeCheckoutIntentResponse, isStripeCheckoutOptionsResponse, isStripeCheckoutSessionResponse, isStripePortalResponse, type StripeCancelResponse, StripeCancelResponseSchema, type StripeCheckoutIntentResponse, StripeCheckoutIntentResponseSchema, type StripeCheckoutOptionsResponse, StripeCheckoutOptionsResponseSchema, type StripeCheckoutSessionResponse, StripeCheckoutSessionResponseSchema, type StripePortalResponse, StripePortalResponseSchema, type StripeSyncOptionResponse, StripeSyncOptionResponseSchema, } from "./stripeCheckout.js";
|
|
43
44
|
export { isSyncWatermark, type SyncWatermark, SyncWatermarkSchema, } from "./syncWatermark.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { isAccessManifestBundleWireResponse, } from "../util/index.js";
|
|
2
2
|
export { EffectiveAccessLevelSchema, isEffectiveAccessLevel, } from "./accessLevel.js";
|
|
3
|
-
export { ChallengeErrorResponseSchema, ChallengeResponseSchema, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, UserIdentityResponseSchema, UserSessionResponseSchema, VerifyFailureResponseSchema, VerifySuccessResponseSchema, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
3
|
+
export { ChallengeErrorResponseSchema, ChallengeResponseSchema, DestroySessionResponseSchema, isChallengeErrorResponse, isChallengeResponse, isDestroySessionResponse, isListSessionsResponse, isSessionRefreshRequiredFailure, isUserIdentityResponse, isUserSessionResponse, isVerifyResponse, isWebSocketTicketResponse, ListSessionsResponseSchema, SESSION_ERROR_CODES, SessionErrorCodeSchema, SessionFailureResponseSchema, UserIdentityResponseSchema, UserSessionResponseSchema, VERIFY_ERROR_CODES, VerifyFailureResponseSchema, VerifySuccessResponseSchema, WebSocketTicketResponseSchema, } from "./auth/index.js";
|
|
4
4
|
export { isRevenueCatWebhookResponse, isStripeWebhookResponse, RevenueCatWebhookResponseSchema, StripeWebhookResponseSchema, } from "./billingWebhooks.js";
|
|
5
5
|
export { BlobAttachmentBindResponseSchema, BlobAttachmentDetachResponseSchema, BlobAttachmentSummarySchema, BlobContentKeyBundleResponseSchema, BlobContentKeyTargetEnvelopeResponseSchema, BlobKekTargetsResponseSchema, InitiateMultipartBlobStageResponseSchema, isBlobAttachmentBindResponse, isBlobAttachmentDetachResponse, isInitiateMultipartBlobStageResponse, isListDocumentAttachmentsResponse, isMultipartBlobStageStatusResponse, isUploadMultipartBlobPartResponse, ListDocumentAttachmentsResponseSchema, MultipartBlobStagePartSchema, MultipartBlobStageStatusResponseSchema, UploadMultipartBlobPartResponseSchema, } from "./blob.js";
|
|
6
6
|
export { BLOB_MUTATION_ERROR_CODES, BlobMutationFailureResponseSchema, } from "./blobMutationError.js";
|
|
@@ -35,8 +35,9 @@ export { isPrincipalPolicySnapshotPageResponse, PrincipalPolicyHistorySourceResp
|
|
|
35
35
|
export { isReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
|
|
36
36
|
export { ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
|
|
37
37
|
export { isRegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
|
|
38
|
-
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, RootIdentitiesResponseSchema, RootIdentityDetailResponseSchema, RootIdentityOrganizationBillingResponseSchema, RootIdentityOrganizationResponseSchema, RootIdentityOrganizationsResponseSchema, RootIdentitySessionResponseSchema, RootIdentitySummaryResponseSchema, } from "./root.js";
|
|
38
|
+
export { isRootIdentitiesResponse, isRootIdentityDetailResponse, isRootIdentityOrganizationsResponse, isRootIdentitySuspensionResponse, RootIdentitiesResponseSchema, RootIdentityDetailResponseSchema, RootIdentityOrganizationBillingResponseSchema, RootIdentityOrganizationResponseSchema, RootIdentityOrganizationsResponseSchema, RootIdentitySessionResponseSchema, RootIdentitySummaryResponseSchema, RootIdentitySuspensionResponseSchema, } from "./root.js";
|
|
39
39
|
export { ROOT_AUDIT_ACTIONS, RootAuditActionSchema, RootAuditEventResponseSchema, RootAuditEventsResponseSchema, } from "./rootAudit.js";
|
|
40
|
+
export { ROOT_OPS_HEALTH_OVERDUE_MINUTES, ROOT_OPS_HEALTH_SECTION_LIMIT, ROOT_OPS_HEALTH_UPCOMING_DAYS, ROOT_SEAT_SYNC_CONDITIONS, RootOpsHealthReportResponseSchema, RootSeatSyncConditionSchema, } from "./rootOpsHealth.js";
|
|
40
41
|
export { RootDataUsageReportResponseSchema, RootOrganizationDetailResponseSchema, RootOrganizationIdentitiesResponseSchema, RootOrganizationIdentityResponseSchema, RootOrganizationSummaryResponseSchema, RootOrganizationsResponseSchema, } from "./rootOrganizations.js";
|
|
41
42
|
export { isStripeCancelResponse, isStripeCheckoutIntentResponse, isStripeCheckoutOptionsResponse, isStripeCheckoutSessionResponse, isStripePortalResponse, StripeCancelResponseSchema, StripeCheckoutIntentResponseSchema, StripeCheckoutOptionsResponseSchema, StripeCheckoutSessionResponseSchema, StripePortalResponseSchema, StripeSyncOptionResponseSchema, } from "./stripeCheckout.js";
|
|
42
43
|
export { isSyncWatermark, SyncWatermarkSchema, } from "./syncWatermark.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,G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M,sBAAsB,CAAC;AAC9B,OAAO,EAEL,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,mCAAmC,EAEnC,4BAA4B,EAE5B,gCAAgC,EAEhC,6CAA6C,EAE7C,sCAAsC,EAEtC,uCAAuC,EAEvC,iCAAiC,EAEjC,iCAAiC,GAClC,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,kBAAkB,EAElB,qBAAqB,EAErB,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,iCAAiC,EAEjC,oCAAoC,EAEpC,wCAAwC,EAExC,sCAAsC,EAEtC,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,sBAAsB,EAEtB,0BAA0B,EAE1B,kCAAkC,EAElC,mCAAmC,EAEnC,mCAAmC,EAEnC,0BAA0B,EAE1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,eAAe,EAEf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n type ContainerWriterProjectionWireResponse,\n ContainerWriterProjectionWireResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isContainerWriterProjectionWireResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport type { ListContainerDocumentLanesResponse } from \"./containerDocumentLanes\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentCreateSeedResponse,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n type DocumentWriterProjectionWireResponse,\n DocumentWriterProjectionWireResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n isDocumentWriterProjectionWireResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationMembershipResponse,\n isOrganizationMembershipsResponse,\n type OrganizationMembershipResponse,\n OrganizationMembershipResponseSchema,\n type OrganizationMembershipsResponse,\n OrganizationMembershipsResponseSchema,\n} from \"./organizationMembership\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMemberResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"./principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n} from \"./root\";\nexport {\n ROOT_AUDIT_ACTIONS,\n type RootAuditAction,\n RootAuditActionSchema,\n type RootAuditEventResponse,\n RootAuditEventResponseSchema,\n type RootAuditEventsResponse,\n RootAuditEventsResponseSchema,\n} from \"./rootAudit\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\nexport {\n decodeContainerWriterProjection,\n decodeDocumentWriterProjection,\n encodeContainerWriterProjection,\n encodeDocumentWriterProjection,\n} from \"./writerProjectionWire\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EAEvB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EAEzB,0BAA0B,EAC1B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,EAE5B,0BAA0B,EAE1B,yBAAyB,EACzB,kBAAkB,EAElB,2BAA2B,EAG3B,2BAA2B,EAE3B,6BAA6B,GAC9B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EAEvB,+BAA+B,EAE/B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gCAAgC,EAEhC,kCAAkC,EAElC,2BAA2B,EAE3B,kCAAkC,EAElC,0CAA0C,EAE1C,4BAA4B,EAE5B,wCAAwC,EACxC,4BAA4B,EAC5B,8BAA8B,EAC9B,oCAAoC,EACpC,iCAAiC,EACjC,kCAAkC,EAClC,iCAAiC,EAEjC,qCAAqC,EAErC,4BAA4B,EAE5B,sCAAsC,EAEtC,qCAAqC,GACtC,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,yBAAyB,EAGzB,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,6CAA6C,EAE7C,6BAA6B,EAG7B,kCAAkC,EAElC,6BAA6B,EAG7B,iCAAiC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AO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n VERIFY_ERROR_CODES,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n type ContainerWriterProjectionWireResponse,\n ContainerWriterProjectionWireResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isContainerWriterProjectionWireResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport type { ListContainerDocumentLanesResponse } from \"./containerDocumentLanes\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentCreateSeedResponse,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n type DocumentWriterProjectionWireResponse,\n DocumentWriterProjectionWireResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n isDocumentWriterProjectionWireResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationMembershipResponse,\n isOrganizationMembershipsResponse,\n type OrganizationMembershipResponse,\n OrganizationMembershipResponseSchema,\n type OrganizationMembershipsResponse,\n OrganizationMembershipsResponseSchema,\n} from \"./organizationMembership\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMemberResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"./principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n isRootIdentitySuspensionResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n type RootIdentitySuspensionResponse,\n RootIdentitySuspensionResponseSchema,\n} from \"./root\";\nexport {\n ROOT_AUDIT_ACTIONS,\n type RootAuditAction,\n RootAuditActionSchema,\n type RootAuditEventResponse,\n RootAuditEventResponseSchema,\n type RootAuditEventsResponse,\n RootAuditEventsResponseSchema,\n} from \"./rootAudit\";\nexport {\n ROOT_OPS_HEALTH_OVERDUE_MINUTES,\n ROOT_OPS_HEALTH_SECTION_LIMIT,\n ROOT_OPS_HEALTH_UPCOMING_DAYS,\n ROOT_SEAT_SYNC_CONDITIONS,\n type RootOpsHealthReportResponse,\n RootOpsHealthReportResponseSchema,\n RootSeatSyncConditionSchema,\n} from \"./rootOpsHealth\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\nexport {\n decodeContainerWriterProjection,\n decodeDocumentWriterProjection,\n encodeContainerWriterProjection,\n encodeDocumentWriterProjection,\n} from \"./writerProjectionWire\";\n"]}
|
|
@@ -32,6 +32,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
32
32
|
lastActiveAt: string | null;
|
|
33
33
|
registrationSourceIpAddress: string | null;
|
|
34
34
|
signingKeyFingerprint: string;
|
|
35
|
+
suspendedAt: string | null;
|
|
35
36
|
userId: string;
|
|
36
37
|
}, {
|
|
37
38
|
createdAt: string;
|
|
@@ -40,6 +41,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
40
41
|
lastActiveAt: string | null;
|
|
41
42
|
registrationSourceIpAddress: string | null;
|
|
42
43
|
signingKeyFingerprint: string;
|
|
44
|
+
suspendedAt: string | null;
|
|
43
45
|
userId: string;
|
|
44
46
|
}, z.core.$ZodTypeInternals<{
|
|
45
47
|
createdAt: string;
|
|
@@ -48,6 +50,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
48
50
|
lastActiveAt: string | null;
|
|
49
51
|
registrationSourceIpAddress: string | null;
|
|
50
52
|
signingKeyFingerprint: string;
|
|
53
|
+
suspendedAt: string | null;
|
|
51
54
|
userId: string;
|
|
52
55
|
}, {
|
|
53
56
|
createdAt: string;
|
|
@@ -56,6 +59,7 @@ export declare const RootIdentitySummaryResponseSchema: z.ZodType<{
|
|
|
56
59
|
lastActiveAt: string | null;
|
|
57
60
|
registrationSourceIpAddress: string | null;
|
|
58
61
|
signingKeyFingerprint: string;
|
|
62
|
+
suspendedAt: string | null;
|
|
59
63
|
userId: string;
|
|
60
64
|
}>>;
|
|
61
65
|
export type RootIdentitySummaryResponse = z.infer<typeof RootIdentitySummaryResponseSchema>;
|
|
@@ -67,6 +71,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
67
71
|
lastActiveAt: string | null;
|
|
68
72
|
registrationSourceIpAddress: string | null;
|
|
69
73
|
signingKeyFingerprint: string;
|
|
74
|
+
suspendedAt: string | null;
|
|
70
75
|
userId: string;
|
|
71
76
|
}[];
|
|
72
77
|
nextCursor: string | null;
|
|
@@ -78,6 +83,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
78
83
|
lastActiveAt: string | null;
|
|
79
84
|
registrationSourceIpAddress: string | null;
|
|
80
85
|
signingKeyFingerprint: string;
|
|
86
|
+
suspendedAt: string | null;
|
|
81
87
|
userId: string;
|
|
82
88
|
}[];
|
|
83
89
|
nextCursor: string | null;
|
|
@@ -89,6 +95,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
89
95
|
lastActiveAt: string | null;
|
|
90
96
|
registrationSourceIpAddress: string | null;
|
|
91
97
|
signingKeyFingerprint: string;
|
|
98
|
+
suspendedAt: string | null;
|
|
92
99
|
userId: string;
|
|
93
100
|
}[];
|
|
94
101
|
nextCursor: string | null;
|
|
@@ -100,6 +107,7 @@ export declare const RootIdentitiesResponseSchema: z.ZodType<{
|
|
|
100
107
|
lastActiveAt: string | null;
|
|
101
108
|
registrationSourceIpAddress: string | null;
|
|
102
109
|
signingKeyFingerprint: string;
|
|
110
|
+
suspendedAt: string | null;
|
|
103
111
|
userId: string;
|
|
104
112
|
}[];
|
|
105
113
|
nextCursor: string | null;
|
|
@@ -144,6 +152,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
144
152
|
lastActiveAt: string | null;
|
|
145
153
|
registrationSourceIpAddress: string | null;
|
|
146
154
|
signingKeyFingerprint: string;
|
|
155
|
+
suspendedAt: string | null;
|
|
147
156
|
userId: string;
|
|
148
157
|
};
|
|
149
158
|
sessions: {
|
|
@@ -162,6 +171,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
162
171
|
lastActiveAt: string | null;
|
|
163
172
|
registrationSourceIpAddress: string | null;
|
|
164
173
|
signingKeyFingerprint: string;
|
|
174
|
+
suspendedAt: string | null;
|
|
165
175
|
userId: string;
|
|
166
176
|
};
|
|
167
177
|
sessions: {
|
|
@@ -180,6 +190,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
180
190
|
lastActiveAt: string | null;
|
|
181
191
|
registrationSourceIpAddress: string | null;
|
|
182
192
|
signingKeyFingerprint: string;
|
|
193
|
+
suspendedAt: string | null;
|
|
183
194
|
userId: string;
|
|
184
195
|
};
|
|
185
196
|
sessions: {
|
|
@@ -198,6 +209,7 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
198
209
|
lastActiveAt: string | null;
|
|
199
210
|
registrationSourceIpAddress: string | null;
|
|
200
211
|
signingKeyFingerprint: string;
|
|
212
|
+
suspendedAt: string | null;
|
|
201
213
|
userId: string;
|
|
202
214
|
};
|
|
203
215
|
sessions: {
|
|
@@ -210,6 +222,53 @@ export declare const RootIdentityDetailResponseSchema: z.ZodType<{
|
|
|
210
222
|
}[];
|
|
211
223
|
}>>;
|
|
212
224
|
export type RootIdentityDetailResponse = z.infer<typeof RootIdentityDetailResponseSchema>;
|
|
225
|
+
/** The identity after a suspension was placed or lifted. */
|
|
226
|
+
export declare const RootIdentitySuspensionResponseSchema: z.ZodType<{
|
|
227
|
+
identity: {
|
|
228
|
+
createdAt: string;
|
|
229
|
+
defaultOrganizationId: string;
|
|
230
|
+
isRoot: boolean;
|
|
231
|
+
lastActiveAt: string | null;
|
|
232
|
+
registrationSourceIpAddress: string | null;
|
|
233
|
+
signingKeyFingerprint: string;
|
|
234
|
+
suspendedAt: string | null;
|
|
235
|
+
userId: string;
|
|
236
|
+
};
|
|
237
|
+
}, {
|
|
238
|
+
identity: {
|
|
239
|
+
createdAt: string;
|
|
240
|
+
defaultOrganizationId: string;
|
|
241
|
+
isRoot: boolean;
|
|
242
|
+
lastActiveAt: string | null;
|
|
243
|
+
registrationSourceIpAddress: string | null;
|
|
244
|
+
signingKeyFingerprint: string;
|
|
245
|
+
suspendedAt: string | null;
|
|
246
|
+
userId: string;
|
|
247
|
+
};
|
|
248
|
+
}, z.core.$ZodTypeInternals<{
|
|
249
|
+
identity: {
|
|
250
|
+
createdAt: string;
|
|
251
|
+
defaultOrganizationId: string;
|
|
252
|
+
isRoot: boolean;
|
|
253
|
+
lastActiveAt: string | null;
|
|
254
|
+
registrationSourceIpAddress: string | null;
|
|
255
|
+
signingKeyFingerprint: string;
|
|
256
|
+
suspendedAt: string | null;
|
|
257
|
+
userId: string;
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
identity: {
|
|
261
|
+
createdAt: string;
|
|
262
|
+
defaultOrganizationId: string;
|
|
263
|
+
isRoot: boolean;
|
|
264
|
+
lastActiveAt: string | null;
|
|
265
|
+
registrationSourceIpAddress: string | null;
|
|
266
|
+
signingKeyFingerprint: string;
|
|
267
|
+
suspendedAt: string | null;
|
|
268
|
+
userId: string;
|
|
269
|
+
};
|
|
270
|
+
}>>;
|
|
271
|
+
export type RootIdentitySuspensionResponse = z.infer<typeof RootIdentitySuspensionResponseSchema>;
|
|
213
272
|
export declare const rootOrganizationBillingShape: {
|
|
214
273
|
currentPeriodEndsAt: z.ZodNullable<z.ZodString>;
|
|
215
274
|
disabledAt: z.ZodNullable<z.ZodString>;
|
|
@@ -440,4 +499,5 @@ export declare const RootIdentityOrganizationsResponseSchema: z.ZodType<{
|
|
|
440
499
|
export type RootIdentityOrganizationsResponse = z.infer<typeof RootIdentityOrganizationsResponseSchema>;
|
|
441
500
|
export declare function isRootIdentitiesResponse(value: unknown): value is RootIdentitiesResponse;
|
|
442
501
|
export declare function isRootIdentityDetailResponse(value: unknown): value is RootIdentityDetailResponse;
|
|
502
|
+
export declare function isRootIdentitySuspensionResponse(value: unknown): value is RootIdentitySuspensionResponse;
|
|
443
503
|
export declare function isRootIdentityOrganizationsResponse(value: unknown): value is RootIdentityOrganizationsResponse;
|
|
@@ -18,6 +18,8 @@ export const RootIdentitySummaryResponseSchema = loosePlainObject({
|
|
|
18
18
|
lastActiveAt: z.string().nullable(),
|
|
19
19
|
registrationSourceIpAddress: z.string().nullable(),
|
|
20
20
|
signingKeyFingerprint: sha256HexStringSchema,
|
|
21
|
+
/** When an operator suspended the account; null while in good standing. */
|
|
22
|
+
suspendedAt: z.string().nullable(),
|
|
21
23
|
userId: nonEmptyStringSchema,
|
|
22
24
|
});
|
|
23
25
|
export const RootIdentitiesResponseSchema = loosePlainObject({
|
|
@@ -38,6 +40,10 @@ export const RootIdentityDetailResponseSchema = loosePlainObject({
|
|
|
38
40
|
identity: RootIdentitySummaryResponseSchema,
|
|
39
41
|
sessions: arraySchema(RootIdentitySessionResponseSchema),
|
|
40
42
|
});
|
|
43
|
+
/** The identity after a suspension was placed or lifted. */
|
|
44
|
+
export const RootIdentitySuspensionResponseSchema = loosePlainObject({
|
|
45
|
+
identity: RootIdentitySummaryResponseSchema,
|
|
46
|
+
});
|
|
41
47
|
export const rootOrganizationBillingShape = {
|
|
42
48
|
currentPeriodEndsAt: z.string().nullable(),
|
|
43
49
|
disabledAt: z.string().nullable(),
|
|
@@ -66,6 +72,9 @@ export function isRootIdentitiesResponse(value) {
|
|
|
66
72
|
export function isRootIdentityDetailResponse(value) {
|
|
67
73
|
return RootIdentityDetailResponseSchema.safeParse(value).success;
|
|
68
74
|
}
|
|
75
|
+
export function isRootIdentitySuspensionResponse(value) {
|
|
76
|
+
return RootIdentitySuspensionResponseSchema.safeParse(value).success;
|
|
77
|
+
}
|
|
69
78
|
export function isRootIdentityOrganizationsResponse(value) {
|
|
70
79
|
return RootIdentityOrganizationsResponseSchema.safeParse(value).success;
|
|
71
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,8EAA8E;IAC9E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACzC,kFAAkF;IAClF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,C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UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,wBAAwB;IACnC,MAAM,EAAE,+BAA+B;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;AACF,MAAM,CAAC,MAAM,6CAA6C,GAAG,gBAAgB,CAC3E,4BAA4B,CAC7B,CAAC;AAMF,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,+EAA+E;IAC/E,OAAO,EAAE,6CAA6C,CAAC,QAAQ,EAAE;IACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,cAAc,EAAE,oBAAoB;IACpC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,uCAAuC,GAAG,gBAAgB,CAAC;IACtE,aAAa,EAAE,WAAW,CAAC,sCAAsC,CAAC;CACnE,CAAC,CAAC;AAMH,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,4BAA4B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n /** Whether the identity holds an open billable-seat assignment in the org. */\n holdsSeat: z.boolean(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n /** When the member paused the org's sync to their devices; null while syncing. */\n syncPausedAt: z.string().nullable(),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAC/C,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tE,aAAa,EAAE,WAAW,CAAC,sCAAsC,CAAC;CACnE,CAAC,CAAC;AAMH,MAAM,UAAU,wBAAwB,CACtC,KAAc;IAEd,OAAO,4BAA4B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAO,oCAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n} from \"../schema\";\nimport { OrganizationBillingStatusSchema } from \"./organizationBilling\";\n\nexport const RootRosterSchema = loosePlainObject({\n disabledAt: z.string().nullable(),\n /** Whether the identity holds an open billable-seat assignment in the org. */\n holdsSeat: z.boolean(),\n joinedAt: z.string(),\n status: z.literal([\"active\", \"disabled\"]),\n /** When the member paused the org's sync to their devices; null while syncing. */\n syncPausedAt: z.string().nullable(),\n});\n\n/** Operator-facing view of one registered identity, from `GET /root/identities`. */\nexport const RootIdentitySummaryResponseSchema = loosePlainObject({\n createdAt: z.string(),\n defaultOrganizationId: nonEmptyStringSchema,\n isRoot: z.boolean(),\n lastActiveAt: z.string().nullable(),\n registrationSourceIpAddress: z.string().nullable(),\n signingKeyFingerprint: sha256HexStringSchema,\n /** When an operator suspended the account; null while in good standing. */\n suspendedAt: z.string().nullable(),\n userId: nonEmptyStringSchema,\n});\n\nexport type RootIdentitySummaryResponse = z.infer<\n typeof RootIdentitySummaryResponseSchema\n>;\n\nexport const RootIdentitiesResponseSchema = loosePlainObject({\n identities: arraySchema(RootIdentitySummaryResponseSchema),\n /** Opaque cursor for the next page; null when the listing is exhausted. */\n nextCursor: z.string().nullable(),\n});\n\nexport type RootIdentitiesResponse = z.infer<\n typeof RootIdentitiesResponseSchema\n>;\n\n/** A live session of the inspected identity; no session is the operator's. */\nexport const RootIdentitySessionResponseSchema = loosePlainObject({\n createdAt: z.string(),\n id: sha256HexStringSchema,\n ipAddresses: arraySchema(nonEmptyStringSchema),\n lastActiveAt: z.string(),\n lastActiveIp: nonEmptyStringSchema.nullable(),\n signingKeyFingerprint: z.string(),\n});\n\nexport type RootIdentitySessionResponse = z.infer<\n typeof RootIdentitySessionResponseSchema\n>;\n\nexport const RootIdentityDetailResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n sessions: arraySchema(RootIdentitySessionResponseSchema),\n});\n\nexport type RootIdentityDetailResponse = z.infer<\n typeof RootIdentityDetailResponseSchema\n>;\n\n/** The identity after a suspension was placed or lifted. */\nexport const RootIdentitySuspensionResponseSchema = loosePlainObject({\n identity: RootIdentitySummaryResponseSchema,\n});\n\nexport type RootIdentitySuspensionResponse = z.infer<\n typeof RootIdentitySuspensionResponseSchema\n>;\n\nexport const rootOrganizationBillingShape = {\n currentPeriodEndsAt: z.string().nullable(),\n disabledAt: z.string().nullable(),\n provider: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n purgedAt: z.string().nullable(),\n seatCount: nonNegativeIntegerSchema,\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n};\nexport const RootIdentityOrganizationBillingResponseSchema = loosePlainObject(\n rootOrganizationBillingShape,\n);\n\nexport type RootIdentityOrganizationBillingResponse = z.infer<\n typeof RootIdentityOrganizationBillingResponseSchema\n>;\n\nexport const RootIdentityOrganizationResponseSchema = loosePlainObject({\n /** Null only when the organization has no billing row, which is unexpected. */\n billing: RootIdentityOrganizationBillingResponseSchema.nullable(),\n createdAt: z.string(),\n isDefaultOrganization: z.boolean(),\n organizationId: nonEmptyStringSchema,\n roster: RootRosterSchema,\n});\n\nexport type RootIdentityOrganizationResponse = z.infer<\n typeof RootIdentityOrganizationResponseSchema\n>;\n\nexport const RootIdentityOrganizationsResponseSchema = loosePlainObject({\n organizations: arraySchema(RootIdentityOrganizationResponseSchema),\n});\n\nexport type RootIdentityOrganizationsResponse = z.infer<\n typeof RootIdentityOrganizationsResponseSchema\n>;\n\nexport function isRootIdentitiesResponse(\n value: unknown,\n): value is RootIdentitiesResponse {\n return RootIdentitiesResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityDetailResponse(\n value: unknown,\n): value is RootIdentityDetailResponse {\n return RootIdentityDetailResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentitySuspensionResponse(\n value: unknown,\n): value is RootIdentitySuspensionResponse {\n return RootIdentitySuspensionResponseSchema.safeParse(value).success;\n}\n\nexport function isRootIdentityOrganizationsResponse(\n value: unknown,\n): value is RootIdentityOrganizationsResponse {\n return RootIdentityOrganizationsResponseSchema.safeParse(value).success;\n}\n"]}
|