@cirrobio/api-client 0.12.14 → 0.12.16

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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/AppRegistrationsApi.d.ts +108 -0
  3. package/dist/apis/AppRegistrationsApi.js +304 -0
  4. package/dist/apis/ExecutionApi.d.ts +16 -0
  5. package/dist/apis/ExecutionApi.js +46 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/AppRegistrationsApi.d.ts +108 -0
  9. package/dist/esm/apis/AppRegistrationsApi.js +300 -0
  10. package/dist/esm/apis/ExecutionApi.d.ts +16 -0
  11. package/dist/esm/apis/ExecutionApi.js +46 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/AppRegistration.d.ts +93 -0
  15. package/dist/esm/models/AppRegistration.js +75 -0
  16. package/dist/esm/models/AppRegistrationDetail.d.ts +125 -0
  17. package/dist/esm/models/AppRegistrationDetail.js +92 -0
  18. package/dist/esm/models/AppRegistrationInput.d.ts +77 -0
  19. package/dist/esm/models/AppRegistrationInput.js +68 -0
  20. package/dist/esm/models/AppRegistrationSecretResponse.d.ts +49 -0
  21. package/dist/esm/models/AppRegistrationSecretResponse.js +52 -0
  22. package/dist/esm/models/AppType.d.ts +22 -0
  23. package/dist/esm/models/AppType.js +31 -0
  24. package/dist/esm/models/FeatureFlags.d.ts +6 -0
  25. package/dist/esm/models/FeatureFlags.js +3 -0
  26. package/dist/esm/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
  27. package/dist/esm/models/PaginatedResponseAppRegistrationDto.js +47 -0
  28. package/dist/esm/models/Permission.d.ts +79 -0
  29. package/dist/esm/models/Permission.js +88 -0
  30. package/dist/esm/models/PrincipalType.d.ts +23 -0
  31. package/dist/esm/models/PrincipalType.js +32 -0
  32. package/dist/esm/models/ProjectPermissionSet.d.ts +37 -0
  33. package/dist/esm/models/ProjectPermissionSet.js +46 -0
  34. package/dist/esm/models/Task.d.ts +6 -0
  35. package/dist/esm/models/Task.js +2 -0
  36. package/dist/esm/models/index.d.ts +9 -0
  37. package/dist/esm/models/index.js +9 -0
  38. package/dist/esm/runtime.js +1 -1
  39. package/dist/models/AppRegistration.d.ts +93 -0
  40. package/dist/models/AppRegistration.js +82 -0
  41. package/dist/models/AppRegistrationDetail.d.ts +125 -0
  42. package/dist/models/AppRegistrationDetail.js +99 -0
  43. package/dist/models/AppRegistrationInput.d.ts +77 -0
  44. package/dist/models/AppRegistrationInput.js +75 -0
  45. package/dist/models/AppRegistrationSecretResponse.d.ts +49 -0
  46. package/dist/models/AppRegistrationSecretResponse.js +59 -0
  47. package/dist/models/AppType.d.ts +22 -0
  48. package/dist/models/AppType.js +37 -0
  49. package/dist/models/FeatureFlags.d.ts +6 -0
  50. package/dist/models/FeatureFlags.js +3 -0
  51. package/dist/models/PaginatedResponseAppRegistrationDto.d.ts +38 -0
  52. package/dist/models/PaginatedResponseAppRegistrationDto.js +54 -0
  53. package/dist/models/Permission.d.ts +79 -0
  54. package/dist/models/Permission.js +94 -0
  55. package/dist/models/PrincipalType.d.ts +23 -0
  56. package/dist/models/PrincipalType.js +38 -0
  57. package/dist/models/ProjectPermissionSet.d.ts +37 -0
  58. package/dist/models/ProjectPermissionSet.js +53 -0
  59. package/dist/models/Task.d.ts +6 -0
  60. package/dist/models/Task.js +2 -0
  61. package/dist/models/index.d.ts +9 -0
  62. package/dist/models/index.js +9 -0
  63. package/dist/runtime.js +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var Permission;
