@goauthentik/api 2024.10.2-1731628438 → 2024.10.2-1731887740

Sign up to get free protection for your applications and to get access to all the features.
@@ -646,6 +646,7 @@ src/models/TokenSetKeyRequest.ts
646
646
  src/models/TokenView.ts
647
647
  src/models/TransactionApplicationRequest.ts
648
648
  src/models/TransactionApplicationResponse.ts
649
+ src/models/TransactionPolicyBindingRequest.ts
649
650
  src/models/TypeCreate.ts
650
651
  src/models/UiThemeEnum.ts
651
652
  src/models/UsedBy.ts
@@ -12,6 +12,7 @@
12
12
  import type { ApplicationRequest } from './ApplicationRequest';
13
13
  import type { ModelRequest } from './ModelRequest';
14
14
  import type { ProviderModelEnum } from './ProviderModelEnum';
15
+ import type { TransactionPolicyBindingRequest } from './TransactionPolicyBindingRequest';
15
16
  /**
16
17
  * Serializer for creating a provider and an application in one transaction
17
18
  * @export
@@ -36,6 +37,12 @@ export interface TransactionApplicationRequest {
36
37
  * @memberof TransactionApplicationRequest
37
38
  */
38
39
  provider: ModelRequest;
40
+ /**
41
+ *
42
+ * @type {Array<TransactionPolicyBindingRequest>}
43
+ * @memberof TransactionApplicationRequest
44
+ */
45
+ policyBindings?: Array<TransactionPolicyBindingRequest>;
39
46
  }
40
47
  /**
41
48
  * Check if a given object implements the TransactionApplicationRequest interface.
@@ -11,9 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  import { ApplicationRequestFromJSON, ApplicationRequestToJSON, } from './ApplicationRequest';
15
16
  import { ModelRequestFromJSON, ModelRequestToJSON, } from './ModelRequest';
16
17
  import { ProviderModelEnumFromJSON, ProviderModelEnumToJSON, } from './ProviderModelEnum';
18
+ import { TransactionPolicyBindingRequestFromJSON, TransactionPolicyBindingRequestToJSON, } from './TransactionPolicyBindingRequest';
17
19
  /**
18
20
  * Check if a given object implements the TransactionApplicationRequest interface.
19
21
  */
@@ -35,6 +37,7 @@ export function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscrimin
35
37
  'app': ApplicationRequestFromJSON(json['app']),
36
38
  'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
37
39
  'provider': ModelRequestFromJSON(json['provider']),
40
+ 'policyBindings': !exists(json, 'policy_bindings') ? undefined : (json['policy_bindings'].map(TransactionPolicyBindingRequestFromJSON)),
38
41
  };
39
42
  }
40
43
  export function TransactionApplicationRequestToJSON(value) {
@@ -48,5 +51,6 @@ export function TransactionApplicationRequestToJSON(value) {
48
51
  'app': ApplicationRequestToJSON(value.app),
49
52
  'provider_model': ProviderModelEnumToJSON(value.providerModel),
50
53
  'provider': ModelRequestToJSON(value.provider),
54
+ 'policy_bindings': value.policyBindings === undefined ? undefined : (value.policyBindings.map(TransactionPolicyBindingRequestToJSON)),
51
55
  };
52
56
  }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.10.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * PolicyBindingSerializer which does not require target as target is set implicitly
