@teemill/projects 1.5.0 → 1.6.1

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 (63) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +23 -21
  4. package/dist/apis/ProjectsApi.js +98 -93
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CreateInviteRequest.d.ts +1 -1
  8. package/dist/models/CreateInviteRequest.js +1 -1
  9. package/dist/models/CreateProjectRequest.d.ts +1 -1
  10. package/dist/models/CreateProjectRequest.js +1 -1
  11. package/dist/models/CreateUserRequest.d.ts +1 -1
  12. package/dist/models/CreateUserRequest.js +1 -1
  13. package/dist/models/CreateUserRequestAvatar.d.ts +1 -1
  14. package/dist/models/CreateUserRequestAvatar.js +1 -1
  15. package/dist/models/Integration.d.ts +1 -14
  16. package/dist/models/Integration.js +1 -8
  17. package/dist/models/IntegrationsResponse.d.ts +1 -1
  18. package/dist/models/IntegrationsResponse.js +1 -1
  19. package/dist/models/Project.d.ts +1 -1
  20. package/dist/models/Project.js +1 -1
  21. package/dist/models/ProjectInvite.d.ts +8 -15
  22. package/dist/models/ProjectInvite.js +16 -20
  23. package/dist/models/ProjectInvites.d.ts +1 -1
  24. package/dist/models/ProjectInvites.js +1 -1
  25. package/dist/models/ProjectLogo.d.ts +1 -1
  26. package/dist/models/ProjectLogo.js +1 -1
  27. package/dist/models/ProjectUser.d.ts +1 -1
  28. package/dist/models/ProjectUser.js +1 -1
  29. package/dist/models/ProjectUsers.d.ts +1 -1
  30. package/dist/models/ProjectUsers.js +1 -1
  31. package/dist/models/ProjectsResponse.d.ts +1 -1
  32. package/dist/models/ProjectsResponse.js +1 -1
  33. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  34. package/dist/models/UpdateProjectRequest.js +1 -1
  35. package/dist/models/UpdateUserRequest.d.ts +1 -1
  36. package/dist/models/UpdateUserRequest.js +1 -1
  37. package/dist/models/UpdateUserRequestAvatar.d.ts +1 -1
  38. package/dist/models/UpdateUserRequestAvatar.js +1 -1
  39. package/dist/models/index.d.ts +0 -1
  40. package/dist/models/index.js +0 -1
  41. package/dist/runtime.d.ts +1 -1
  42. package/dist/runtime.js +1 -1
  43. package/package.json +1 -1
  44. package/src/apis/ProjectsApi.ts +81 -75
  45. package/src/models/ApiError.ts +1 -1
  46. package/src/models/CreateInviteRequest.ts +1 -1
  47. package/src/models/CreateProjectRequest.ts +1 -1
  48. package/src/models/CreateUserRequest.ts +1 -1
  49. package/src/models/CreateUserRequestAvatar.ts +1 -1
  50. package/src/models/Integration.ts +1 -26
  51. package/src/models/IntegrationsResponse.ts +1 -1
  52. package/src/models/Project.ts +1 -1
  53. package/src/models/ProjectInvite.ts +23 -38
  54. package/src/models/ProjectInvites.ts +1 -1
  55. package/src/models/ProjectLogo.ts +1 -1
  56. package/src/models/ProjectUser.ts +1 -1
  57. package/src/models/ProjectUsers.ts +1 -1
  58. package/src/models/ProjectsResponse.ts +1 -1
  59. package/src/models/UpdateProjectRequest.ts +1 -1
  60. package/src/models/UpdateUserRequest.ts +1 -1
  61. package/src/models/UpdateUserRequestAvatar.ts +1 -1
  62. package/src/models/index.ts +0 -1
  63. package/src/runtime.ts +1 -1
@@ -2,14 +2,13 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Project } from './Project';
13
12
  import type { ProjectUser } from './ProjectUser';
14
13
  /**
15
14
  *
@@ -22,13 +21,7 @@ export interface ProjectInvite {
22
21
  * @type {string}
23
22
  * @memberof ProjectInvite
24
23
  */
25
- email: string;
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof ProjectInvite
30
- */
31
- status: string;
24
+ inviteeEmail: string;
32
25
  /**
33
26
  *
34
27
  * @type {string}
@@ -40,25 +33,25 @@ export interface ProjectInvite {
40
33
  * @type {string}
41
34
  * @memberof ProjectInvite
42
35
  */
43
- updatedAt: string | null;
36
+ expiresAt: string;
44
37
  /**
45
38
  *
46
- * @type {Project}
39
+ * @type {string}
47
40
  * @memberof ProjectInvite
48
41
  */
