@amp-labs/react 1.4.2 → 1.4.4

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.
Files changed (73) hide show
  1. package/build/generated-sources/api/src/apis/OperationEventApi.d.ts +28 -0
  2. package/build/generated-sources/api/src/apis/OperationEventApi.js +30 -0
  3. package/build/generated-sources/api/src/apis/OrgApi.d.ts +226 -0
  4. package/build/generated-sources/api/src/apis/OrgApi.js +253 -0
  5. package/build/generated-sources/api/src/apis/ProjectApi.d.ts +4 -4
  6. package/build/generated-sources/api/src/apis/ProjectApi.js +3 -2
  7. package/build/generated-sources/api/src/apis/UserApi.d.ts +70 -0
  8. package/build/generated-sources/api/src/apis/UserApi.js +94 -0
  9. package/build/generated-sources/api/src/apis/index.d.ts +2 -0
  10. package/build/generated-sources/api/src/apis/index.js +2 -0
  11. package/build/generated-sources/api/src/models/AcceptInviteRequest.d.ts +31 -0
  12. package/build/generated-sources/api/src/models/AcceptInviteRequest.js +50 -0
  13. package/build/generated-sources/api/src/models/ApiProblem.d.ts +130 -0
  14. package/build/generated-sources/api/src/models/ApiProblem.js +82 -0
  15. package/build/generated-sources/api/src/models/AuthType.d.ts +1 -0
  16. package/build/generated-sources/api/src/models/AuthType.js +2 -1
  17. package/build/generated-sources/api/src/models/Builder.d.ts +73 -0
  18. package/build/generated-sources/api/src/models/Builder.js +68 -0
  19. package/build/generated-sources/api/src/models/BuilderInfo.d.ts +48 -0
  20. package/build/generated-sources/api/src/models/BuilderInfo.js +59 -0
  21. package/build/generated-sources/api/src/models/BuilderInfoOrgRole.d.ts +58 -0
  22. package/build/generated-sources/api/src/models/BuilderInfoOrgRole.js +67 -0
  23. package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.d.ts +58 -0
  24. package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.js +67 -0
  25. package/build/generated-sources/api/src/models/BulkWriteSupport.d.ts +49 -0
  26. package/build/generated-sources/api/src/models/BulkWriteSupport.js +59 -0
  27. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +1 -1
  28. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +1 -1
  29. package/build/generated-sources/api/src/models/CreateOrgInviteRequest.d.ts +31 -0
  30. package/build/generated-sources/api/src/models/CreateOrgInviteRequest.js +50 -0
  31. package/build/generated-sources/api/src/models/CreateOrgRequest.d.ts +31 -0
  32. package/build/generated-sources/api/src/models/CreateOrgRequest.js +50 -0
  33. package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +6 -0
  34. package/build/generated-sources/api/src/models/CreateProjectRequest.js +3 -0
  35. package/build/generated-sources/api/src/models/Destination.d.ts +3 -3
  36. package/build/generated-sources/api/src/models/Destination.js +3 -3
  37. package/build/generated-sources/api/src/models/InputValidationIssue.d.ts +89 -0
  38. package/build/generated-sources/api/src/models/InputValidationIssue.js +75 -0
  39. package/build/generated-sources/api/src/models/InputValidationProblem.d.ts +68 -0
  40. package/build/generated-sources/api/src/models/InputValidationProblem.js +63 -0
  41. package/build/generated-sources/api/src/models/Invite.d.ts +84 -0
  42. package/build/generated-sources/api/src/models/Invite.js +83 -0
  43. package/build/generated-sources/api/src/models/Log.d.ts +4 -3
  44. package/build/generated-sources/api/src/models/Log.js +3 -2
  45. package/build/generated-sources/api/src/models/LogMessage.d.ts +43 -0
  46. package/build/generated-sources/api/src/models/LogMessage.js +55 -0
  47. package/build/generated-sources/api/src/models/OauthOpts.d.ts +15 -0
  48. package/build/generated-sources/api/src/models/OauthOpts.js +12 -1
  49. package/build/generated-sources/api/src/models/Org.d.ts +55 -0
  50. package/build/generated-sources/api/src/models/Org.js +62 -0
  51. package/build/generated-sources/api/src/models/Problem.d.ts +63 -0
  52. package/build/generated-sources/api/src/models/Problem.js +60 -0
  53. package/build/generated-sources/api/src/models/Project.d.ts +6 -0
  54. package/build/generated-sources/api/src/models/Project.js +2 -0
  55. package/build/generated-sources/api/src/models/Support.d.ts +3 -2
  56. package/build/generated-sources/api/src/models/Support.js +3 -2
  57. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +3 -3
  58. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +3 -3
  59. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.d.ts +39 -0
  60. package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.js +52 -0
  61. package/build/generated-sources/api/src/models/UpdateOrgRequest.d.ts +38 -0
  62. package/build/generated-sources/api/src/models/UpdateOrgRequest.js +54 -0
  63. package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.d.ts +31 -0
  64. package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.js +50 -0
  65. package/build/generated-sources/api/src/models/index.d.ts +18 -0
  66. package/build/generated-sources/api/src/models/index.js +18 -0
  67. package/build/src/components/Configure/content/ConfigureInstallationBase.js +1 -1
  68. package/build/src/components/Configure/content/fields/OptionalFields/OptionalFields.js +2 -2
  69. package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +14 -2
  70. package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
  71. package/build/src/services/version.d.ts +1 -1
  72. package/build/src/services/version.js +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ * An issue detected during input validation.
