@faable/auth-sdk 2.4.21 → 2.4.22
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/api/api-types.d.ts +1 -0
- package/dist/api/generated-client.d.ts +19 -0
- package/dist/api/generated-client.js +9 -0
- package/dist/api/types.d.ts +98 -1
- package/package.json +1 -1
- package/spec/openapi.json +168 -1
package/dist/api/api-types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type AccountNotificationSettings = components["schemas"]["AccountNotifica
|
|
|
3
3
|
export type Action = components["schemas"]["Action"];
|
|
4
4
|
export type ActionCreate = components["schemas"]["ActionCreate"];
|
|
5
5
|
export type ActionMetadata = components["schemas"]["ActionMetadata"];
|
|
6
|
+
export type ActionUpdate = components["schemas"]["ActionUpdate"];
|
|
6
7
|
export type Api = components["schemas"]["Api"];
|
|
7
8
|
export type ApiCreate = components["schemas"]["ApiCreate"];
|
|
8
9
|
export type ApiMetadata = components["schemas"]["ApiMetadata"];
|
|
@@ -346,6 +346,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
346
346
|
updatedAt?: string | undefined;
|
|
347
347
|
}>>;
|
|
348
348
|
};
|
|
349
|
+
/**
|
|
350
|
+
* `POST /action/{action_id}` — operationId: `action/update`
|
|
351
|
+
*
|
|
352
|
+
* Update Action
|
|
353
|
+
*/
|
|
354
|
+
actionUpdate(action_id: string, data: OpBody<"action/update">): Promise<{
|
|
355
|
+
id: string;
|
|
356
|
+
name: string;
|
|
357
|
+
trigger: "continue" | "post-login";
|
|
358
|
+
code: string;
|
|
359
|
+
enabled: boolean;
|
|
360
|
+
order: number;
|
|
361
|
+
account: string;
|
|
362
|
+
metadata: {
|
|
363
|
+
[key: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
createdAt: string;
|
|
366
|
+
updatedAt?: string | undefined;
|
|
367
|
+
}>;
|
|
349
368
|
/**
|
|
350
369
|
* `POST /api` — operationId: `api/create`
|
|
351
370
|
*
|
|
@@ -110,6 +110,15 @@ export class GeneratedFaableAuthApi extends FaableApi {
|
|
|
110
110
|
actionList(params) {
|
|
111
111
|
return this.paginator({ url: `/action`, params });
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* `POST /action/{action_id}` — operationId: `action/update`
|
|
115
|
+
*
|
|
116
|
+
* Update Action
|
|
117
|
+
*/
|
|
118
|
+
actionUpdate(action_id, data) {
|
|
119
|
+
requireId("action_id", action_id);
|
|
120
|
+
return this.fetcher.post(`/action/${action_id}`, data);
|
|
121
|
+
}
|
|
113
122
|
/**
|
|
114
123
|
* `POST /api` — operationId: `api/create`
|
|
115
124
|
*
|
package/dist/api/types.d.ts
CHANGED
|
@@ -985,7 +985,11 @@ export interface paths {
|
|
|
985
985
|
*/
|
|
986
986
|
get: operations["action/get"];
|
|
987
987
|
put?: never;
|
|
988
|
-
|
|
988
|
+
/**
|
|
989
|
+
* Update Action
|
|
990
|
+
* @description Update Action
|
|
991
|
+
*/
|
|
992
|
+
post: operations["action/update"];
|
|
989
993
|
/**
|
|
990
994
|
* Delete Action
|
|
991
995
|
* @description Delete Action
|
|
@@ -2702,6 +2706,22 @@ export interface components {
|
|
|
2702
2706
|
*/
|
|
2703
2707
|
order: number;
|
|
2704
2708
|
};
|
|
2709
|
+
/** @description Partial update for an Action. Only the supplied fields are modified. */
|
|
2710
|
+
ActionUpdate: {
|
|
2711
|
+
/** @description Action Name */
|
|
2712
|
+
name?: string;
|
|
2713
|
+
/**
|
|
2714
|
+
* @description Trigger event name
|
|
2715
|
+
* @enum {unknown}
|
|
2716
|
+
*/
|
|
2717
|
+
trigger?: "continue" | "post-login";
|
|
2718
|
+
/** @description JavaScript Code to execute */
|
|
2719
|
+
code?: string;
|
|
2720
|
+
/** @description Is this action active? */
|
|
2721
|
+
enabled?: boolean;
|
|
2722
|
+
/** @description Execution order */
|
|
2723
|
+
order?: number;
|
|
2724
|
+
};
|
|
2705
2725
|
/** @description NotificationSubscription */
|
|
2706
2726
|
NotificationSubscription: {
|
|
2707
2727
|
/** @description NotificationSubscriptionEmail ID */
|
|
@@ -7665,6 +7685,83 @@ export interface operations {
|
|
|
7665
7685
|
};
|
|
7666
7686
|
};
|
|
7667
7687
|
};
|
|
7688
|
+
"action/update": {
|
|
7689
|
+
parameters: {
|
|
7690
|
+
query?: never;
|
|
7691
|
+
header?: never;
|
|
7692
|
+
path: {
|
|
7693
|
+
action_id: string;
|
|
7694
|
+
};
|
|
7695
|
+
cookie?: never;
|
|
7696
|
+
};
|
|
7697
|
+
/** @description Partial update for an Action. Only the supplied fields are modified. */
|
|
7698
|
+
requestBody: {
|
|
7699
|
+
content: {
|
|
7700
|
+
"application/json": {
|
|
7701
|
+
/** @description Action Name */
|
|
7702
|
+
name?: string;
|
|
7703
|
+
/**
|
|
7704
|
+
* @description Trigger event name
|
|
7705
|
+
* @enum {unknown}
|
|
7706
|
+
*/
|
|
7707
|
+
trigger?: "continue" | "post-login";
|
|
7708
|
+
/** @description JavaScript Code to execute */
|
|
7709
|
+
code?: string;
|
|
7710
|
+
/** @description Is this action active? */
|
|
7711
|
+
enabled?: boolean;
|
|
7712
|
+
/** @description Execution order */
|
|
7713
|
+
order?: number;
|
|
7714
|
+
};
|
|
7715
|
+
};
|
|
7716
|
+
};
|
|
7717
|
+
responses: {
|
|
7718
|
+
/** @description Action */
|
|
7719
|
+
200: {
|
|
7720
|
+
headers: {
|
|
7721
|
+
[name: string]: unknown;
|
|
7722
|
+
};
|
|
7723
|
+
content: {
|
|
7724
|
+
"application/json": {
|
|
7725
|
+
/** @description Action ID */
|
|
7726
|
+
id: string;
|
|
7727
|
+
/** @description Action Name */
|
|
7728
|
+
name: string;
|
|
7729
|
+
/**
|
|
7730
|
+
* @description Trigger event name
|
|
7731
|
+
* @default post-login
|
|
7732
|
+
* @enum {unknown}
|
|
7733
|
+
*/
|
|
7734
|
+
trigger: "continue" | "post-login";
|
|
7735
|
+
/** @description JavaScript Code to execute */
|
|
7736
|
+
code: string;
|
|
7737
|
+
/**
|
|
7738
|
+
* @description Is this action active?
|
|
7739
|
+
* @default true
|
|
7740
|
+
*/
|
|
7741
|
+
enabled: boolean;
|
|
7742
|
+
/**
|
|
7743
|
+
* @description Execution order
|
|
7744
|
+
* @default 0
|
|
7745
|
+
*/
|
|
7746
|
+
order: number;
|
|
7747
|
+
/** @description Object is related with this account */
|
|
7748
|
+
account: string;
|
|
7749
|
+
/**
|
|
7750
|
+
* @description ActionMetadata
|
|
7751
|
+
* @default {}
|
|
7752
|
+
*/
|
|
7753
|
+
metadata: {
|
|
7754
|
+
[key: string]: unknown;
|
|
7755
|
+
};
|
|
7756
|
+
/** @description Action creation date */
|
|
7757
|
+
createdAt: string;
|
|
7758
|
+
/** @description Action updated date */
|
|
7759
|
+
updatedAt?: string;
|
|
7760
|
+
};
|
|
7761
|
+
};
|
|
7762
|
+
};
|
|
7763
|
+
};
|
|
7764
|
+
};
|
|
7668
7765
|
"action/delete": {
|
|
7669
7766
|
parameters: {
|
|
7670
7767
|
query?: never;
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@faablecloud/auth",
|
|
5
5
|
"description": "Auth Platform made by Faable. Manage Users and Roles",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.27.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -2745,6 +2745,37 @@
|
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
2747
|
},
|
|
2748
|
+
"ActionUpdate": {
|
|
2749
|
+
"type": "object",
|
|
2750
|
+
"properties": {
|
|
2751
|
+
"name": {
|
|
2752
|
+
"type": "string",
|
|
2753
|
+
"description": "Action Name",
|
|
2754
|
+
"maxLength": 200
|
|
2755
|
+
},
|
|
2756
|
+
"trigger": {
|
|
2757
|
+
"enum": [
|
|
2758
|
+
"continue",
|
|
2759
|
+
"post-login"
|
|
2760
|
+
],
|
|
2761
|
+
"description": "Trigger event name"
|
|
2762
|
+
},
|
|
2763
|
+
"code": {
|
|
2764
|
+
"type": "string",
|
|
2765
|
+
"description": "JavaScript Code to execute"
|
|
2766
|
+
},
|
|
2767
|
+
"enabled": {
|
|
2768
|
+
"type": "boolean",
|
|
2769
|
+
"description": "Is this action active?"
|
|
2770
|
+
},
|
|
2771
|
+
"order": {
|
|
2772
|
+
"type": "number",
|
|
2773
|
+
"description": "Execution order"
|
|
2774
|
+
}
|
|
2775
|
+
},
|
|
2776
|
+
"description": "Partial update for an Action. Only the supplied fields are modified.",
|
|
2777
|
+
"additionalProperties": false
|
|
2778
|
+
},
|
|
2748
2779
|
"NotificationSubscription": {
|
|
2749
2780
|
"anyOf": [
|
|
2750
2781
|
{
|
|
@@ -15316,6 +15347,142 @@
|
|
|
15316
15347
|
}
|
|
15317
15348
|
}
|
|
15318
15349
|
},
|
|
15350
|
+
"post": {
|
|
15351
|
+
"operationId": "action/update",
|
|
15352
|
+
"summary": "Update Action",
|
|
15353
|
+
"tags": [
|
|
15354
|
+
"action"
|
|
15355
|
+
],
|
|
15356
|
+
"description": "Update Action",
|
|
15357
|
+
"requestBody": {
|
|
15358
|
+
"required": true,
|
|
15359
|
+
"content": {
|
|
15360
|
+
"application/json": {
|
|
15361
|
+
"schema": {
|
|
15362
|
+
"type": "object",
|
|
15363
|
+
"properties": {
|
|
15364
|
+
"name": {
|
|
15365
|
+
"type": "string",
|
|
15366
|
+
"description": "Action Name",
|
|
15367
|
+
"maxLength": 200
|
|
15368
|
+
},
|
|
15369
|
+
"trigger": {
|
|
15370
|
+
"enum": [
|
|
15371
|
+
"continue",
|
|
15372
|
+
"post-login"
|
|
15373
|
+
],
|
|
15374
|
+
"description": "Trigger event name"
|
|
15375
|
+
},
|
|
15376
|
+
"code": {
|
|
15377
|
+
"type": "string",
|
|
15378
|
+
"description": "JavaScript Code to execute"
|
|
15379
|
+
},
|
|
15380
|
+
"enabled": {
|
|
15381
|
+
"type": "boolean",
|
|
15382
|
+
"description": "Is this action active?"
|
|
15383
|
+
},
|
|
15384
|
+
"order": {
|
|
15385
|
+
"type": "number",
|
|
15386
|
+
"description": "Execution order"
|
|
15387
|
+
}
|
|
15388
|
+
},
|
|
15389
|
+
"description": "Partial update for an Action. Only the supplied fields are modified.",
|
|
15390
|
+
"additionalProperties": false
|
|
15391
|
+
}
|
|
15392
|
+
}
|
|
15393
|
+
},
|
|
15394
|
+
"description": "Partial update for an Action. Only the supplied fields are modified."
|
|
15395
|
+
},
|
|
15396
|
+
"parameters": [
|
|
15397
|
+
{
|
|
15398
|
+
"schema": {
|
|
15399
|
+
"type": "string"
|
|
15400
|
+
},
|
|
15401
|
+
"in": "path",
|
|
15402
|
+
"name": "action_id",
|
|
15403
|
+
"required": true
|
|
15404
|
+
}
|
|
15405
|
+
],
|
|
15406
|
+
"security": [
|
|
15407
|
+
{
|
|
15408
|
+
"bearerAuth": []
|
|
15409
|
+
}
|
|
15410
|
+
],
|
|
15411
|
+
"responses": {
|
|
15412
|
+
"200": {
|
|
15413
|
+
"description": "Action",
|
|
15414
|
+
"content": {
|
|
15415
|
+
"application/json": {
|
|
15416
|
+
"schema": {
|
|
15417
|
+
"type": "object",
|
|
15418
|
+
"required": [
|
|
15419
|
+
"id",
|
|
15420
|
+
"name",
|
|
15421
|
+
"trigger",
|
|
15422
|
+
"code",
|
|
15423
|
+
"enabled",
|
|
15424
|
+
"account",
|
|
15425
|
+
"createdAt"
|
|
15426
|
+
],
|
|
15427
|
+
"properties": {
|
|
15428
|
+
"id": {
|
|
15429
|
+
"type": "string",
|
|
15430
|
+
"description": "Action ID"
|
|
15431
|
+
},
|
|
15432
|
+
"name": {
|
|
15433
|
+
"type": "string",
|
|
15434
|
+
"description": "Action Name",
|
|
15435
|
+
"maxLength": 200
|
|
15436
|
+
},
|
|
15437
|
+
"trigger": {
|
|
15438
|
+
"enum": [
|
|
15439
|
+
"continue",
|
|
15440
|
+
"post-login"
|
|
15441
|
+
],
|
|
15442
|
+
"description": "Trigger event name",
|
|
15443
|
+
"default": "post-login"
|
|
15444
|
+
},
|
|
15445
|
+
"code": {
|
|
15446
|
+
"type": "string",
|
|
15447
|
+
"description": "JavaScript Code to execute"
|
|
15448
|
+
},
|
|
15449
|
+
"enabled": {
|
|
15450
|
+
"type": "boolean",
|
|
15451
|
+
"description": "Is this action active?",
|
|
15452
|
+
"default": true
|
|
15453
|
+
},
|
|
15454
|
+
"order": {
|
|
15455
|
+
"type": "number",
|
|
15456
|
+
"description": "Execution order",
|
|
15457
|
+
"default": 0
|
|
15458
|
+
},
|
|
15459
|
+
"account": {
|
|
15460
|
+
"type": "string",
|
|
15461
|
+
"description": "Object is related with this account"
|
|
15462
|
+
},
|
|
15463
|
+
"metadata": {
|
|
15464
|
+
"type": "object",
|
|
15465
|
+
"properties": {},
|
|
15466
|
+
"additionalProperties": true,
|
|
15467
|
+
"description": "ActionMetadata",
|
|
15468
|
+
"default": {}
|
|
15469
|
+
},
|
|
15470
|
+
"createdAt": {
|
|
15471
|
+
"type": "string",
|
|
15472
|
+
"description": "Action creation date"
|
|
15473
|
+
},
|
|
15474
|
+
"updatedAt": {
|
|
15475
|
+
"type": "string",
|
|
15476
|
+
"description": "Action updated date"
|
|
15477
|
+
}
|
|
15478
|
+
},
|
|
15479
|
+
"description": "Action"
|
|
15480
|
+
}
|
|
15481
|
+
}
|
|
15482
|
+
}
|
|
15483
|
+
}
|
|
15484
|
+
}
|
|
15485
|
+
},
|
|
15319
15486
|
"delete": {
|
|
15320
15487
|
"operationId": "action/delete",
|
|
15321
15488
|
"summary": "Delete Action",
|