@azure/functions-authentication-events 1.0.0-alpha.20251127.1 → 1.0.0-alpha.20251205.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,aAAa,EAAE,aAAa,CAAC;IAC7B,0FAA0F;IAC1F,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS,uBAAuB,CACrC,SAAQ,gCAAgC;IACxC,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,yBAAyB;IACzB,OAAO,EAAE,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAChC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS,uBAAuB,CACrC,SAAQ,0BAA0B,CAAC,SAAS,EAAE,KAAK,CAAC;IACpD,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,iEAAiE;IACjE,+BAA+B,EAAE,MAAM,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAk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AAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<TEventAction extends AuthenticationEventAction>\n extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<TEventAction extends AuthenticationEventAction>\n extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuGlC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<\n TEventAction extends AuthenticationEventAction,\n> extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<\n TEventAction extends AuthenticationEventAction,\n> extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenI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C,wBAAwB,EAAE,MAAM,CAAC;IACjC,iDAAiD;IACjD,4BAA4B,EAAE,MAAM,CAAC;IACrC,4CAA4C;IAC5C,0BAA0B,EAAE,MAAM,CAAC;IACnC,yCAAyC;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qCAAqC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAClE,0BAA0B,EAC1B,sBAAsB,CACvB;IACC,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAG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;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest\n extends CloudEventRequest<TokenIssuanceStartResponse, TokenIssuanceStartData> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest extends CloudEventRequest<\n TokenIssuanceStartResponse,\n TokenIssuanceStartData\n> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,aAAa,EAAE,aAAa,CAAC;IAC7B,0FAA0F;IAC1F,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS,uBAAuB,CACrC,SAAQ,gCAAgC;IACxC,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,yBAAyB;IACzB,OAAO,EAAE,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAChC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS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,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;AAErE;;KAEK;AACL,MAAM,WAAW,aAAc,SAAQ,2BAA2B;IAEhE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAKjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA0GlC,kDAKC;AAVD;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<TEventAction extends AuthenticationEventAction>\n extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<TEventAction extends AuthenticationEventAction>\n extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4GlC,kDAKC;AAVD;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<\n TEventAction extends AuthenticationEventAction,\n> extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<\n TEventAction extends AuthenticationEventAction,\n> extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,iBAAiB,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;IAC7E,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,oCAAoC;IACpC,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,gDAAgD;IAChD,EAAE,E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;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAClE,0BAA0B,EAC1B,sBAAsB,CACvB;IACC,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,oCAAoC;IACpC,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,wBAAwB,EAAE,MAAM,CAAC;IACjC,iDAAiD;IACjD,4BAA4B,EAAE,MAAM,CAAC;IACrC,4CAA4C;IAC5C,0BAA0B,EAAE,MAAM,CAAC;IACnC,yCAAyC;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qCAAqC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest\n extends CloudEventRequest<TokenIssuanceStartResponse, TokenIssuanceStartData> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest extends CloudEventRequest<\n TokenIssuanceStartResponse,\n TokenIssuanceStartData\n> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB;IACnB,IAAI,E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AAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,6BAA6B,EAAE,MAAM,CAAC;IACtC,iEAAiE;IACjE,+BAA+B,EAAE,MAAM,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CACjC,YAAY,SAAS,yBAAyB,CAC9C,SAAQ,2BAA2B;IACnC,sDAAsD;IACtD,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B,CAC3C,YAAY,SAAS,yBAAyB,CAC9C,SAAQ,kBAAkB,CAAC,YAAY,CAAC;IACxC,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,CAAC;AAErE;;KAEK;AACL,MAAM,WAAW,aAAc,SAAQ,2BAA2B;IAEhE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAKjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAqGlC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<TEventAction extends AuthenticationEventAction>\n extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<TEventAction extends AuthenticationEventAction>\n extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuGlC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<\n TEventAction extends AuthenticationEventAction,\n> extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<\n TEventAction extends AuthenticationEventAction,\n> extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,iBAAiB,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;IAC7E,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,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iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAClE,0BAA0B,EAC1B,sBAAsB,CACvB;IACC,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,oCAAoC;IACpC,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,MAA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,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest\n extends CloudEventRequest<TokenIssuanceStartResponse, TokenIssuanceStartData> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest extends CloudEventRequest<\n TokenIssuanceStartResponse,\n TokenIssuanceStartData\n> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,aAAa,EAAE,aAAa,CAAC;IAC7B,0FAA0F;IAC1F,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS,uBAAuB,CACrC,SAAQ,gCAAgC;IACxC,6BAA6B;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,yBAAyB;IACzB,OAAO,EAAE,KAAK,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAChC,SAAS,SAAS,2BAA2B,EAC7C,KAAK,SAAS,uBAAuB,CACrC,SAAQ,0BAA0B,CAAC,SAAS,EAAE,KAAK,CAAC;IACpD,qBAAqB;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC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+1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAqGlC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<TEventAction extends AuthenticationEventAction>\n extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<TEventAction extends AuthenticationEventAction>\n extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAuGlC;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO;QACL,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Abstract base event interface to house common event request attributes.\n */\nexport interface AuthenticationEventRequestCommon {\n /** Related Type */\n type: string;\n /** The status of the current request, see RequestStatus. */\n requestStatus: RequestStatus;\n /** A user friendly message (containing errors), that the authentication event returns. */\n statusMessage: string;\n /** A dictionary of query string parameters */\n queryParameters: Record<string, string>;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects.\n */\nexport interface AuthenticationEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequestCommon {\n /** Related IEventResponse */\n response: TResponse;\n /** Related IEventData */\n payload: TData;\n}\n\n/**\n * Event request interface extended the related response and event data (payload) objects for cloud events.\n */\nexport interface CloudEventRequest<\n TResponse extends AuthenticationEventResponse,\n TData extends AuthenticationEventData,\n> extends AuthenticationEventRequest<TResponse, TData> {\n /** Related Source */\n source: string;\n /** Related \\@odata.type */\n oDataType: string;\n}\n\n/**\n * Event response interface that houses attributes returned from the authentication events trigger.\n */\nexport interface AuthenticationEventResponse {\n /** A template of the body of the expected response. */\n body: string;\n}\n\n/**\n * Event data interface pertaining to the expected payload, this interface houses the common attributes for data events.\n */\nexport interface AuthenticationEventData {\n /** Tenant the request is related to. */\n tenantId: string;\n /** Unique Id for the event. */\n authenticationEventListenerId: string;\n /** The unique internal Id of the registered custom extension. */\n customAuthenticationExtensionId: string;\n}\n\n/**\n * An interface that binds a response that has actions\n */\nexport interface ActionableResponse<\n TEventAction extends AuthenticationEventAction,\n> extends AuthenticationEventResponse {\n /** Collections of actions pertaining to the event. */\n actions: TEventAction[];\n}\n\n/**\n * An interface for any responses that implement an cloud event payload and has actions on it.\n */\nexport interface ActionableCloudEventResponse<\n TEventAction extends AuthenticationEventAction,\n> extends ActionableResponse<TEventAction> {\n /** Gets the Cloud Event \\@odata.type. */\n oDataType: string;\n}\n\n/**\n * An interface representing an action for an event.\n */\nexport interface AuthenticationEventAction {\n /** Must be overridden, this will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n\n/**\n * The status of the request.\n */\nexport type RequestStatus = \"Failed\" | \"TokenInvalid\" | \"Successful\";\n\n/**\n * Return the correctly formatted error\n * */\nexport interface FailedRequest extends AuthenticationEventResponse {\n //* * The error that caused the request to fail. */\n error: string;\n}\n\n/**\n * Helper function to create a files request\n * @param error - string or exception\n * @returns a valid FailedRequest object\n */\nexport function createFailedRequest(error: unknown): FailedRequest {\n return {\n body: \"\",\n error: error instanceof Error ? error.message : String(error),\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,yBACf,SAAQ,iBAAiB,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;IAC7E,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,4BAA4B,CAAC,wBAAwB,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,oCAAoC;IACpC,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,wBAAwB,EAAE,MAAM,CAAC;IACjC,iDAAiD;IACjD,4BAA4B,EAAE,MAAM,CAAC;IACrC,4CAA4C;IAC5C,0BAA0B,EAAE,MAAM,CAAC;IACnC,yCAAyC;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qCAAqC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,OAAO,KAAK,EACV,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAEtB;;GA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B,EAAE,MAAM,CAAC;IAC9B,qCAAqC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,MAAM,EAAE,gCAAgC,CAAC;IACzC,kCAAkC;IAClC,sBAAsB,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAC1F,oCAAoC;IACpC,sBAAsB,EAAE,0CAA0C,CAAC;IACnE,sCAAsC;IACtC,wBAAwB,EAAE,0CAA0C,CAAC;IACrE,sDAAsD;IACtD,IAAI,EAAE,8BAA8B,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest\n extends CloudEventRequest<TokenIssuanceStartResponse, TokenIssuanceStartData> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/tokenIssuanceStart/context.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Container file for all interfaces that pertain to the OnTokenIssuanceStart event API schema version 10-01-2021-preview.\n */\nimport type {\n ActionableCloudEventResponse,\n AuthenticationEventAction,\n AuthenticationEventData,\n CloudEventRequest,\n} from \"../events.js\";\n\n/**\n * The main request interface, this will relate it's response and payload.\n */\nexport interface TokenIssuanceStartRequest extends CloudEventRequest<\n TokenIssuanceStartResponse,\n TokenIssuanceStartData\n> {\n /** A dictionary of token claims. */\n tokenClaims?: Record<string, string>;\n}\n\n/**\n * The main response interface that is related to the request, this extends IActionable as the response\n * contains actions, we only allow actions that inherit the TokenIssuanceStartAction.\n */\nexport type TokenIssuanceStartResponse = ActionableCloudEventResponse<TokenIssuanceStartAction>;\n\n/**\n * The main data interface related to the request.\n */\nexport interface TokenIssuanceStartData extends AuthenticationEventData {\n /** The main context of the data. */\n authenticationContext: AuthenticationEventContext;\n}\n\n/**\n * Client interface for data.\n */\nexport interface AuthenticationEventContextClient {\n /** The Ip Address */\n ip: string;\n /** Gets or sets the locale. */\n locale: string;\n /** Gets or sets the market. */\n market: string;\n}\n\n/**\n * ResourceServicePrincipal interface for data.\n */\nexport interface AuthenticationEventContextServicePrincipal {\n /** The identifier for the service principal. */\n id: string;\n /** The application identifier. */\n appId: string;\n /** The application display name. */\n appDisplayName: string;\n /** The display name. */\n displayName: string;\n}\n\n/**\n * User interface for data.\n */\nexport interface AuthenticationEventContextUser {\n /** The user's company name. */\n companyName: string;\n /** The user's country. */\n country: string;\n /** The user's display name. */\n displayName: string;\n /** The user's given name. */\n givenName: string;\n /** The user identifier. */\n id: string;\n /** The user's email address. */\n mail: string;\n /** The user's on premise SAM account name. */\n onPremisesSamAccountName: string;\n /** The user's on premise security identifier. */\n onPremisesSecurityIdentifier: string;\n /** The user's on premise principal name. */\n onPremiseUserPrincipalName: string;\n /** The user's preferred data location */\n preferredDataLocation: string;\n /** The user's preferred language. */\n preferredLanguage: string;\n /** The user's surname. */\n surname: string;\n /** The user's principal name. */\n userPrincipalName: string;\n /** The user type. */\n userType: string;\n}\n\n/**\n * Context interface for data.\n */\nexport interface AuthenticationEventContext {\n /** Unique identifier for the request. */\n correlationId: string;\n /** The client. */\n client: AuthenticationEventContextClient;\n /** The authorization protocol. */\n authenticationProtocol: \"OAUTH2.0\" | \"SAML\" | \"WS-FED\" | \"unknownFutureValue\" | undefined;\n /** The client service principal. */\n clientServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** The resource service principal. */\n resourceServicePrincipal: AuthenticationEventContextServicePrincipal;\n /** Data pertaining to the user requesting a token. */\n user: AuthenticationEventContextUser;\n}\n\n/**\n * All actions for the token issuance start event should extended this interface, as it looks the correct action to the correct event.\n */\nexport interface TokenIssuanceStartAction extends AuthenticationEventAction {\n /** This will be the 'Name' of the action in the JSON. */\n actionType: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/functions-authentication-events",
3
- "version": "1.0.0-alpha.20251127.1",
3
+ "version": "1.0.0-alpha.20251205.1",
4
4
  "description": "Typescript Trigger SDK for Azure AD Authentication event custom extensions. Lets you focus on your business logic.",
5
5
  "sdk-type": "client",
6
6
  "main": "./dist/commonjs/index.js",
@@ -51,8 +51,8 @@
51
51
  "tshy": "^3.0.3",
52
52
  "typescript": "~5.9.3",
53
53
  "vitest": "^4.0.8",
54
- "@azure-tools/test-utils-vitest": "^2.0.1",
55
54
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
55
+ "@azure-tools/test-utils-vitest": "^2.0.1",
56
56
  "@azure/dev-tool": "^1.0.0"
57
57
  },
58
58
  "//sampleConfiguration": {