@forge/realtime 0.4.0-next.0 → 0.4.0-next.2

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,17 @@
1
1
  # @forge/realtime
2
2
 
3
+ ## 0.4.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d660c1: Update isActive -> active in License
8
+
9
+ ## 0.4.0-next.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 0643bc3: No changes
14
+
3
15
  ## 0.4.0-next.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,4 @@
1
- declare type RealtimeTokenPermissions = ['subscribe'] | ['publish'] | ['subscribe', 'publish'] | ['publish', 'subscribe'];
2
- export declare const signRealtimeToken: (channelName: string, claims: any, permissions?: RealtimeTokenPermissions) => Promise<{
1
+ export declare const signRealtimeToken: (channelName: string, claims: any) => Promise<{
3
2
  token: null;
4
3
  expiresAt: null;
5
4
  errors: any;
@@ -8,5 +7,4 @@ export declare const signRealtimeToken: (channelName: string, claims: any, permi
8
7
  expiresAt: any;
9
8
  errors?: undefined;
10
9
  }>;
11
- export {};
12
10
  //# sourceMappingURL=signRealtimeToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signRealtimeToken.d.ts","sourceRoot":"","sources":["../src/signRealtimeToken.ts"],"names":[],"mappings":"AA6BA,aAAK,wBAAwB,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAElH,eAAO,MAAM,iBAAiB,gBACf,MAAM,UAEX,GAAG,gBACG,wBAAwB;;;;;;;;EAyDvC,CAAC"}
1
+ {"version":3,"file":"signRealtimeToken.d.ts","sourceRoot":"","sources":["../src/signRealtimeToken.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,iBAAiB,gBACf,MAAM,UAEX,GAAG;;;;;;;;EAwDZ,CAAC"}
@@ -5,13 +5,11 @@ const utils_1 = require("./utils");
5
5
  const graphqlBody = `mutation signRealtimeToken(
6
6
  $channelName: String!
7
7
  $claims: JSON!
8
- $permissions: [RealtimeTokenPermission!]
9
8
  ){
10
9
  ecosystem {
11
10
  signRealtimeToken(
12
11
  channelName: $channelName
13
12
  claims: $claims
14
- permissions: $permissions
15
13
  ) {
16
14
  errors {
17
15
  message
@@ -28,7 +26,7 @@ const graphqlBody = `mutation signRealtimeToken(
28
26
  }
29
27
  }
30
28
  }`;
31
- const signRealtimeToken = async (channelName, claims, permissions) => {
29
+ const signRealtimeToken = async (channelName, claims) => {
32
30
  const response = await global.__forge_fetch__({
33
31
  type: 'realtime'
34
32
  }, '/', {
@@ -37,8 +35,7 @@ const signRealtimeToken = async (channelName, claims, permissions) => {
37
35
  query: graphqlBody,
38
36
  variables: {
39
37
  channelName,
40
- claims,
41
- permissions
38
+ claims
42
39
  }
43
40
  }),
44
41
  errors: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/realtime",
3
- "version": "0.4.0-next.0",
3
+ "version": "0.4.0-next.2",
4
4
  "description": "Forge realtime",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@atlassian/metrics-interface": "4.0.0",
17
- "@forge/api": "^7.2.0-next.0",
17
+ "@forge/api": "^7.2.0-next.1",
18
18
  "@types/node": "20.19.1"
19
19
  },
20
20
  "publishConfig": {