@asgardeo/javascript 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,13 @@
20
20
  */
21
21
  export interface AgentConfig {
22
22
  /**
23
- * The unique identifier for the agent
23
+ * The unique identifier for the agent.
24
24
  */
25
25
  agentID: string;
26
26
  /**
27
- * The secret credential for the agent
27
+ * The secret credential for the agent.
28
28
  */
29
- agentSecret: string;
29
+ agentSecret?: string;
30
30
  /**
31
31
  * The authenticator name to match during the embedded sign-in flow.
32
32
  * Defaults to {@link AgentConfig.DEFAULT_AUTHENTICATOR_NAME} if not provided.
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/models/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACI,MAAM,0BAA0B,EAAE,MAA8B,CAAC;CACzE"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/models/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACI,MAAM,0BAA0B,EAAE,MAA8B,CAAC;CACzE"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
2
+ * Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
3
3
  *
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
@@ -31,4 +31,14 @@ export interface AllOrganizationsApiResponse {
31
31
  organizations: Organization[];
32
32
  totalCount?: number;
33
33
  }
34
+ /**
35
+ * Supported organization discovery types used when building an
36
+ * organization-scoped authorization URL.
37
+ *
38
+ * - `orgID` : organization UUID
39
+ * - `orgHandle` : organization handle
40
+ * - `org` : organization name
41
+ * - `emailDomain` : user email address
42
+ */
43
+ export type OrgDiscoveryType = 'orgID' | 'orgHandle' | 'org' | 'emailDomain';
34
44
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/models/organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,GAAG,aAAa,CAAC"}
@@ -31,7 +31,7 @@ export interface TokenResponse {
31
31
  */
32
32
  accessToken: string;
33
33
  /**
34
- * Unix timestamp (in seconds) when the token was created.
34
+ * Unix timestamp (in milliseconds) when the token was created.
35
35
  * Used in combination with expiresIn to determine when
36
36
  * the token needs to be refreshed.
37
37
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",