-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix foundry.security -> foundry.admin break (#510)
* Change special casing of undefined namespace to also include Core namespace * Regenerate foundry platform SDK * Change undefined check to null check * Add changesets
- Loading branch information
1 parent
034f7ea
commit 9405a3e
Showing
47 changed files
with
2,120 additions
and
867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@osdk/foundry.thirdpartyapplications": minor | ||
"@osdk/internal.foundry.ontologiesv2": minor | ||
"@osdk/internal.foundry.ontologies": minor | ||
"@osdk/internal.foundry.datasets": minor | ||
"@osdk/internal.foundry.models": minor | ||
"@osdk/internal.foundry.core": minor | ||
"@osdk/e2e.sandbox.catchall": minor | ||
"@osdk/foundry.datasets": minor | ||
"@osdk/internal.foundry": minor | ||
"@osdk/foundry.admin": minor | ||
"@osdk/foundry.core": minor | ||
"@osdk/foundry": minor | ||
--- | ||
|
||
Bump api-gateway to 1.891.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@osdk/platform-sdk-generator": minor | ||
--- | ||
|
||
Handle new Core namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
/* | ||
* Copyright 2024 Palantir Technologies, Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import type { | ||
OrganizationRid, | ||
PageSize, | ||
PageToken, | ||
PrincipalId, | ||
PrincipalType, | ||
Realm, | ||
} from "@osdk/foundry.core"; | ||
|
||
export type LooselyBrandedString<T extends string> = string & { | ||
__LOOSE_BRAND?: T; | ||
}; | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface AddGroupMembersRequest { | ||
principalIds: Array<PrincipalId>; | ||
expiration?: GroupMembershipExpiration; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export type AttributeName = LooselyBrandedString<"AttributeName">; | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export type AttributeValue = LooselyBrandedString<"AttributeValue">; | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export type AttributeValues = Array<AttributeValue>; | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface CreateGroupRequest { | ||
name: GroupName; | ||
organizations: Array<OrganizationRid>; | ||
description?: string; | ||
attributes: Record<AttributeName, AttributeValues>; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface GetGroupsBatchRequestElement { | ||
groupId: PrincipalId; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface GetGroupsBatchResponse { | ||
data: Record<PrincipalId, Group>; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface GetUsersBatchRequestElement { | ||
userId: PrincipalId; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface GetUsersBatchResponse { | ||
data: Record<PrincipalId, User>; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface Group { | ||
id: PrincipalId; | ||
name: GroupName; | ||
description?: string; | ||
realm: Realm; | ||
organizations: Array<OrganizationRid>; | ||
attributes: Record<AttributeName, AttributeValues>; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface GroupMember { | ||
principalType: PrincipalType; | ||
principalId: PrincipalId; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface GroupMembership { | ||
groupId: PrincipalId; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export type GroupMembershipExpiration = string; | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export type GroupName = LooselyBrandedString<"GroupName">; | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface GroupSearchFilter { | ||
type: PrincipalFilterType; | ||
value: string; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface ListGroupMembersResponse { | ||
data: Array<GroupMember>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface ListGroupMembershipsResponse { | ||
data: Array<GroupMembership>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface ListGroupsResponse { | ||
data: Array<Group>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface ListUsersResponse { | ||
data: Array<User>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export type PrincipalFilterType = "queryString"; | ||
|
||
/** | ||
* Log Safety: SAFE | ||
*/ | ||
export interface RemoveGroupMembersRequest { | ||
principalIds: Array<PrincipalId>; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface SearchGroupsRequest { | ||
where: GroupSearchFilter; | ||
pageSize?: PageSize; | ||
pageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface SearchGroupsResponse { | ||
data: Array<Group>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface SearchUsersRequest { | ||
where: UserSearchFilter; | ||
pageSize?: PageSize; | ||
pageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface SearchUsersResponse { | ||
data: Array<User>; | ||
nextPageToken?: PageToken; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface User { | ||
id: PrincipalId; | ||
username: UserUsername; | ||
givenName?: string; | ||
familyName?: string; | ||
email?: string; | ||
realm: Realm; | ||
organization?: OrganizationRid; | ||
attributes: Record<AttributeName, AttributeValues>; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export interface UserSearchFilter { | ||
type: PrincipalFilterType; | ||
value: string; | ||
} | ||
|
||
/** | ||
* Log Safety: UNSAFE | ||
*/ | ||
export type UserUsername = LooselyBrandedString<"UserUsername">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.