@forge/runtime 5.9.0 → 5.10.0-next.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/runtime
2
2
 
3
+ ## 5.10.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1eaeb60: Include app license information in the getAppContext Api
8
+
3
9
  ## 5.9.0
4
10
 
5
11
  ### Minor Changes
package/out/context.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { RuntimeAPIConfig } from './config';
2
+ import { License } from './request';
2
3
  export interface InstallationContext {
3
4
  projectId?: string;
4
5
  workspaceId?: string;
@@ -10,19 +11,27 @@ export interface Principal {
10
11
  }
11
12
  export declare function isAccountIdDefined(accountId?: string): accountId is string;
12
13
  export declare function createPrincipal(cfg: RuntimeAPIConfig): Principal | undefined;
13
- export interface License {
14
- license: {
15
- isActive: boolean;
16
- };
14
+ export interface LicenseContext {
15
+ license: License;
17
16
  }
18
- export declare function createLicenseContext(cfg: RuntimeAPIConfig): License | undefined;
17
+ export declare function createLicenseContext(cfg: RuntimeAPIConfig): LicenseContext | undefined;
19
18
  export declare function setupRequestContext(cfg: RuntimeAPIConfig): {
20
19
  projectId?: string | undefined;
21
20
  workspaceId?: string | undefined;
22
21
  installContext: string;
23
- license?: {
22
+ license?: ({
24
23
  isActive: boolean;
25
- } | undefined;
24
+ } & {
25
+ billingPeriod?: string | null | undefined;
26
+ capabilitySet?: string | null | undefined;
27
+ ccpEntitlementId?: string | null | undefined;
28
+ ccpEntitlementSlug?: string | null | undefined;
29
+ isEvaluation?: boolean | null | undefined;
30
+ subscriptionEndDate?: string | null | undefined;
31
+ supportEntitlementNumber?: string | null | undefined;
32
+ trialEndDate?: string | null | undefined;
33
+ type?: string | null | undefined;
34
+ }) | undefined;
26
35
  principal: Principal | undefined;
27
36
  };
28
37
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAMD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,CAcpF;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,IAAI,MAAM,CAE1E;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAG5E;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE;QACP,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,GAAG,SAAS,CAU/E;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,gBAAgB;;;;;;;;EAMxD"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAMD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,CAcpF;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,IAAI,MAAM,CAE1E;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAG5E;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,GAAG,cAAc,GAAG,SAAS,CAMtF;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;EAMxD"}
package/out/context.js CHANGED
@@ -33,11 +33,8 @@ exports.createPrincipal = createPrincipal;
33
33
  function createLicenseContext(cfg) {
34
34
  const { license } = cfg.meta;
35
35
  if (license) {
36
- return {
37
- license: {
38
- isActive: license.isActive ?? false
39
- }
40
- };
36
+ const { isActive, ...rest } = license;
37
+ return { license: { isActive: isActive ?? false, ...rest } };
41
38
  }
42
39
  }
43
40
  exports.createLicenseContext = createLicenseContext;
package/out/request.d.ts CHANGED
@@ -9,6 +9,19 @@ declare const XisRequestTokenType: t.IntersectionC<[t.TypeC<{
9
9
  avatarUrl: t.UnionC<[t.StringC, t.UndefinedC]>;
10
10
  scopes: t.ArrayC<t.StringC>;
11
11
  }>]>;
12
+ export declare const LicenseType: t.IntersectionC<[t.TypeC<{
13
+ isActive: t.BooleanC;
14
+ }>, t.PartialC<{
15
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
16
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
17
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
18
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
19
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
20
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
21
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
22
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
23
+ type: t.UnionC<[t.StringC, t.NullC]>;
24
+ }>]>;
12
25
  declare const MetadataType: t.IntersectionC<[t.TypeC<{
13
26
  apiAuth: t.TypeC<{
14
27
  env: t.StringC;
@@ -26,7 +39,7 @@ declare const MetadataType: t.IntersectionC<[t.TypeC<{
26
39
  avatarUrl: t.UnionC<[t.StringC, t.UndefinedC]>;
27
40
  scopes: t.ArrayC<t.StringC>;
28
41
  }>]>>;
29
- appContext: t.TypeC<{
42
+ appContext: t.IntersectionC<[t.TypeC<{
30
43
  appId: t.StringC;
31
44
  appVersion: t.StringC;
32
45
  environmentId: t.StringC;
@@ -36,7 +49,21 @@ declare const MetadataType: t.IntersectionC<[t.TypeC<{
36
49
  functionKey: t.StringC;
37
50
  moduleType: t.StringC;
38
51
  moduleKey: t.StringC;
39
- }>;
52
+ }>, t.PartialC<{
53
+ license: t.IntersectionC<[t.TypeC<{
54
+ isActive: t.BooleanC;
55
+ }>, t.PartialC<{
56
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
57
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
58
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
59
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
60
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
61
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
62
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
63
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
64
+ type: t.UnionC<[t.StringC, t.NullC]>;
65
+ }>]>;
66
+ }>]>;
40
67
  tracing: t.TypeC<{
41
68
  traceId: t.StringC;
42
69
  spanId: t.StringC;
@@ -57,9 +84,19 @@ declare const MetadataType: t.IntersectionC<[t.TypeC<{
57
84
  host: t.StringC;
58
85
  }>;
59
86
  limits: t.RecordC<t.StringC, t.NumberC>;
60
- license: t.PartialC<{
87
+ license: t.IntersectionC<[t.TypeC<{
61
88
  isActive: t.BooleanC;
62
- }>;
89
+ }>, t.PartialC<{
90
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
91
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
92
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
93
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
94
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
95
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
96
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
97
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
98
+ type: t.UnionC<[t.StringC, t.NullC]>;
99
+ }>]>;
63
100
  fetchAllowList: t.ArrayC<t.StringC>;
64
101
  externalAuth: t.ArrayC<t.TypeC<{
65
102
  service: t.StringC;
@@ -100,7 +137,7 @@ export declare const ExternalRequestBodyType: t.IntersectionC<[t.TypeC<{
100
137
  avatarUrl: t.UnionC<[t.StringC, t.UndefinedC]>;
101
138
  scopes: t.ArrayC<t.StringC>;
102
139
  }>]>>;
103
- appContext: t.TypeC<{
140
+ appContext: t.IntersectionC<[t.TypeC<{
104
141
  appId: t.StringC;
105
142
  appVersion: t.StringC;
106
143
  environmentId: t.StringC;
@@ -110,7 +147,21 @@ export declare const ExternalRequestBodyType: t.IntersectionC<[t.TypeC<{
110
147
  functionKey: t.StringC;
111
148
  moduleType: t.StringC;
112
149
  moduleKey: t.StringC;
113
- }>;
150
+ }>, t.PartialC<{
151
+ license: t.IntersectionC<[t.TypeC<{
152
+ isActive: t.BooleanC;
153
+ }>, t.PartialC<{
154
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
155
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
156
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
157
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
158
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
159
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
160
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
161
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
162
+ type: t.UnionC<[t.StringC, t.NullC]>;
163
+ }>]>;
164
+ }>]>;
114
165
  tracing: t.TypeC<{
115
166
  traceId: t.StringC;
116
167
  spanId: t.StringC;
@@ -131,9 +182,19 @@ export declare const ExternalRequestBodyType: t.IntersectionC<[t.TypeC<{
131
182
  host: t.StringC;
132
183
  }>;
133
184
  limits: t.RecordC<t.StringC, t.NumberC>;
134
- license: t.PartialC<{
185
+ license: t.IntersectionC<[t.TypeC<{
135
186
  isActive: t.BooleanC;
136
- }>;
187
+ }>, t.PartialC<{
188
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
189
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
190
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
191
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
192
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
193
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
194
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
195
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
196
+ type: t.UnionC<[t.StringC, t.NullC]>;
197
+ }>]>;
137
198
  fetchAllowList: t.ArrayC<t.StringC>;
138
199
  externalAuth: t.ArrayC<t.TypeC<{
139
200
  service: t.StringC;
@@ -179,7 +240,7 @@ export declare const InvocationType: t.TypeC<{
179
240
  avatarUrl: t.UnionC<[t.StringC, t.UndefinedC]>;
180
241
  scopes: t.ArrayC<t.StringC>;
181
242
  }>]>>;
182
- appContext: t.TypeC<{
243
+ appContext: t.IntersectionC<[t.TypeC<{
183
244
  appId: t.StringC;
184
245
  appVersion: t.StringC;
185
246
  environmentId: t.StringC;
@@ -189,7 +250,21 @@ export declare const InvocationType: t.TypeC<{
189
250
  functionKey: t.StringC;
190
251
  moduleType: t.StringC;
191
252
  moduleKey: t.StringC;
192
- }>;
253
+ }>, t.PartialC<{
254
+ license: t.IntersectionC<[t.TypeC<{
255
+ isActive: t.BooleanC;
256
+ }>, t.PartialC<{
257
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
258
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
259
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
260
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
261
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
262
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
263
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
264
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
265
+ type: t.UnionC<[t.StringC, t.NullC]>;
266
+ }>]>;
267
+ }>]>;
193
268
  tracing: t.TypeC<{
194
269
  traceId: t.StringC;
195
270
  spanId: t.StringC;
@@ -210,9 +285,19 @@ export declare const InvocationType: t.TypeC<{
210
285
  host: t.StringC;
211
286
  }>;
212
287
  limits: t.RecordC<t.StringC, t.NumberC>;
213
- license: t.PartialC<{
288
+ license: t.IntersectionC<[t.TypeC<{
214
289
  isActive: t.BooleanC;
215
- }>;
290
+ }>, t.PartialC<{
291
+ billingPeriod: t.UnionC<[t.StringC, t.NullC]>;
292
+ capabilitySet: t.UnionC<[t.StringC, t.NullC]>;
293
+ ccpEntitlementId: t.UnionC<[t.StringC, t.NullC]>;
294
+ ccpEntitlementSlug: t.UnionC<[t.StringC, t.NullC]>;
295
+ isEvaluation: t.UnionC<[t.BooleanC, t.NullC]>;
296
+ subscriptionEndDate: t.UnionC<[t.StringC, t.NullC]>;
297
+ supportEntitlementNumber: t.UnionC<[t.StringC, t.NullC]>;
298
+ trialEndDate: t.UnionC<[t.StringC, t.NullC]>;
299
+ type: t.UnionC<[t.StringC, t.NullC]>;
300
+ }>]>;
216
301
  fetchAllowList: t.ArrayC<t.StringC>;
217
302
  externalAuth: t.ArrayC<t.TypeC<{
218
303
  service: t.StringC;
@@ -246,6 +331,7 @@ export declare const InvocationType: t.TypeC<{
246
331
  }>;
247
332
  }>;
248
333
  export declare type ExternalRequestVariable = t.TypeOf<typeof VariableType>;
334
+ export declare type License = t.TypeOf<typeof LicenseType>;
249
335
  export declare type Invocation = t.TypeOf<typeof InvocationType>;
250
336
  export declare type Metadata = t.TypeOf<typeof MetadataType>;
251
337
  export declare type XisRequestToken = t.TypeOf<typeof XisRequestTokenType>;
@@ -1 +1 @@
1
- {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../src/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AA0B3B,QAAA,MAAM,mBAAmB;;;;;;;;;IAYvB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDhB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AAIH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASlC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,oBAAY,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpE,oBAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,oBAAY,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AACrD,oBAAY,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,oBAAY,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../src/request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AA0B3B,QAAA,MAAM,mBAAmB;;;;;;;;;IAYvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;IAetB,CAAC;AAmBH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsChB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AAIH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASlC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,oBAAY,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AACpE,oBAAY,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AACnD,oBAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,oBAAY,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AACrD,oBAAY,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,oBAAY,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
package/out/request.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvocationType = exports.ExternalRequestBodyType = void 0;
3
+ exports.InvocationType = exports.ExternalRequestBodyType = exports.LicenseType = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const t = tslib_1.__importStar(require("io-ts"));
6
6
  const Remote = t.type({
@@ -36,6 +36,38 @@ const XisRequestTokenType = t.intersection([
36
36
  scopes: t.array(t.string)
37
37
  })
38
38
  ]);
39
+ exports.LicenseType = t.intersection([
40
+ t.type({
41
+ isActive: t.boolean
42
+ }),
43
+ t.partial({
44
+ billingPeriod: t.union([t.string, t.null]),
45
+ capabilitySet: t.union([t.string, t.null]),
46
+ ccpEntitlementId: t.union([t.string, t.null]),
47
+ ccpEntitlementSlug: t.union([t.string, t.null]),
48
+ isEvaluation: t.union([t.boolean, t.null]),
49
+ subscriptionEndDate: t.union([t.string, t.null]),
50
+ supportEntitlementNumber: t.union([t.string, t.null]),
51
+ trialEndDate: t.union([t.string, t.null]),
52
+ type: t.union([t.string, t.null])
53
+ })
54
+ ]);
55
+ const AppContext = t.intersection([
56
+ t.type({
57
+ appId: t.string,
58
+ appVersion: t.string,
59
+ environmentId: t.string,
60
+ environmentType: t.string,
61
+ invocationId: t.string,
62
+ installationId: t.string,
63
+ functionKey: t.string,
64
+ moduleType: t.string,
65
+ moduleKey: t.string
66
+ }),
67
+ t.partial({
68
+ license: exports.LicenseType
69
+ })
70
+ ]);
39
71
  const MetadataType = t.intersection([
40
72
  t.type({
41
73
  apiAuth: t.type({
@@ -45,17 +77,7 @@ const MetadataType = t.intersection([
45
77
  clientId: t.string,
46
78
  contextAri: t.string,
47
79
  tokens: t.array(XisRequestTokenType),
48
- appContext: t.type({
49
- appId: t.string,
50
- appVersion: t.string,
51
- environmentId: t.string,
52
- environmentType: t.string,
53
- invocationId: t.string,
54
- installationId: t.string,
55
- functionKey: t.string,
56
- moduleType: t.string,
57
- moduleKey: t.string
58
- }),
80
+ appContext: AppContext,
59
81
  tracing: t.type({
60
82
  traceId: t.string,
61
83
  spanId: t.string
@@ -80,9 +102,7 @@ const MetadataType = t.intersection([
80
102
  host: t.string
81
103
  }),
82
104
  limits: t.record(t.string, t.number),
83
- license: t.partial({
84
- isActive: t.boolean
85
- }),
105
+ license: exports.LicenseType,
86
106
  fetchAllowList: t.array(t.string),
87
107
  externalAuth: t.array(ExternalAuthMetaData)
88
108
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/runtime",
3
- "version": "5.9.0",
3
+ "version": "5.10.0-next.0",
4
4
  "description": "A Node.js runtime for Atlassian app functions",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",