14
+ * @export
15
+ * @interface TransactionPolicyBindingRequest
16
+ */
17
+ export interface TransactionPolicyBindingRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TransactionPolicyBindingRequest
22
+ */
23
+ policy?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionPolicyBindingRequest
28
+ */
29
+ group?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof TransactionPolicyBindingRequest
34
+ */
35
+ user?: number | null;
36
+ /**
37
+ * Negates the outcome of the policy. Messages are unaffected.
38
+ * @type {boolean}
39
+ * @memberof TransactionPolicyBindingRequest
40
+ */
41
+ negate?: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof TransactionPolicyBindingRequest
46
+ */
47
+ enabled?: boolean;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionPolicyBindingRequest
52
+ */
53
+ order: number;
54
+ /**
55
+ * Timeout after which Policy execution is terminated.
56
+ * @type {number}
57
+ * @memberof TransactionPolicyBindingRequest
58
+ */
59
+ timeout?: number;
60
+ /**
61
+ * Result if the Policy execution fails.
62
+ * @type {boolean}
63
+ * @memberof TransactionPolicyBindingRequest
64
+ */
65
+ failureResult?: boolean;
66
+ }
67
+ /**
68
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
69
+ */
70
+ export declare function instanceOfTransactionPolicyBindingRequest(value: object): boolean;
71
+ export declare function TransactionPolicyBindingRequestFromJSON(json: any): TransactionPolicyBindingRequest;
72
+ export declare function TransactionPolicyBindingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPolicyBindingRequest;
73
+ export declare function TransactionPolicyBindingRequestToJSON(value?: TransactionPolicyBindingRequest | null): any;
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
17
+ */
18
+ export function instanceOfTransactionPolicyBindingRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "order" in value;
21
+ return isInstance;
22
+ }
23
+ export function TransactionPolicyBindingRequestFromJSON(json) {
24
+ return TransactionPolicyBindingRequestFromJSONTyped(json, false);
25
+ }
26
+ export function TransactionPolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'policy': !exists(json, 'policy') ? undefined : json['policy'],
32
+ 'group': !exists(json, 'group') ? undefined : json['group'],
33
+ 'user': !exists(json, 'user') ? undefined : json['user'],
34
+ 'negate': !exists(json, 'negate') ? undefined : json['negate'],
35
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
36
+ 'order': json['order'],
37
+ 'timeout': !exists(json, 'timeout') ? undefined : json['timeout'],
38
+ 'failureResult': !exists(json, 'failure_result') ? undefined : json['failure_result'],
39
+ };
40
+ }
41
+ export function TransactionPolicyBindingRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'policy': value.policy,
50
+ 'group': value.group,
51
+ 'user': value.user,
52
+ 'negate': value.negate,
53
+ 'enabled': value.enabled,
54
+ 'order': value.order,
55
+ 'timeout': value.timeout,
56
+ 'failure_result': value.failureResult,
57
+ };
58
+ }
@@ -619,6 +619,7 @@ export * from './TokenSetKeyRequest';
619
619
  export * from './TokenView';
620
620
  export * from './TransactionApplicationRequest';
621
621
  export * from './TransactionApplicationResponse';
622
+ export * from './TransactionPolicyBindingRequest';
622
623
  export * from './TypeCreate';
623
624
  export * from './UiThemeEnum';
624
625
  export * from './UsedBy';
@@ -621,6 +621,7 @@ export * from './TokenSetKeyRequest';
621
621
  export * from './TokenView';
622
622
  export * from './TransactionApplicationRequest';
623
623
  export * from './TransactionApplicationResponse';
624
+ export * from './TransactionPolicyBindingRequest';
624
625
  export * from './TypeCreate';
625
626
  export * from './UiThemeEnum';
626
627
  export * from './UsedBy';
@@ -12,6 +12,7 @@
12
12
  import type { ApplicationRequest } from './ApplicationRequest';
13
13
  import type { ModelRequest } from './ModelRequest';
14
14
  import type { ProviderModelEnum } from './ProviderModelEnum';
15
+ import type { TransactionPolicyBindingRequest } from './TransactionPolicyBindingRequest';
15
16
  /**
16
17
  * Serializer for creating a provider and an application in one transaction
17
18
  * @export
@@ -36,6 +37,12 @@ export interface TransactionApplicationRequest {
36
37
  * @memberof TransactionApplicationRequest
37
38
  */
38
39
  provider: ModelRequest;
40
+ /**
41
+ *
42
+ * @type {Array<TransactionPolicyBindingRequest>}
43
+ * @memberof TransactionApplicationRequest
44
+ */
45
+ policyBindings?: Array<TransactionPolicyBindingRequest>;
39
46
  }
