@lumoauth/api-client 1.0.0 → 1.1.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.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/.openapi-generator-ignore +1 -1
  3. package/README.md +8 -2
  4. package/api/admin-oauth-clients-api.ts +118 -0
  5. package/api/authorization-api.ts +5 -26
  6. package/dist/api/admin-oauth-clients-api.d.ts +65 -0
  7. package/dist/api/admin-oauth-clients-api.js +77 -0
  8. package/dist/api/authorization-api.d.ts +5 -5
  9. package/dist/api/authorization-api.js +4 -18
  10. package/dist/esm/api/admin-oauth-clients-api.d.ts +65 -0
  11. package/dist/esm/api/admin-oauth-clients-api.js +78 -1
  12. package/dist/esm/api/authorization-api.d.ts +5 -5
  13. package/dist/esm/api/authorization-api.js +4 -18
  14. package/dist/esm/models/admin-clients-cimd-check-request.d.ts +30 -0
  15. package/dist/esm/models/admin-clients-cimd-check-request.js +14 -0
  16. package/dist/esm/models/admin-clients-cimd-check-response.d.ts +25 -0
  17. package/dist/esm/models/admin-clients-cimd-check-response.js +14 -0
  18. package/dist/esm/models/authentication-settings.d.ts +1 -1
  19. package/dist/esm/models/authorization-server-metadata.d.ts +1 -1
  20. package/dist/esm/models/cimd-check-result-effective.d.ts +112 -0
  21. package/dist/esm/models/cimd-check-result-effective.js +31 -0
  22. package/dist/esm/models/cimd-check-result-shadow-client.d.ts +30 -0
  23. package/dist/esm/models/cimd-check-result-shadow-client.js +14 -0
  24. package/dist/esm/models/cimd-check-result.d.ts +76 -0
  25. package/dist/esm/models/cimd-check-result.js +14 -0
  26. package/dist/esm/models/index.d.ts +5 -0
  27. package/dist/esm/models/index.js +5 -0
  28. package/dist/esm/models/open-id-configuration.d.ts +1 -1
  29. package/dist/esm/models/push-enrollment-started.d.ts +7 -1
  30. package/dist/models/admin-clients-cimd-check-request.d.ts +30 -0
  31. package/dist/models/admin-clients-cimd-check-request.js +15 -0
  32. package/dist/models/admin-clients-cimd-check-response.d.ts +25 -0
  33. package/dist/models/admin-clients-cimd-check-response.js +15 -0
  34. package/dist/models/authentication-settings.d.ts +1 -1
  35. package/dist/models/authorization-server-metadata.d.ts +1 -1
  36. package/dist/models/cimd-check-result-effective.d.ts +112 -0
  37. package/dist/models/cimd-check-result-effective.js +34 -0
  38. package/dist/models/cimd-check-result-shadow-client.d.ts +30 -0
  39. package/dist/models/cimd-check-result-shadow-client.js +15 -0
  40. package/dist/models/cimd-check-result.d.ts +76 -0
  41. package/dist/models/cimd-check-result.js +15 -0
  42. package/dist/models/index.d.ts +5 -0
  43. package/dist/models/index.js +5 -0
  44. package/dist/models/open-id-configuration.d.ts +1 -1
  45. package/dist/models/push-enrollment-started.d.ts +7 -1
  46. package/docs/AdminClientsCimdCheckRequest.md +22 -0
  47. package/docs/AdminClientsCimdCheckResponse.md +20 -0
  48. package/docs/AdminOAuthClientsApi.md +57 -0
  49. package/docs/AuthenticationSettings.md +1 -1
  50. package/docs/AuthorizationApi.md +8 -8
  51. package/docs/AuthorizationServerMetadata.md +1 -1
  52. package/docs/CimdCheckResult.md +37 -0
  53. package/docs/CimdCheckResultEffective.md +45 -0
  54. package/docs/CimdCheckResultShadowClient.md +23 -0
  55. package/docs/EnrollAuthenticator201Response.md +3 -1
  56. package/docs/OpenIdConfiguration.md +1 -1
  57. package/docs/PushEnrollmentStarted.md +3 -1
  58. package/docs/WellKnownApi.md +2 -2
  59. package/models/admin-clients-cimd-check-request.ts +36 -0
  60. package/models/admin-clients-cimd-check-response.ts +33 -0
  61. package/models/authentication-settings.ts +1 -1
  62. package/models/authorization-server-metadata.ts +1 -1
  63. package/models/cimd-check-result-effective.ts +120 -0
  64. package/models/cimd-check-result-shadow-client.ts +36 -0
  65. package/models/cimd-check-result.ts +84 -0
  66. package/models/index.ts +5 -0
  67. package/models/open-id-configuration.ts +1 -1
  68. package/models/push-enrollment-started.ts +7 -1
  69. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LumoAuth API
