@daocloud-proto/ghippo 0.11.1 → 0.11.2-dev-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.11.1",
3
+ "version":"0.11.2-dev-1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -10,18 +10,18 @@ export enum ProviderType {
10
10
  oidc = "oidc",
11
11
  }
12
12
 
13
- export enum ClientAuthMethod {
13
+ export enum ClientAuthentications {
14
14
  client_secret_post = "client_secret_post",
15
- client_secret_sent_as_basic_auth = "client_secret_sent_as_basic_auth",
16
- client_secret_as_jwt = "client_secret_as_jwt",
17
- jwt_signed_with_private_key = "jwt_signed_with_private_key",
15
+ client_secret_basic = "client_secret_basic",
16
+ client_secret_jwt = "client_secret_jwt",
17
+ private_key_jwt = "private_key_jwt",
18
18
  }
19
19
 
20
20
  export type CreateIDPRequest = {
21
21
  displayName?: string
22
22
  clientId?: string
23
23
  clientSecret?: string
24
- clientAuthMethod?: ClientAuthMethod
24
+ clientAuthentications?: ClientAuthentications
25
25
  providerId?: ProviderType
26
26
  authorizationUrl?: string
27
27
  userInfoUrl?: string
@@ -40,7 +40,7 @@ export type GetIDPResponse = {
40
40
  displayName?: string
41
41
  clientId?: string
42
42
  clientSecret?: string
43
- clientAuthMethod?: ClientAuthMethod
43
+ clientAuthentications?: ClientAuthentications
44
44
  providerId?: ProviderType
45
45
  authorizationUrl?: string
46
46
  userInfoUrl?: string
@@ -66,7 +66,7 @@ export type UpdateIDPRequest = {
66
66
  displayName?: string
67
67
  clientId?: string
68
68
  clientSecret?: string
69
- clientAuthMethod?: ClientAuthMethod
69
+ clientAuthentications?: ClientAuthentications
70
70
  providerId?: ProviderType
71
71
  authorizationUrl?: string
72
72
  userInfoUrl?: string
@@ -78,18 +78,6 @@ export type WorkspacesResourceInfo = {
78
78
  module?: string
79
79
  }
80
80
 
81
- export type ListResourcesRequest = {
82
- page?: number
83
- pageSize?: number
84
- resourceName?: string
85
- resourceType?: string
86
- }
87
-
88
- export type ListResourcesResponse = {
89
- items?: ResourceInfo[]
90
- pagination?: Pagination
91
- }
92
-
93
81
  export type ListExclusiveResourcesByWorkspaceRequest = {
94
82
  page?: number
95
83
  pageSize?: number
@@ -471,9 +459,6 @@ export class Workspace {
471
459
  static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
472
460
  return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
473
461
  }
474
- static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
475
- return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
476
- }
477
462
  static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
478
463
  return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
479
464
  }