@spottoai/types-package 1.0.2-beta.390 → 1.0.2-beta.391
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/dist/esm/identity/index.js +1 -0
- package/dist/esm/identity/microsoftSignInAdminConsent.js +1 -0
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +1 -0
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/microsoftSignInAdminConsent.d.ts +59 -0
- package/dist/identity/microsoftSignInAdminConsent.d.ts.map +1 -0
- package/dist/identity/microsoftSignInAdminConsent.js +3 -0
- package/dist/identity/microsoftSignInAdminConsent.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/identity/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC"}
|
package/dist/identity/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./apikey"), exports);
|
|
18
|
+
__exportStar(require("./microsoftSignInAdminConsent"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/identity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gEAA8C"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** The server-owned Microsoft admin-consent workflow this contract may start. */
|
|
2
|
+
export type MicrosoftSignInAdminConsentPurpose = 'entraSignIn';
|
|
3
|
+
/** Lifecycle of a tenant-bound Microsoft sign-in admin-consent handoff link. */
|
|
4
|
+
export type MicrosoftSignInAdminConsentStatus = 'pending' | 'processing' | 'verificationRequired' | 'granted' | 'denied' | 'failed' | 'expired';
|
|
5
|
+
/** Creates a handoff link for an administrator to approve Microsoft sign-in. */
|
|
6
|
+
export interface CreateMicrosoftSignInAdminConsentLinkRequest {
|
|
7
|
+
purpose: MicrosoftSignInAdminConsentPurpose;
|
|
8
|
+
/** Microsoft Entra tenant ID the administrator must approve. */
|
|
9
|
+
tenantId: string;
|
|
10
|
+
/** Requested validity period. The API owns and enforces the allowed range. */
|
|
11
|
+
expiresInHours?: number;
|
|
12
|
+
/** Display-only name shown to the administrator. */
|
|
13
|
+
requestedByName?: string;
|
|
14
|
+
}
|
|
15
|
+
/** One delegated permission displayed before the administrator leaves Spotto. */
|
|
16
|
+
export interface MicrosoftSignInAdminConsentPermission {
|
|
17
|
+
scope: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
resource: string;
|
|
21
|
+
}
|
|
22
|
+
/** One-time creation response for a Microsoft sign-in admin-consent handoff. */
|
|
23
|
+
export interface MicrosoftSignInAdminConsentLinkResponse {
|
|
24
|
+
purpose: MicrosoftSignInAdminConsentPurpose;
|
|
25
|
+
status: 'pending';
|
|
26
|
+
linkId: string;
|
|
27
|
+
companyId: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
/** Spotto-hosted handoff URL containing the one-time public token. Clients must not log or persist it. */
|
|
30
|
+
url: string;
|
|
31
|
+
expiresAt: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
createdByUserId?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Public, non-consuming context shown to the Microsoft tenant administrator. */
|
|
36
|
+
export interface MicrosoftSignInAdminConsentContextResponse {
|
|
37
|
+
purpose: MicrosoftSignInAdminConsentPurpose;
|
|
38
|
+
status: MicrosoftSignInAdminConsentStatus;
|
|
39
|
+
/** True only while this particular handoff link can still be started. */
|
|
40
|
+
usable: boolean;
|
|
41
|
+
applicationName: string;
|
|
42
|
+
tenantId: string;
|
|
43
|
+
permissions: MicrosoftSignInAdminConsentPermission[];
|
|
44
|
+
requestedByName?: string;
|
|
45
|
+
requestedByCompanyName?: string;
|
|
46
|
+
expiresAt: string;
|
|
47
|
+
completedAt?: string;
|
|
48
|
+
errorCode?: string;
|
|
49
|
+
/** Display-safe failure message. It must not contain credentials, tokens, or internal exception details. */
|
|
50
|
+
errorMessage?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Result of consuming the handoff link immediately before redirecting to Microsoft. */
|
|
53
|
+
export interface MicrosoftSignInAdminConsentStartResponse {
|
|
54
|
+
/** Microsoft admin-consent URL. It must not be an OAuth authorization-code URL and clients must not log it. */
|
|
55
|
+
redirectUrl: string;
|
|
56
|
+
tenantId: string;
|
|
57
|
+
expiresAt: string;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=microsoftSignInAdminConsent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoftSignInAdminConsent.d.ts","sourceRoot":"","sources":["../../src/identity/microsoftSignInAdminConsent.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,MAAM,kCAAkC,GAAG,aAAa,CAAC;AAE/D,gFAAgF;AAChF,MAAM,MAAM,iCAAiC,GAAG,SAAS,GAAG,YAAY,GAAG,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhJ,gFAAgF;AAChF,MAAM,WAAW,4CAA4C;IAC3D,OAAO,EAAE,kCAAkC,CAAC;IAC5C,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC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,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoftSignInAdminConsent.js","sourceRoot":"","sources":["../../src/identity/microsoftSignInAdminConsent.ts"],"names":[],"mappings":""}
|