@serve.zone/interfaces 1.0.30 → 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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.30',
6
+ version: '1.0.31',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -1,3 +1,4 @@
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
+ export { data, platformservice, requests };
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxRQUFRLE1BQU0scUJBQXFCLENBQUM7QUFFaEQsT0FBTyxFQUNMLElBQUksRUFDSixRQUFRLEVBQ1QsQ0FBQSJ9
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,5 @@
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, };
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcGxhdGZvcm1zZXJ2aWNlL2xldHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -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.30",
3
+ "version": "1.0.31",
4
4
  "private": false,
5
5
  "description": "interfaces for working with containers",
6
6
  "main": "dist_ts/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.30',
6
+ version: '1.0.31',
7
7
  description: 'interfaces for working with containers'
8
8
  }
package/ts/index.ts CHANGED
@@ -1,7 +1,9 @@
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
4
 
4
5
  export {
5
6
  data,
7
+ platformservice,
6
8
  requests
7
9
  }
@@ -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
+ }
@@ -0,0 +1,11 @@
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
+
6
+ export {
7
+ aibridge,
8
+ letter,
9
+ mta,
10
+ sms,
11
+ }
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
+ }