20
+ (function (Permission) {
21
+ Permission["ManageMembers"] = "MANAGE_MEMBERS";
22
+ Permission["SearchMembers"] = "SEARCH_MEMBERS";
23
+ Permission["InviteMember"] = "INVITE_MEMBER";
24
+ Permission["CreateByoaProject"] = "CREATE_BYOA_PROJECT";
25
+ Permission["CreateHostedProject"] = "CREATE_HOSTED_PROJECT";
26
+ Permission["RequestProject"] = "REQUEST_PROJECT";
27
+ Permission["EditProject"] = "EDIT_PROJECT";
28
+ Permission["ViewProject"] = "VIEW_PROJECT";
29
+ Permission["DeleteProject"] = "DELETE_PROJECT";
30
+ Permission["ViewProjectCosts"] = "VIEW_PROJECT_COSTS";
31
+ Permission["ViewProjectMembers"] = "VIEW_PROJECT_MEMBERS";
32
+ Permission["EditProjectMembers"] = "EDIT_PROJECT_MEMBERS";
33
+ Permission["ViewProjectReferences"] = "VIEW_PROJECT_REFERENCES";
34
+ Permission["EditProjectReferences"] = "EDIT_PROJECT_REFERENCES";
35
+ Permission["ViewProjectMetadata"] = "VIEW_PROJECT_METADATA";
36
+ Permission["EditProjectMetadata"] = "EDIT_PROJECT_METADATA";
37
+ Permission["GenerateDownloadToken"] = "GENERATE_DOWNLOAD_TOKEN";
38
+ Permission["ViewProjectShares"] = "VIEW_PROJECT_SHARES";
39
+ Permission["ManageProjectShares"] = "MANAGE_PROJECT_SHARES";
40
+ Permission["CreateDiscussion"] = "CREATE_DISCUSSION";
41
+ Permission["ManageDiscussions"] = "MANAGE_DISCUSSIONS";
42
+ Permission["ViewDiscussion"] = "VIEW_DISCUSSION";
43
+ Permission["CreateDataset"] = "CREATE_DATASET";
44
+ Permission["EditDataset"] = "EDIT_DATASET";
45
+ Permission["ViewDataset"] = "VIEW_DATASET";
46
+ Permission["DeleteDataset"] = "DELETE_DATASET";
47
+ Permission["ViewDatasetLogs"] = "VIEW_DATASET_LOGS";
48
+ Permission["RunAnalysis"] = "RUN_ANALYSIS";
49
+ Permission["StopAnalysis"] = "STOP_ANALYSIS";
50
+ Permission["ViewDashboard"] = "VIEW_DASHBOARD";
51
+ Permission["CreateDashboard"] = "CREATE_DASHBOARD";
52
+ Permission["EditDashboard"] = "EDIT_DASHBOARD";
53
+ Permission["CreateNotebookInstance"] = "CREATE_NOTEBOOK_INSTANCE";
54
+ Permission["DeleteNotebookInstance"] = "DELETE_NOTEBOOK_INSTANCE";
55
+ Permission["ControlNotebookInstance"] = "CONTROL_NOTEBOOK_INSTANCE";
56
+ Permission["OpenNotebookInstance"] = "OPEN_NOTEBOOK_INSTANCE";
57
+ Permission["CreateWorkspace"] = "CREATE_WORKSPACE";
58
+ Permission["DeleteWorkspace"] = "DELETE_WORKSPACE";
59
+ Permission["ControlWorkspace"] = "CONTROL_WORKSPACE";
60
+ Permission["OpenWorkspace"] = "OPEN_WORKSPACE";
61
+ Permission["CreateCustomWorkspace"] = "CREATE_CUSTOM_WORKSPACE";
62
+ Permission["CreateCustomPipeline"] = "CREATE_CUSTOM_PIPELINE";
63
+ Permission["CreateCustomPipelineTenant"] = "CREATE_CUSTOM_PIPELINE_TENANT";
64
+ Permission["ViewClassifications"] = "VIEW_CLASSIFICATIONS";
65
+ Permission["ViewContacts"] = "VIEW_CONTACTS";
66
+ Permission["ManageGovernance"] = "MANAGE_GOVERNANCE";
67
+ Permission["ManageAgents"] = "MANAGE_AGENTS";
68
+ Permission["ManageAllAppRegistrations"] = "MANAGE_ALL_APP_REGISTRATIONS";
69
+ Permission["ManageOwnAppRegistrations"] = "MANAGE_OWN_APP_REGISTRATIONS";
70
+ Permission["ViewServiceConnections"] = "VIEW_SERVICE_CONNECTIONS";
71
+ Permission["ViewProcess"] = "VIEW_PROCESS";
72
+ Permission["ViewWorkspaceEnvironments"] = "VIEW_WORKSPACE_ENVIRONMENTS";
73
+ Permission["CreateBillingAccount"] = "CREATE_BILLING_ACCOUNT";
74
+ Permission["ManageBillingAccounts"] = "MANAGE_BILLING_ACCOUNTS";
75
+ Permission["ViewAuditEvents"] = "VIEW_AUDIT_EVENTS";
76
+ Permission["ViewMetrics"] = "VIEW_METRICS";
77
+ Permission["SysAdminOperations"] = "SYS_ADMIN_OPERATIONS";
78
+ Permission["ViewAllData"] = "VIEW_ALL_DATA";
79
+ })(Permission || (Permission = {}));
80
+ export function PermissionFromJSON(json) {
81
+ return PermissionFromJSONTyped(json, false);
82
+ }
83
+ export function PermissionFromJSONTyped(json, ignoreDiscriminator) {
84
+ return json;
85
+ }
86
+ export function PermissionToJSON(value) {
87
+ return value;
88
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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
+ * @enum {string}
16
+ */
17
+ export declare enum PrincipalType {
18
+ User = "USER",
19
+ System = "SYSTEM"
20
+ }
21
+ export declare function PrincipalTypeFromJSON(json: any): PrincipalType;
22
+ export declare function PrincipalTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrincipalType;
23
+ export declare function PrincipalTypeToJSON(value?: PrincipalType | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var PrincipalType;
20
+ (function (PrincipalType) {
21
+ PrincipalType["User"] = "USER";
22
+ PrincipalType["System"] = "SYSTEM";
23
+ })(PrincipalType || (PrincipalType = {}));
24
+ export function PrincipalTypeFromJSON(json) {
25
+ return PrincipalTypeFromJSONTyped(json, false);
26
+ }
27
+ export function PrincipalTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function PrincipalTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 ProjectPermissionSet
16
+ */
17
+ export interface ProjectPermissionSet {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ProjectPermissionSet
22
+ */
23
+ projectId: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof ProjectPermissionSet
28
+ */
29
+ permissions: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ProjectPermissionSet interface.
33
+ */
34
+ export declare function instanceOfProjectPermissionSet(value: object): boolean;
35
+ export declare function ProjectPermissionSetFromJSON(json: any): ProjectPermissionSet;
36
+ export declare function ProjectPermissionSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectPermissionSet;
37
+ export declare function ProjectPermissionSetToJSON(value?: ProjectPermissionSet | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
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
+ * Check if a given object implements the ProjectPermissionSet interface.
16
+ */
17
+ export function instanceOfProjectPermissionSet(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "projectId" in value;
20
+ isInstance = isInstance && "permissions" in value;
21
+ return isInstance;
22
+ }
23
+ export function ProjectPermissionSetFromJSON(json) {
24
+ return ProjectPermissionSetFromJSONTyped(json, false);
25
+ }
26
+ export function ProjectPermissionSetFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'projectId': json['projectId'],
32
+ 'permissions': json['permissions'],
33
+ };
34
+ }
35
+ export function ProjectPermissionSetToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'projectId': value.projectId,
44
+ 'permissions': value.permissions,
45
+ };
46
+ }
@@ -33,6 +33,12 @@ export interface Task {
33
33
  * @memberof Task
34
34
  */
35
35
  status: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Task
40
+ */
41
+ statusMessage?: string | null;
36
42
  /**
37
43
  *
38
44
  * @type {Date}
@@ -32,6 +32,7 @@ export function TaskFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'name': json['name'],
33
33
  'nativeJobId': !exists(json, 'nativeJobId') ? undefined : json['nativeJobId'],
34
34
  'status': json['status'],
35
+ 'statusMessage': !exists(json, 'statusMessage') ? undefined : json['statusMessage'],
35
36
  'requestedAt': !exists(json, 'requestedAt') ? undefined : (json['requestedAt'] === null ? null : new Date(json['requestedAt'])),
36
37
  'startedAt': !exists(json, 'startedAt') ? undefined : (json['startedAt'] === null ? null : new Date(json['startedAt'])),
37
38
  'stoppedAt': !exists(json, 'stoppedAt') ? undefined : (json['stoppedAt'] === null ? null : new Date(json['stoppedAt'])),
@@ -51,6 +52,7 @@ export function TaskToJSON(value) {
51
52
  'name': value.name,
52
53
  'nativeJobId': value.nativeJobId,
53
54
  'status': value.status,
55
+ 'statusMessage': value.statusMessage,
54
56
  'requestedAt': value.requestedAt === undefined ? undefined : (value.requestedAt === null ? null : value.requestedAt.toISOString()),
55
57
  'startedAt': value.startedAt === undefined ? undefined : (value.startedAt === null ? null : value.startedAt.toISOString()),
56
58
  'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt === null ? null : value.stoppedAt.toISOString()),
@@ -5,6 +5,11 @@ export * from './AgentInput';
5
5
  export * from './AgentRegistration';
6
6
  export * from './AgentStatus';
7
7
  export * from './AllowedDataType';
8
+ export * from './AppRegistration';
9
+ export * from './AppRegistrationDetail';
10
+ export * from './AppRegistrationInput';
11
+ export * from './AppRegistrationSecretResponse';
12
+ export * from './AppType';
8
13
  export * from './ApproveProjectAccessRequest';
9
14
  export * from './Artifact';
10
15
  export * from './ArtifactType';
@@ -87,15 +92,18 @@ export * from './NamedItem';
87
92
  export * from './NotebookInstance';
88
93
  export * from './NotebookInstanceStatusResponse';
89
94
  export * from './OpenNotebookInstanceResponse';
95
+ export * from './PaginatedResponseAppRegistrationDto';
90
96
  export * from './PaginatedResponseDatasetListDto';
91
97
  export * from './PaginatedResponseDiscussion';
92
98
  export * from './PaginatedResponseMessage';
93
99
  export * from './PaginatedResponseSampleDto';
94
100
  export * from './PaginatedResponseUserDto';
101
+ export * from './Permission';
95
102
  export * from './PipelineCode';
96
103
  export * from './PipelineCost';
97
104
  export * from './PortalErrorResponse';
98
105
  export * from './PostponeWorkspaceAutostopInput';
106
+ export * from './PrincipalType';
99
107
  export * from './Process';
100
108
  export * from './ProcessDetail';
101
109
  export * from './ProcessDocumentation';
@@ -107,6 +115,7 @@ export * from './ProjectDetail';
107
115
  export * from './ProjectFileAccessRequest';
108
116
  export * from './ProjectInput';
109
117
  export * from './ProjectMetrics';
118
+ export * from './ProjectPermissionSet';
110
119
  export * from './ProjectRequest';
111
120
  export * from './ProjectRequirement';
112
121
  export * from './ProjectRole';
@@ -7,6 +7,11 @@ export * from './AgentInput';
7
7
  export * from './AgentRegistration';
8
8
  export * from './AgentStatus';
9
9
  export * from './AllowedDataType';
10
+ export * from './AppRegistration';
11
+ export * from './AppRegistrationDetail';
12
+ export * from './AppRegistrationInput';
13
+ export * from './AppRegistrationSecretResponse';
14
+ export * from './AppType';
10
15
  export * from './ApproveProjectAccessRequest';
11
16
  export * from './Artifact';
12
17
  export * from './ArtifactType';
@@ -89,15 +94,18 @@ export * from './NamedItem';
89
94
  export * from './NotebookInstance';
90
95
  export * from './NotebookInstanceStatusResponse';
91
96
  export * from './OpenNotebookInstanceResponse';
97
+ export * from './PaginatedResponseAppRegistrationDto';
92
98
  export * from './PaginatedResponseDatasetListDto';
93
99
  export * from './PaginatedResponseDiscussion';
94
100
  export * from './PaginatedResponseMessage';
95
101
  export * from './PaginatedResponseSampleDto';
96
102
  export * from './PaginatedResponseUserDto';
103
+ export * from './Permission';
97
104
  export * from './PipelineCode';
98
105
  export * from './PipelineCost';
99
106
  export * from './PortalErrorResponse';
100
107
  export * from './PostponeWorkspaceAutostopInput';
108
+ export * from './PrincipalType';
101
109
  export * from './Process';
102
110
  export * from './ProcessDetail';
103
111
  export * from './ProcessDocumentation';
@@ -109,6 +117,7 @@ export * from './ProjectDetail';
109
117
  export * from './ProjectFileAccessRequest';
110
118
  export * from './ProjectInput';
111
119
  export * from './ProjectMetrics';
120
+ export * from './ProjectPermissionSet';
112
121
  export * from './ProjectRequest';
113
122
  export * from './ProjectRequirement';
114
123
  export * from './ProjectRole';
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
21
  });
22
22
  };
23
- export const BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
23
+ export const BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
24
24
  export class Configuration {
25
25
  constructor(configuration = {}) {
26
26
  this.configuration = configuration;
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 { AppType } from './AppType';
13
+ import type { PrincipalType } from './PrincipalType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AppRegistration
18
+ */
19
+ export interface AppRegistration {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AppRegistration
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof AppRegistration
30
+ */
31
+ clientId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AppRegistration
36
+ */
37
+ name: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AppRegistration
42
+ */
43
+ description: string;
44
+ /**
45
+ *
46
+ * @type {PrincipalType}
47
+ * @memberof AppRegistration
48
+ */
49
+ principalType: PrincipalType;
50
+ /**
51
+ *
52
+ * @type {AppType}
53
+ * @memberof AppRegistration
54
+ */
55
+ type: AppType;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof AppRegistration
60
+ */
61
+ secretExpiresAt?: Date | null;
62
+ /**
63
+ *
64
+ * @type {boolean}
65
+ * @memberof AppRegistration
66
+ */
67
+ isArchived: boolean;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof AppRegistration
72
+ */
73
+ updatedAt: Date;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof AppRegistration
78
+ */
79
+ createdAt: Date;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof AppRegistration
84
+ */
85
+ createdBy: string;
86
+ }
87
+ /**
88
+ * Check if a given object implements the AppRegistration interface.
89
+ */
90
+ export declare function instanceOfAppRegistration(value: object): boolean;
91
+ export declare function AppRegistrationFromJSON(json: any): AppRegistration;
92
+ export declare function AppRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistration;
93
+ export declare function AppRegistrationToJSON(value?: AppRegistration | null): any;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
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.AppRegistrationToJSON = exports.AppRegistrationFromJSONTyped = exports.AppRegistrationFromJSON = exports.instanceOfAppRegistration = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const AppType_1 = require("./AppType");
19
+ const PrincipalType_1 = require("./PrincipalType");
20
+ /**
21
+ * Check if a given object implements the AppRegistration interface.
22
+ */
23
+ function instanceOfAppRegistration(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "clientId" in value;
27
+ isInstance = isInstance && "name" in value;
28
+ isInstance = isInstance && "description" in value;
29
+ isInstance = isInstance && "principalType" in value;
30
+ isInstance = isInstance && "type" in value;
31
+ isInstance = isInstance && "isArchived" in value;
32
+ isInstance = isInstance && "updatedAt" in value;
33
+ isInstance = isInstance && "createdAt" in value;
34
+ isInstance = isInstance && "createdBy" in value;
35
+ return isInstance;
36
+ }
37
+ exports.instanceOfAppRegistration = instanceOfAppRegistration;
38
+ function AppRegistrationFromJSON(json) {
39
+ return AppRegistrationFromJSONTyped(json, false);
40
+ }
41
+ exports.AppRegistrationFromJSON = AppRegistrationFromJSON;
42
+ function AppRegistrationFromJSONTyped(json, ignoreDiscriminator) {
43
+ if ((json === undefined) || (json === null)) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'clientId': json['clientId'],
49
+ 'name': json['name'],
50
+ 'description': json['description'],
51
+ 'principalType': (0, PrincipalType_1.PrincipalTypeFromJSON)(json['principalType']),
52
+ 'type': (0, AppType_1.AppTypeFromJSON)(json['type']),
53
+ 'secretExpiresAt': !(0, runtime_1.exists)(json, 'secretExpiresAt') ? undefined : (json['secretExpiresAt'] === null ? null : new Date(json['secretExpiresAt'])),
54
+ 'isArchived': json['isArchived'],
55
+ 'updatedAt': (new Date(json['updatedAt'])),
56
+ 'createdAt': (new Date(json['createdAt'])),
57
+ 'createdBy': json['createdBy'],
58
+ };
59
+ }
60
+ exports.AppRegistrationFromJSONTyped = AppRegistrationFromJSONTyped;
61
+ function AppRegistrationToJSON(value) {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+ 'id': value.id,
70
+ 'clientId': value.clientId,
71
+ 'name': value.name,
72
+ 'description': value.description,
73
+ 'principalType': (0, PrincipalType_1.PrincipalTypeToJSON)(value.principalType),
74
+ 'type': (0, AppType_1.AppTypeToJSON)(value.type),
75
+ 'secretExpiresAt': value.secretExpiresAt === undefined ? undefined : (value.secretExpiresAt === null ? null : value.secretExpiresAt.toISOString()),
76
+ 'isArchived': value.isArchived,
77
+ 'updatedAt': (value.updatedAt.toISOString()),
78
+ 'createdAt': (value.createdAt.toISOString()),
79
+ 'createdBy': value.createdBy,
80
+ };
81
+ }
82
+ exports.AppRegistrationToJSON = AppRegistrationToJSON;
@@ -0,0 +1,125 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
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 { AppType } from './AppType';
13
+ import type { Permission } from './Permission';
14
+ import type { PrincipalType } from './PrincipalType';
15
+ import type { ProjectPermissionSet } from './ProjectPermissionSet';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AppRegistrationDetail
20
+ */
21
+ export interface AppRegistrationDetail {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AppRegistrationDetail
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AppRegistrationDetail
32
+ */
33
+ clientId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AppRegistrationDetail
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AppRegistrationDetail
44
+ */
45
+ description: string;
46
+ /**
47
+ *
48
+ * @type {PrincipalType}
49
+ * @memberof AppRegistrationDetail
50
+ */
51
+ principalType: PrincipalType;
52
+ /**
53
+ *
54
+ * @type {AppType}
55
+ * @memberof AppRegistrationDetail
56
+ */
57
+ type: AppType;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof AppRegistrationDetail
62
+ */
63
+ allowedIps: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof AppRegistrationDetail
68
+ */
69
+ secretExpiresAt?: Date | null;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof AppRegistrationDetail
74
+ */
75
+ secretGeneratedAt: Date;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof AppRegistrationDetail
80
+ */
81
+ secretGeneratedBy: string;
82
+ /**
83
+ *
84
+ * @type {Array<ProjectPermissionSet>}
85
+ * @memberof AppRegistrationDetail
86
+ */
87
+ projectPermissions: Array<ProjectPermissionSet>;
88
+ /**
89
+ *
90
+ * @type {Array<Permission>}
91
+ * @memberof AppRegistrationDetail
92
+ */
93
+ globalPermissions: Array<Permission>;
94
+ /**
95
+ *
96
+ * @type {boolean}
97
+ * @memberof AppRegistrationDetail
98
+ */
99
+ isArchived: boolean;
100
+ /**
101
+ *
102
+ * @type {Date}
103
+ * @memberof AppRegistrationDetail
104
+ */
105
+ createdAt: Date;
106
+ /**
107
+ *
108
+ * @type {Date}
109
+ * @memberof AppRegistrationDetail
110
+ */
111
+ updatedAt: Date;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof AppRegistrationDetail
116
+ */
117
+ createdBy: string;
118
+ }
119
+ /**
120
+ * Check if a given object implements the AppRegistrationDetail interface.
121
+ */
122
+ export declare function instanceOfAppRegistrationDetail(value: object): boolean;
123
+ export declare function AppRegistrationDetailFromJSON(json: any): AppRegistrationDetail;
124
+ export declare function AppRegistrationDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppRegistrationDetail;
125
+ export declare function AppRegistrationDetailToJSON(value?: AppRegistrationDetail | null): any;