@thunderid/javascript 1.14.0 → 1.15.0
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/auth/flows/getFlows.d.ts +7 -1
- package/dist/api/auth/flows/getFlows.d.ts.map +1 -1
- package/dist/api/management/connections/getConnections.d.ts +7 -1
- package/dist/api/management/connections/getConnections.d.ts.map +1 -1
- package/dist/api/management/flows/getFlow.d.ts +6 -1
- package/dist/api/management/flows/getFlow.d.ts.map +1 -1
- package/dist/cjs/index.cjs +476 -12
- package/dist/constants/FlowQueryKeys.d.ts +9 -0
- package/dist/constants/FlowQueryKeys.d.ts.map +1 -0
- package/dist/constants/FlowVariableQueryKeys.d.ts +10 -0
- package/dist/constants/FlowVariableQueryKeys.d.ts.map +1 -0
- package/dist/edge/index.js +471 -13
- package/dist/i18n/models/i18n.d.ts +35 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -1
- package/dist/i18n/translations/en-US.d.ts.map +1 -1
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
- package/dist/i18n/translations/si-LK.d.ts.map +1 -1
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
- package/dist/i18n/translations/te-IN.d.ts.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +471 -13
- package/dist/models/flow-variable.d.ts +66 -0
- package/dist/models/flow-variable.d.ts.map +1 -0
- package/dist/models/managed-flow.d.ts +23 -0
- package/dist/models/managed-flow.d.ts.map +1 -1
- package/dist/utils/getFlowVariableDefinitions.d.ts +12 -0
- package/dist/utils/getFlowVariableDefinitions.d.ts.map +1 -0
- package/dist/utils/getFlowVariableOptions.d.ts +28 -0
- package/dist/utils/getFlowVariableOptions.d.ts.map +1 -0
- package/dist/utils/resolveFlowVariableRule.d.ts +36 -0
- package/dist/utils/resolveFlowVariableRule.d.ts.map +1 -0
- package/dist/utils/validateFlowVariableValue.d.ts +19 -0
- package/dist/utils/validateFlowVariableValue.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -9,6 +9,11 @@ export type GetFlowsConfig = ManagementRequestConfig & Pick<ApiFilteringParams,
|
|
|
9
9
|
* when omitted.
|
|
10
10
|
*/
|
|
11
11
|
flowType?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Lists the flows this organization unit owns, followed by the ones shared with it, instead of every flow the
|
|
14
|
+
* caller can see.
|
|
15
|
+
*/
|
|
16
|
+
ouId?: string;
|
|
12
17
|
};
|
|
13
18
|
/**
|
|
14
19
|
* Retrieves a page of flows.
|
|
@@ -23,8 +28,9 @@ export type GetFlowsConfig = ManagementRequestConfig & Pick<ApiFilteringParams,
|
|
|
23
28
|
* flowType: 'AUTHENTICATION',
|
|
24
29
|
* limit: 30,
|
|
25
30
|
* });
|
|
31
|
+
* const shared = await getFlows({baseUrl: 'https://localhost:8090', ouId: 'ou-1'});
|
|
26
32
|
* ```
|
|
27
33
|
*/
|
|
28
|
-
declare const getFlows: ({ flowType, limit, offset, ...config }: GetFlowsConfig) => Promise<ManagedFlowListResponse>;
|
|
34
|
+
declare const getFlows: ({ flowType, limit, offset, ouId, ...config }: GetFlowsConfig) => Promise<ManagedFlowListResponse>;
|
|
29
35
|
export default getFlows;
|
|
30
36
|
//# sourceMappingURL=getFlows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFlows.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/flows/getFlows.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAClD,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IAC7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"getFlows.d.ts","sourceRoot":"","sources":["../../../../src/api/auth/flows/getFlows.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAClD,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IAC7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEJ;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,QAAQ,GAAU,8CAA4C,cAAc,KAAG,OAAO,CAAC,uBAAuB,CAOhH,CAAC;AAEL,eAAe,QAAQ,CAAC"}
|
|
@@ -8,6 +8,11 @@ export type GetConnectionsConfig<T extends ConnectionType | undefined = undefine
|
|
|
8
8
|
* Lists only the connections in this category. Applies to the listing across every type.
|
|
9
9
|
*/
|
|
10
10
|
category?: ConnectionCategory;
|
|
11
|
+
/**
|
|
12
|
+
* Lists the connections this organization unit owns, followed by the ones shared into it, instead of every
|
|
13
|
+
* connection the caller can see. Applies to the listing across every type.
|
|
14
|
+
*/
|
|
15
|
+
ouId?: string;
|
|
11
16
|
/**
|
|
12
17
|
* Lists the connections of this type only. The server returns them as an array, without paging, so
|
|
13
18
|
* `category`, `limit` and `offset` do not apply.
|
|
@@ -29,8 +34,9 @@ export type GetConnectionsResult<T extends ConnectionType | undefined> = T exten
|
|
|
29
34
|
* ```typescript
|
|
30
35
|
* const {connections} = await getConnections({baseUrl: 'https://localhost:8090', category: 'identity-provider'});
|
|
31
36
|
* const googleConnections = await getConnections({baseUrl: 'https://localhost:8090', type: 'google'});
|
|
37
|
+
* const available = await getConnections({baseUrl: 'https://localhost:8090', ouId: 'ou-1'});
|
|
32
38
|
* ```
|
|
33
39
|
*/
|
|
34
|
-
declare const getConnections: <T extends ConnectionType | undefined = undefined>({ category, limit, offset, type, ...config }: GetConnectionsConfig<T>) => Promise<GetConnectionsResult<T>>;
|
|
40
|
+
declare const getConnections: <T extends ConnectionType | undefined = undefined>({ category, limit, offset, ouId, type, ...config }: GetConnectionsConfig<T>) => Promise<GetConnectionsResult<T>>;
|
|
35
41
|
export default getConnections;
|
|
36
42
|
//# sourceMappingURL=getConnections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConnections.d.ts","sourceRoot":"","sources":["../../../../src/api/management/connections/getConnections.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAGpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,IAAI,uBAAuB,GAC1G,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,SAAS,IAAI,CAAC,SAAS,cAAc,GAC7F,iBAAiB,EAAE,GACnB,sBAAsB,CAAC;AAE3B
|
|
1
|
+
{"version":3,"file":"getConnections.d.ts","sourceRoot":"","sources":["../../../../src/api/management/connections/getConnections.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAGpC;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,IAAI,uBAAuB,GAC1G,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IAC7C;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,SAAS,IAAI,CAAC,SAAS,cAAc,GAC7F,iBAAiB,EAAE,GACnB,sBAAsB,CAAC;AAE3B;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,cAAc,GAAU,CAAC,SAAS,cAAc,GAAG,SAAS,GAAG,SAAS,EAAE,oDAO7E,oBAAoB,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAkBzD,CAAC;AAEJ,eAAe,cAAc,CAAC"}
|
|
@@ -8,6 +8,11 @@ export interface GetFlowConfig extends ManagementRequestConfig {
|
|
|
8
8
|
* Identifier of the flow.
|
|
9
9
|
*/
|
|
10
10
|
flowId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the flow as this organization unit sees it. A flow shared with the unit comes back as its
|
|
13
|
+
* variables only. Leave it out for the whole definition.
|
|
14
|
+
*/
|
|
15
|
+
ouId?: string;
|
|
11
16
|
}
|
|
12
17
|
/**
|
|
13
18
|
* Retrieves a flow with its graph.
|
|
@@ -20,6 +25,6 @@ export interface GetFlowConfig extends ManagementRequestConfig {
|
|
|
20
25
|
* const flow = await getFlow({baseUrl: 'https://localhost:8090', flowId});
|
|
21
26
|
* ```
|
|
22
27
|
*/
|
|
23
|
-
declare const getFlow: ({ flowId, ...config }: GetFlowConfig) => Promise<ManagedFlowDefinition>;
|
|
28
|
+
declare const getFlow: ({ flowId, ouId, ...config }: GetFlowConfig) => Promise<ManagedFlowDefinition>;
|
|
24
29
|
export default getFlow;
|
|
25
30
|
//# sourceMappingURL=getFlow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFlow.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlow.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,8BAA8B,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,uBAAuB;IAC5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"getFlow.d.ts","sourceRoot":"","sources":["../../../../src/api/management/flows/getFlow.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,8BAA8B,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,uBAAuB;IAC5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,OAAO,GAAU,6BAA2B,aAAa,KAAG,OAAO,CAAC,qBAAqB,CAQ3F,CAAC;AAEL,eAAe,OAAO,CAAC"}
|