@serve.zone/interfaces 1.0.29 → 1.0.31
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/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/cloudlyconfig.d.ts +1 -0
- package/dist_ts/index.d.ts +2 -1
- package/dist_ts/index.js +3 -2
- package/dist_ts/platformservice/aibridge.d.ts +18 -0
- package/dist_ts/platformservice/aibridge.js +2 -0
- package/dist_ts/platformservice/index.d.ts +5 -0
- package/dist_ts/platformservice/index.js +6 -0
- package/dist_ts/platformservice/letter.d.ts +1 -0
- package/dist_ts/platformservice/letter.js +2 -0
- package/dist_ts/platformservice/mta.d.ts +30 -0
- package/dist_ts/platformservice/mta.js +2 -0
- package/dist_ts/platformservice/sms.d.ts +23 -0
- package/dist_ts/platformservice/sms.js +2 -0
- package/package.json +2 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/cloudlyconfig.ts +1 -0
- package/ts/index.ts +2 -0
- package/ts/platformservice/00readme.md +1 -0
- package/ts/platformservice/aibridge.ts +23 -0
- package/ts/platformservice/index.ts +11 -0
- package/ts/platformservice/letter.ts +0 -0
- package/ts/platformservice/mta.ts +39 -0
- package/ts/platformservice/sms.ts +33 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '1.0.
|
|
6
|
+
version: '1.0.31',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
|
@@ -5,6 +5,7 @@ export interface ICloudlyConfig {
|
|
|
5
5
|
environment?: 'production' | 'integration';
|
|
6
6
|
letsEncryptEmail?: string;
|
|
7
7
|
letsEncryptPrivateKey?: string;
|
|
8
|
+
jwtKeypair?: plugins.tsclass.network.IJwtKeypair;
|
|
8
9
|
mongoDescriptor?: plugins.tsclass.database.IMongoDescriptor;
|
|
9
10
|
s3Descriptor?: plugins.tsclass.storage.IS3Descriptor;
|
|
10
11
|
publicUrl?: string;
|
package/dist_ts/index.d.ts
CHANGED
package/dist_ts/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from './data/index.js';
|
|
2
|
+
import * as platformservice from './platformservice/index.js';
|
|
2
3
|
import * as requests from './requests/index.js';
|
|
3
|
-
export { data, requests };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export { data, platformservice, requests };
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxlQUFlLE1BQU0sNEJBQTRCLENBQUM7QUFDOUQsT0FBTyxLQUFLLFFBQVEsTUFBTSxxQkFBcUIsQ0FBQztBQUVoRCxPQUFPLEVBQ0wsSUFBSSxFQUNKLGVBQWUsRUFDZixRQUFRLEVBQ1QsQ0FBQSJ9
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export interface IChat {
|
|
3
|
+
systemMessage: string;
|
|
4
|
+
messages: {
|
|
5
|
+
role: 'assistant' | 'user';
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
export interface IReq_Chat extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Chat> {
|
|
10
|
+
method: 'chat';
|
|
11
|
+
request: {
|
|
12
|
+
chat: IChat;
|
|
13
|
+
};
|
|
14
|
+
response: {
|
|
15
|
+
chat: IChat;
|
|
16
|
+
latestMessage: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWlicmlkZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9wbGF0Zm9ybXNlcnZpY2UvYWlicmlkZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as aibridge from './aibridge.js';
|
|
2
|
+
import * as letter from './letter.js';
|
|
3
|
+
import * as mta from './mta.js';
|
|
4
|
+
import * as sms from './sms.js';
|
|
5
|
+
export { aibridge, letter, mta, sms, };
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9wbGF0Zm9ybXNlcnZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLFFBQVEsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxLQUFLLE1BQU0sTUFBTSxhQUFhLENBQUM7QUFDdEMsT0FBTyxLQUFLLEdBQUcsTUFBTSxVQUFVLENBQUM7QUFDaEMsT0FBTyxLQUFLLEdBQUcsTUFBTSxVQUFVLENBQUM7QUFFaEMsT0FBTyxFQUNMLFFBQVEsRUFDUixNQUFNLEVBQ04sR0FBRyxFQUNILEdBQUcsR0FDSixDQUFBIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export type TTemplates = 'default' | 'linkaction' | 'notification';
|
|
3
|
+
export interface IRequestSendEmail extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequestSendEmail> {
|
|
4
|
+
method: 'sendEmail';
|
|
5
|
+
request: {
|
|
6
|
+
title: string;
|
|
7
|
+
from: string;
|
|
8
|
+
to: string;
|
|
9
|
+
body: string;
|
|
10
|
+
attachments?: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
binaryAttachmentString: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
response: {
|
|
16
|
+
/**
|
|
17
|
+
* the response id allows for handling of responses to that email
|
|
18
|
+
*/
|
|
19
|
+
responseId: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface IRequestRegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequestRegisterRecipient> {
|
|
23
|
+
method: 'registerRecepient';
|
|
24
|
+
request: {
|
|
25
|
+
emailAddress: string;
|
|
26
|
+
};
|
|
27
|
+
response: {
|
|
28
|
+
status: 'ok' | 'not ok';
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcGxhdGZvcm1zZXJ2aWNlL210YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export interface IRequest_SendSms extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_SendSms> {
|
|
3
|
+
method: 'sendSms';
|
|
4
|
+
request: {
|
|
5
|
+
toNumber: number;
|
|
6
|
+
fromName: string;
|
|
7
|
+
messageText: string;
|
|
8
|
+
};
|
|
9
|
+
response: {
|
|
10
|
+
status: 'ok' | 'not ok';
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface IRequest_SendVerificationCode extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_SendVerificationCode> {
|
|
14
|
+
method: 'sendVerificationCode';
|
|
15
|
+
request: {
|
|
16
|
+
toNumber: number;
|
|
17
|
+
fromName: string;
|
|
18
|
+
};
|
|
19
|
+
response: {
|
|
20
|
+
status: 'ok' | 'not ok';
|
|
21
|
+
verificationCode: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcGxhdGZvcm1zZXJ2aWNlL3Ntcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serve.zone/interfaces",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "interfaces for working with containers",
|
|
6
6
|
"main": "dist_ts/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@apiglobal/typedrequest-interfaces": "^2.0.1",
|
|
19
19
|
"@push.rocks/smartlog-interfaces": "^3.0.0",
|
|
20
|
-
"@tsclass/tsclass": "^4.0.
|
|
20
|
+
"@tsclass/tsclass": "^4.0.51"
|
|
21
21
|
},
|
|
22
22
|
"browserslist": [
|
|
23
23
|
"last 1 chrome versions"
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/cloudlyconfig.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ICloudlyConfig {
|
|
|
6
6
|
environment?: 'production' | 'integration';
|
|
7
7
|
letsEncryptEmail?: string;
|
|
8
8
|
letsEncryptPrivateKey?: string;
|
|
9
|
+
jwtKeypair?: plugins.tsclass.network.IJwtKeypair;
|
|
9
10
|
mongoDescriptor?: plugins.tsclass.database.IMongoDescriptor;
|
|
10
11
|
s3Descriptor?: plugins.tsclass.storage.IS3Descriptor;
|
|
11
12
|
publicUrl?: string;
|
package/ts/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The platform folder contains types that can be used for talking with the underlying platform by apps running on serve.zone.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
|
|
3
|
+
export interface IChat {
|
|
4
|
+
systemMessage: string;
|
|
5
|
+
messages: {
|
|
6
|
+
role: 'assistant' | 'user';
|
|
7
|
+
content: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IReq_Chat extends plugins.typedrequestInterfaces.implementsTR<
|
|
12
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
13
|
+
IReq_Chat
|
|
14
|
+
> {
|
|
15
|
+
method: 'chat',
|
|
16
|
+
request: {
|
|
17
|
+
chat: IChat;
|
|
18
|
+
};
|
|
19
|
+
response: {
|
|
20
|
+
chat: IChat;
|
|
21
|
+
latestMessage: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
|
|
3
|
+
export type TTemplates = 'default' | 'linkaction' | 'notification';
|
|
4
|
+
|
|
5
|
+
export interface IRequestSendEmail extends plugins.typedrequestInterfaces.implementsTR<
|
|
6
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
7
|
+
IRequestSendEmail
|
|
8
|
+
> {
|
|
9
|
+
method: 'sendEmail';
|
|
10
|
+
request: {
|
|
11
|
+
title: string;
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
body: string;
|
|
15
|
+
attachments?: Array<{
|
|
16
|
+
name: string;
|
|
17
|
+
binaryAttachmentString: string;
|
|
18
|
+
}>
|
|
19
|
+
};
|
|
20
|
+
response: {
|
|
21
|
+
/**
|
|
22
|
+
* the response id allows for handling of responses to that email
|
|
23
|
+
*/
|
|
24
|
+
responseId: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IRequestRegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<
|
|
29
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
30
|
+
IRequestRegisterRecipient
|
|
31
|
+
> {
|
|
32
|
+
method: 'registerRecepient';
|
|
33
|
+
request: {
|
|
34
|
+
emailAddress: string;
|
|
35
|
+
};
|
|
36
|
+
response: {
|
|
37
|
+
status: 'ok' | 'not ok';
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
|
|
3
|
+
export interface IRequest_SendSms
|
|
4
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
5
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
6
|
+
IRequest_SendSms
|
|
7
|
+
> {
|
|
8
|
+
method: 'sendSms';
|
|
9
|
+
request: {
|
|
10
|
+
toNumber: number;
|
|
11
|
+
fromName: string;
|
|
12
|
+
messageText: string;
|
|
13
|
+
};
|
|
14
|
+
response: {
|
|
15
|
+
status: 'ok' | 'not ok';
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IRequest_SendVerificationCode
|
|
20
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
21
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
22
|
+
IRequest_SendVerificationCode
|
|
23
|
+
> {
|
|
24
|
+
method: 'sendVerificationCode';
|
|
25
|
+
request: {
|
|
26
|
+
toNumber: number;
|
|
27
|
+
fromName: string;
|
|
28
|
+
};
|
|
29
|
+
response: {
|
|
30
|
+
status: 'ok' | 'not ok';
|
|
31
|
+
verificationCode: string;
|
|
32
|
+
}
|
|
33
|
+
}
|