@little-samo/samo-ai-sdk 0.1.0-rv8 → 0.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.
- package/README.md +123 -11
- package/dist/dto/entities/agents/agent.d.ts +6 -4
- package/dist/dto/entities/agents/agent.preset.d.ts +1 -1
- package/dist/dto/entities/agents/agent.requests.d.ts +18 -34
- package/dist/dto/entities/agents/agent.requests.js +4 -14
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/index.d.ts +1 -0
- package/dist/dto/entities/index.js +1 -0
- package/dist/dto/entities/index.js.map +1 -1
- package/dist/dto/entities/users/index.d.ts +0 -1
- package/dist/dto/entities/users/index.js +0 -1
- package/dist/dto/entities/users/index.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +4 -0
- package/dist/dto/items/item.rankings.d.ts +3 -3
- package/dist/dto/locations/index.d.ts +1 -1
- package/dist/dto/locations/index.js +1 -1
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.d.ts +16 -16
- package/dist/dto/locations/location.events.d.ts +5 -6
- package/dist/dto/locations/location.messages.d.ts +1 -2
- package/dist/dto/locations/location.messages.js +0 -15
- package/dist/dto/locations/location.messages.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +1 -1
- package/dist/dto/locations/location.requests.d.ts +37 -207
- package/dist/dto/locations/location.requests.js +11 -61
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +3 -47
- package/dist/models/locations/location.config.js +21 -38
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +0 -8
- package/dist/models/locations/location.constants.js +1 -8
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +0 -13
- package/dist/dto/entities/users/user.requests.js +0 -13
- package/dist/dto/entities/users/user.requests.js.map +0 -1
- package/dist/dto/locations/location.message.d.ts +0 -13
- package/dist/dto/locations/location.message.js +0 -3
- package/dist/dto/locations/location.message.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocationEnvironment =
|
|
4
|
-
exports.LocationType = {
|
|
5
|
-
PRIVATE: 'PRIVATE',
|
|
6
|
-
GROUP: 'GROUP',
|
|
7
|
-
PUBLIC: 'PUBLIC',
|
|
8
|
-
SYSTEM: 'SYSTEM',
|
|
9
|
-
};
|
|
3
|
+
exports.LocationEnvironment = void 0;
|
|
10
4
|
exports.LocationEnvironment = {
|
|
11
5
|
CHAT: 'CHAT',
|
|
12
6
|
AGENT_HELPER: 'AGENT_HELPER',
|
|
13
7
|
LOCATION_HELPER: 'LOCATION_HELPER',
|
|
14
|
-
AGENT_DM: 'AGENT_DM',
|
|
15
8
|
WEB_BROWSER: 'WEB_BROWSER',
|
|
16
9
|
VIDEO_GAME: 'VIDEO_GAME',
|
|
17
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { UserPublicDto } from './user';
|
|
3
|
-
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
4
|
-
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
userIds: bigint[];
|
|
7
|
-
}, {
|
|
8
|
-
userIds: string;
|
|
9
|
-
}>;
|
|
10
|
-
export type GetUsersByIdsQueryDto = z.infer<typeof GetUsersByIdsQuerySchema>;
|
|
11
|
-
export interface GetUserPublicsByIdsResponseDto {
|
|
12
|
-
users: UserPublicDto[];
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUsersByIdsQuerySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
6
|
-
userIds: zod_1.z
|
|
7
|
-
.string()
|
|
8
|
-
.transform((val) => val.split(',').map((id) => BigInt(id.trim())))
|
|
9
|
-
.refine((arr) => arr.length > 0 && arr.length <= 25, {
|
|
10
|
-
message: 'userIds must contain 1-25 user IDs',
|
|
11
|
-
}),
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=user.requests.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EntityId, EntityType } from '@little-samo/samo-ai';
|
|
2
|
-
export interface LocationMessageDto {
|
|
3
|
-
entityType: EntityType;
|
|
4
|
-
entityId: EntityId;
|
|
5
|
-
name: string;
|
|
6
|
-
expression?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
action?: string;
|
|
9
|
-
emotion?: string;
|
|
10
|
-
image?: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.message.js","sourceRoot":"","sources":["../../../src/dto/locations/location.message.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dto"), exports);
|
|
18
|
-
__exportStar(require("./models"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB"}
|