14
+ * @export
15
+ * @interface InputValidationIssue
16
+ */
17
+ export interface InputValidationIssue {
18
+ /**
19
+ * The location of the invalid input
20
+ * @type {string}
21
+ * @memberof InputValidationIssue
22
+ */
23
+ _in?: InputValidationIssueInEnum;
24
+ /**
25
+ * The name of the invalid input
26
+ * @type {string}
27
+ * @memberof InputValidationIssue
28
+ */
29
+ name?: string;
30
+ /**
31
+ * The value of the erroneous input
32
+ * @type {any}
33
+ * @memberof InputValidationIssue
34
+ */
35
+ value?: any | null;
36
+ /**
37
+ * An absolute URI that identifies the problem type
38
+ * @type {string}
39
+ * @memberof InputValidationIssue
40
+ */
41
+ type?: string;
42
+ /**
43
+ * An absolute URI that, when dereferenced, provides human-readable documentation for the problem type (e.g. using HTML).
44
+ * @type {string}
45
+ * @memberof InputValidationIssue
46
+ */
47
+ href?: string;
48
+ /**
49
+ * A short summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized).
50
+ * @type {string}
51
+ * @memberof InputValidationIssue
52
+ */
53
+ title?: string;
54
+ /**
55
+ * The HTTP status code generated by the origin server for this occurrence of the problem.
56
+ * @type {number}
57
+ * @memberof InputValidationIssue
58
+ */
59
+ status?: number;
60
+ /**
61
+ * A human-readable explanation specific to this occurrence of the problem
62
+ * @type {string}
63
+ * @memberof InputValidationIssue
64
+ */
65
+ detail?: string;
66
+ /**
67
+ * An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
68
+ * @type {string}
69
+ * @memberof InputValidationIssue
70
+ */
71
+ instance?: string;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const InputValidationIssueInEnum: {
77
+ readonly Body: "body";
78
+ readonly Header: "header";
79
+ readonly Path: "path";
80
+ readonly Query: "query";
81
+ };
82
+ export type InputValidationIssueInEnum = typeof InputValidationIssueInEnum[keyof typeof InputValidationIssueInEnum];
83
+ /**
84
+ * Check if a given object implements the InputValidationIssue interface.
85
+ */
86
+ export declare function instanceOfInputValidationIssue(value: object): boolean;
87
+ export declare function InputValidationIssueFromJSON(json: any): InputValidationIssue;
88
+ export declare function InputValidationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): InputValidationIssue;
89
+ export declare function InputValidationIssueToJSON(value?: InputValidationIssue | null): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.InputValidationIssueToJSON = exports.InputValidationIssueFromJSONTyped = exports.InputValidationIssueFromJSON = exports.instanceOfInputValidationIssue = exports.InputValidationIssueInEnum = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.InputValidationIssueInEnum = {
22
+ Body: 'body',
23
+ Header: 'header',
24
+ Path: 'path',
25
+ Query: 'query'
26
+ };
27
+ /**
28
+ * Check if a given object implements the InputValidationIssue interface.
29
+ */
30
+ function instanceOfInputValidationIssue(value) {
31
+ let isInstance = true;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfInputValidationIssue = instanceOfInputValidationIssue;
35
+ function InputValidationIssueFromJSON(json) {
36
+ return InputValidationIssueFromJSONTyped(json, false);
37
+ }
38
+ exports.InputValidationIssueFromJSON = InputValidationIssueFromJSON;
39
+ function InputValidationIssueFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ '_in': !(0, runtime_1.exists)(json, 'in') ? undefined : json['in'],
45
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
46
+ 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
47
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
48
+ 'href': !(0, runtime_1.exists)(json, 'href') ? undefined : json['href'],
49
+ 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
50
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
51
+ 'detail': !(0, runtime_1.exists)(json, 'detail') ? undefined : json['detail'],
52
+ 'instance': !(0, runtime_1.exists)(json, 'instance') ? undefined : json['instance'],
53
+ };
54
+ }
55
+ exports.InputValidationIssueFromJSONTyped = InputValidationIssueFromJSONTyped;
56
+ function InputValidationIssueToJSON(value) {
57
+ if (value === undefined) {
58
+ return undefined;
59
+ }
60
+ if (value === null) {
61
+ return null;
62
+ }
63
+ return {
64
+ 'in': value._in,
65
+ 'name': value.name,
66
+ 'value': value.value,
67
+ 'type': value.type,
68
+ 'href': value.href,
69
+ 'title': value.title,
70
+ 'status': value.status,
71
+ 'detail': value.detail,
72
+ 'instance': value.instance,
73
+ };
74
+ }
75
+ exports.InputValidationIssueToJSON = InputValidationIssueToJSON;
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ import type { InputValidationIssue } from './InputValidationIssue';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface InputValidationProblem
17
+ */
18
+ export interface InputValidationProblem {
19
+ /**
20
+ *
21
+ * @type {Array<InputValidationIssue>}
22
+ * @memberof InputValidationProblem
23
+ */
24
+ issues?: Array<InputValidationIssue>;
25
+ /**
26
+ * An absolute URI that identifies the problem type
27
+ * @type {string}
28
+ * @memberof InputValidationProblem
29
+ */
30
+ type?: string;
31
+ /**
32
+ * An absolute URI that, when dereferenced, provides human-readable documentation for the problem type (e.g. using HTML).
33
+ * @type {string}
34
+ * @memberof InputValidationProblem
35
+ */
36
+ href?: string;
37
+ /**
38
+ * A short summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized).
39
+ * @type {string}
40
+ * @memberof InputValidationProblem
41
+ */
42
+ title?: string;
43
+ /**
44
+ * The HTTP status code generated by the origin server for this occurrence of the problem.
45
+ * @type {number}
46
+ * @memberof InputValidationProblem
47
+ */
48
+ status?: number;
49
+ /**
50
+ * A human-readable explanation specific to this occurrence of the problem
51
+ * @type {string}
52
+ * @memberof InputValidationProblem
53
+ */
54
+ detail?: string;
55
+ /**
56
+ * An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
57
+ * @type {string}
58
+ * @memberof InputValidationProblem
59
+ */
60
+ instance?: string;
61
+ }
62
+ /**
63
+ * Check if a given object implements the InputValidationProblem interface.
64
+ */
65
+ export declare function instanceOfInputValidationProblem(value: object): boolean;
66
+ export declare function InputValidationProblemFromJSON(json: any): InputValidationProblem;
67
+ export declare function InputValidationProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): InputValidationProblem;
68
+ export declare function InputValidationProblemToJSON(value?: InputValidationProblem | null): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.InputValidationProblemToJSON = exports.InputValidationProblemFromJSONTyped = exports.InputValidationProblemFromJSON = exports.instanceOfInputValidationProblem = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const InputValidationIssue_1 = require("./InputValidationIssue");
19
+ /**
20
+ * Check if a given object implements the InputValidationProblem interface.
21
+ */
22
+ function instanceOfInputValidationProblem(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfInputValidationProblem = instanceOfInputValidationProblem;
27
+ function InputValidationProblemFromJSON(json) {
28
+ return InputValidationProblemFromJSONTyped(json, false);
29
+ }
30
+ exports.InputValidationProblemFromJSON = InputValidationProblemFromJSON;
31
+ function InputValidationProblemFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'issues': !(0, runtime_1.exists)(json, 'issues') ? undefined : (json['issues'].map(InputValidationIssue_1.InputValidationIssueFromJSON)),
37
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
38
+ 'href': !(0, runtime_1.exists)(json, 'href') ? undefined : json['href'],
39
+ 'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
40
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
41
+ 'detail': !(0, runtime_1.exists)(json, 'detail') ? undefined : json['detail'],
42
+ 'instance': !(0, runtime_1.exists)(json, 'instance') ? undefined : json['instance'],
43
+ };
44
+ }
45
+ exports.InputValidationProblemFromJSONTyped = InputValidationProblemFromJSONTyped;
46
+ function InputValidationProblemToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'issues': value.issues === undefined ? undefined : (value.issues.map(InputValidationIssue_1.InputValidationIssueToJSON)),
55
+ 'type': value.type,
56
+ 'href': value.href,
57
+ 'title': value.title,
58
+ 'status': value.status,
59
+ 'detail': value.detail,
60
+ 'instance': value.instance,
61
+ };
62
+ }
63
+ exports.InputValidationProblemToJSON = InputValidationProblemToJSON;
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ *
14
+ * @export
15
+ * @interface Invite
16
+ */
17
+ export interface Invite {
18
+ /**
19
+ * The invite ID.
20
+ * @type {string}
21
+ * @memberof Invite
22
+ */
23
+ id: string;
24
+ /**
25
+ * The email address of the person invited.
26
+ * @type {string}
27
+ * @memberof Invite
28
+ */
29
+ invitedEmail: string;
30
+ /**
31
+ * The type of entity that the person is invited to.
32
+ * @type {string}
33
+ * @memberof Invite
34
+ */
35
+ parentType: InviteParentTypeEnum;
36
+ /**
37
+ * The ID of the parent (e.g. org ID).
38
+ * @type {string}
39
+ * @memberof Invite
40
+ */
41
+ parentId: string;
42
+ /**
43
+ * The status of the invite.
44
+ * @type {string}
45
+ * @memberof Invite
46
+ */
47
+ status: InviteStatusEnum;
48
+ /**
49
+ * The time the invite was created.
50
+ * @type {Date}
51
+ * @memberof Invite
52
+ */
53
+ createTime: Date;
54
+ /**
55
+ * The time the invite was updated.
56
+ * @type {Date}
57
+ * @memberof Invite
58
+ */
59
+ updateTime?: Date;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const InviteParentTypeEnum: {
65
+ readonly Org: "org";
66
+ };
67
+ export type InviteParentTypeEnum = typeof InviteParentTypeEnum[keyof typeof InviteParentTypeEnum];
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const InviteStatusEnum: {
72
+ readonly Pending: "pending";
73
+ readonly Accepted: "accepted";
74
+ readonly Revoked: "revoked";
75
+ readonly Expired: "expired";
76
+ };
77
+ export type InviteStatusEnum = typeof InviteStatusEnum[keyof typeof InviteStatusEnum];
78
+ /**
79
+ * Check if a given object implements the Invite interface.
80
+ */
81
+ export declare function instanceOfInvite(value: object): boolean;
82
+ export declare function InviteFromJSON(json: any): Invite;
83
+ export declare function InviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invite;
84
+ export declare function InviteToJSON(value?: Invite | null): any;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.InviteToJSON = exports.InviteFromJSONTyped = exports.InviteFromJSON = exports.instanceOfInvite = exports.InviteStatusEnum = exports.InviteParentTypeEnum = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.InviteParentTypeEnum = {
22
+ Org: 'org'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ exports.InviteStatusEnum = {
28
+ Pending: 'pending',
29
+ Accepted: 'accepted',
30
+ Revoked: 'revoked',
31
+ Expired: 'expired'
32
+ };
33
+ /**
34
+ * Check if a given object implements the Invite interface.
35
+ */
36
+ function instanceOfInvite(value) {
37
+ let isInstance = true;
38
+ isInstance = isInstance && "id" in value;
39
+ isInstance = isInstance && "invitedEmail" in value;
40
+ isInstance = isInstance && "parentType" in value;
41
+ isInstance = isInstance && "parentId" in value;
42
+ isInstance = isInstance && "status" in value;
43
+ isInstance = isInstance && "createTime" in value;
44
+ return isInstance;
45
+ }
46
+ exports.instanceOfInvite = instanceOfInvite;
47
+ function InviteFromJSON(json) {
48
+ return InviteFromJSONTyped(json, false);
49
+ }
50
+ exports.InviteFromJSON = InviteFromJSON;
51
+ function InviteFromJSONTyped(json, ignoreDiscriminator) {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'invitedEmail': json['invitedEmail'],
58
+ 'parentType': json['parentType'],
59
+ 'parentId': json['parentId'],
60
+ 'status': json['status'],
61
+ 'createTime': (new Date(json['createTime'])),
62
+ 'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
63
+ };
64
+ }
65
+ exports.InviteFromJSONTyped = InviteFromJSONTyped;
66
+ function InviteToJSON(value) {
67
+ if (value === undefined) {
68
+ return undefined;
69
+ }
70
+ if (value === null) {
71
+ return null;
72
+ }
73
+ return {
74
+ 'id': value.id,
75
+ 'invitedEmail': value.invitedEmail,
76
+ 'parentType': value.parentType,
77
+ 'parentId': value.parentId,
78
+ 'status': value.status,
79
+ 'createTime': (value.createTime.toISOString()),
80
+ 'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
81
+ };
82
+ }
83
+ exports.InviteToJSON = InviteToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LogMessage } from './LogMessage';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -22,11 +23,11 @@ export interface Log {
22
23
  */
23
24
  timestamp: string;
24
25
  /**
25
- * The log message.
26
- * @type {object}
26
+ *
27
+ * @type {LogMessage}
27
28
  * @memberof Log
28
29
  */
29
- message: object;
30
+ message: LogMessage;
30
31
  /**
31
32
  * The severity of the log.
32
33
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LogToJSON = exports.LogFromJSONTyped = exports.LogFromJSON = exports.instanceOfLog = void 0;
17
+ const LogMessage_1 = require("./LogMessage");
17
18
  /**
18
19
  * Check if a given object implements the Log interface.
19
20
  */
@@ -35,7 +36,7 @@ function LogFromJSONTyped(json, ignoreDiscriminator) {
35
36
  }
36
37
  return {
37
38
  'timestamp': json['timestamp'],
38
- 'message': json['message'],
39
+ 'message': (0, LogMessage_1.LogMessageFromJSON)(json['message']),
39
40
  'severity': json['severity'],
40
41
  };
41
42
  }