49
- project: Project;
42
+ acceptedAt: string | null;
50
43
  /**
51
44
  *
52
- * @type {ProjectUser}
45
+ * @type {string}
53
46
  * @memberof ProjectInvite
54
47
  */
55
- createdUser: ProjectUser;
48
+ deletedAt: string | null;
56
49
  /**
57
50
  *
58
51
  * @type {ProjectUser}
59
52
  * @memberof ProjectInvite
60
53
  */
61
- updatedUser: ProjectUser;
54
+ inviter: ProjectUser;
62
55
  }
63
56
  /**
64
57
  * Check if a given object implements the ProjectInvite interface.
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,20 +14,18 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectInviteToJSON = exports.ProjectInviteFromJSONTyped = exports.ProjectInviteFromJSON = exports.instanceOfProjectInvite = void 0;
17
- var Project_1 = require("./Project");
18
17
  var ProjectUser_1 = require("./ProjectUser");
19
18
  /**
20
19
  * Check if a given object implements the ProjectInvite interface.
21
20
  */
22
21
  function instanceOfProjectInvite(value) {
23
22
  var isInstance = true;
24
- isInstance = isInstance && "email" in value;
25
- isInstance = isInstance && "status" in value;
23
+ isInstance = isInstance && "inviteeEmail" in value;
26
24
  isInstance = isInstance && "createdAt" in value;
27
- isInstance = isInstance && "updatedAt" in value;
28
- isInstance = isInstance && "project" in value;
29
- isInstance = isInstance && "createdUser" in value;
30
- isInstance = isInstance && "updatedUser" in value;
25
+ isInstance = isInstance && "expiresAt" in value;
26
+ isInstance = isInstance && "acceptedAt" in value;
27
+ isInstance = isInstance && "deletedAt" in value;
28
+ isInstance = isInstance && "inviter" in value;
31
29
  return isInstance;
32
30
  }
33
31
  exports.instanceOfProjectInvite = instanceOfProjectInvite;
@@ -40,13 +38,12 @@ function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return json;
41
39
  }
42
40
  return {
43
- 'email': json['email'],
44
- 'status': json['status'],
41
+ 'inviteeEmail': json['inviteeEmail'],
45
42
  'createdAt': json['createdAt'],
46
- 'updatedAt': json['updatedAt'],
47
- 'project': (0, Project_1.ProjectFromJSON)(json['project']),
48
- 'createdUser': (0, ProjectUser_1.ProjectUserFromJSON)(json['createdUser']),
49
- 'updatedUser': (0, ProjectUser_1.ProjectUserFromJSON)(json['updatedUser']),
43
+ 'expiresAt': json['expiresAt'],
44
+ 'acceptedAt': json['acceptedAt'],
45
+ 'deletedAt': json['deletedAt'],
46
+ 'inviter': (0, ProjectUser_1.ProjectUserFromJSON)(json['inviter']),
50
47
  };
51
48
  }
52
49
  exports.ProjectInviteFromJSONTyped = ProjectInviteFromJSONTyped;
@@ -58,13 +55,12 @@ function ProjectInviteToJSON(value) {
58
55
  return null;
59
56
  }
60
57
  return {
61
- 'email': value.email,
62
- 'status': value.status,
58
+ 'inviteeEmail': value.inviteeEmail,
63
59
  'createdAt': value.createdAt,
64
- 'updatedAt': value.updatedAt,
65
- 'project': (0, Project_1.ProjectToJSON)(value.project),
66
- 'createdUser': (0, ProjectUser_1.ProjectUserToJSON)(value.createdUser),
67
- 'updatedUser': (0, ProjectUser_1.ProjectUserToJSON)(value.updatedUser),
60
+ 'expiresAt': value.expiresAt,
61
+ 'acceptedAt': value.acceptedAt,
62
+ 'deletedAt': value.deletedAt,
63
+ 'inviter': (0, ProjectUser_1.ProjectUserToJSON)(value.inviter),
68
64
  };
69
65
  }
70
66
  exports.ProjectInviteToJSON = ProjectInviteToJSON;
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,6 @@ export * from './CreateProjectRequest';
4
4
  export * from './CreateUserRequest';
5
5
  export * from './CreateUserRequestAvatar';
6
6
  export * from './Integration';
7
- export * from './IntegrationInfo';
8
7
  export * from './IntegrationsResponse';
9
8
  export * from './Project';
10
9
  export * from './ProjectInvite';