40
47
  /**
41
48
  * Check if a given object implements the TransactionApplicationRequest interface.
@@ -14,9 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TransactionApplicationRequestToJSON = exports.TransactionApplicationRequestFromJSONTyped = exports.TransactionApplicationRequestFromJSON = exports.instanceOfTransactionApplicationRequest = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const ApplicationRequest_1 = require("./ApplicationRequest");
18
19
  const ModelRequest_1 = require("./ModelRequest");
19
20
  const ProviderModelEnum_1 = require("./ProviderModelEnum");
21
+ const TransactionPolicyBindingRequest_1 = require("./TransactionPolicyBindingRequest");
20
22
  /**
21
23
  * Check if a given object implements the TransactionApplicationRequest interface.
22
24
  */
@@ -40,6 +42,7 @@ function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'app': (0, ApplicationRequest_1.ApplicationRequestFromJSON)(json['app']),
41
43
  'providerModel': (0, ProviderModelEnum_1.ProviderModelEnumFromJSON)(json['provider_model']),
42
44
  'provider': (0, ModelRequest_1.ModelRequestFromJSON)(json['provider']),
45
+ 'policyBindings': !(0, runtime_1.exists)(json, 'policy_bindings') ? undefined : (json['policy_bindings'].map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestFromJSON)),
43
46
  };
44
47
  }
45
48
  exports.TransactionApplicationRequestFromJSONTyped = TransactionApplicationRequestFromJSONTyped;
@@ -54,6 +57,7 @@ function TransactionApplicationRequestToJSON(value) {
54
57
  'app': (0, ApplicationRequest_1.ApplicationRequestToJSON)(value.app),
55
58
  'provider_model': (0, ProviderModelEnum_1.ProviderModelEnumToJSON)(value.providerModel),
56
59
  'provider': (0, ModelRequest_1.ModelRequestToJSON)(value.provider),
60
+ 'policy_bindings': value.policyBindings === undefined ? undefined : (value.policyBindings.map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestToJSON)),
57
61
  };
58
62
  }
59
63
  exports.TransactionApplicationRequestToJSON = TransactionApplicationRequestToJSON;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.10.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * PolicyBindingSerializer which does not require target as target is set implicitly
14
+ * @export
15
+ * @interface TransactionPolicyBindingRequest
16
+ */
17
+ export interface TransactionPolicyBindingRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TransactionPolicyBindingRequest
22
+ */
23
+ policy?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionPolicyBindingRequest
28
+ */
29
+ group?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof TransactionPolicyBindingRequest
34
+ */
35
+ user?: number | null;
36
+ /**
37
+ * Negates the outcome of the policy. Messages are unaffected.
38
+ * @type {boolean}
39
+ * @memberof TransactionPolicyBindingRequest
40
+ */
41
+ negate?: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof TransactionPolicyBindingRequest
46
+ */
47
+ enabled?: boolean;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionPolicyBindingRequest
52
+ */
53
+ order: number;
54
+ /**
55
+ * Timeout after which Policy execution is terminated.
56
+ * @type {number}
57
+ * @memberof TransactionPolicyBindingRequest
58
+ */
59
+ timeout?: number;
60
+ /**
61
+ * Result if the Policy execution fails.
62
+ * @type {boolean}
63
+ * @memberof TransactionPolicyBindingRequest
64
+ */
65
+ failureResult?: boolean;
66
+ }
67
+ /**
68
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
69
+ */
70
+ export declare function instanceOfTransactionPolicyBindingRequest(value: object): boolean;
71
+ export declare function TransactionPolicyBindingRequestFromJSON(json: any): TransactionPolicyBindingRequest;
72
+ export declare function TransactionPolicyBindingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPolicyBindingRequest;
73
+ export declare function TransactionPolicyBindingRequestToJSON(value?: TransactionPolicyBindingRequest | null): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.10.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TransactionPolicyBindingRequestToJSON = exports.TransactionPolicyBindingRequestFromJSONTyped = exports.TransactionPolicyBindingRequestFromJSON = exports.instanceOfTransactionPolicyBindingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
20
+ */
21
+ function instanceOfTransactionPolicyBindingRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "order" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTransactionPolicyBindingRequest = instanceOfTransactionPolicyBindingRequest;
27
+ function TransactionPolicyBindingRequestFromJSON(json) {
28
+ return TransactionPolicyBindingRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.TransactionPolicyBindingRequestFromJSON = TransactionPolicyBindingRequestFromJSON;
31
+ function TransactionPolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'policy': !(0, runtime_1.exists)(json, 'policy') ? undefined : json['policy'],
37
+ 'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
38
+ 'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
39
+ 'negate': !(0, runtime_1.exists)(json, 'negate') ? undefined : json['negate'],
40
+ 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
41
+ 'order': json['order'],
42
+ 'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
43
+ 'failureResult': !(0, runtime_1.exists)(json, 'failure_result') ? undefined : json['failure_result'],
44
+ };
45
+ }
46
+ exports.TransactionPolicyBindingRequestFromJSONTyped = TransactionPolicyBindingRequestFromJSONTyped;
47
+ function TransactionPolicyBindingRequestToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'policy': value.policy,
56
+ 'group': value.group,
57
+ 'user': value.user,
58
+ 'negate': value.negate,
59
+ 'enabled': value.enabled,
60
+ 'order': value.order,
61
+ 'timeout': value.timeout,
62
+ 'failure_result': value.failureResult,
63
+ };
64
+ }
65
+ exports.TransactionPolicyBindingRequestToJSON = TransactionPolicyBindingRequestToJSON;
@@ -619,6 +619,7 @@ export * from './TokenSetKeyRequest';
619
619
  export * from './TokenView';