@@ -49,7 +50,7 @@ function LogToJSON(value) {
49
50
  }
50
51
  return {
51
52
  'timestamp': value.timestamp,
52
- 'message': value.message,
53
+ 'message': (0, LogMessage_1.LogMessageToJSON)(value.message),
53
54
  'severity': value.severity,
54
55
  };
55
56
  }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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
+ * The log message object.
14
+ * @export
15
+ * @interface LogMessage
16
+ */
17
+ export interface LogMessage {
18
+ /**
19
+ * The use-readable message.
20
+ * @type {string}
21
+ * @memberof LogMessage
22
+ */
23
+ msg: string;
24
+ /**
25
+ * The operation event ID.
26
+ * @type {string}
27
+ * @memberof LogMessage
28
+ */
29
+ operationEventId?: string;
30
+ /**
31
+ * The operation ID.
32
+ * @type {string}
33
+ * @memberof LogMessage
34
+ */
35
+ operationId?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LogMessage interface.
39
+ */
40
+ export declare function instanceOfLogMessage(value: object): boolean;
41
+ export declare function LogMessageFromJSON(json: any): LogMessage;
42
+ export declare function LogMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogMessage;
43
+ export declare function LogMessageToJSON(value?: LogMessage | null): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.LogMessageToJSON = exports.LogMessageFromJSONTyped = exports.LogMessageFromJSON = exports.instanceOfLogMessage = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the LogMessage interface.
20
+ */
21
+ function instanceOfLogMessage(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "msg" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfLogMessage = instanceOfLogMessage;
27
+ function LogMessageFromJSON(json) {
28
+ return LogMessageFromJSONTyped(json, false);
29
+ }
30
+ exports.LogMessageFromJSON = LogMessageFromJSON;
31
+ function LogMessageFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'msg': json['msg'],
37
+ 'operationEventId': !(0, runtime_1.exists)(json, 'operation_event_id') ? undefined : json['operation_event_id'],
38
+ 'operationId': !(0, runtime_1.exists)(json, 'operation_id') ? undefined : json['operation_id'],
39
+ };
40
+ }
41
+ exports.LogMessageFromJSONTyped = LogMessageFromJSONTyped;
42
+ function LogMessageToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'msg': value.msg,
51
+ 'operation_event_id': value.operationEventId,
52
+ 'operation_id': value.operationId,
53
+ };
54
+ }
55
+ exports.LogMessageToJSON = LogMessageToJSON;
@@ -16,6 +16,12 @@ import type { TokenMetadataFields } from './TokenMetadataFields';
16
16
  * @interface OauthOpts
