@hautechai/sdk 0.0.24 → 0.0.25

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.
@@ -1119,13 +1119,13 @@ export interface KateInpaintV1Input {
1119
1119
  * @type {string}
1120
1120
  * @memberof KateInpaintV1Input
1121
1121
  */
1122
- 'image': string;
1122
+ 'imageId': string;
1123
1123
  /**
1124
1124
  *
1125
1125
  * @type {string}
1126
1126
  * @memberof KateInpaintV1Input
1127
1127
  */
1128
- 'mask': string;
1128
+ 'maskImageId'?: string;
1129
1129
  /**
1130
1130
  *
1131
1131
  * @type {number}
@@ -1155,13 +1155,13 @@ export interface KateInpaintV1Input {
1155
1155
  * @type {number}
1156
1156
  * @memberof KateInpaintV1Input
1157
1157
  */
1158
- 'height': number;
1158
+ 'height'?: number;
1159
1159
  /**
1160
1160
  *
1161
1161
  * @type {number}
1162
1162
  * @memberof KateInpaintV1Input
1163
1163
  */
1164
- 'width': number;
1164
+ 'width'?: number;
1165
1165
  /**
1166
1166
  *
1167
1167
  * @type {number}
@@ -80,4 +80,8 @@ export type MethodsPermissions = {
80
80
  read: boolean;
81
81
  update: boolean;
82
82
  };
83
+ websocket: {
84
+ connect: boolean;
85
+ subscribe: boolean;
86
+ };
83
87
  };
@@ -1,4 +1,3 @@
1
- import { defaultPermissions } from './permissions';
2
1
  import * as jose from 'jose';
3
2
  const createPrivateKey = (key) => {
4
3
  const header = `-----BEGIN PRIVATE KEY-----\n`;
@@ -39,7 +38,7 @@ export const createTokenSigner = (options) => ({
39
38
  expiresInSeconds: props.expiresInSeconds,
40
39
  payload: {
41
40
  iss: options.appId,
42
- permissions: serializePermissions({ ...defaultPermissions, ...(props.permissions ?? {}) }),
41
+ permissions: serializePermissions(props.permissions ?? {}),
43
42
  sub: props.accountId,
44
43
  },
45
44
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- import { MethodsPermissions } from '../autogenerated/permissions';
2
- export declare const defaultPermissions: MethodsPermissions;
@@ -1,26 +0,0 @@
1
- export const defaultPermissions = {
2
- accounts: { create: false, list: false, read: false },
3
- balances: { read: true, self: { read: true, update: false }, update: false },
4
- collections: {
5
- create: true,
6
- items: { add: true, read: true, remove: true },
7
- metadata: { update: true },
8
- read: true,
9
- },
10
- groups: { accounts: { add: false, read: true, remove: false }, create: false, delete: false, read: true },
11
- images: { create: true, read: true },
12
- operations: { create: true, read: true, metadata: { update: true } },
13
- pipelines: { create: true, read: true },
14
- poses: { create: true, read: true, update: true },
15
- resources: {
16
- access: {
17
- attach: true,
18
- detach: true,
19
- grant: true,
20
- read: true,
21
- revoke: true,
22
- },
23
- },
24
- stacks: { create: true, items: { add: true, remove: true }, read: true, metadata: { update: true } },
25
- storage: { create: true, delete: true, read: true, update: true },
26
- };