@faable/auth-sdk 2.5.63 → 2.5.65
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 -79
|
@@ -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";
|
|
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";
|
|
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";
|
|
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";
|
|
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";
|
|
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";
|
|
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";
|
|
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.0",
|
|
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,13 +2759,16 @@
|
|
|
2759
2759
|
"description": "Action Name",
|
|
2760
2760
|
"maxLength": 200
|
|
2761
2761
|
},
|
|
2762
|
-
"
|
|
2763
|
-
"
|
|
2764
|
-
|
|
2765
|
-
"
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
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."
|
|
2769
2772
|
},
|
|
2770
2773
|
"code": {
|
|
2771
2774
|
"type": "string",
|
|
@@ -2778,7 +2781,7 @@
|
|
|
2778
2781
|
},
|
|
2779
2782
|
"order": {
|
|
2780
2783
|
"type": "number",
|
|
2781
|
-
"description": "Execution order",
|
|
2784
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
2782
2785
|
"default": 0
|
|
2783
2786
|
},
|
|
2784
2787
|
"revision": {
|
|
@@ -2819,7 +2822,7 @@
|
|
|
2819
2822
|
"type": "object",
|
|
2820
2823
|
"required": [
|
|
2821
2824
|
"name",
|
|
2822
|
-
"
|
|
2825
|
+
"code"
|
|
2823
2826
|
],
|
|
2824
2827
|
"properties": {
|
|
2825
2828
|
"name": {
|
|
@@ -2827,13 +2830,9 @@
|
|
|
2827
2830
|
"description": "Action Name",
|
|
2828
2831
|
"maxLength": 200
|
|
2829
2832
|
},
|
|
2830
|
-
"trigger": {
|
|
2831
|
-
"type": "string",
|
|
2832
|
-
"description": "Trigger event name (e.g., post-login)"
|
|
2833
|
-
},
|
|
2834
2833
|
"code": {
|
|
2835
2834
|
"type": "string",
|
|
2836
|
-
"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."
|
|
2837
2836
|
},
|
|
2838
2837
|
"enabled": {
|
|
2839
2838
|
"type": "boolean",
|
|
@@ -2842,7 +2841,7 @@
|
|
|
2842
2841
|
},
|
|
2843
2842
|
"order": {
|
|
2844
2843
|
"type": "number",
|
|
2845
|
-
"description": "Execution order",
|
|
2844
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
2846
2845
|
"default": 0
|
|
2847
2846
|
}
|
|
2848
2847
|
}
|
|
@@ -2855,16 +2854,9 @@
|
|
|
2855
2854
|
"description": "Action Name",
|
|
2856
2855
|
"maxLength": 200
|
|
2857
2856
|
},
|
|
2858
|
-
"trigger": {
|
|
2859
|
-
"enum": [
|
|
2860
|
-
"continue",
|
|
2861
|
-
"post-login"
|
|
2862
|
-
],
|
|
2863
|
-
"description": "Trigger event name"
|
|
2864
|
-
},
|
|
2865
2857
|
"code": {
|
|
2866
2858
|
"type": "string",
|
|
2867
|
-
"description": "JavaScript
|
|
2859
|
+
"description": "JavaScript code. The triggers are re-derived from the hooks it exports."
|
|
2868
2860
|
},
|
|
2869
2861
|
"enabled": {
|
|
2870
2862
|
"type": "boolean",
|
|
@@ -2875,7 +2867,7 @@
|
|
|
2875
2867
|
"description": "Execution order"
|
|
2876
2868
|
}
|
|
2877
2869
|
},
|
|
2878
|
-
"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`.",
|
|
2879
2871
|
"additionalProperties": false
|
|
2880
2872
|
},
|
|
2881
2873
|
"NotificationSubscription": {
|
|
@@ -15733,7 +15725,7 @@
|
|
|
15733
15725
|
"type": "object",
|
|
15734
15726
|
"required": [
|
|
15735
15727
|
"name",
|
|
15736
|
-
"
|
|
15728
|
+
"code"
|
|
15737
15729
|
],
|
|
15738
15730
|
"properties": {
|
|
15739
15731
|
"name": {
|
|
@@ -15741,13 +15733,9 @@
|
|
|
15741
15733
|
"description": "Action Name",
|
|
15742
15734
|
"maxLength": 200
|
|
15743
15735
|
},
|
|
15744
|
-
"trigger": {
|
|
15745
|
-
"type": "string",
|
|
15746
|
-
"description": "Trigger event name (e.g., post-login)"
|
|
15747
|
-
},
|
|
15748
15736
|
"code": {
|
|
15749
15737
|
"type": "string",
|
|
15750
|
-
"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."
|
|
15751
15739
|
},
|
|
15752
15740
|
"enabled": {
|
|
15753
15741
|
"type": "boolean",
|
|
@@ -15756,7 +15744,7 @@
|
|
|
15756
15744
|
},
|
|
15757
15745
|
"order": {
|
|
15758
15746
|
"type": "number",
|
|
15759
|
-
"description": "Execution order",
|
|
15747
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15760
15748
|
"default": 0
|
|
15761
15749
|
}
|
|
15762
15750
|
}
|
|
@@ -15779,7 +15767,7 @@
|
|
|
15779
15767
|
"required": [
|
|
15780
15768
|
"id",
|
|
15781
15769
|
"name",
|
|
15782
|
-
"
|
|
15770
|
+
"triggers",
|
|
15783
15771
|
"code",
|
|
15784
15772
|
"enabled",
|
|
15785
15773
|
"account",
|
|
@@ -15795,13 +15783,16 @@
|
|
|
15795
15783
|
"description": "Action Name",
|
|
15796
15784
|
"maxLength": 200
|
|
15797
15785
|
},
|
|
15798
|
-
"
|
|
15799
|
-
"
|
|
15800
|
-
|
|
15801
|
-
"
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
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."
|
|
15805
15796
|
},
|
|
15806
15797
|
"code": {
|
|
15807
15798
|
"type": "string",
|
|
@@ -15814,7 +15805,7 @@
|
|
|
15814
15805
|
},
|
|
15815
15806
|
"order": {
|
|
15816
15807
|
"type": "number",
|
|
15817
|
-
"description": "Execution order",
|
|
15808
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15818
15809
|
"default": 0
|
|
15819
15810
|
},
|
|
15820
15811
|
"revision": {
|
|
@@ -15883,7 +15874,7 @@
|
|
|
15883
15874
|
"required": [
|
|
15884
15875
|
"id",
|
|
15885
15876
|
"name",
|
|
15886
|
-
"
|
|
15877
|
+
"triggers",
|
|
15887
15878
|
"code",
|
|
15888
15879
|
"enabled",
|
|
15889
15880
|
"account",
|
|
@@ -15899,13 +15890,16 @@
|
|
|
15899
15890
|
"description": "Action Name",
|
|
15900
15891
|
"maxLength": 200
|
|
15901
15892
|
},
|
|
15902
|
-
"
|
|
15903
|
-
"
|
|
15904
|
-
|
|
15905
|
-
"
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
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."
|
|
15909
15903
|
},
|
|
15910
15904
|
"code": {
|
|
15911
15905
|
"type": "string",
|
|
@@ -15918,7 +15912,7 @@
|
|
|
15918
15912
|
},
|
|
15919
15913
|
"order": {
|
|
15920
15914
|
"type": "number",
|
|
15921
|
-
"description": "Execution order",
|
|
15915
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
15922
15916
|
"default": 0
|
|
15923
15917
|
},
|
|
15924
15918
|
"revision": {
|
|
@@ -15972,16 +15966,9 @@
|
|
|
15972
15966
|
"description": "Action Name",
|
|
15973
15967
|
"maxLength": 200
|
|
15974
15968
|
},
|
|
15975
|
-
"trigger": {
|
|
15976
|
-
"enum": [
|
|
15977
|
-
"continue",
|
|
15978
|
-
"post-login"
|
|
15979
|
-
],
|
|
15980
|
-
"description": "Trigger event name"
|
|
15981
|
-
},
|
|
15982
15969
|
"code": {
|
|
15983
15970
|
"type": "string",
|
|
15984
|
-
"description": "JavaScript
|
|
15971
|
+
"description": "JavaScript code. The triggers are re-derived from the hooks it exports."
|
|
15985
15972
|
},
|
|
15986
15973
|
"enabled": {
|
|
15987
15974
|
"type": "boolean",
|
|
@@ -15992,12 +15979,12 @@
|
|
|
15992
15979
|
"description": "Execution order"
|
|
15993
15980
|
}
|
|
15994
15981
|
},
|
|
15995
|
-
"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`.",
|
|
15996
15983
|
"additionalProperties": false
|
|
15997
15984
|
}
|
|
15998
15985
|
}
|
|
15999
15986
|
},
|
|
16000
|
-
"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`."
|
|
16001
15988
|
},
|
|
16002
15989
|
"parameters": [
|
|
16003
15990
|
{
|
|
@@ -16024,7 +16011,7 @@
|
|
|
16024
16011
|
"required": [
|
|
16025
16012
|
"id",
|
|
16026
16013
|
"name",
|
|
16027
|
-
"
|
|
16014
|
+
"triggers",
|
|
16028
16015
|
"code",
|
|
16029
16016
|
"enabled",
|
|
16030
16017
|
"account",
|
|
@@ -16040,13 +16027,16 @@
|
|
|
16040
16027
|
"description": "Action Name",
|
|
16041
16028
|
"maxLength": 200
|
|
16042
16029
|
},
|
|
16043
|
-
"
|
|
16044
|
-
"
|
|
16045
|
-
|
|
16046
|
-
"
|
|
16047
|
-
|
|
16048
|
-
|
|
16049
|
-
|
|
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."
|
|
16050
16040
|
},
|
|
16051
16041
|
"code": {
|
|
16052
16042
|
"type": "string",
|
|
@@ -16059,7 +16049,7 @@
|
|
|
16059
16049
|
},
|
|
16060
16050
|
"order": {
|
|
16061
16051
|
"type": "number",
|
|
16062
|
-
"description": "Execution order",
|
|
16052
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
16063
16053
|
"default": 0
|
|
16064
16054
|
},
|
|
16065
16055
|
"revision": {
|
|
@@ -16126,7 +16116,7 @@
|
|
|
16126
16116
|
"required": [
|
|
16127
16117
|
"id",
|
|
16128
16118
|
"name",
|
|
16129
|
-
"
|
|
16119
|
+
"triggers",
|
|
16130
16120
|
"code",
|
|
16131
16121
|
"enabled",
|
|
16132
16122
|
"account",
|
|
@@ -16142,13 +16132,16 @@
|
|
|
16142
16132
|
"description": "Action Name",
|
|
16143
16133
|
"maxLength": 200
|
|
16144
16134
|
},
|
|
16145
|
-
"
|
|
16146
|
-
"
|
|
16147
|
-
|
|
16148
|
-
"
|
|
16149
|
-
|
|
16150
|
-
|
|
16151
|
-
|
|
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."
|
|
16152
16145
|
},
|
|
16153
16146
|
"code": {
|
|
16154
16147
|
"type": "string",
|
|
@@ -16161,7 +16154,7 @@
|
|
|
16161
16154
|
},
|
|
16162
16155
|
"order": {
|
|
16163
16156
|
"type": "number",
|
|
16164
|
-
"description": "Execution order",
|
|
16157
|
+
"description": "Execution order: lower runs first; on ties the newest action runs first",
|
|
16165
16158
|
"default": 0
|
|
16166
16159
|
},
|
|
16167
16160
|
"revision": {
|