@faable/auth-sdk 2.5.64 → 2.5.66
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/generated-client.d.ts +7 -7
- package/dist/api/types.d.ts +25 -59
- package/package.json +1 -1
- package/spec/openapi.json +72 -86
|
@@ -245,7 +245,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
245
245
|
actionCreate(data: OpBody<"action/create">): Promise<{
|
|
246
246
|
id: string;
|
|
247
247
|
name: string;
|
|
248
|
-
|
|
248
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
249
249
|
code: string;
|
|
250
250
|
enabled: boolean;
|
|
251
251
|
order: number;
|
|
@@ -265,7 +265,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
265
265
|
actionDelete(action_id: string): Promise<{
|
|
266
266
|
id: string;
|
|
267
267
|
name: string;
|
|
268
|
-
|
|
268
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
269
269
|
code: string;
|
|
270
270
|
enabled: boolean;
|
|
271
271
|
order: number;
|
|
@@ -285,7 +285,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
285
285
|
actionGet(action_id: string): Promise<{
|
|
286
286
|
id: string;
|
|
287
287
|
name: string;
|
|
288
|
-
|
|
288
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
289
289
|
code: string;
|
|
290
290
|
enabled: boolean;
|
|
291
291
|
order: number;
|
|
@@ -306,7 +306,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
306
306
|
all: () => Promise<{
|
|
307
307
|
id: string;
|
|
308
308
|
name: string;
|
|
309
|
-
|
|
309
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
310
310
|
code: string;
|
|
311
311
|
enabled: boolean;
|
|
312
312
|
order: number;
|
|
@@ -321,7 +321,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
321
321
|
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
322
322
|
id: string;
|
|
323
323
|
name: string;
|
|
324
|
-
|
|
324
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
325
325
|
code: string;
|
|
326
326
|
enabled: boolean;
|
|
327
327
|
order: number;
|
|
@@ -339,7 +339,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
339
339
|
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
340
340
|
id: string;
|
|
341
341
|
name: string;
|
|
342
|
-
|
|
342
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
343
343
|
code: string;
|
|
344
344
|
enabled: boolean;
|
|
345
345
|
order: number;
|
|
@@ -360,7 +360,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
360
360
|
actionUpdate(action_id: string, data: OpBody<"action/update">): Promise<{
|
|
361
361
|
id: string;
|
|
362
362
|
name: string;
|
|
363
|
-
|
|
363
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
364
364
|
code: string;
|
|
365
365
|
enabled: boolean;
|
|
366
366
|
order: number;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -2763,12 +2763,8 @@ export interface components {
|
|
|
2763
2763
|
id: string;
|
|
2764
2764
|
/** @description Action Name */
|
|
2765
2765
|
name: string;
|
|
2766
|
-
/**
|
|
2767
|
-
|
|
2768
|
-
* @default post-login
|
|
2769
|
-
* @enum {unknown}
|
|
2770
|
-
*/
|
|
2771
|
-
trigger: "continue" | "post-login" | "client-credentials";
|
|
2766
|
+
/** @description Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only. */
|
|
2767
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
2772
2768
|
/** @description JavaScript Code to execute */
|
|
2773
2769
|
code: string;
|
|
2774
2770
|
/**
|
|
@@ -2777,7 +2773,7 @@ export interface components {
|
|
|
2777
2773
|
*/
|
|
2778
2774
|
enabled: boolean;
|
|
2779
2775
|
/**
|
|
2780
|
-
* @description Execution order
|
|
2776
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
2781
2777
|
* @default 0
|
|
2782
2778
|
*/
|
|
2783
2779
|
order: number;
|
|
@@ -2810,31 +2806,24 @@ export interface components {
|
|
|
2810
2806
|
ActionCreate: {
|
|
2811
2807
|
/** @description Action Name */
|
|
2812
2808
|
name: string;
|
|
2813
|
-
/** @description
|
|
2814
|
-
|
|
2815
|
-
/** @description JavaScript Code to execute */
|
|
2816
|
-
code?: string;
|
|
2809
|
+
/** @description JavaScript code. Must export at least one hook: exports.onExecutePostLogin, exports.onExecuteContinue and/or exports.onExecuteClientCredentials. The triggers are derived from the exported hooks. */
|
|
2810
|
+
code: string;
|
|
2817
2811
|
/**
|
|
2818
2812
|
* @description Is this action active?
|
|
2819
2813
|
* @default true
|
|
2820
2814
|
*/
|
|
2821
2815
|
enabled: boolean;
|
|
2822
2816
|
/**
|
|
2823
|
-
* @description Execution order
|
|
2817
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
2824
2818
|
* @default 0
|
|
2825
2819
|
*/
|
|
2826
2820
|
order: number;
|
|
2827
2821
|
};
|
|
2828
|
-
/** @description Partial update for an Action. Only the supplied fields are modified
|
|
2822
|
+
/** @description Partial update for an Action. Only the supplied fields are modified; `triggers` is read-only and follows `code`. */
|
|
2829
2823
|
ActionUpdate: {
|
|
2830
2824
|
/** @description Action Name */
|
|
2831
2825
|
name?: string;
|
|
2832
|
-
/**
|
|
2833
|
-
* @description Trigger event name
|
|
2834
|
-
* @enum {unknown}
|
|
2835
|
-
*/
|
|
2836
|
-
trigger?: "continue" | "post-login" | "client-credentials";
|
|
2837
|
-
/** @description JavaScript Code to execute */
|
|
2826
|
+
/** @description JavaScript code. The triggers are re-derived from the hooks it exports. */
|
|
2838
2827
|
code?: string;
|
|
2839
2828
|
/** @description Is this action active? */
|
|
2840
2829
|
enabled?: boolean;
|
|
@@ -7840,17 +7829,15 @@ export interface operations {
|
|
|
7840
7829
|
"application/json": {
|
|
7841
7830
|
/** @description Action Name */
|
|
7842
7831
|
name: string;
|
|
7843
|
-
/** @description
|
|
7844
|
-
|
|
7845
|
-
/** @description JavaScript Code to execute */
|
|
7846
|
-
code?: string;
|
|
7832
|
+
/** @description JavaScript code. Must export at least one hook: exports.onExecutePostLogin, exports.onExecuteContinue and/or exports.onExecuteClientCredentials. The triggers are derived from the exported hooks. */
|
|
7833
|
+
code: string;
|
|
7847
7834
|
/**
|
|
7848
7835
|
* @description Is this action active?
|
|
7849
7836
|
* @default true
|
|
7850
7837
|
*/
|
|
7851
7838
|
enabled?: boolean;
|
|
7852
7839
|
/**
|
|
7853
|
-
* @description Execution order
|
|
7840
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
7854
7841
|
* @default 0
|
|
7855
7842
|
*/
|
|
7856
7843
|
order?: number;
|
|
@@ -7869,12 +7856,8 @@ export interface operations {
|
|
|
7869
7856
|
id: string;
|
|
7870
7857
|
/** @description Action Name */
|
|
7871
7858
|
name: string;
|
|
7872
|
-
/**
|
|
7873
|
-
|
|
7874
|
-
* @default post-login
|
|
7875
|
-
* @enum {unknown}
|
|
7876
|
-
*/
|
|
7877
|
-
trigger: "continue" | "post-login" | "client-credentials";
|
|
7859
|
+
/** @description Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only. */
|
|
7860
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
7878
7861
|
/** @description JavaScript Code to execute */
|
|
7879
7862
|
code: string;
|
|
7880
7863
|
/**
|
|
@@ -7883,7 +7866,7 @@ export interface operations {
|
|
|
7883
7866
|
*/
|
|
7884
7867
|
enabled: boolean;
|
|
7885
7868
|
/**
|
|
7886
|
-
* @description Execution order
|
|
7869
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
7887
7870
|
* @default 0
|
|
7888
7871
|
*/
|
|
7889
7872
|
order: number;
|
|
@@ -7932,12 +7915,8 @@ export interface operations {
|
|
|
7932
7915
|
id: string;
|
|
7933
7916
|
/** @description Action Name */
|
|
7934
7917
|
name: string;
|
|
7935
|
-
/**
|
|
7936
|
-
|
|
7937
|
-
* @default post-login
|
|
7938
|
-
* @enum {unknown}
|
|
7939
|
-
*/
|
|
7940
|
-
trigger: "continue" | "post-login" | "client-credentials";
|
|
7918
|
+
/** @description Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only. */
|
|
7919
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
7941
7920
|
/** @description JavaScript Code to execute */
|
|
7942
7921
|
code: string;
|
|
7943
7922
|
/**
|
|
@@ -7946,7 +7925,7 @@ export interface operations {
|
|
|
7946
7925
|
*/
|
|
7947
7926
|
enabled: boolean;
|
|
7948
7927
|
/**
|
|
7949
|
-
* @description Execution order
|
|
7928
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
7950
7929
|
* @default 0
|
|
7951
7930
|
*/
|
|
7952
7931
|
order: number;
|
|
@@ -7982,18 +7961,13 @@ export interface operations {
|
|
|
7982
7961
|
};
|
|
7983
7962
|
cookie?: never;
|
|
7984
7963
|
};
|
|
7985
|
-
/** @description Partial update for an Action. Only the supplied fields are modified
|
|
7964
|
+
/** @description Partial update for an Action. Only the supplied fields are modified; `triggers` is read-only and follows `code`. */
|
|
7986
7965
|
requestBody: {
|
|
7987
7966
|
content: {
|
|
7988
7967
|
"application/json": {
|
|
7989
7968
|
/** @description Action Name */
|
|
7990
7969
|
name?: string;
|
|
7991
|
-
/**
|
|
7992
|
-
* @description Trigger event name
|
|
7993
|
-
* @enum {unknown}
|
|
7994
|
-
*/
|
|
7995
|
-
trigger?: "continue" | "post-login" | "client-credentials";
|
|
7996
|
-
/** @description JavaScript Code to execute */
|
|
7970
|
+
/** @description JavaScript code. The triggers are re-derived from the hooks it exports. */
|
|
7997
7971
|
code?: string;
|
|
7998
7972
|
/** @description Is this action active? */
|
|
7999
7973
|
enabled?: boolean;
|
|
@@ -8014,12 +7988,8 @@ export interface operations {
|
|
|
8014
7988
|
id: string;
|
|
8015
7989
|
/** @description Action Name */
|
|
8016
7990
|
name: string;
|
|
8017
|
-
/**
|
|
8018
|
-
|
|
8019
|
-
* @default post-login
|
|
8020
|
-
* @enum {unknown}
|
|
8021
|
-
*/
|
|
8022
|
-
trigger: "continue" | "post-login" | "client-credentials";
|
|
7991
|
+
/** @description Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only. */
|
|
7992
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
8023
7993
|
/** @description JavaScript Code to execute */
|
|
8024
7994
|
code: string;
|
|
8025
7995
|
/**
|
|
@@ -8028,7 +7998,7 @@ export interface operations {
|
|
|
8028
7998
|
*/
|
|
8029
7999
|
enabled: boolean;
|
|
8030
8000
|
/**
|
|
8031
|
-
* @description Execution order
|
|
8001
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
8032
8002
|
* @default 0
|
|
8033
8003
|
*/
|
|
8034
8004
|
order: number;
|
|
@@ -8077,12 +8047,8 @@ export interface operations {
|
|
|
8077
8047
|
id: string;
|
|
8078
8048
|
/** @description Action Name */
|
|
8079
8049
|
name: string;
|
|
8080
|
-
/**
|
|
8081
|
-
|
|
8082
|
-
* @default post-login
|
|
8083
|
-
* @enum {unknown}
|
|
8084
|
-
*/
|
|
8085
|
-
trigger: "continue" | "post-login" | "client-credentials";
|
|
8050
|
+
/** @description Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only. */
|
|
8051
|
+
triggers: ("continue" | "post-login" | "client-credentials")[];
|
|
8086
8052
|
/** @description JavaScript Code to execute */
|
|
8087
8053
|
code: string;
|
|
8088
8054
|
/**
|
|
@@ -8091,7 +8057,7 @@ export interface operations {
|
|
|
8091
8057
|
*/
|
|
8092
8058
|
enabled: boolean;
|
|
8093
8059
|
/**
|
|
8094
|
-
* @description Execution order
|
|
8060
|
+
* @description Execution order: lower runs first; on ties the newest action runs first
|
|
8095
8061
|
* @default 0
|
|
8096
8062
|
*/
|
|
8097
8063
|
order: number;
|
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": "
|
|
6
|
+
"version": "2.0.1",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -2743,7 +2743,7 @@
|
|
|
2743
2743
|
"required": [
|
|
2744
2744
|
"id",
|
|
2745
2745
|
"name",
|
|
2746
|
-
"
|
|
2746
|
+
"triggers",
|
|
2747
2747
|
"code",
|
|
2748
2748
|
"enabled",
|
|
2749
2749
|
"account",
|
|
@@ -2759,14 +2759,16 @@
|
|
|
2759
2759
|
"description": "Action Name",
|
|
2760
2760
|
"maxLength": 200
|
|
2761
2761
|
},
|
|
2762
|
-
"
|
|
2763
|
-
"
|
|
2764
|
-
|
|
2765
|
-
"
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2762
|
+
"triggers": {
|
|
2763
|
+
"type": "array",
|
|
2764
|
+
"items": {
|
|
2765
|
+
"enum": [
|
|
2766
|
+
"continue",
|
|
2767
|
+
"post-login",
|
|
2768
|
+
"client-credentials"
|
|
2769
|
+
]
|
|
2770
|
+
},
|
|
2771
|
+
"description": "Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only."
|
|
2770
2772
|
},
|
|
2771
2773
|
"code": {
|
|
2772
2774
|
"type": "string",
|
|
@@ -2779,7 +2781,7 @@
|
|
|
2779
2781
|
},
|
|
2780
2782
|
"order": {
|
|
2781
2783
|
"type": "number",
|
|
2782
|
-
"description": "Execution order",
|
|
2784
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
2783
2785
|
"default": 0
|
|
2784
2786
|
},
|
|
2785
2787
|
"revision": {
|
|
@@ -2820,7 +2822,7 @@
|
|
|
2820
2822
|
"type": "object",
|
|
2821
2823
|
"required": [
|
|
2822
2824
|
"name",
|
|
2823
|
-
"
|
|
2825
|
+
"code"
|
|
2824
2826
|
],
|
|
2825
2827
|
"properties": {
|
|
2826
2828
|
"name": {
|
|
@@ -2828,13 +2830,9 @@
|
|
|
2828
2830
|
"description": "Action Name",
|
|
2829
2831
|
"maxLength": 200
|
|
2830
2832
|
},
|
|
2831
|
-
"trigger": {
|
|
2832
|
-
"type": "string",
|
|
2833
|
-
"description": "Trigger event name (e.g., post-login)"
|
|
2834
|
-
},
|
|
2835
2833
|
"code": {
|
|
2836
2834
|
"type": "string",
|
|
2837
|
-
"description": "JavaScript
|
|
2835
|
+
"description": "JavaScript code. Must export at least one hook: exports.onExecutePostLogin, exports.onExecuteContinue and/or exports.onExecuteClientCredentials. The triggers are derived from the exported hooks."
|
|
2838
2836
|
},
|
|
2839
2837
|
"enabled": {
|
|
2840
2838
|
"type": "boolean",
|
|
@@ -2843,7 +2841,7 @@
|
|
|
2843
2841
|
},
|
|
2844
2842
|
"order": {
|
|
2845
2843
|
"type": "number",
|
|
2846
|
-
"description": "Execution order",
|
|
2844
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
2847
2845
|
"default": 0
|
|
2848
2846
|
}
|
|
2849
2847
|
}
|
|
@@ -2856,17 +2854,9 @@
|
|
|
2856
2854
|
"description": "Action Name",
|
|
2857
2855
|
"maxLength": 200
|
|
2858
2856
|
},
|
|
2859
|
-
"trigger": {
|
|
2860
|
-
"enum": [
|
|
2861
|
-
"continue",
|
|
2862
|
-
"post-login",
|
|
2863
|
-
"client-credentials"
|
|
2864
|
-
],
|
|
2865
|
-
"description": "Trigger event name"
|
|
2866
|
-
},
|
|
2867
2857
|
"code": {
|
|
2868
2858
|
"type": "string",
|
|
2869
|
-
"description": "JavaScript
|
|
2859
|
+
"description": "JavaScript code. The triggers are re-derived from the hooks it exports."
|
|
2870
2860
|
},
|
|
2871
2861
|
"enabled": {
|
|
2872
2862
|
"type": "boolean",
|
|
@@ -2877,7 +2867,7 @@
|
|
|
2877
2867
|
"description": "Execution order"
|
|
2878
2868
|
}
|
|
2879
2869
|
},
|
|
2880
|
-
"description": "Partial update for an Action. Only the supplied fields are modified
|
|
2870
|
+
"description": "Partial update for an Action. Only the supplied fields are modified; `triggers` is read-only and follows `code`.",
|
|
2881
2871
|
"additionalProperties": false
|
|
2882
2872
|
},
|
|
2883
2873
|
"NotificationSubscription": {
|
|
@@ -15735,7 +15725,7 @@
|
|
|
15735
15725
|
"type": "object",
|
|
15736
15726
|
"required": [
|
|
15737
15727
|
"name",
|
|
15738
|
-
"
|
|
15728
|
+
"code"
|
|
15739
15729
|
],
|
|
15740
15730
|
"properties": {
|
|
15741
15731
|
"name": {
|
|
@@ -15743,13 +15733,9 @@
|
|
|
15743
15733
|
"description": "Action Name",
|
|
15744
15734
|
"maxLength": 200
|
|
15745
15735
|
},
|
|
15746
|
-
"trigger": {
|
|
15747
|
-
"type": "string",
|
|
15748
|
-
"description": "Trigger event name (e.g., post-login)"
|
|
15749
|
-
},
|
|
15750
15736
|
"code": {
|
|
15751
15737
|
"type": "string",
|
|
15752
|
-
"description": "JavaScript
|
|
15738
|
+
"description": "JavaScript code. Must export at least one hook: exports.onExecutePostLogin, exports.onExecuteContinue and/or exports.onExecuteClientCredentials. The triggers are derived from the exported hooks."
|
|
15753
15739
|
},
|
|
15754
15740
|
"enabled": {
|
|
15755
15741
|
"type": "boolean",
|
|
@@ -15758,7 +15744,7 @@
|
|
|
15758
15744
|
},
|
|
15759
15745
|
"order": {
|
|
15760
15746
|
"type": "number",
|
|
15761
|
-
"description": "Execution order",
|
|
15747
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15762
15748
|
"default": 0
|
|
15763
15749
|
}
|
|
15764
15750
|
}
|
|
@@ -15781,7 +15767,7 @@
|
|
|
15781
15767
|
"required": [
|
|
15782
15768
|
"id",
|
|
15783
15769
|
"name",
|
|
15784
|
-
"
|
|
15770
|
+
"triggers",
|
|
15785
15771
|
"code",
|
|
15786
15772
|
"enabled",
|
|
15787
15773
|
"account",
|
|
@@ -15797,14 +15783,16 @@
|
|
|
15797
15783
|
"description": "Action Name",
|
|
15798
15784
|
"maxLength": 200
|
|
15799
15785
|
},
|
|
15800
|
-
"
|
|
15801
|
-
"
|
|
15802
|
-
|
|
15803
|
-
"
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15786
|
+
"triggers": {
|
|
15787
|
+
"type": "array",
|
|
15788
|
+
"items": {
|
|
15789
|
+
"enum": [
|
|
15790
|
+
"continue",
|
|
15791
|
+
"post-login",
|
|
15792
|
+
"client-credentials"
|
|
15793
|
+
]
|
|
15794
|
+
},
|
|
15795
|
+
"description": "Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only."
|
|
15808
15796
|
},
|
|
15809
15797
|
"code": {
|
|
15810
15798
|
"type": "string",
|
|
@@ -15817,7 +15805,7 @@
|
|
|
15817
15805
|
},
|
|
15818
15806
|
"order": {
|
|
15819
15807
|
"type": "number",
|
|
15820
|
-
"description": "Execution order",
|
|
15808
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15821
15809
|
"default": 0
|
|
15822
15810
|
},
|
|
15823
15811
|
"revision": {
|
|
@@ -15886,7 +15874,7 @@
|
|
|
15886
15874
|
"required": [
|
|
15887
15875
|
"id",
|
|
15888
15876
|
"name",
|
|
15889
|
-
"
|
|
15877
|
+
"triggers",
|
|
15890
15878
|
"code",
|
|
15891
15879
|
"enabled",
|
|
15892
15880
|
"account",
|
|
@@ -15902,14 +15890,16 @@
|
|
|
15902
15890
|
"description": "Action Name",
|
|
15903
15891
|
"maxLength": 200
|
|
15904
15892
|
},
|
|
15905
|
-
"
|
|
15906
|
-
"
|
|
15907
|
-
|
|
15908
|
-
"
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
|
|
15912
|
-
|
|
15893
|
+
"triggers": {
|
|
15894
|
+
"type": "array",
|
|
15895
|
+
"items": {
|
|
15896
|
+
"enum": [
|
|
15897
|
+
"continue",
|
|
15898
|
+
"post-login",
|
|
15899
|
+
"client-credentials"
|
|
15900
|
+
]
|
|
15901
|
+
},
|
|
15902
|
+
"description": "Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only."
|
|
15913
15903
|
},
|
|
15914
15904
|
"code": {
|
|
15915
15905
|
"type": "string",
|
|
@@ -15922,7 +15912,7 @@
|
|
|
15922
15912
|
},
|
|
15923
15913
|
"order": {
|
|
15924
15914
|
"type": "number",
|
|
15925
|
-
"description": "Execution order",
|
|
15915
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15926
15916
|
"default": 0
|
|
15927
15917
|
},
|
|
15928
15918
|
"revision": {
|
|
@@ -15976,17 +15966,9 @@
|
|
|
15976
15966
|
"description": "Action Name",
|
|
15977
15967
|
"maxLength": 200
|
|
15978
15968
|
},
|
|
15979
|
-
"trigger": {
|
|
15980
|
-
"enum": [
|
|
15981
|
-
"continue",
|
|
15982
|
-
"post-login",
|
|
15983
|
-
"client-credentials"
|
|
15984
|
-
],
|
|
15985
|
-
"description": "Trigger event name"
|
|
15986
|
-
},
|
|
15987
15969
|
"code": {
|
|
15988
15970
|
"type": "string",
|
|
15989
|
-
"description": "JavaScript
|
|
15971
|
+
"description": "JavaScript code. The triggers are re-derived from the hooks it exports."
|
|
15990
15972
|
},
|
|
15991
15973
|
"enabled": {
|
|
15992
15974
|
"type": "boolean",
|
|
@@ -15997,12 +15979,12 @@
|
|
|
15997
15979
|
"description": "Execution order"
|
|
15998
15980
|
}
|
|
15999
15981
|
},
|
|
16000
|
-
"description": "Partial update for an Action. Only the supplied fields are modified
|
|
15982
|
+
"description": "Partial update for an Action. Only the supplied fields are modified; `triggers` is read-only and follows `code`.",
|
|
16001
15983
|
"additionalProperties": false
|
|
16002
15984
|
}
|
|
16003
15985
|
}
|
|
16004
15986
|
},
|
|
16005
|
-
"description": "Partial update for an Action. Only the supplied fields are modified
|
|
15987
|
+
"description": "Partial update for an Action. Only the supplied fields are modified; `triggers` is read-only and follows `code`."
|
|
16006
15988
|
},
|
|
16007
15989
|
"parameters": [
|
|
16008
15990
|
{
|
|
@@ -16029,7 +16011,7 @@
|
|
|
16029
16011
|
"required": [
|
|
16030
16012
|
"id",
|
|
16031
16013
|
"name",
|
|
16032
|
-
"
|
|
16014
|
+
"triggers",
|
|
16033
16015
|
"code",
|
|
16034
16016
|
"enabled",
|
|
16035
16017
|
"account",
|
|
@@ -16045,14 +16027,16 @@
|
|
|
16045
16027
|
"description": "Action Name",
|
|
16046
16028
|
"maxLength": 200
|
|
16047
16029
|
},
|
|
16048
|
-
"
|
|
16049
|
-
"
|
|
16050
|
-
|
|
16051
|
-
"
|
|
16052
|
-
|
|
16053
|
-
|
|
16054
|
-
|
|
16055
|
-
|
|
16030
|
+
"triggers": {
|
|
16031
|
+
"type": "array",
|
|
16032
|
+
"items": {
|
|
16033
|
+
"enum": [
|
|
16034
|
+
"continue",
|
|
16035
|
+
"post-login",
|
|
16036
|
+
"client-credentials"
|
|
16037
|
+
]
|
|
16038
|
+
},
|
|
16039
|
+
"description": "Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only."
|
|
16056
16040
|
},
|
|
16057
16041
|
"code": {
|
|
16058
16042
|
"type": "string",
|
|
@@ -16065,7 +16049,7 @@
|
|
|
16065
16049
|
},
|
|
16066
16050
|
"order": {
|
|
16067
16051
|
"type": "number",
|
|
16068
|
-
"description": "Execution order",
|
|
16052
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
16069
16053
|
"default": 0
|
|
16070
16054
|
},
|
|
16071
16055
|
"revision": {
|
|
@@ -16132,7 +16116,7 @@
|
|
|
16132
16116
|
"required": [
|
|
16133
16117
|
"id",
|
|
16134
16118
|
"name",
|
|
16135
|
-
"
|
|
16119
|
+
"triggers",
|
|
16136
16120
|
"code",
|
|
16137
16121
|
"enabled",
|
|
16138
16122
|
"account",
|
|
@@ -16148,14 +16132,16 @@
|
|
|
16148
16132
|
"description": "Action Name",
|
|
16149
16133
|
"maxLength": 200
|
|
16150
16134
|
},
|
|
16151
|
-
"
|
|
16152
|
-
"
|
|
16153
|
-
|
|
16154
|
-
"
|
|
16155
|
-
|
|
16156
|
-
|
|
16157
|
-
|
|
16158
|
-
|
|
16135
|
+
"triggers": {
|
|
16136
|
+
"type": "array",
|
|
16137
|
+
"items": {
|
|
16138
|
+
"enum": [
|
|
16139
|
+
"continue",
|
|
16140
|
+
"post-login",
|
|
16141
|
+
"client-credentials"
|
|
16142
|
+
]
|
|
16143
|
+
},
|
|
16144
|
+
"description": "Triggers this action runs on. Derived from the hooks the code exports (`onExecutePostLogin` → post-login, `onExecuteContinue` → continue, `onExecuteClientCredentials` → client-credentials); read-only."
|
|
16159
16145
|
},
|
|
16160
16146
|
"code": {
|
|
16161
16147
|
"type": "string",
|
|
@@ -16168,7 +16154,7 @@
|
|
|
16168
16154
|
},
|
|
16169
16155
|
"order": {
|
|
16170
16156
|
"type": "number",
|
|
16171
|
-
"description": "Execution order",
|
|
16157
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
16172
16158
|
"default": 0
|
|
16173
16159
|
},
|
|
16174
16160
|
"revision": {
|