@@ -22,7 +22,6 @@ __exportStar(require("./CreateProjectRequest"), exports);
22
22
  __exportStar(require("./CreateUserRequest"), exports);
23
23
  __exportStar(require("./CreateUserRequestAvatar"), exports);
24
24
  __exportStar(require("./Integration"), exports);
25
- __exportStar(require("./IntegrationInfo"), exports);
26
25
  __exportStar(require("./IntegrationsResponse"), exports);
27
26
  __exportStar(require("./Project"), exports);
28
27
  __exportStar(require("./ProjectInvite"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.0
5
+ * The version of the OpenAPI document: 1.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.5.0
8
+ * The version of the OpenAPI document: 1.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,6 +60,7 @@ import {
60
60
 
61
61
  export interface AcceptInviteRequest {
62
62
  project: string;
63
+ token: string;
63
64
  }
64
65
 
65
66
  export interface CreateInviteOperationRequest {
@@ -92,11 +93,7 @@ export interface GetIntegrationRequest {
92
93
 
93
94
  export interface GetIntegrationsRequest {
94
95
  project: string;
95
- }
96
-
97
- export interface GetInviteTokenRequest {
98
- project: string;
99
- token: string;
96
+ withUninstalled?: boolean;
100
97
  }
101
98
 
102
99
  export interface GetInvitesRequest {
@@ -126,6 +123,11 @@ export interface InstallTemplateRequest {
126
123
  template: string;
127
124
  }
128
125
 
126
+ export interface RevokeInviteRequest {
127
+ project: string;
128
+ createInviteRequest: CreateInviteRequest;
129
+ }
130
+
129
131
  export interface UninstallIntegrationRequest {
130
132
  project: string;
131
133
  integration: string;
@@ -148,30 +150,25 @@ export interface UpdateUserOperationRequest {
148
150
  export class ProjectsApi extends runtime.BaseAPI {
149
151
 
150
152
  /**
151
- * accepts an invite to the project
152
- * accepts an invite
153
+ * Gets the invite token from the email and uses it to associate the user with the project.
154
+ * gets the invite token
153
155
  */
154
156
  async acceptInviteRaw(requestParameters: AcceptInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
155
157
  if (requestParameters.project === null || requestParameters.project === undefined) {
156
158
  throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling acceptInvite.');
157
159
  }
158
160
 
161
+ if (requestParameters.token === null || requestParameters.token === undefined) {
162
+ throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling acceptInvite.');
163
+ }
164
+
159
165
  const queryParameters: any = {};
160
166
 
161
167
  const headerParameters: runtime.HTTPHeaders = {};
162
168
 
163
- if (this.configuration && this.configuration.accessToken) {
164
- // oauth required
165
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
166
- }
167
-
168
- if (this.configuration && this.configuration.apiKey) {
169
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
170
- }
171
-
172
169
  const response = await this.request({
173
- path: `/v1/projects/{project}/invites/accept`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
174
- method: 'POST',
170
+ path: `/v1/projects/{project}/invites/{token}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))),
171
+ method: 'GET',
175
172
  headers: headerParameters,
176
173
  query: queryParameters,
177
174
  }, initOverrides);
@@ -180,16 +177,16 @@ export class ProjectsApi extends runtime.BaseAPI {
180
177
  }
181
178
 
182
179
  /**
183
- * accepts an invite to the project
184
- * accepts an invite
180
+ * Gets the invite token from the email and uses it to associate the user with the project.
181
+ * gets the invite token
185
182
  */
186
183
  async acceptInvite(
187
- project: string,
184
+ project: string, token: string,
188
185
  initOverrides?: RequestInit | runtime.InitOverrideFunction
189
186
  ): Promise<void> {
190
187
  await this.acceptInviteRaw(
191
188
  {
192
- project: project,
189
+ project: project,token: token,
193
190
  },
194
191
  initOverrides
195
192
  );
@@ -527,6 +524,10 @@ export class ProjectsApi extends runtime.BaseAPI {
527
524
 
528
525
  const queryParameters: any = {};
529
526
 
527
+ if (requestParameters.withUninstalled !== undefined) {
528
+ queryParameters['withUninstalled'] = requestParameters.withUninstalled;
529
+ }
530
+
530
531
  const headerParameters: runtime.HTTPHeaders = {};
531
532
 
532
533
  if (this.configuration && this.configuration.accessToken) {
@@ -554,11 +555,13 @@ export class ProjectsApi extends runtime.BaseAPI {
554
555
  */
555
556
  async getIntegrations(
556
557
  project: string,
558
+ optionalParameters: runtime.OptionalOnly<GetIntegrationsRequest> = {},
557
559
  initOverrides?: RequestInit | runtime.InitOverrideFunction
558
560
  ): Promise<IntegrationsResponse> {
559
561
  const response = await this.getIntegrationsRaw(
560
562
  {
561
563
  project: project,
564
+ ...optionalParameters,
562
565
  },
563
566
  initOverrides
564
567
  );
@@ -566,58 +569,6 @@ export class ProjectsApi extends runtime.BaseAPI {
566
569
  return await response.value();
567
570
  }
568
571
 
569
- /**
570
- * gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
571
- * gets the invite token
572
- */
573
- async getInviteTokenRaw(requestParameters: GetInviteTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
574
- if (requestParameters.project === null || requestParameters.project === undefined) {
575
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling getInviteToken.');
576
- }
577
-
578
- if (requestParameters.token === null || requestParameters.token === undefined) {
579
- throw new runtime.RequiredError('token','Required parameter requestParameters.token was null or undefined when calling getInviteToken.');
580
- }
581
-
582
- const queryParameters: any = {};
583
-
584
- const headerParameters: runtime.HTTPHeaders = {};
585
-
586
- if (this.configuration && this.configuration.accessToken) {
587
- // oauth required
588
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
589
- }
590
-
591
- if (this.configuration && this.configuration.apiKey) {
592
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
593
- }
594
-
595
- const response = await this.request({
596
- path: `/v1/projects/{project}/invites/{token}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"token"}}`, encodeURIComponent(String(requestParameters.token))),
597
- method: 'GET',
598
- headers: headerParameters,
599
- query: queryParameters,
600
- }, initOverrides);
601
-
602
- return new runtime.VoidApiResponse(response);
603
- }
604
-
605
- /**
606
- * gets the invite token and sets it in the session. This is used to ensure the user accepting the invitation is the invited user.
607
- * gets the invite token
608
- */
609
- async getInviteToken(
610
- project: string, token: string,
611
- initOverrides?: RequestInit | runtime.InitOverrideFunction
612
- ): Promise<void> {
613
- await this.getInviteTokenRaw(
614
- {
615
- project: project,token: token,
616
- },
617
- initOverrides
618
- );
619
- }
620
-
621
572
  /**
622
573
  * List the invites associated with a project
623
574
  * List Invites
@@ -974,6 +925,61 @@ export class ProjectsApi extends runtime.BaseAPI {
974
925
  return await response.value();
975
926
  }
976
927
 
928
+ /**
929
+ * revokes an invite to the project
930
+ * revokes an invite
931
+ */
932
+ async revokeInviteRaw(requestParameters: RevokeInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
933
+ if (requestParameters.project === null || requestParameters.project === undefined) {
934
+ throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling revokeInvite.');
935
+ }
936
+
937
+ if (requestParameters.createInviteRequest === null || requestParameters.createInviteRequest === undefined) {
938
+ throw new runtime.RequiredError('createInviteRequest','Required parameter requestParameters.createInviteRequest was null or undefined when calling revokeInvite.');
939
+ }
940
+
941
+ const queryParameters: any = {};
942
+
943
+ const headerParameters: runtime.HTTPHeaders = {};
944
+
945
+ headerParameters['Content-Type'] = 'application/json';
946
+
947
+ if (this.configuration && this.configuration.accessToken) {
948
+ // oauth required
949
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
950
+ }
951
+
952
+ if (this.configuration && this.configuration.apiKey) {
953
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
954
+ }
955
+
956
+ const response = await this.request({
957
+ path: `/v1/projects/{project}/invites/revoke`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))),
958
+ method: 'POST',
959
+ headers: headerParameters,
960
+ query: queryParameters,
961
+ body: CreateInviteRequestToJSON(requestParameters.createInviteRequest),
962
+ }, initOverrides);
963
+
964
+ return new runtime.VoidApiResponse(response);
965
+ }
966
+
967
+ /**
968
+ * revokes an invite to the project
969
+ * revokes an invite
970
+ */
971
+ async revokeInvite(
972
+ project: string, createInviteRequest: CreateInviteRequest,
973
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
974
+ ): Promise<void> {
975
+ await this.revokeInviteRaw(
976
+ {
977
+ project: project,createInviteRequest: createInviteRequest,
978
+ },
979
+ initOverrides
980
+ );
981
+ }
982
+
977
983
  /**
978
984
  * Uninstall a projects integration
979
985
  * Uninstall integration
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.0
7
+ * The version of the OpenAPI document: 1.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).