@lessly/sdk-app 71.0.1 → 71.1.0
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/dist/_types/gen/client.gen.d.ts +11 -1
- package/dist/_types/gen/organization/index.d.ts +1 -1
- package/dist/_types/gen/organization/queryOptions.gen.d.ts +25 -1
- package/dist/_types/gen/types.gen.d.ts +232 -0
- package/dist/index.cjs +152 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +152 -0
- package/dist/index.js.map +1 -1
- package/dist/organization/index.cjs +30 -0
- package/dist/organization/index.cjs.map +1 -1
- package/dist/organization/index.js +25 -1
- package/dist/organization/index.js.map +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +146 -0
- package/src/gen/client.gen.ts +22 -0
- package/src/gen/manifest.gen.ts +6 -0
- package/src/gen/organization/index.ts +1 -1
- package/src/gen/organization/queryOptions.gen.ts +39 -0
- package/src/gen/types.gen.ts +244 -0
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -6659,6 +6659,79 @@ export const bindings: BindingsMap = {
|
|
|
6659
6659
|
"readOnly": true
|
|
6660
6660
|
}
|
|
6661
6661
|
},
|
|
6662
|
+
"principal-grants": {
|
|
6663
|
+
"approve": {
|
|
6664
|
+
"level": "write",
|
|
6665
|
+
"method": "POST",
|
|
6666
|
+
"operationKey": "organization_principal-grants_approve",
|
|
6667
|
+
"params": [
|
|
6668
|
+
{
|
|
6669
|
+
"in": "path",
|
|
6670
|
+
"name": "productId"
|
|
6671
|
+
},
|
|
6672
|
+
{
|
|
6673
|
+
"in": "body",
|
|
6674
|
+
"name": "principalKind"
|
|
6675
|
+
},
|
|
6676
|
+
{
|
|
6677
|
+
"in": "body",
|
|
6678
|
+
"name": "principalId"
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
"in": "body",
|
|
6682
|
+
"name": "tools"
|
|
6683
|
+
}
|
|
6684
|
+
],
|
|
6685
|
+
"path": "/governance/api/v1/products/:productId/principal-grants/approve",
|
|
6686
|
+
"readOnly": false
|
|
6687
|
+
},
|
|
6688
|
+
"list": {
|
|
6689
|
+
"level": "read",
|
|
6690
|
+
"method": "GET",
|
|
6691
|
+
"operationKey": "organization_principal-grants_list",
|
|
6692
|
+
"params": [
|
|
6693
|
+
{
|
|
6694
|
+
"in": "path",
|
|
6695
|
+
"name": "productId"
|
|
6696
|
+
},
|
|
6697
|
+
{
|
|
6698
|
+
"in": "query",
|
|
6699
|
+
"name": "principalKind"
|
|
6700
|
+
}
|
|
6701
|
+
],
|
|
6702
|
+
"path": "/governance/api/v1/products/:productId/principal-grants",
|
|
6703
|
+
"readOnly": true
|
|
6704
|
+
},
|
|
6705
|
+
"revoke": {
|
|
6706
|
+
"level": "admin",
|
|
6707
|
+
"method": "POST",
|
|
6708
|
+
"operationKey": "organization_principal-grants_revoke",
|
|
6709
|
+
"params": [
|
|
6710
|
+
{
|
|
6711
|
+
"in": "path",
|
|
6712
|
+
"name": "productId"
|
|
6713
|
+
},
|
|
6714
|
+
{
|
|
6715
|
+
"in": "body",
|
|
6716
|
+
"name": "principalKind"
|
|
6717
|
+
},
|
|
6718
|
+
{
|
|
6719
|
+
"in": "body",
|
|
6720
|
+
"name": "principalId"
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
"in": "body",
|
|
6724
|
+
"name": "tools"
|
|
6725
|
+
},
|
|
6726
|
+
{
|
|
6727
|
+
"in": "body",
|
|
6728
|
+
"name": "reason"
|
|
6729
|
+
}
|
|
6730
|
+
],
|
|
6731
|
+
"path": "/governance/api/v1/products/:productId/principal-grants/revoke",
|
|
6732
|
+
"readOnly": false
|
|
6733
|
+
}
|
|
6734
|
+
},
|
|
6662
6735
|
"product": {
|
|
6663
6736
|
"create": {
|
|
6664
6737
|
"level": "write",
|
|
@@ -6823,6 +6896,79 @@ export const bindings: BindingsMap = {
|
|
|
6823
6896
|
"readOnly": false
|
|
6824
6897
|
}
|
|
6825
6898
|
},
|
|
6899
|
+
"product-erasure": {
|
|
6900
|
+
"get": {
|
|
6901
|
+
"level": "read",
|
|
6902
|
+
"method": "GET",
|
|
6903
|
+
"operationKey": "organization_product_erasure_get",
|
|
6904
|
+
"params": [
|
|
6905
|
+
{
|
|
6906
|
+
"in": "path",
|
|
6907
|
+
"name": "productId"
|
|
6908
|
+
},
|
|
6909
|
+
{
|
|
6910
|
+
"in": "path",
|
|
6911
|
+
"name": "requestId"
|
|
6912
|
+
}
|
|
6913
|
+
],
|
|
6914
|
+
"path": "/governance/api/v1/products/:productId/erasure/:requestId",
|
|
6915
|
+
"readOnly": true
|
|
6916
|
+
},
|
|
6917
|
+
"list": {
|
|
6918
|
+
"level": "read",
|
|
6919
|
+
"method": "GET",
|
|
6920
|
+
"operationKey": "organization_product_erasure_list",
|
|
6921
|
+
"params": [
|
|
6922
|
+
{
|
|
6923
|
+
"in": "path",
|
|
6924
|
+
"name": "productId"
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
"in": "query",
|
|
6928
|
+
"name": "status"
|
|
6929
|
+
},
|
|
6930
|
+
{
|
|
6931
|
+
"in": "query",
|
|
6932
|
+
"name": "after"
|
|
6933
|
+
},
|
|
6934
|
+
{
|
|
6935
|
+
"in": "query",
|
|
6936
|
+
"name": "limit"
|
|
6937
|
+
}
|
|
6938
|
+
],
|
|
6939
|
+
"path": "/governance/api/v1/products/:productId/erasure",
|
|
6940
|
+
"readOnly": true
|
|
6941
|
+
},
|
|
6942
|
+
"request": {
|
|
6943
|
+
"level": "write",
|
|
6944
|
+
"method": "POST",
|
|
6945
|
+
"operationKey": "organization_product_erasure_request",
|
|
6946
|
+
"params": [
|
|
6947
|
+
{
|
|
6948
|
+
"in": "path",
|
|
6949
|
+
"name": "productId"
|
|
6950
|
+
},
|
|
6951
|
+
{
|
|
6952
|
+
"in": "body",
|
|
6953
|
+
"name": "emails"
|
|
6954
|
+
},
|
|
6955
|
+
{
|
|
6956
|
+
"in": "body",
|
|
6957
|
+
"name": "phones"
|
|
6958
|
+
},
|
|
6959
|
+
{
|
|
6960
|
+
"in": "body",
|
|
6961
|
+
"name": "externalIds"
|
|
6962
|
+
},
|
|
6963
|
+
{
|
|
6964
|
+
"in": "body",
|
|
6965
|
+
"name": "name"
|
|
6966
|
+
}
|
|
6967
|
+
],
|
|
6968
|
+
"path": "/governance/api/v1/products/:productId/erasure",
|
|
6969
|
+
"readOnly": false
|
|
6970
|
+
}
|
|
6971
|
+
},
|
|
6826
6972
|
"public-keys": {
|
|
6827
6973
|
"create": {
|
|
6828
6974
|
"level": "write",
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -711,8 +711,20 @@ import type {
|
|
|
711
711
|
OrganizationMembersAssignRoleOutput,
|
|
712
712
|
OrganizationPermissionCatalogInput,
|
|
713
713
|
OrganizationPermissionCatalogOutput,
|
|
714
|
+
OrganizationPrincipalGrantsApproveInput,
|
|
715
|
+
OrganizationPrincipalGrantsApproveOutput,
|
|
716
|
+
OrganizationPrincipalGrantsListInput,
|
|
717
|
+
OrganizationPrincipalGrantsListOutput,
|
|
718
|
+
OrganizationPrincipalGrantsRevokeInput,
|
|
719
|
+
OrganizationPrincipalGrantsRevokeOutput,
|
|
714
720
|
OrganizationProductCreateInput,
|
|
715
721
|
OrganizationProductCreateOutput,
|
|
722
|
+
OrganizationProductErasureGetInput,
|
|
723
|
+
OrganizationProductErasureGetOutput,
|
|
724
|
+
OrganizationProductErasureListInput,
|
|
725
|
+
OrganizationProductErasureListOutput,
|
|
726
|
+
OrganizationProductErasureRequestInput,
|
|
727
|
+
OrganizationProductErasureRequestOutput,
|
|
716
728
|
OrganizationProductListAccessInput,
|
|
717
729
|
OrganizationProductListAccessOutput,
|
|
718
730
|
OrganizationProductListInput,
|
|
@@ -1811,6 +1823,11 @@ export interface GeneratedClient {
|
|
|
1811
1823
|
permission: {
|
|
1812
1824
|
catalog: ((input: OrganizationPermissionCatalogInput) => Promise<OrganizationPermissionCatalogOutput>) & Operation;
|
|
1813
1825
|
};
|
|
1826
|
+
'principal-grants': {
|
|
1827
|
+
approve: ((input: OrganizationPrincipalGrantsApproveInput) => Promise<OrganizationPrincipalGrantsApproveOutput>) & Operation;
|
|
1828
|
+
list: ((input: OrganizationPrincipalGrantsListInput) => Promise<OrganizationPrincipalGrantsListOutput>) & Operation;
|
|
1829
|
+
revoke: ((input: OrganizationPrincipalGrantsRevokeInput) => Promise<OrganizationPrincipalGrantsRevokeOutput>) & Operation;
|
|
1830
|
+
};
|
|
1814
1831
|
product: {
|
|
1815
1832
|
create: ((input: OrganizationProductCreateInput) => Promise<OrganizationProductCreateOutput>) & Operation;
|
|
1816
1833
|
list: ((input: OrganizationProductListInput) => Promise<OrganizationProductListOutput>) & Operation;
|
|
@@ -1823,6 +1840,11 @@ export interface GeneratedClient {
|
|
|
1823
1840
|
'set-access': ((input: OrganizationProductSetAccessInput) => Promise<OrganizationProductSetAccessOutput>) & Operation;
|
|
1824
1841
|
update: ((input: OrganizationProductUpdateInput) => Promise<OrganizationProductUpdateOutput>) & Operation;
|
|
1825
1842
|
};
|
|
1843
|
+
'product-erasure': {
|
|
1844
|
+
get: ((input: OrganizationProductErasureGetInput) => Promise<OrganizationProductErasureGetOutput>) & Operation;
|
|
1845
|
+
list: ((input: OrganizationProductErasureListInput) => Promise<OrganizationProductErasureListOutput>) & Operation;
|
|
1846
|
+
request: ((input: OrganizationProductErasureRequestInput) => Promise<OrganizationProductErasureRequestOutput>) & Operation;
|
|
1847
|
+
};
|
|
1826
1848
|
'public-keys': {
|
|
1827
1849
|
create: ((input: OrganizationPublicKeysCreateInput) => Promise<OrganizationPublicKeysCreateOutput>) & Operation;
|
|
1828
1850
|
list: ((input: OrganizationPublicKeysListInput) => Promise<OrganizationPublicKeysListOutput>) & Operation;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -359,7 +359,13 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
359
359
|
'organization_member_unshare-product': 'admin',
|
|
360
360
|
'organization_members_assign-role': 'admin',
|
|
361
361
|
'organization_permission_catalog': 'read',
|
|
362
|
+
'organization_principal-grants_approve': 'write',
|
|
363
|
+
'organization_principal-grants_list': 'read',
|
|
364
|
+
'organization_principal-grants_revoke': 'admin',
|
|
362
365
|
'organization_product_create': 'write',
|
|
366
|
+
'organization_product_erasure_get': 'read',
|
|
367
|
+
'organization_product_erasure_list': 'read',
|
|
368
|
+
'organization_product_erasure_request': 'write',
|
|
363
369
|
'organization_product_list': 'read',
|
|
364
370
|
'organization_product_list-access': 'read',
|
|
365
371
|
'organization_product_list-members': 'read',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { OrganizationAuthMeInput, OrganizationAuthMeOutput, OrganizationBillingBudgetsGetInput, OrganizationBillingBudgetsGetOutput, OrganizationBillingCapsClearInput, OrganizationBillingCapsClearOutput, OrganizationBillingCapsSetInput, OrganizationBillingCapsSetOutput, OrganizationBindingsListInput, OrganizationBindingsListOutput, OrganizationClickupInstallInput, OrganizationClickupInstallOutput, OrganizationClickupListInstallationsInput, OrganizationClickupListInstallationsOutput, OrganizationCloudflareInstallInput, OrganizationCloudflareInstallOutput, OrganizationConnectorsApproveRequestInput, OrganizationConnectorsApproveRequestOutput, OrganizationConnectorsAttachInput, OrganizationConnectorsAttachOutput, OrganizationConnectorsDeleteInput, OrganizationConnectorsDeleteOutput, OrganizationConnectorsDenyRequestInput, OrganizationConnectorsDenyRequestOutput, OrganizationConnectorsDetachInput, OrganizationConnectorsDetachOutput, OrganizationConnectorsListAttachmentsInput, OrganizationConnectorsListAttachmentsOutput, OrganizationConnectorsListAvailableInput, OrganizationConnectorsListAvailableOutput, OrganizationConnectorsListInput, OrganizationConnectorsListOrgInput, OrganizationConnectorsListOrgOutput, OrganizationConnectorsListOutput, OrganizationConnectorsListRequestsInput, OrganizationConnectorsListRequestsOutput, OrganizationConnectorsRemoveInput, OrganizationConnectorsRemoveOutput, OrganizationConnectorsRequestInput, OrganizationConnectorsRequestOutput, OrganizationCreateInput, OrganizationCreateOutput, OrganizationDomainsAddInput, OrganizationDomainsAddOutput, OrganizationDomainsGetInput, OrganizationDomainsGetOutput, OrganizationDomainsListInput, OrganizationDomainsListOutput, OrganizationDomainsRemoveInput, OrganizationDomainsRemoveOutput, OrganizationDomainsSetModeInput, OrganizationDomainsSetModeOutput, OrganizationExtensionsListInstalledInput, OrganizationExtensionsListInstalledOutput, OrganizationFeedbackSubmitInput, OrganizationFeedbackSubmitOutput, OrganizationGdriveInstallInput, OrganizationGdriveInstallOutput, OrganizationGithubInstallInput, OrganizationGithubInstallOutput, OrganizationGithubListInstallationsInput, OrganizationGithubListInstallationsOutput, OrganizationGoogleadsInstallInput, OrganizationGoogleadsInstallOutput, OrganizationGroupsCreateInput, OrganizationGroupsCreateOutput, OrganizationGroupsDeleteInput, OrganizationGroupsDeleteOutput, OrganizationGroupsGetInput, OrganizationGroupsGetOutput, OrganizationGroupsGrantRemoveInput, OrganizationGroupsGrantRemoveOutput, OrganizationGroupsGrantSetInput, OrganizationGroupsGrantSetOutput, OrganizationGroupsListInput, OrganizationGroupsListOutput, OrganizationGroupsMemberAddInput, OrganizationGroupsMemberAddOutput, OrganizationGroupsMemberRemoveInput, OrganizationGroupsMemberRemoveOutput, OrganizationGroupsUpdateInput, OrganizationGroupsUpdateOutput, OrganizationLinkedinMemberInstallInput, OrganizationLinkedinMemberInstallOutput, OrganizationListInput, OrganizationListOutput, OrganizationMemberAcceptInviteInput, OrganizationMemberAcceptInviteOutput, OrganizationMemberInviteInput, OrganizationMemberInviteOutput, OrganizationMemberListInput, OrganizationMemberListInvitationsInput, OrganizationMemberListInvitationsOutput, OrganizationMemberListOutput, OrganizationMemberListProductAccessInput, OrganizationMemberListProductAccessOutput, OrganizationMemberRemoveInput, OrganizationMemberRemoveOutput, OrganizationMemberRevokeInvitationInput, OrganizationMemberRevokeInvitationOutput, OrganizationMemberSetRoleInput, OrganizationMemberSetRoleOutput, OrganizationMemberShareProductInput, OrganizationMemberShareProductOutput, OrganizationMemberUnshareProductInput, OrganizationMemberUnshareProductOutput, OrganizationMembersAssignRoleInput, OrganizationMembersAssignRoleOutput, OrganizationPermissionCatalogInput, OrganizationPermissionCatalogOutput, OrganizationProductCreateInput, OrganizationProductCreateOutput, OrganizationProductListAccessInput, OrganizationProductListAccessOutput, OrganizationProductListInput, OrganizationProductListMembersInput, OrganizationProductListMembersOutput, OrganizationProductListOutput, OrganizationProductListRolesInput, OrganizationProductListRolesOutput, OrganizationProductMeInput, OrganizationProductMeOutput, OrganizationProductRevokeAccessInput, OrganizationProductRevokeAccessOutput, OrganizationProductSelectInput, OrganizationProductSelectOutput, OrganizationProductSetAccessInput, OrganizationProductSetAccessOutput, OrganizationProductUpdateInput, OrganizationProductUpdateOutput, OrganizationPublicKeysCreateInput, OrganizationPublicKeysCreateOutput, OrganizationPublicKeysListInput, OrganizationPublicKeysListOutput, OrganizationPublicKeysRevokeInput, OrganizationPublicKeysRevokeOutput, OrganizationPublicKeysUpdateScopeInput, OrganizationPublicKeysUpdateScopeOutput, OrganizationPublicRoutesListInput, OrganizationPublicRoutesListOutput, OrganizationRedditInstallInput, OrganizationRedditInstallOutput, OrganizationRolesCreateInput, OrganizationRolesCreateOutput, OrganizationRolesDeleteInput, OrganizationRolesDeleteOutput, OrganizationRolesGetInput, OrganizationRolesGetOutput, OrganizationRolesListInput, OrganizationRolesListOutput, OrganizationRolesUpdateInput, OrganizationRolesUpdateOutput, OrganizationSecurityMfaEnableInput, OrganizationSecurityMfaEnableOutput, OrganizationSelectInput, OrganizationSelectOutput, OrganizationSupportThreadCreateInput, OrganizationSupportThreadCreateOutput, OrganizationSupportThreadGetInput, OrganizationSupportThreadGetOutput, OrganizationSupportThreadReplyInput, OrganizationSupportThreadReplyOutput, OrganizationSupportThreadsListInput, OrganizationSupportThreadsListOutput, OrganizationXInstallInput, OrganizationXInstallOutput, OrganizationYoutubeInstallInput, OrganizationYoutubeInstallOutput } from '../types.gen';
|
|
3
|
+
export type { OrganizationAuthMeInput, OrganizationAuthMeOutput, OrganizationBillingBudgetsGetInput, OrganizationBillingBudgetsGetOutput, OrganizationBillingCapsClearInput, OrganizationBillingCapsClearOutput, OrganizationBillingCapsSetInput, OrganizationBillingCapsSetOutput, OrganizationBindingsListInput, OrganizationBindingsListOutput, OrganizationClickupInstallInput, OrganizationClickupInstallOutput, OrganizationClickupListInstallationsInput, OrganizationClickupListInstallationsOutput, OrganizationCloudflareInstallInput, OrganizationCloudflareInstallOutput, OrganizationConnectorsApproveRequestInput, OrganizationConnectorsApproveRequestOutput, OrganizationConnectorsAttachInput, OrganizationConnectorsAttachOutput, OrganizationConnectorsDeleteInput, OrganizationConnectorsDeleteOutput, OrganizationConnectorsDenyRequestInput, OrganizationConnectorsDenyRequestOutput, OrganizationConnectorsDetachInput, OrganizationConnectorsDetachOutput, OrganizationConnectorsListAttachmentsInput, OrganizationConnectorsListAttachmentsOutput, OrganizationConnectorsListAvailableInput, OrganizationConnectorsListAvailableOutput, OrganizationConnectorsListInput, OrganizationConnectorsListOrgInput, OrganizationConnectorsListOrgOutput, OrganizationConnectorsListOutput, OrganizationConnectorsListRequestsInput, OrganizationConnectorsListRequestsOutput, OrganizationConnectorsRemoveInput, OrganizationConnectorsRemoveOutput, OrganizationConnectorsRequestInput, OrganizationConnectorsRequestOutput, OrganizationCreateInput, OrganizationCreateOutput, OrganizationDomainsAddInput, OrganizationDomainsAddOutput, OrganizationDomainsGetInput, OrganizationDomainsGetOutput, OrganizationDomainsListInput, OrganizationDomainsListOutput, OrganizationDomainsRemoveInput, OrganizationDomainsRemoveOutput, OrganizationDomainsSetModeInput, OrganizationDomainsSetModeOutput, OrganizationExtensionsListInstalledInput, OrganizationExtensionsListInstalledOutput, OrganizationFeedbackSubmitInput, OrganizationFeedbackSubmitOutput, OrganizationGdriveInstallInput, OrganizationGdriveInstallOutput, OrganizationGithubInstallInput, OrganizationGithubInstallOutput, OrganizationGithubListInstallationsInput, OrganizationGithubListInstallationsOutput, OrganizationGoogleadsInstallInput, OrganizationGoogleadsInstallOutput, OrganizationGroupsCreateInput, OrganizationGroupsCreateOutput, OrganizationGroupsDeleteInput, OrganizationGroupsDeleteOutput, OrganizationGroupsGetInput, OrganizationGroupsGetOutput, OrganizationGroupsGrantRemoveInput, OrganizationGroupsGrantRemoveOutput, OrganizationGroupsGrantSetInput, OrganizationGroupsGrantSetOutput, OrganizationGroupsListInput, OrganizationGroupsListOutput, OrganizationGroupsMemberAddInput, OrganizationGroupsMemberAddOutput, OrganizationGroupsMemberRemoveInput, OrganizationGroupsMemberRemoveOutput, OrganizationGroupsUpdateInput, OrganizationGroupsUpdateOutput, OrganizationLinkedinMemberInstallInput, OrganizationLinkedinMemberInstallOutput, OrganizationListInput, OrganizationListOutput, OrganizationMemberAcceptInviteInput, OrganizationMemberAcceptInviteOutput, OrganizationMemberInviteInput, OrganizationMemberInviteOutput, OrganizationMemberListInput, OrganizationMemberListInvitationsInput, OrganizationMemberListInvitationsOutput, OrganizationMemberListOutput, OrganizationMemberListProductAccessInput, OrganizationMemberListProductAccessOutput, OrganizationMemberRemoveInput, OrganizationMemberRemoveOutput, OrganizationMemberRevokeInvitationInput, OrganizationMemberRevokeInvitationOutput, OrganizationMemberSetRoleInput, OrganizationMemberSetRoleOutput, OrganizationMemberShareProductInput, OrganizationMemberShareProductOutput, OrganizationMemberUnshareProductInput, OrganizationMemberUnshareProductOutput, OrganizationMembersAssignRoleInput, OrganizationMembersAssignRoleOutput, OrganizationPermissionCatalogInput, OrganizationPermissionCatalogOutput, OrganizationPrincipalGrantsApproveInput, OrganizationPrincipalGrantsApproveOutput, OrganizationPrincipalGrantsListInput, OrganizationPrincipalGrantsListOutput, OrganizationPrincipalGrantsRevokeInput, OrganizationPrincipalGrantsRevokeOutput, OrganizationProductCreateInput, OrganizationProductCreateOutput, OrganizationProductErasureGetInput, OrganizationProductErasureGetOutput, OrganizationProductErasureListInput, OrganizationProductErasureListOutput, OrganizationProductErasureRequestInput, OrganizationProductErasureRequestOutput, OrganizationProductListAccessInput, OrganizationProductListAccessOutput, OrganizationProductListInput, OrganizationProductListMembersInput, OrganizationProductListMembersOutput, OrganizationProductListOutput, OrganizationProductListRolesInput, OrganizationProductListRolesOutput, OrganizationProductMeInput, OrganizationProductMeOutput, OrganizationProductRevokeAccessInput, OrganizationProductRevokeAccessOutput, OrganizationProductSelectInput, OrganizationProductSelectOutput, OrganizationProductSetAccessInput, OrganizationProductSetAccessOutput, OrganizationProductUpdateInput, OrganizationProductUpdateOutput, OrganizationPublicKeysCreateInput, OrganizationPublicKeysCreateOutput, OrganizationPublicKeysListInput, OrganizationPublicKeysListOutput, OrganizationPublicKeysRevokeInput, OrganizationPublicKeysRevokeOutput, OrganizationPublicKeysUpdateScopeInput, OrganizationPublicKeysUpdateScopeOutput, OrganizationPublicRoutesListInput, OrganizationPublicRoutesListOutput, OrganizationRedditInstallInput, OrganizationRedditInstallOutput, OrganizationRolesCreateInput, OrganizationRolesCreateOutput, OrganizationRolesDeleteInput, OrganizationRolesDeleteOutput, OrganizationRolesGetInput, OrganizationRolesGetOutput, OrganizationRolesListInput, OrganizationRolesListOutput, OrganizationRolesUpdateInput, OrganizationRolesUpdateOutput, OrganizationSecurityMfaEnableInput, OrganizationSecurityMfaEnableOutput, OrganizationSelectInput, OrganizationSelectOutput, OrganizationSupportThreadCreateInput, OrganizationSupportThreadCreateOutput, OrganizationSupportThreadGetInput, OrganizationSupportThreadGetOutput, OrganizationSupportThreadReplyInput, OrganizationSupportThreadReplyOutput, OrganizationSupportThreadsListInput, OrganizationSupportThreadsListOutput, OrganizationXInstallInput, OrganizationXInstallOutput, OrganizationYoutubeInstallInput, OrganizationYoutubeInstallOutput } from '../types.gen';
|
|
@@ -76,7 +76,16 @@ import type {
|
|
|
76
76
|
OrganizationMembersAssignRoleInput,
|
|
77
77
|
OrganizationPermissionCatalogInput,
|
|
78
78
|
OrganizationPermissionCatalogOutput,
|
|
79
|
+
OrganizationPrincipalGrantsApproveInput,
|
|
80
|
+
OrganizationPrincipalGrantsListInput,
|
|
81
|
+
OrganizationPrincipalGrantsListOutput,
|
|
82
|
+
OrganizationPrincipalGrantsRevokeInput,
|
|
79
83
|
OrganizationProductCreateInput,
|
|
84
|
+
OrganizationProductErasureGetInput,
|
|
85
|
+
OrganizationProductErasureGetOutput,
|
|
86
|
+
OrganizationProductErasureListInput,
|
|
87
|
+
OrganizationProductErasureListOutput,
|
|
88
|
+
OrganizationProductErasureRequestInput,
|
|
80
89
|
OrganizationProductListAccessInput,
|
|
81
90
|
OrganizationProductListAccessOutput,
|
|
82
91
|
OrganizationProductListInput,
|
|
@@ -393,11 +402,41 @@ export const organizationPermissionCatalogQueryOptions = (sdk: GeneratedClient,
|
|
|
393
402
|
queryFn: () => sdk['organization']['permission']['catalog'](input),
|
|
394
403
|
});
|
|
395
404
|
|
|
405
|
+
export const organizationPrincipalGrantsApproveMutationOptions = (sdk: GeneratedClient) => ({
|
|
406
|
+
mutationKey: ['organization', 'principal-grants', 'approve'],
|
|
407
|
+
mutationFn: (input: OrganizationPrincipalGrantsApproveInput) => sdk['organization']['principal-grants']['approve'](input),
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
export const organizationPrincipalGrantsListQueryOptions = (sdk: GeneratedClient, input: OrganizationPrincipalGrantsListInput) => ({
|
|
411
|
+
queryKey: ['organization', 'principal-grants', 'list', input] as const,
|
|
412
|
+
queryFn: () => sdk['organization']['principal-grants']['list'](input),
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
export const organizationPrincipalGrantsRevokeMutationOptions = (sdk: GeneratedClient) => ({
|
|
416
|
+
mutationKey: ['organization', 'principal-grants', 'revoke'],
|
|
417
|
+
mutationFn: (input: OrganizationPrincipalGrantsRevokeInput) => sdk['organization']['principal-grants']['revoke'](input),
|
|
418
|
+
});
|
|
419
|
+
|
|
396
420
|
export const organizationProductCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
397
421
|
mutationKey: ['organization', 'product', 'create'],
|
|
398
422
|
mutationFn: (input: OrganizationProductCreateInput) => sdk['organization']['product']['create'](input),
|
|
399
423
|
});
|
|
400
424
|
|
|
425
|
+
export const organizationProductErasureGetQueryOptions = (sdk: GeneratedClient, input: OrganizationProductErasureGetInput) => ({
|
|
426
|
+
queryKey: ['organization', 'product-erasure', 'get', input] as const,
|
|
427
|
+
queryFn: () => sdk['organization']['product-erasure']['get'](input),
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
export const organizationProductErasureListQueryOptions = (sdk: GeneratedClient, input: OrganizationProductErasureListInput) => ({
|
|
431
|
+
queryKey: ['organization', 'product-erasure', 'list', input] as const,
|
|
432
|
+
queryFn: () => sdk['organization']['product-erasure']['list'](input),
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
export const organizationProductErasureRequestMutationOptions = (sdk: GeneratedClient) => ({
|
|
436
|
+
mutationKey: ['organization', 'product-erasure', 'request'],
|
|
437
|
+
mutationFn: (input: OrganizationProductErasureRequestInput) => sdk['organization']['product-erasure']['request'](input),
|
|
438
|
+
});
|
|
439
|
+
|
|
401
440
|
export const organizationProductListQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListInput) => ({
|
|
402
441
|
queryKey: ['organization', 'product', 'list', input] as const,
|
|
403
442
|
queryFn: () => sdk['organization']['product']['list'](input),
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -85220,6 +85220,83 @@ display_name: string
|
|
|
85220
85220
|
}[]
|
|
85221
85221
|
}
|
|
85222
85222
|
|
|
85223
|
+
export interface OrganizationPrincipalGrantsApproveInput {
|
|
85224
|
+
/**
|
|
85225
|
+
* @minItems 1
|
|
85226
|
+
* @maxItems 200
|
|
85227
|
+
*/
|
|
85228
|
+
tools: [string, ...(string)[]]
|
|
85229
|
+
productId: string
|
|
85230
|
+
principalId: string
|
|
85231
|
+
principalKind: "workflow"
|
|
85232
|
+
}
|
|
85233
|
+
|
|
85234
|
+
export interface OrganizationPrincipalGrantsApproveOutput {
|
|
85235
|
+
grants: {
|
|
85236
|
+
reason: (string | null)
|
|
85237
|
+
status: string
|
|
85238
|
+
sponsor: ({
|
|
85239
|
+
userId: (string | null)
|
|
85240
|
+
memberId: string
|
|
85241
|
+
} | null)
|
|
85242
|
+
toolKey: string
|
|
85243
|
+
approvedAt: (string | null)
|
|
85244
|
+
}[]
|
|
85245
|
+
pending: string[]
|
|
85246
|
+
effective: string[]
|
|
85247
|
+
productId: string
|
|
85248
|
+
principalId: string
|
|
85249
|
+
needsSponsor: string[]
|
|
85250
|
+
principalKind: "workflow"
|
|
85251
|
+
notSponsorable: string[]
|
|
85252
|
+
}
|
|
85253
|
+
|
|
85254
|
+
export interface OrganizationPrincipalGrantsListInput {
|
|
85255
|
+
productId: string
|
|
85256
|
+
principalKind?: "workflow"
|
|
85257
|
+
}
|
|
85258
|
+
|
|
85259
|
+
export interface OrganizationPrincipalGrantsListOutput {
|
|
85260
|
+
principals: {
|
|
85261
|
+
pending: string[]
|
|
85262
|
+
effective: string[]
|
|
85263
|
+
principalId: string
|
|
85264
|
+
needsSponsor: string[]
|
|
85265
|
+
principalKind: "workflow"
|
|
85266
|
+
}[]
|
|
85267
|
+
}
|
|
85268
|
+
|
|
85269
|
+
export interface OrganizationPrincipalGrantsRevokeInput {
|
|
85270
|
+
/**
|
|
85271
|
+
* @minItems 1
|
|
85272
|
+
* @maxItems 200
|
|
85273
|
+
*/
|
|
85274
|
+
tools?: [string, ...(string)[]]
|
|
85275
|
+
reason?: string
|
|
85276
|
+
productId: string
|
|
85277
|
+
principalId: string
|
|
85278
|
+
principalKind: "workflow"
|
|
85279
|
+
}
|
|
85280
|
+
|
|
85281
|
+
export interface OrganizationPrincipalGrantsRevokeOutput {
|
|
85282
|
+
grants: {
|
|
85283
|
+
reason: (string | null)
|
|
85284
|
+
status: string
|
|
85285
|
+
sponsor: ({
|
|
85286
|
+
userId: (string | null)
|
|
85287
|
+
memberId: string
|
|
85288
|
+
} | null)
|
|
85289
|
+
toolKey: string
|
|
85290
|
+
approvedAt: (string | null)
|
|
85291
|
+
}[]
|
|
85292
|
+
pending: string[]
|
|
85293
|
+
effective: string[]
|
|
85294
|
+
productId: string
|
|
85295
|
+
principalId: string
|
|
85296
|
+
needsSponsor: string[]
|
|
85297
|
+
principalKind: "workflow"
|
|
85298
|
+
}
|
|
85299
|
+
|
|
85223
85300
|
export interface OrganizationProductCreateInput {
|
|
85224
85301
|
name: string
|
|
85225
85302
|
region?: "eu"
|
|
@@ -85242,6 +85319,173 @@ description: (string | null)
|
|
|
85242
85319
|
organizationId: string
|
|
85243
85320
|
}
|
|
85244
85321
|
|
|
85322
|
+
export interface OrganizationProductErasureGetInput {
|
|
85323
|
+
/**
|
|
85324
|
+
* Product uuid, e.g. "3f6c1e2a-9c1e-4b1a-8f0e-2a7d5c9b1e34".
|
|
85325
|
+
*/
|
|
85326
|
+
productId: string
|
|
85327
|
+
/**
|
|
85328
|
+
* Erasure request uuid, e.g. "0192f3c1-4a55-7c3e-9a11-6f0b2d7e8c90".
|
|
85329
|
+
*/
|
|
85330
|
+
requestId: string
|
|
85331
|
+
}
|
|
85332
|
+
|
|
85333
|
+
export interface OrganizationProductErasureGetOutput {
|
|
85334
|
+
id: string
|
|
85335
|
+
acks: {
|
|
85336
|
+
at: string
|
|
85337
|
+
error?: string
|
|
85338
|
+
counts?: {
|
|
85339
|
+
[k: string]: number
|
|
85340
|
+
}
|
|
85341
|
+
result: ("erased" | "nothing_to_erase" | "failed")
|
|
85342
|
+
participant: string
|
|
85343
|
+
}[]
|
|
85344
|
+
dueAt: string
|
|
85345
|
+
status: ("scheduled" | "running" | "completed" | "partial" | "cancelled")
|
|
85346
|
+
productId: (string | null)
|
|
85347
|
+
startedAt?: string
|
|
85348
|
+
subjectId: string
|
|
85349
|
+
controller: string
|
|
85350
|
+
finishedAt?: string
|
|
85351
|
+
cancelledBy?: OrganizationProductErasureGetOutputRequestedBy
|
|
85352
|
+
requestedAt: string
|
|
85353
|
+
requestedBy: OrganizationProductErasureGetOutputRequestedBy
|
|
85354
|
+
subjectRefs?: {
|
|
85355
|
+
nameHashes?: string[]
|
|
85356
|
+
emailHashes?: string[]
|
|
85357
|
+
phoneHashes?: string[]
|
|
85358
|
+
externalIdHashes?: string[]
|
|
85359
|
+
}
|
|
85360
|
+
subjectType: "end_user"
|
|
85361
|
+
cancelReason?: string
|
|
85362
|
+
}
|
|
85363
|
+
export interface OrganizationProductErasureGetOutputRequestedBy {
|
|
85364
|
+
actorId?: string
|
|
85365
|
+
actorType: ("self" | "staff" | "tenant_operator" | "cascade")
|
|
85366
|
+
}
|
|
85367
|
+
|
|
85368
|
+
export interface OrganizationProductErasureListInput {
|
|
85369
|
+
/**
|
|
85370
|
+
* Cursor from the previous page's `next`, e.g. "0192f3c1-...".
|
|
85371
|
+
*/
|
|
85372
|
+
after?: string
|
|
85373
|
+
/**
|
|
85374
|
+
* Page size, 1-500, default 50.
|
|
85375
|
+
*/
|
|
85376
|
+
limit?: number
|
|
85377
|
+
/**
|
|
85378
|
+
* Request status filter, e.g. "scheduled".
|
|
85379
|
+
*/
|
|
85380
|
+
status?: ("scheduled" | "running" | "completed" | "partial" | "cancelled")
|
|
85381
|
+
/**
|
|
85382
|
+
* Product uuid, e.g. "3f6c1e2a-9c1e-4b1a-8f0e-2a7d5c9b1e34".
|
|
85383
|
+
*/
|
|
85384
|
+
productId: string
|
|
85385
|
+
}
|
|
85386
|
+
|
|
85387
|
+
export interface OrganizationProductErasureListOutput {
|
|
85388
|
+
next: (string | null)
|
|
85389
|
+
requests: {
|
|
85390
|
+
id: string
|
|
85391
|
+
acks: {
|
|
85392
|
+
at: string
|
|
85393
|
+
error?: string
|
|
85394
|
+
counts?: {
|
|
85395
|
+
[k: string]: number
|
|
85396
|
+
}
|
|
85397
|
+
result: ("erased" | "nothing_to_erase" | "failed")
|
|
85398
|
+
participant: string
|
|
85399
|
+
}[]
|
|
85400
|
+
dueAt: string
|
|
85401
|
+
status: ("scheduled" | "running" | "completed" | "partial" | "cancelled")
|
|
85402
|
+
productId: (string | null)
|
|
85403
|
+
startedAt?: string
|
|
85404
|
+
subjectId: string
|
|
85405
|
+
controller: string
|
|
85406
|
+
finishedAt?: string
|
|
85407
|
+
cancelledBy?: OrganizationProductErasureListOutputRequestedBy
|
|
85408
|
+
requestedAt: string
|
|
85409
|
+
requestedBy: OrganizationProductErasureListOutputRequestedBy
|
|
85410
|
+
subjectRefs?: {
|
|
85411
|
+
nameHashes?: string[]
|
|
85412
|
+
emailHashes?: string[]
|
|
85413
|
+
phoneHashes?: string[]
|
|
85414
|
+
externalIdHashes?: string[]
|
|
85415
|
+
}
|
|
85416
|
+
subjectType: "end_user"
|
|
85417
|
+
cancelReason?: string
|
|
85418
|
+
}[]
|
|
85419
|
+
}
|
|
85420
|
+
export interface OrganizationProductErasureListOutputRequestedBy {
|
|
85421
|
+
actorId?: string
|
|
85422
|
+
actorType: ("self" | "staff" | "tenant_operator" | "cascade")
|
|
85423
|
+
}
|
|
85424
|
+
|
|
85425
|
+
export interface OrganizationProductErasureRequestInput {
|
|
85426
|
+
/**
|
|
85427
|
+
* Display name of the end user, e.g. "Oleg Pravdikov". A weak match on its own; hashed on arrival.
|
|
85428
|
+
*/
|
|
85429
|
+
name?: string
|
|
85430
|
+
/**
|
|
85431
|
+
* Email addresses of the end user, 0-10, e.g. ["oleg@example.com"]. Hashed on arrival; never stored.
|
|
85432
|
+
*
|
|
85433
|
+
* @maxItems 10
|
|
85434
|
+
*/
|
|
85435
|
+
emails?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]
|
|
85436
|
+
/**
|
|
85437
|
+
* Phone numbers as the product stores them, 0-10, e.g. ["+7 999 123-45-67"]. Digits and a leading plus are kept; no country is inferred. Hashed on arrival; never stored.
|
|
85438
|
+
*
|
|
85439
|
+
* @maxItems 10
|
|
85440
|
+
*/
|
|
85441
|
+
phones?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]
|
|
85442
|
+
/**
|
|
85443
|
+
* Product uuid, e.g. "3f6c1e2a-9c1e-4b1a-8f0e-2a7d5c9b1e34".
|
|
85444
|
+
*/
|
|
85445
|
+
productId: string
|
|
85446
|
+
/**
|
|
85447
|
+
* Your own ids for the end user, 0-10, e.g. ["Cust-00417"]. Case is preserved; enough on their own to name the person. Hashed on arrival; never stored.
|
|
85448
|
+
*
|
|
85449
|
+
* @maxItems 10
|
|
85450
|
+
*/
|
|
85451
|
+
externalIds?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]
|
|
85452
|
+
}
|
|
85453
|
+
|
|
85454
|
+
export interface OrganizationProductErasureRequestOutput {
|
|
85455
|
+
id: string
|
|
85456
|
+
acks: {
|
|
85457
|
+
at: string
|
|
85458
|
+
error?: string
|
|
85459
|
+
counts?: {
|
|
85460
|
+
[k: string]: number
|
|
85461
|
+
}
|
|
85462
|
+
result: ("erased" | "nothing_to_erase" | "failed")
|
|
85463
|
+
participant: string
|
|
85464
|
+
}[]
|
|
85465
|
+
dueAt: string
|
|
85466
|
+
status: ("scheduled" | "running" | "completed" | "partial" | "cancelled")
|
|
85467
|
+
productId: (string | null)
|
|
85468
|
+
startedAt?: string
|
|
85469
|
+
subjectId: string
|
|
85470
|
+
controller: string
|
|
85471
|
+
finishedAt?: string
|
|
85472
|
+
cancelledBy?: OrganizationProductErasureRequestOutputRequestedBy
|
|
85473
|
+
requestedAt: string
|
|
85474
|
+
requestedBy: OrganizationProductErasureRequestOutputRequestedBy
|
|
85475
|
+
subjectRefs?: {
|
|
85476
|
+
nameHashes?: string[]
|
|
85477
|
+
emailHashes?: string[]
|
|
85478
|
+
phoneHashes?: string[]
|
|
85479
|
+
externalIdHashes?: string[]
|
|
85480
|
+
}
|
|
85481
|
+
subjectType: "end_user"
|
|
85482
|
+
cancelReason?: string
|
|
85483
|
+
}
|
|
85484
|
+
export interface OrganizationProductErasureRequestOutputRequestedBy {
|
|
85485
|
+
actorId?: string
|
|
85486
|
+
actorType: ("self" | "staff" | "tenant_operator" | "cascade")
|
|
85487
|
+
}
|
|
85488
|
+
|
|
85245
85489
|
export interface OrganizationProductListInput {
|
|
85246
85490
|
|
|
85247
85491
|
}
|