@aptly-as/types 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/app.d.ts CHANGED
@@ -12,16 +12,16 @@ export interface AptlyAppJWT {
12
12
  exp: number;
13
13
  }
14
14
  export interface AptlyAppAuthorizeCode {
15
- scope: AptlyAppScope[];
15
+ jti: string;
16
16
  aud: string;
17
17
  sub: string;
18
- jti: string;
19
18
  iss: 'aptly.as';
19
+ organization: string;
20
+ app: string;
21
+ scope: AptlyAppScope[];
20
22
  }
21
- export interface AptlyAppAuthorizeToken {
22
- iss: string;
23
+ export interface AptlyAppAuthorizeToken extends Omit<AptlyAppAuthorizeCode, 'aud'> {
23
24
  aud: string;
24
- sub: string;
25
25
  }
26
26
  export interface AptlyAppWebContext<S extends object> {
27
27
  organization: Pick<AptlyOrganization, '_id' | 'slug' | 'name'>;
package/models/app.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface AptlyAppSchema<ID, DATE> extends Omit<AptlyBaseSchema<ID, DATE>
9
9
  installUrl: string;
10
10
  redirectUris: string[];
11
11
  clientSecret: string;
12
+ user: ID;
12
13
  logo?: AptlyMediaSrcSchema<ID, DATE>;
13
14
  banner?: AptlyMediaSrcSchema<ID, DATE>;
14
15
  settings: AptlyAppSettingSchema<ID>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptly-as/types",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Aptly types and enums",
5
5
  "type": "module",
6
6
  "main": "./index.js",