620
620
  export * from './TransactionApplicationRequest';
621
621
  export * from './TransactionApplicationResponse';
622
+ export * from './TransactionPolicyBindingRequest';
622
623
  export * from './TypeCreate';
623
624
  export * from './UiThemeEnum';
624
625
  export * from './UsedBy';
@@ -637,6 +637,7 @@ __exportStar(require("./TokenSetKeyRequest"), exports);
637
637
  __exportStar(require("./TokenView"), exports);
638
638
  __exportStar(require("./TransactionApplicationRequest"), exports);
639
639
  __exportStar(require("./TransactionApplicationResponse"), exports);
640
+ __exportStar(require("./TransactionPolicyBindingRequest"), exports);
640
641
  __exportStar(require("./TypeCreate"), exports);
641
642
  __exportStar(require("./UiThemeEnum"), exports);
642
643
  __exportStar(require("./UsedBy"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.10.2-1731628438",
3
+ "version": "2024.10.2-1731887740",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,6 +31,12 @@ import {
31
31
  ProviderModelEnumFromJSONTyped,
32
32
  ProviderModelEnumToJSON,
33
33
  } from './ProviderModelEnum';
34
+ import type { TransactionPolicyBindingRequest } from './TransactionPolicyBindingRequest';
35
+ import {
36
+ TransactionPolicyBindingRequestFromJSON,
37
+ TransactionPolicyBindingRequestFromJSONTyped,
38
+ TransactionPolicyBindingRequestToJSON,
39
+ } from './TransactionPolicyBindingRequest';
34
40
 
35
41
  /**
36
42
  * Serializer for creating a provider and an application in one transaction
@@ -56,6 +62,12 @@ export interface TransactionApplicationRequest {
56
62
  * @memberof TransactionApplicationRequest
57
63
  */
58
64
  provider: ModelRequest;
65
+ /**
66
+ *
67
+ * @type {Array<TransactionPolicyBindingRequest>}
68
+ * @memberof TransactionApplicationRequest
69
+ */
70
+ policyBindings?: Array<TransactionPolicyBindingRequest>;
59
71
  }
60
72
 
61
73
  /**
@@ -83,6 +95,7 @@ export function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDisc
83
95
  'app': ApplicationRequestFromJSON(json['app']),
84
96
  'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
85
97
  'provider': ModelRequestFromJSON(json['provider']),
98
+ 'policyBindings': !exists(json, 'policy_bindings') ? undefined : ((json['policy_bindings'] as Array<any>).map(TransactionPolicyBindingRequestFromJSON)),
86
99
  };
87
100
  }
88
101
 
@@ -98,6 +111,7 @@ export function TransactionApplicationRequestToJSON(value?: TransactionApplicati
98
111
  'app': ApplicationRequestToJSON(value.app),
99
112
  'provider_model': ProviderModelEnumToJSON(value.providerModel),
100
113
  'provider': ModelRequestToJSON(value.provider),
114
+ 'policy_bindings': value.policyBindings === undefined ? undefined : ((value.policyBindings as Array<any>).map(TransactionPolicyBindingRequestToJSON)),
101
115
  };
102
116
  }
103
117
 
@@ -0,0 +1,122 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * PolicyBindingSerializer which does not require target as target is set implicitly
18
+ * @export
19
+ * @interface TransactionPolicyBindingRequest
20
+ */
21
+ export interface TransactionPolicyBindingRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TransactionPolicyBindingRequest
26
+ */
27
+ policy?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TransactionPolicyBindingRequest
32
+ */
33
+ group?: string | null;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof TransactionPolicyBindingRequest
38
+ */
39
+ user?: number | null;
40
+ /**
41
+ * Negates the outcome of the policy. Messages are unaffected.
42
+ * @type {boolean}
43
+ * @memberof TransactionPolicyBindingRequest
44
+ */
45
+ negate?: boolean;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof TransactionPolicyBindingRequest
50
+ */
51
+ enabled?: boolean;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof TransactionPolicyBindingRequest
56
+ */
57
+ order: number;
58
+ /**
59
+ * Timeout after which Policy execution is terminated.
60
+ * @type {number}
61
+ * @memberof TransactionPolicyBindingRequest
62
+ */
63
+ timeout?: number;
64
+ /**
65
+ * Result if the Policy execution fails.
66
+ * @type {boolean}
67
+ * @memberof TransactionPolicyBindingRequest
68
+ */
69
+ failureResult?: boolean;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
74
+ */
75
+ export function instanceOfTransactionPolicyBindingRequest(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "order" in value;
78
+
79
+ return isInstance;
80
+ }
81
+
82
+ export function TransactionPolicyBindingRequestFromJSON(json: any): TransactionPolicyBindingRequest {
83
+ return TransactionPolicyBindingRequestFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function TransactionPolicyBindingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPolicyBindingRequest {
87
+ if ((json === undefined) || (json === null)) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'policy': !exists(json, 'policy') ? undefined : json['policy'],
93
+ 'group': !exists(json, 'group') ? undefined : json['group'],
94
+ 'user': !exists(json, 'user') ? undefined : json['user'],
95
+ 'negate': !exists(json, 'negate') ? undefined : json['negate'],
96
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
97
+ 'order': json['order'],
98
+ 'timeout': !exists(json, 'timeout') ? undefined : json['timeout'],
99
+ 'failureResult': !exists(json, 'failure_result') ? undefined : json['failure_result'],
100
+ };
101
+ }
102
+
103
+ export function TransactionPolicyBindingRequestToJSON(value?: TransactionPolicyBindingRequest | null): any {
104
+ if (value === undefined) {
105
+ return undefined;
106
+ }
107
+ if (value === null) {
108
+ return null;
109
+ }
110
+ return {
111
+
112
+ 'policy': value.policy,
113
+ 'group': value.group,
114
+ 'user': value.user,
115
+ 'negate': value.negate,
116
+ 'enabled': value.enabled,
117
+ 'order': value.order,
118
+ 'timeout': value.timeout,
119
+ 'failure_result': value.failureResult,
120
+ };
121
+ }
122
+
@@ -621,6 +621,7 @@ export * from './TokenSetKeyRequest';
621
621
  export * from './TokenView';
622
622
  export * from './TransactionApplicationRequest';
623
623
  export * from './TransactionApplicationResponse';
624
+ export * from './TransactionPolicyBindingRequest';
624
625
  export * from './TypeCreate';
625
626
  export * from './UiThemeEnum';
626
627
  export * from './UsedBy';