17
17
  */
18
18
  export interface OauthOpts {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OauthOpts
23
+ */
24
+ grantType: OauthOptsGrantTypeEnum;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -47,6 +53,15 @@ export interface OauthOpts {
47
53
  */
48
54
  tokenMetadataFields: TokenMetadataFields;
49
55
  }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const OauthOptsGrantTypeEnum: {
60
+ readonly AuthorizationCode: "authorizationCode";
61
+ readonly ClientCredentials: "clientCredentials";
62
+ readonly Pkce: "PKCE";
63
+ };
64
+ export type OauthOptsGrantTypeEnum = typeof OauthOptsGrantTypeEnum[keyof typeof OauthOptsGrantTypeEnum];
50
65
  /**
51
66
  * Check if a given object implements the OauthOpts interface.
52
67
  */
@@ -13,13 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OauthOptsToJSON = exports.OauthOptsFromJSONTyped = exports.OauthOptsFromJSON = exports.instanceOfOauthOpts = void 0;
16
+ exports.OauthOptsToJSON = exports.OauthOptsFromJSONTyped = exports.OauthOptsFromJSON = exports.instanceOfOauthOpts = exports.OauthOptsGrantTypeEnum = void 0;
17
17
  const TokenMetadataFields_1 = require("./TokenMetadataFields");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.OauthOptsGrantTypeEnum = {
22
+ AuthorizationCode: 'authorizationCode',
23
+ ClientCredentials: 'clientCredentials',
24
+ Pkce: 'PKCE'
25
+ };
18
26
  /**
19
27
  * Check if a given object implements the OauthOpts interface.
20
28
  */
21
29
  function instanceOfOauthOpts(value) {
22
30
  let isInstance = true;
31
+ isInstance = isInstance && "grantType" in value;
23
32
  isInstance = isInstance && "authURL" in value;
24
33
  isInstance = isInstance && "tokenURL" in value;
25
34
  isInstance = isInstance && "explicitScopesRequired" in value;
@@ -37,6 +46,7 @@ function OauthOptsFromJSONTyped(json, ignoreDiscriminator) {
37
46
  return json;
38
47
  }
39
48
  return {
49
+ 'grantType': json['grantType'],
40
50
  'authURL': json['authURL'],
41
51
  'tokenURL': json['tokenURL'],
42
52
  'explicitScopesRequired': json['explicitScopesRequired'],
@@ -53,6 +63,7 @@ function OauthOptsToJSON(value) {
53
63
  return null;
54
64
  }
55
65
  return {
66
+ 'grantType': value.grantType,
56
67
  'authURL': value.authURL,
57
68
  'tokenURL': value.tokenURL,
58
69
  'explicitScopesRequired': value.explicitScopesRequired,