5
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: sdk@lumoauth.dev
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * The client LumoAuth derives from the document after organization policy.
19
+ * @export
20
+ * @interface CimdCheckResultEffective
21
+ */
22
+ export interface CimdCheckResultEffective {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CimdCheckResultEffective
27
+ */
28
+ 'client_name'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CimdCheckResultEffective
33
+ */
34
+ 'application_type'?: CimdCheckResultEffectiveApplicationType;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CimdCheckResultEffective
39
+ */
40
+ 'token_endpoint_auth_method'?: CimdCheckResultEffectiveTokenEndpointAuthMethod;
41
+ /**
42
+ *
43
+ * @type {boolean}
44
+ * @memberof CimdCheckResultEffective
45
+ */
46
+ 'public_client'?: boolean;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof CimdCheckResultEffective
51
+ */
52
+ 'pkce_required'?: boolean;
53
+ /**
54
+ *
55
+ * @type {Array<string>}
56
+ * @memberof CimdCheckResultEffective
57
+ */
58
+ 'redirect_uris'?: Array<string>;
59
+ /**
60
+ * Loopback URIs removed by the organization\'s localhost policy.
61
+ * @type {Array<string>}
62
+ * @memberof CimdCheckResultEffective
63
+ */
64
+ 'dropped_redirect_uris'?: Array<string>;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof CimdCheckResultEffective
69
+ */
70
+ 'grant_types'?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof CimdCheckResultEffective
75
+ */
76
+ 'scopes'?: Array<string>;
77
+ /**
78
+ * Scopes the document asked for that are neither identity scopes nor on the organization\'s cimd_allowed_scopes list.
79
+ * @type {Array<string>}
80
+ * @memberof CimdCheckResultEffective
81
+ */
82
+ 'dropped_scopes'?: Array<string>;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof CimdCheckResultEffective
87
+ */
88
+ 'logo_uri'?: string | null;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof CimdCheckResultEffective
93
+ */
94
+ 'client_uri'?: string | null;
95
+ /**
96
+ *
97
+ * @type {boolean}
98
+ * @memberof CimdCheckResultEffective
99
+ */
100
+ 'has_loopback_redirect'?: boolean;
101
+ }
102
+
103
+ /**
104
+ * @export
105
+ * @enum {string}
106
+ */
107
+ export enum CimdCheckResultEffectiveApplicationType {
108
+ WEB = 'web',
109
+ NATIVE = 'native'
110
+ }
111
+ /**
112
+ * @export
113
+ * @enum {string}
114
+ */
115
+ export enum CimdCheckResultEffectiveTokenEndpointAuthMethod {
116
+ NONE = 'none',
117
+ PRIVATE_KEY_JWT = 'private_key_jwt'
118
+ }
119
+
120
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LumoAuth API
5
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: sdk@lumoauth.dev
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Present when this organization has already resolved the client at least once.
19
+ * @export
20
+ * @interface CimdCheckResultShadowClient
21
+ */
22
+ export interface CimdCheckResultShadowClient {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof CimdCheckResultShadowClient
27
+ */
28
+ 'id'?: number | null;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CimdCheckResultShadowClient
33
+ */
34
+ 'last_fetched_at'?: string | null;
35
+ }
36
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LumoAuth API
5
+ * LumoAuth REST API — authentication, authorization, agent registry, MCP server authorization, and tenant administration. Multi-tenant: most paths are scoped under `/orgs/{orgId}/api/v1/...`.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: sdk@lumoauth.dev
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { CimdCheckResultEffective } from './cimd-check-result-effective';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { CimdCheckResultShadowClient } from './cimd-check-result-shadow-client';
22
+
23
+ /**
24
+ * Result of POST /admin/clients/cimd/check — how the authorization server sees a Client ID Metadata Document.
25
+ * @export
26
+ * @interface CimdCheckResult
27
+ */
28
+ export interface CimdCheckResult {
29
+ /**
30
+ * true when the document is valid and would be accepted (subject to `enabled`).
31
+ * @type {boolean}
32
+ * @memberof CimdCheckResult
33
+ */
34
+ 'ok'?: boolean;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CimdCheckResult
39
+ */
40
+ 'client_id'?: string;
41
+ /**
42
+ * Whether CIMD is currently on for this organization (switch + plan).
43
+ * @type {boolean}
44
+ * @memberof CimdCheckResult
45
+ */
46
+ 'enabled'?: boolean;
47
+ /**
48
+ * Stable failure code when ok is false (client_id_mismatch, invalid_redirect_uri, domain_not_allowed, http_status_404, …).
49
+ * @type {string}
50
+ * @memberof CimdCheckResult
51
+ */
52
+ 'reason'?: string | null;
53
+ /**
54
+ * Developer-facing explanation of `reason`.
55
+ * @type {string}
56
+ * @memberof CimdCheckResult
57
+ */
58
+ 'message'?: string | null;
59
+ /**
60
+ *
61
+ * @type {Array<string>}
62
+ * @memberof CimdCheckResult
63
+ */
64
+ 'warnings'?: Array<string>;
65
+ /**
66
+ * The metadata document as fetched.
67
+ * @type {{ [key: string]: any; }}
68
+ * @memberof CimdCheckResult
69
+ */
70
+ 'document'?: { [key: string]: any; } | null;
71
+ /**
72
+ *
73
+ * @type {CimdCheckResultEffective}
74
+ * @memberof CimdCheckResult
75
+ */
76
+ 'effective'?: CimdCheckResultEffective | null;
77
+ /**
78
+ *
79
+ * @type {CimdCheckResultShadowClient}
80
+ * @memberof CimdCheckResult
81
+ */
82
+ 'shadow_client'?: CimdCheckResultShadowClient | null;
83
+ }
84
+
package/models/index.ts CHANGED
@@ -54,6 +54,8 @@ export * from './admin-audit-logs-stats-response';
54
54
  export * from './admin-audit-logs-stats-response-data';
