@serve.zone/interfaces 5.4.3 → 5.4.5
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/index.d.ts +2 -1
- package/dist_ts/index.js +3 -2
- package/dist_ts/platform/ai.d.ts +18 -0
- package/dist_ts/platform/ai.js +2 -0
- package/dist_ts/platform/backup.d.ts +9 -0
- package/dist_ts/platform/backup.js +2 -0
- package/dist_ts/platform/database.d.ts +7 -0
- package/dist_ts/platform/database.js +2 -0
- package/dist_ts/platform/email.d.ts +57 -0
- package/dist_ts/platform/email.js +2 -0
- package/dist_ts/platform/index.d.ts +13 -0
- package/dist_ts/platform/index.js +14 -0
- package/dist_ts/platform/letter.d.ts +21 -0
- package/dist_ts/platform/letter.js +2 -0
- package/dist_ts/platform/logging.d.ts +5 -0
- package/dist_ts/platform/logging.js +2 -0
- package/dist_ts/platform/objectstorage.d.ts +6 -0
- package/dist_ts/platform/objectstorage.js +2 -0
- package/dist_ts/platform/pushnotification.d.ts +13 -0
- package/dist_ts/platform/pushnotification.js +2 -0
- package/dist_ts/platform/sip.d.ts +6 -0
- package/dist_ts/platform/sip.js +2 -0
- package/dist_ts/platform/sms.d.ts +25 -0
- package/dist_ts/platform/sms.js +2 -0
- package/dist_ts/platform/types.d.ts +58 -0
- package/dist_ts/platform/types.js +2 -0
- package/dist_ts/platformservice/aibridge.d.ts +1 -0
- package/dist_ts/platformservice/letter.d.ts +1 -0
- package/dist_ts/platformservice/mta.d.ts +4 -0
- package/dist_ts/platformservice/pushnotification.d.ts +1 -0
- package/dist_ts/platformservice/sms.d.ts +2 -0
- package/dist_ts/requests/config.d.ts +5 -0
- package/dist_ts/requests/index.d.ts +2 -1
- package/dist_ts/requests/index.js +3 -2
- package/dist_ts/requests/platform.d.ts +98 -0
- package/dist_ts/requests/platform.js +2 -0
- package/package.json +8 -9
- package/readme.md +192 -5
- package/ts/index.ts +2 -0
- package/ts/platform/ai.ts +23 -0
- package/ts/platform/backup.ts +10 -0
- package/ts/platform/database.ts +8 -0
- package/ts/platform/email.ts +73 -0
- package/ts/platform/index.ts +27 -0
- package/ts/platform/letter.ts +26 -0
- package/ts/platform/logging.ts +5 -0
- package/ts/platform/objectstorage.ts +6 -0
- package/ts/platform/pushnotification.ts +18 -0
- package/ts/platform/sip.ts +6 -0
- package/ts/platform/sms.ts +34 -0
- package/ts/platform/types.ts +82 -0
- package/ts/platformservice/aibridge.ts +3 -1
- package/ts/platformservice/letter.ts +3 -1
- package/ts/platformservice/mta.ts +5 -0
- package/ts/platformservice/pushnotification.ts +3 -1
- package/ts/platformservice/sms.ts +3 -0
- package/ts/requests/config.ts +5 -0
- package/ts/requests/index.ts +3 -1
- package/ts/requests/platform.ts +148 -0
package/dist_ts/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as data from './data/index.js';
|
|
2
|
+
import * as platform from './platform/index.js';
|
|
2
3
|
import * as platformservice from './platformservice/index.js';
|
|
3
4
|
import * as requests from './requests/index.js';
|
|
4
|
-
export { data, platformservice, requests };
|
|
5
|
+
export { data, platform, platformservice, requests };
|
package/dist_ts/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as data from './data/index.js';
|
|
2
|
+
import * as platform from './platform/index.js';
|
|
2
3
|
import * as platformservice from './platformservice/index.js';
|
|
3
4
|
import * as requests from './requests/index.js';
|
|
4
|
-
export { data, platformservice, requests };
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
export { data, platform, platformservice, requests };
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssSUFBSSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hDLE9BQU8sS0FBSyxRQUFRLE1BQU0scUJBQXFCLENBQUM7QUFDaEQsT0FBTyxLQUFLLGVBQWUsTUFBTSw0QkFBNEIsQ0FBQztBQUM5RCxPQUFPLEtBQUssUUFBUSxNQUFNLHFCQUFxQixDQUFDO0FBRWhELE9BQU8sRUFDTCxJQUFJLEVBQ0osUUFBUSxFQUNSLGVBQWUsRUFDZixRQUFRLEVBQ1QsQ0FBQSJ9
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9wbGF0Zm9ybS9haS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export type TTemplates = 'default' | 'linkaction' | 'notification';
|
|
3
|
+
export interface IReq_SendEmail extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SendEmail> {
|
|
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
|
+
responseId: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IReq_RegisterRecipient extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_RegisterRecipient> {
|
|
20
|
+
method: 'registerRecipient';
|
|
21
|
+
request: {
|
|
22
|
+
emailAddress: string;
|
|
23
|
+
};
|
|
24
|
+
response: {
|
|
25
|
+
status: 'ok' | 'not ok';
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface IReq_CheckEmailStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_CheckEmailStatus> {
|
|
29
|
+
method: 'checkEmailStatus';
|
|
30
|
+
request: {
|
|
31
|
+
emailId: string;
|
|
32
|
+
};
|
|
33
|
+
response: {
|
|
34
|
+
status: string;
|
|
35
|
+
details?: {
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface IReq_GetEmailStats extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_GetEmailStats> {
|
|
41
|
+
method: 'getEmailStats';
|
|
42
|
+
request: {
|
|
43
|
+
jwt: string;
|
|
44
|
+
};
|
|
45
|
+
response: {
|
|
46
|
+
totalEmailsSent: number;
|
|
47
|
+
totalEmailsDelivered: number;
|
|
48
|
+
totalEmailsBounced: number;
|
|
49
|
+
averageDeliveryTimeMs: number;
|
|
50
|
+
lastUpdated: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export type IReq_GetEMailStats = IReq_GetEmailStats;
|
|
54
|
+
export type IRequest_SendEmail = IReq_SendEmail;
|
|
55
|
+
export type IRequest_RegisterRecipient = IReq_RegisterRecipient;
|
|
56
|
+
export type IRequest_CheckEmailStatus = IReq_CheckEmailStatus;
|
|
57
|
+
export type IRequest_GetEMailStats = IReq_GetEmailStats;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9wbGF0Zm9ybS9lbWFpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as ai from './ai.js';
|
|
2
|
+
import * as backup from './backup.js';
|
|
3
|
+
import * as database from './database.js';
|
|
4
|
+
import * as email from './email.js';
|
|
5
|
+
import * as letter from './letter.js';
|
|
6
|
+
import * as logging from './logging.js';
|
|
7
|
+
import * as objectstorage from './objectstorage.js';
|
|
8
|
+
import * as pushnotification from './pushnotification.js';
|
|
9
|
+
import * as sip from './sip.js';
|
|
10
|
+
import * as sms from './sms.js';
|
|
11
|
+
import * as types from './types.js';
|
|
12
|
+
export { ai, backup, database, email, letter, logging, objectstorage, pushnotification, sip, sms, types, };
|
|
13
|
+
export * from './types.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ai from './ai.js';
|
|
2
|
+
import * as backup from './backup.js';
|
|
3
|
+
import * as database from './database.js';
|
|
4
|
+
import * as email from './email.js';
|
|
5
|
+
import * as letter from './letter.js';
|
|
6
|
+
import * as logging from './logging.js';
|
|
7
|
+
import * as objectstorage from './objectstorage.js';
|
|
8
|
+
import * as pushnotification from './pushnotification.js';
|
|
9
|
+
import * as sip from './sip.js';
|
|
10
|
+
import * as sms from './sms.js';
|
|
11
|
+
import * as types from './types.js';
|
|
12
|
+
export { ai, backup, database, email, letter, logging, objectstorage, pushnotification, sip, sms, types, };
|
|
13
|
+
export * from './types.js';
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9wbGF0Zm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUM5QixPQUFPLEtBQUssTUFBTSxNQUFNLGFBQWEsQ0FBQztBQUN0QyxPQUFPLEtBQUssUUFBUSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEtBQUssS0FBSyxNQUFNLFlBQVksQ0FBQztBQUNwQyxPQUFPLEtBQUssTUFBTSxNQUFNLGFBQWEsQ0FBQztBQUN0QyxPQUFPLEtBQUssT0FBTyxNQUFNLGNBQWMsQ0FBQztBQUN4QyxPQUFPLEtBQUssYUFBYSxNQUFNLG9CQUFvQixDQUFDO0FBQ3BELE9BQU8sS0FBSyxnQkFBZ0IsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRCxPQUFPLEtBQUssR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUNoQyxPQUFPLEtBQUssR0FBRyxNQUFNLFVBQVUsQ0FBQztBQUNoQyxPQUFPLEtBQUssS0FBSyxNQUFNLFlBQVksQ0FBQztBQUVwQyxPQUFPLEVBQ0wsRUFBRSxFQUNGLE1BQU0sRUFDTixRQUFRLEVBQ1IsS0FBSyxFQUNMLE1BQU0sRUFDTixPQUFPLEVBQ1AsYUFBYSxFQUNiLGdCQUFnQixFQUNoQixHQUFHLEVBQ0gsR0FBRyxFQUNILEtBQUssR0FDTixDQUFDO0FBRUYsY0FBYyxZQUFZLENBQUMifQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export interface IReq_SendLetter extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SendLetter> {
|
|
3
|
+
method: 'sendLetter';
|
|
4
|
+
request: {
|
|
5
|
+
description: string;
|
|
6
|
+
needsCover: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
from?: plugins.tsclass.business.IAddress;
|
|
9
|
+
to?: plugins.tsclass.business.IAddress;
|
|
10
|
+
coverBody?: string;
|
|
11
|
+
service: 'Einschreiben'[];
|
|
12
|
+
pdfAttachments?: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
binaryAttachmentString: string;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
response: {
|
|
18
|
+
processId: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export type IRequest_SendLetter = IReq_SendLetter;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcGxhdGZvcm0vbGV0dGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export interface IReq_SendPushNotification extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_SendPushNotification> {
|
|
3
|
+
method: 'sendPushNotification';
|
|
4
|
+
request: {
|
|
5
|
+
deviceToken: string;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
response: {
|
|
9
|
+
ok: boolean;
|
|
10
|
+
status: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type IRequest_SendPushNotification = IReq_SendPushNotification;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVzaG5vdGlmaWNhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL3BsYXRmb3JtL3B1c2hub3RpZmljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUMifQ==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
export interface IReq_SendSms extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_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 IReq_SendVerificationCode extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_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
|
+
}
|
|
24
|
+
export type IRequest_SendSms = IReq_SendSms;
|
|
25
|
+
export type IRequest_SendVerificationCode = IReq_SendVerificationCode;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvcGxhdGZvcm0vc21zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sZUFBZSxDQUFDIn0=
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export type TPlatformCapability = 'email' | 'sms' | 'pushnotification' | 'letter' | 'ai' | 'database' | 'objectstorage' | 'logging' | 'backup' | 'sip';
|
|
2
|
+
export type TPlatformAccessMode = 'rpc' | 'binding' | 'sidecar' | 'internal';
|
|
3
|
+
export type TPlatformBindingStatus = 'requested' | 'provisioning' | 'ready' | 'degraded' | 'failed' | 'disabled';
|
|
4
|
+
export type TPlatformDesiredState = 'enabled' | 'disabled';
|
|
5
|
+
export type TPlatformEndpointProtocol = 'typedrequest' | 'http' | 'tcp' | 'udp' | 'smtp' | 's3' | 'postgres' | 'mongodb' | 'sip';
|
|
6
|
+
export type TPlatformConfigValue = string | number | boolean | null | TPlatformConfigValue[] | {
|
|
7
|
+
[key: string]: TPlatformConfigValue;
|
|
8
|
+
};
|
|
9
|
+
export interface IPlatformCapability {
|
|
10
|
+
id: TPlatformCapability;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
accessMode: TPlatformAccessMode;
|
|
14
|
+
defaultProviderType?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IPlatformProviderConfig {
|
|
17
|
+
id: string;
|
|
18
|
+
capability: TPlatformCapability;
|
|
19
|
+
providerType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
config?: {
|
|
23
|
+
[key: string]: TPlatformConfigValue;
|
|
24
|
+
};
|
|
25
|
+
secretBundleId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IPlatformCredentialRef {
|
|
28
|
+
secretBundleId?: string;
|
|
29
|
+
secretGroupIds?: string[];
|
|
30
|
+
dockerSecretName?: string;
|
|
31
|
+
env?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface IPlatformServiceEndpoint {
|
|
36
|
+
name: string;
|
|
37
|
+
capability: TPlatformCapability;
|
|
38
|
+
protocol: TPlatformEndpointProtocol;
|
|
39
|
+
internalUrl?: string;
|
|
40
|
+
externalUrl?: string;
|
|
41
|
+
networkAlias?: string;
|
|
42
|
+
port?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface IPlatformBinding {
|
|
45
|
+
id: string;
|
|
46
|
+
serviceId: string;
|
|
47
|
+
capability: TPlatformCapability;
|
|
48
|
+
desiredState: TPlatformDesiredState;
|
|
49
|
+
status: TPlatformBindingStatus;
|
|
50
|
+
providerConfigId?: string;
|
|
51
|
+
config?: {
|
|
52
|
+
[key: string]: TPlatformConfigValue;
|
|
53
|
+
};
|
|
54
|
+
endpoints?: IPlatformServiceEndpoint[];
|
|
55
|
+
credentials?: IPlatformCredentialRef[];
|
|
56
|
+
createdAt?: number;
|
|
57
|
+
updatedAt?: number;
|
|
58
|
+
}
|
|
@@ -53,3 +53,7 @@ export interface IReq_GetEMailStats extends plugins.typedrequestInterfaces.imple
|
|
|
53
53
|
lastUpdated: string;
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
+
export type IRequest_SendEmail = IReq_SendEmail;
|
|
57
|
+
export type IRequest_RegisterRecipient = IReq_RegisterRecipient;
|
|
58
|
+
export type IRequest_CheckEmailStatus = IReq_CheckEmailStatus;
|
|
59
|
+
export type IRequest_GetEMailStats = IReq_GetEMailStats;
|
|
@@ -3,6 +3,7 @@ import * as clusterInterfaces from '../data/cluster.js';
|
|
|
3
3
|
import * as serverInterfaces from '../data/server.js';
|
|
4
4
|
import * as userInterfaces from '../data/user.js';
|
|
5
5
|
import type { IService } from '../data/service.js';
|
|
6
|
+
import type { IPlatformBinding, IPlatformProviderConfig } from '../platform/types.js';
|
|
6
7
|
export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
|
|
7
8
|
method: 'getServerConfig';
|
|
8
9
|
request: {
|
|
@@ -21,6 +22,8 @@ export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequ
|
|
|
21
22
|
response: {
|
|
22
23
|
configData: clusterInterfaces.ICluster;
|
|
23
24
|
services: IService[];
|
|
25
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
26
|
+
platformBindings?: IPlatformBinding[];
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushClusterConfig> {
|
|
@@ -28,6 +31,8 @@ export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typ
|
|
|
28
31
|
request: {
|
|
29
32
|
configData: clusterInterfaces.ICluster;
|
|
30
33
|
services: IService[];
|
|
34
|
+
platformProviderConfigs?: IPlatformProviderConfig[];
|
|
35
|
+
platformBindings?: IPlatformBinding[];
|
|
31
36
|
};
|
|
32
37
|
response: {};
|
|
33
38
|
}
|
|
@@ -13,6 +13,7 @@ import * as informRequests from './inform.js';
|
|
|
13
13
|
import * as logRequests from './log.js';
|
|
14
14
|
import * as networkRequests from './network.js';
|
|
15
15
|
import * as nodeRequests from './node.js';
|
|
16
|
+
import * as platformRequests from './platform.js';
|
|
16
17
|
import * as routingRequests from './routing.js';
|
|
17
18
|
import * as secretBundleRequests from './secretbundle.js';
|
|
18
19
|
import * as secretGroupRequests from './secretgroup.js';
|
|
@@ -22,5 +23,5 @@ import * as settingsRequests from './settings.js';
|
|
|
22
23
|
import * as statusRequests from './status.js';
|
|
23
24
|
import * as taskRequests from './task.js';
|
|
24
25
|
import * as versionRequests from './version.js';
|
|
25
|
-
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
26
|
+
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, platformRequests as platform, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
26
27
|
export * from './inform.js';
|
|
@@ -14,6 +14,7 @@ import * as informRequests from './inform.js';
|
|
|
14
14
|
import * as logRequests from './log.js';
|
|
15
15
|
import * as networkRequests from './network.js';
|
|
16
16
|
import * as nodeRequests from './node.js';
|
|
17
|
+
import * as platformRequests from './platform.js';
|
|
17
18
|
import * as routingRequests from './routing.js';
|
|
18
19
|
import * as secretBundleRequests from './secretbundle.js';
|
|
19
20
|
import * as secretGroupRequests from './secretgroup.js';
|
|
@@ -23,6 +24,6 @@ import * as settingsRequests from './settings.js';
|
|
|
23
24
|
import * as statusRequests from './status.js';
|
|
24
25
|
import * as taskRequests from './task.js';
|
|
25
26
|
import * as versionRequests from './version.js';
|
|
26
|
-
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
27
|
+
export { adminRequests as admin, baremetalRequests as baremetal, certificateRequests as certificate, clusterRequests as cluster, configRequests as config, deploymentRequests as deployment, dnsRequests as dns, domainRequests as domain, externalRegistryRequests as externalRegistry, identityRequests as identity, imageRequests as image, informRequests as inform, logRequests as log, networkRequests as network, nodeRequests as node, platformRequests as platform, routingRequests as routing, secretBundleRequests as secretbundle, secretGroupRequests as secretgroup, serverRequests as server, serviceRequests as service, settingsRequests as settings, statusRequests as status, taskRequests as task, versionRequests as version, };
|
|
27
28
|
export * from './inform.js';
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQztBQUV6QyxPQUFPLEtBQUssYUFBYSxNQUFNLFlBQVksQ0FBQztBQUM1QyxPQUFPLEtBQUssaUJBQWlCLE1BQU0sZ0JBQWdCLENBQUM7QUFDcEQsT0FBTyxLQUFLLG1CQUFtQixNQUFNLGtCQUFrQixDQUFDO0FBQ3hELE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxjQUFjLE1BQU0sYUFBYSxDQUFDO0FBQzlDLE9BQU8sS0FBSyxrQkFBa0IsTUFBTSxpQkFBaUIsQ0FBQztBQUN0RCxPQUFPLEtBQUssV0FBVyxNQUFNLFVBQVUsQ0FBQztBQUN4QyxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssd0JBQXdCLE1BQU0sdUJBQXVCLENBQUM7QUFDbEUsT0FBTyxLQUFLLGdCQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEtBQUssYUFBYSxNQUFNLFlBQVksQ0FBQztBQUM1QyxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssV0FBVyxNQUFNLFVBQVUsQ0FBQztBQUN4QyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUNoRCxPQUFPLEtBQUssWUFBWSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2xELE9BQU8sS0FBSyxlQUFlLE1BQU0sY0FBYyxDQUFDO0FBQ2hELE9BQU8sS0FBSyxvQkFBb0IsTUFBTSxtQkFBbUIsQ0FBQztBQUMxRCxPQUFPLEtBQUssbUJBQW1CLE1BQU0sa0JBQWtCLENBQUM7QUFDeEQsT0FBTyxLQUFLLGNBQWMsTUFBTSxhQUFhLENBQUM7QUFDOUMsT0FBTyxLQUFLLGVBQWUsTUFBTSxjQUFjLENBQUM7QUFDaEQsT0FBTyxLQUFLLGdCQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEtBQUssY0FBYyxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEtBQUssWUFBWSxNQUFNLFdBQVcsQ0FBQztBQUMxQyxPQUFPLEtBQUssZUFBZSxNQUFNLGNBQWMsQ0FBQztBQUVoRCxPQUFPLEVBQ0wsYUFBYSxJQUFJLEtBQUssRUFDdEIsaUJBQWlCLElBQUksU0FBUyxFQUM5QixtQkFBbUIsSUFBSSxXQUFXLEVBQ2xDLGVBQWUsSUFBSSxPQUFPLEVBQzFCLGNBQWMsSUFBSSxNQUFNLEVBQ3hCLGtCQUFrQixJQUFJLFVBQVUsRUFDaEMsV0FBVyxJQUFJLEdBQUcsRUFDbEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsd0JBQXdCLElBQUksZ0JBQWdCLEVBQzVDLGdCQUFnQixJQUFJLFFBQVEsRUFDNUIsYUFBYSxJQUFJLEtBQUssRUFDdEIsY0FBYyxJQUFJLE1BQU0sRUFDeEIsV0FBVyxJQUFJLEdBQUcsRUFDbEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsWUFBWSxJQUFJLElBQUksRUFDcEIsZ0JBQWdCLElBQUksUUFBUSxFQUM1QixlQUFlLElBQUksT0FBTyxFQUMxQixvQkFBb0IsSUFBSSxZQUFZLEVBQ3BDLG1CQUFtQixJQUFJLFdBQVcsRUFDbEMsY0FBYyxJQUFJLE1BQU0sRUFDeEIsZUFBZSxJQUFJLE9BQU8sRUFDMUIsZ0JBQWdCLElBQUksUUFBUSxFQUM1QixjQUFjLElBQUksTUFBTSxFQUN4QixZQUFZLElBQUksSUFBSSxFQUNwQixlQUFlLElBQUksT0FBTyxHQUMzQixDQUFDO0FBRUYsY0FBYyxhQUFhLENBQUMifQ==
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
import type { IIdentity } from '../data/user.js';
|
|
3
|
+
import type { IPlatformBinding, IPlatformCapability, IPlatformProviderConfig, TPlatformBindingStatus } from '../platform/types.js';
|
|
4
|
+
export interface IReq_Any_Cloudly_GetPlatformDesiredState extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformDesiredState> {
|
|
5
|
+
method: 'getPlatformDesiredState';
|
|
6
|
+
request: {
|
|
7
|
+
identity: IIdentity;
|
|
8
|
+
};
|
|
9
|
+
response: {
|
|
10
|
+
capabilities: IPlatformCapability[];
|
|
11
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
12
|
+
bindings: IPlatformBinding[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IReq_Any_Cloudly_GetPlatformCapabilities extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformCapabilities> {
|
|
16
|
+
method: 'getPlatformCapabilities';
|
|
17
|
+
request: {
|
|
18
|
+
identity: IIdentity;
|
|
19
|
+
};
|
|
20
|
+
response: {
|
|
21
|
+
capabilities: IPlatformCapability[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IReq_Any_Cloudly_GetPlatformProviderConfigs extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformProviderConfigs> {
|
|
25
|
+
method: 'getPlatformProviderConfigs';
|
|
26
|
+
request: {
|
|
27
|
+
identity: IIdentity;
|
|
28
|
+
capability?: IPlatformProviderConfig['capability'];
|
|
29
|
+
};
|
|
30
|
+
response: {
|
|
31
|
+
providerConfigs: IPlatformProviderConfig[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface IReq_Any_Cloudly_UpsertPlatformProviderConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpsertPlatformProviderConfig> {
|
|
35
|
+
method: 'upsertPlatformProviderConfig';
|
|
36
|
+
request: {
|
|
37
|
+
identity: IIdentity;
|
|
38
|
+
providerConfig: IPlatformProviderConfig;
|
|
39
|
+
};
|
|
40
|
+
response: {
|
|
41
|
+
providerConfig: IPlatformProviderConfig;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface IReq_Any_Cloudly_DeletePlatformProviderConfigById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeletePlatformProviderConfigById> {
|
|
45
|
+
method: 'deletePlatformProviderConfigById';
|
|
46
|
+
request: {
|
|
47
|
+
identity: IIdentity;
|
|
48
|
+
providerConfigId: string;
|
|
49
|
+
};
|
|
50
|
+
response: {
|
|
51
|
+
success: boolean;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface IReq_Any_Cloudly_GetPlatformBindings extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_GetPlatformBindings> {
|
|
55
|
+
method: 'getPlatformBindings';
|
|
56
|
+
request: {
|
|
57
|
+
identity: IIdentity;
|
|
58
|
+
serviceId?: string;
|
|
59
|
+
capability?: IPlatformBinding['capability'];
|
|
60
|
+
};
|
|
61
|
+
response: {
|
|
62
|
+
bindings: IPlatformBinding[];
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface IReq_Any_Cloudly_UpsertPlatformBinding extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpsertPlatformBinding> {
|
|
66
|
+
method: 'upsertPlatformBinding';
|
|
67
|
+
request: {
|
|
68
|
+
identity: IIdentity;
|
|
69
|
+
binding: IPlatformBinding;
|
|
70
|
+
};
|
|
71
|
+
response: {
|
|
72
|
+
binding: IPlatformBinding;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface IReq_Any_Cloudly_UpdatePlatformBindingStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_UpdatePlatformBindingStatus> {
|
|
76
|
+
method: 'updatePlatformBindingStatus';
|
|
77
|
+
request: {
|
|
78
|
+
identity: IIdentity;
|
|
79
|
+
bindingId: string;
|
|
80
|
+
status: TPlatformBindingStatus;
|
|
81
|
+
endpoints?: IPlatformBinding['endpoints'];
|
|
82
|
+
credentials?: IPlatformBinding['credentials'];
|
|
83
|
+
errorText?: string;
|
|
84
|
+
};
|
|
85
|
+
response: {
|
|
86
|
+
binding: IPlatformBinding;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface IReq_Any_Cloudly_DeletePlatformBindingById extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_DeletePlatformBindingById> {
|
|
90
|
+
method: 'deletePlatformBindingById';
|
|
91
|
+
request: {
|
|
92
|
+
identity: IIdentity;
|
|
93
|
+
bindingId: string;
|
|
94
|
+
};
|
|
95
|
+
response: {
|
|
96
|
+
success: boolean;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import * as plugins from '../plugins.js';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9yZXF1ZXN0cy9wbGF0Zm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGVBQWUsQ0FBQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serve.zone/interfaces",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
|
|
6
6
|
"exports": {
|
|
@@ -9,11 +9,6 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"author": "Task Venture Capital GmbH",
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "tstest test/ --verbose --logfile --timeout 60",
|
|
14
|
-
"build": "tsbuild tsfolders --allowimplicitany",
|
|
15
|
-
"buildDocs": "tsdoc"
|
|
16
|
-
},
|
|
17
12
|
"dependencies": {
|
|
18
13
|
"@api.global/typedrequest-interfaces": "^3.0.19",
|
|
19
14
|
"@push.rocks/smartlog-interfaces": "^3.0.2",
|
|
@@ -21,7 +16,7 @@
|
|
|
21
16
|
},
|
|
22
17
|
"devDependencies": {
|
|
23
18
|
"@git.zone/tsbuild": "^4.4.0",
|
|
24
|
-
"@git.zone/tsdoc": "^
|
|
19
|
+
"@git.zone/tsdoc": "^2.0.2",
|
|
25
20
|
"@git.zone/tsrun": "^2.0.2",
|
|
26
21
|
"@git.zone/tstest": "^3.6.3",
|
|
27
22
|
"@types/node": "^25.6.0"
|
|
@@ -55,5 +50,9 @@
|
|
|
55
50
|
"browserslist": [
|
|
56
51
|
"last 1 chrome versions"
|
|
57
52
|
],
|
|
58
|
-
"
|
|
59
|
-
|
|
53
|
+
"scripts": {
|
|
54
|
+
"test": "tstest test/ --verbose --logfile --timeout 60",
|
|
55
|
+
"build": "tsbuild tsfolders --allowimplicitany",
|
|
56
|
+
"buildDocs": "tsdoc"
|
|
57
|
+
}
|
|
58
|
+
}
|