@breign/client 1.0.147 → 1.0.148
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/apis/AppApi.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ export interface GetAppFillersRequest {
|
|
|
108
108
|
}
|
|
109
109
|
export interface GetAppProbeRequest {
|
|
110
110
|
appId: string;
|
|
111
|
-
instanceId
|
|
111
|
+
instanceId: string;
|
|
112
112
|
}
|
|
113
113
|
export interface GetAppsForAgentIdRequest {
|
|
114
114
|
agentId: string;
|
|
@@ -127,8 +127,8 @@ export interface InterruptAppRequest {
|
|
|
127
127
|
}
|
|
128
128
|
export interface ProbeAppRequest {
|
|
129
129
|
appId: string;
|
|
130
|
+
instanceId: string;
|
|
130
131
|
appProbeRequestUio: AppProbeRequestUio;
|
|
131
|
-
instanceId?: string;
|
|
132
132
|
}
|
|
133
133
|
export interface RefreshAppProbeRequest {
|
|
134
134
|
appId: string;
|
|
@@ -407,15 +407,15 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
407
407
|
*/
|
|
408
408
|
getAppFillers(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FillersArrayInnerUio>>;
|
|
409
409
|
/**
|
|
410
|
-
*
|
|
411
|
-
*
|
|
410
|
+
* Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
|
|
411
|
+
* Read the last probe of an app instance
|
|
412
412
|
*/
|
|
413
413
|
getAppProbeRaw(requestParameters: GetAppProbeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppProbeResponseUio>>;
|
|
414
414
|
/**
|
|
415
|
-
*
|
|
416
|
-
*
|
|
415
|
+
* Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
|
|
416
|
+
* Read the last probe of an app instance
|
|
417
417
|
*/
|
|
418
|
-
getAppProbe(appId: string, instanceId
|
|
418
|
+
getAppProbe(appId: string, instanceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppProbeResponseUio>;
|
|
419
419
|
/**
|
|
420
420
|
* Get apps for agent id
|
|
421
421
|
* Get apps for agent id
|
|
@@ -457,15 +457,15 @@ export declare class AppApi extends runtime.BaseAPI {
|
|
|
457
457
|
*/
|
|
458
458
|
interruptApp(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
459
459
|
/**
|
|
460
|
-
*
|
|
461
|
-
*
|
|
460
|
+
* Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
|
|
461
|
+
* Post the probe of an app instance
|
|
462
462
|
*/
|
|
463
463
|
probeAppRaw(requestParameters: ProbeAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
464
464
|
/**
|
|
465
|
-
*
|
|
466
|
-
*
|
|
465
|
+
* Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
|
|
466
|
+
* Post the probe of an app instance
|
|
467
467
|
*/
|
|
468
|
-
probeApp(appId: string,
|
|
468
|
+
probeApp(appId: string, instanceId: string, appProbeRequestUio: AppProbeRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
469
469
|
/**
|
|
470
470
|
* Refresh the app probe
|
|
471
471
|
* Refresh the app probe
|
package/dist/apis/AppApi.js
CHANGED
|
@@ -780,13 +780,16 @@ class AppApi extends runtime.BaseAPI {
|
|
|
780
780
|
return await response.value();
|
|
781
781
|
}
|
|
782
782
|
/**
|
|
783
|
-
*
|
|
784
|
-
*
|
|
783
|
+
* Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
|
|
784
|
+
* Read the last probe of an app instance
|
|
785
785
|
*/
|
|
786
786
|
async getAppProbeRaw(requestParameters, initOverrides) {
|
|
787
787
|
if (requestParameters['appId'] == null) {
|
|
788
788
|
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAppProbe().');
|
|
789
789
|
}
|
|
790
|
+
if (requestParameters['instanceId'] == null) {
|
|
791
|
+
throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling getAppProbe().');
|
|
792
|
+
}
|
|
790
793
|
const queryParameters = {};
|
|
791
794
|
if (requestParameters['instanceId'] != null) {
|
|
792
795
|
queryParameters['instanceId'] = requestParameters['instanceId'];
|
|
@@ -804,8 +807,8 @@ class AppApi extends runtime.BaseAPI {
|
|
|
804
807
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppProbeResponseUioFromJSON)(jsonValue));
|
|
805
808
|
}
|
|
806
809
|
/**
|
|
807
|
-
*
|
|
808
|
-
*
|
|
810
|
+
* Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
|
|
811
|
+
* Read the last probe of an app instance
|
|
809
812
|
*/
|
|
810
813
|
async getAppProbe(appId, instanceId, initOverrides) {
|
|
811
814
|
const response = await this.getAppProbeRaw({ appId: appId, instanceId: instanceId }, initOverrides);
|
|
@@ -937,13 +940,16 @@ class AppApi extends runtime.BaseAPI {
|
|
|
937
940
|
return await response.value();
|
|
938
941
|
}
|
|
939
942
|
/**
|
|
940
|
-
*
|
|
941
|
-
*
|
|
943
|
+
* Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
|
|
944
|
+
* Post the probe of an app instance
|
|
942
945
|
*/
|
|
943
946
|
async probeAppRaw(requestParameters, initOverrides) {
|
|
944
947
|
if (requestParameters['appId'] == null) {
|
|
945
948
|
throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling probeApp().');
|
|
946
949
|
}
|
|
950
|
+
if (requestParameters['instanceId'] == null) {
|
|
951
|
+
throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling probeApp().');
|
|
952
|
+
}
|
|
947
953
|
if (requestParameters['appProbeRequestUio'] == null) {
|
|
948
954
|
throw new runtime.RequiredError('appProbeRequestUio', 'Required parameter "appProbeRequestUio" was null or undefined when calling probeApp().');
|
|
949
955
|
}
|
|
@@ -966,11 +972,11 @@ class AppApi extends runtime.BaseAPI {
|
|
|
966
972
|
return new runtime.VoidApiResponse(response);
|
|
967
973
|
}
|
|
968
974
|
/**
|
|
969
|
-
*
|
|
970
|
-
*
|
|
975
|
+
* Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
|
|
976
|
+
* Post the probe of an app instance
|
|
971
977
|
*/
|
|
972
|
-
async probeApp(appId,
|
|
973
|
-
await this.probeAppRaw({ appId: appId,
|
|
978
|
+
async probeApp(appId, instanceId, appProbeRequestUio, initOverrides) {
|
|
979
|
+
await this.probeAppRaw({ appId: appId, instanceId: instanceId, appProbeRequestUio: appProbeRequestUio }, initOverrides);
|
|
974
980
|
}
|
|
975
981
|
/**
|
|
976
982
|
* Refresh the app probe
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Dernier probe remonte par l'instance. Un objet vide signifie que l'instance n'a jamais probe : `id` et `date` sont alors absents.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface AppProbeResponseUio
|
|
16
16
|
*/
|
|
@@ -21,13 +21,13 @@ export interface AppProbeResponseUio {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof AppProbeResponseUio
|
|
23
23
|
*/
|
|
24
|
-
id
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof AppProbeResponseUio
|
|
29
29
|
*/
|
|
30
|
-
date
|
|
30
|
+
date?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the AppProbeResponseUio interface.
|
|
@@ -22,10 +22,6 @@ exports.AppProbeResponseUioToJSONTyped = AppProbeResponseUioToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AppProbeResponseUio interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAppProbeResponseUio(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
28
|
-
return false;
|
|
29
25
|
return true;
|
|
30
26
|
}
|
|
31
27
|
function AppProbeResponseUioFromJSON(json) {
|
|
@@ -37,8 +33,8 @@ function AppProbeResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
33
|
}
|
|
38
34
|
return {
|
|
39
35
|
...json,
|
|
40
|
-
'id': json['id'],
|
|
41
|
-
'date': json['date'],
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
40
|
function AppProbeResponseUioToJSON(json) {
|
package/dist/openapi.json
CHANGED
|
@@ -3358,7 +3358,7 @@
|
|
|
3358
3358
|
},
|
|
3359
3359
|
"/apps/{appId}/probe" : {
|
|
3360
3360
|
"get" : {
|
|
3361
|
-
"description" : "
|
|
3361
|
+
"description" : "Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.",
|
|
3362
3362
|
"operationId" : "getAppProbe",
|
|
3363
3363
|
"parameters" : [ {
|
|
3364
3364
|
"description" : "ID of the app",
|
|
@@ -3369,9 +3369,10 @@
|
|
|
3369
3369
|
"type" : "string"
|
|
3370
3370
|
}
|
|
3371
3371
|
}, {
|
|
3372
|
-
"description" : "
|
|
3372
|
+
"description" : "The instance whose probe is read. `DEFAULT` is not accepted.",
|
|
3373
3373
|
"in" : "query",
|
|
3374
3374
|
"name" : "instanceId",
|
|
3375
|
+
"required" : true,
|
|
3375
3376
|
"schema" : {
|
|
3376
3377
|
"type" : "string"
|
|
3377
3378
|
}
|
|
@@ -3385,14 +3386,26 @@
|
|
|
3385
3386
|
}
|
|
3386
3387
|
}
|
|
3387
3388
|
},
|
|
3388
|
-
"description" : "
|
|
3389
|
+
"description" : "Last probe of the instance, or an empty object if it never probed"
|
|
3390
|
+
},
|
|
3391
|
+
"400" : {
|
|
3392
|
+
"description" : "instanceId is missing or is `DEFAULT`"
|
|
3393
|
+
},
|
|
3394
|
+
"401" : {
|
|
3395
|
+
"description" : "Unauthorized"
|
|
3396
|
+
},
|
|
3397
|
+
"403" : {
|
|
3398
|
+
"description" : "Forbidden"
|
|
3399
|
+
},
|
|
3400
|
+
"404" : {
|
|
3401
|
+
"description" : "App or instance not found"
|
|
3389
3402
|
}
|
|
3390
3403
|
},
|
|
3391
|
-
"summary" : "
|
|
3404
|
+
"summary" : "Read the last probe of an app instance",
|
|
3392
3405
|
"tags" : [ "app" ]
|
|
3393
3406
|
},
|
|
3394
3407
|
"post" : {
|
|
3395
|
-
"description" : "
|
|
3408
|
+
"description" : "Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.",
|
|
3396
3409
|
"operationId" : "probeApp",
|
|
3397
3410
|
"parameters" : [ {
|
|
3398
3411
|
"description" : "ID of the app",
|
|
@@ -3403,9 +3416,10 @@
|
|
|
3403
3416
|
"type" : "string"
|
|
3404
3417
|
}
|
|
3405
3418
|
}, {
|
|
3406
|
-
"description" : "
|
|
3419
|
+
"description" : "The instance the probe belongs to. `DEFAULT` is not accepted.",
|
|
3407
3420
|
"in" : "query",
|
|
3408
3421
|
"name" : "instanceId",
|
|
3422
|
+
"required" : true,
|
|
3409
3423
|
"schema" : {
|
|
3410
3424
|
"type" : "string"
|
|
3411
3425
|
}
|
|
@@ -3422,10 +3436,22 @@
|
|
|
3422
3436
|
},
|
|
3423
3437
|
"responses" : {
|
|
3424
3438
|
"204" : {
|
|
3425
|
-
"description" : "
|
|
3439
|
+
"description" : "Probe recorded"
|
|
3440
|
+
},
|
|
3441
|
+
"400" : {
|
|
3442
|
+
"description" : "Invalid body, or instanceId missing or `DEFAULT`"
|
|
3443
|
+
},
|
|
3444
|
+
"401" : {
|
|
3445
|
+
"description" : "Unauthorized"
|
|
3446
|
+
},
|
|
3447
|
+
"403" : {
|
|
3448
|
+
"description" : "Forbidden"
|
|
3449
|
+
},
|
|
3450
|
+
"404" : {
|
|
3451
|
+
"description" : "App or instance not found"
|
|
3426
3452
|
}
|
|
3427
3453
|
},
|
|
3428
|
-
"summary" : "
|
|
3454
|
+
"summary" : "Post the probe of an app instance",
|
|
3429
3455
|
"tags" : [ "app" ]
|
|
3430
3456
|
}
|
|
3431
3457
|
},
|
|
@@ -18476,6 +18502,7 @@
|
|
|
18476
18502
|
},
|
|
18477
18503
|
"AppProbeResponse" : {
|
|
18478
18504
|
"additionalProperties" : true,
|
|
18505
|
+
"description" : "Dernier probe remonte par l'instance. Un objet vide signifie que l'instance n'a jamais probe : `id` et `date` sont alors absents.",
|
|
18479
18506
|
"properties" : {
|
|
18480
18507
|
"id" : {
|
|
18481
18508
|
"type" : "string"
|
|
@@ -18484,7 +18511,6 @@
|
|
|
18484
18511
|
"type" : "string"
|
|
18485
18512
|
}
|
|
18486
18513
|
},
|
|
18487
|
-
"required" : [ "date", "id" ],
|
|
18488
18514
|
"type" : "object"
|
|
18489
18515
|
},
|
|
18490
18516
|
"AppProbeRequest" : {
|