55
55
  export * from './admin-audit-logs-stats-response-data-period';
56
56
  export * from './admin-client-tokens-revoke-all-response';
57
+ export * from './admin-clients-cimd-check-request';
58
+ export * from './admin-clients-cimd-check-response';
57
59
  export * from './admin-email-templates-list-response';
58
60
  export * from './admin-email-templates-preview-response';
59
61
  export * from './admin-email-templates-variables-response';
@@ -186,6 +188,9 @@ export * from './check-permission-response';
186
188
  export * from './check-permissions-bulk-response';
187
189
  export * from './check-relation-response';
188
190
  export * from './check-relation-scoped-response';
191
+ export * from './cimd-check-result';
192
+ export * from './cimd-check-result-effective';
193
+ export * from './cimd-check-result-shadow-client';
189
194
  export * from './complete-task-response';
190
195
  export * from './create-approval-request';
191
196
  export * from './create-approval-response';
@@ -309,7 +309,7 @@ export interface OpenIdConfiguration {
309
309
  */
310
310
  'entity_profiles_supported'?: Array<string>;
311
311
  /**
312
- * Only when CIMD is enabled for the organization.
312
+ * Present (true) unless the organization switched Client ID Metadata Documents off.
313
313
  * @type {boolean}
314
314
  * @memberof OpenIdConfiguration
315
315
  */
@@ -39,11 +39,17 @@ export interface PushEnrollmentStarted {
39
39
  */
40
40
  'qr_data_uri'?: string;
41
41
  /**
42
- *
42
+ * https://<server>/push-auth/enroll?d=… — an Android App Link / iOS Universal Link that opens the authenticator app on a phone (falls back to a help page without it).
43
43
  * @type {string}
44
44
  * @memberof PushEnrollmentStarted
45
45
  */
46
46
  'deep_link'?: string;
47
+ /**
48
+ * Same link as an intent:// URL pinned to the Android app package, for pages served from this host (Chrome keeps same-site App Links in the browser). Null when the deployment has not configured the package.
49
+ * @type {string}
50
+ * @memberof PushEnrollmentStarted
51
+ */
52
+ 'deep_link_android'?: string | null;
47
53
  /**
48
54
  *
49
55
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumoauth/api-client",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @lumoauth/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {