@lessly/sdk-app 70.0.0 → 70.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 +6 -1
- package/dist/_types/gen/organization/index.d.ts +1 -1
- package/dist/_types/gen/organization/queryOptions.gen.d.ts +13 -1
- package/dist/_types/gen/types.gen.d.ts +161 -0
- package/dist/{chunk-GFP6RQ7Z.js → chunk-C3QGKPUY.js} +75 -2
- package/dist/{chunk-GFP6RQ7Z.js.map → chunk-C3QGKPUY.js.map} +1 -1
- package/dist/index.cjs +76 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/organization/index.cjs +15 -0
- package/dist/organization/index.cjs.map +1 -1
- package/dist/organization/index.js +13 -1
- package/dist/organization/index.js.map +1 -1
- package/dist/playground/index.cjs.map +1 -1
- package/dist/playground/index.js +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +73 -0
- package/src/gen/client.gen.ts +11 -0
- package/src/gen/manifest.gen.ts +3 -0
- package/src/gen/organization/index.ts +1 -1
- package/src/gen/organization/queryOptions.gen.ts +20 -0
- package/src/gen/types.gen.ts +167 -0
package/dist/playground/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "70.
|
|
3
|
+
"version": "70.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -219,5 +219,5 @@
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
|
-
"sdkContentHash": "sha256:
|
|
222
|
+
"sdkContentHash": "sha256:b330423a42caeb2ca26f4dc3be8060169053da6f290b2aada525cd4c8e5f999b"
|
|
223
223
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -6896,6 +6896,79 @@ export const bindings: BindingsMap = {
|
|
|
6896
6896
|
"readOnly": false
|
|
6897
6897
|
}
|
|
6898
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
|
+
},
|
|
6899
6972
|
"public-keys": {
|
|
6900
6973
|
"create": {
|
|
6901
6974
|
"level": "write",
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -719,6 +719,12 @@ import type {
|
|
|
719
719
|
OrganizationPrincipalGrantsRevokeOutput,
|
|
720
720
|
OrganizationProductCreateInput,
|
|
721
721
|
OrganizationProductCreateOutput,
|
|
722
|
+
OrganizationProductErasureGetInput,
|
|
723
|
+
OrganizationProductErasureGetOutput,
|
|
724
|
+
OrganizationProductErasureListInput,
|
|
725
|
+
OrganizationProductErasureListOutput,
|
|
726
|
+
OrganizationProductErasureRequestInput,
|
|
727
|
+
OrganizationProductErasureRequestOutput,
|
|
722
728
|
OrganizationProductListAccessInput,
|
|
723
729
|
OrganizationProductListAccessOutput,
|
|
724
730
|
OrganizationProductListInput,
|
|
@@ -1862,6 +1868,11 @@ export interface GeneratedClient {
|
|
|
1862
1868
|
'set-access': ((input: OrganizationProductSetAccessInput) => Promise<OrganizationProductSetAccessOutput>) & Operation;
|
|
1863
1869
|
update: ((input: OrganizationProductUpdateInput) => Promise<OrganizationProductUpdateOutput>) & Operation;
|
|
1864
1870
|
};
|
|
1871
|
+
'product-erasure': {
|
|
1872
|
+
get: ((input: OrganizationProductErasureGetInput) => Promise<OrganizationProductErasureGetOutput>) & Operation;
|
|
1873
|
+
list: ((input: OrganizationProductErasureListInput) => Promise<OrganizationProductErasureListOutput>) & Operation;
|
|
1874
|
+
request: ((input: OrganizationProductErasureRequestInput) => Promise<OrganizationProductErasureRequestOutput>) & Operation;
|
|
1875
|
+
};
|
|
1865
1876
|
'public-keys': {
|
|
1866
1877
|
create: ((input: OrganizationPublicKeysCreateInput) => Promise<OrganizationPublicKeysCreateOutput>) & Operation;
|
|
1867
1878
|
list: ((input: OrganizationPublicKeysListInput) => Promise<OrganizationPublicKeysListOutput>) & Operation;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -363,6 +363,9 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
363
363
|
'organization_principal-grants_list': 'read',
|
|
364
364
|
'organization_principal-grants_revoke': 'admin',
|
|
365
365
|
'organization_product_create': 'write',
|
|
366
|
+
'organization_product_erasure_get': 'read',
|
|
367
|
+
'organization_product_erasure_list': 'read',
|
|
368
|
+
'organization_product_erasure_request': 'write',
|
|
366
369
|
'organization_product_list': 'read',
|
|
367
370
|
'organization_product_list-access': 'read',
|
|
368
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, OrganizationPrincipalGrantsApproveInput, OrganizationPrincipalGrantsApproveOutput, OrganizationPrincipalGrantsListInput, OrganizationPrincipalGrantsListOutput, OrganizationPrincipalGrantsRevokeInput, OrganizationPrincipalGrantsRevokeOutput, 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';
|
|
@@ -81,6 +81,11 @@ import type {
|
|
|
81
81
|
OrganizationPrincipalGrantsListOutput,
|
|
82
82
|
OrganizationPrincipalGrantsRevokeInput,
|
|
83
83
|
OrganizationProductCreateInput,
|
|
84
|
+
OrganizationProductErasureGetInput,
|
|
85
|
+
OrganizationProductErasureGetOutput,
|
|
86
|
+
OrganizationProductErasureListInput,
|
|
87
|
+
OrganizationProductErasureListOutput,
|
|
88
|
+
OrganizationProductErasureRequestInput,
|
|
84
89
|
OrganizationProductListAccessInput,
|
|
85
90
|
OrganizationProductListAccessOutput,
|
|
86
91
|
OrganizationProductListInput,
|
|
@@ -417,6 +422,21 @@ export const organizationProductCreateMutationOptions = (sdk: GeneratedClient) =
|
|
|
417
422
|
mutationFn: (input: OrganizationProductCreateInput) => sdk['organization']['product']['create'](input),
|
|
418
423
|
});
|
|
419
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
|
+
|
|
420
440
|
export const organizationProductListQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListInput) => ({
|
|
421
441
|
queryKey: ['organization', 'product', 'list', input] as const,
|
|
422
442
|
queryFn: () => sdk['organization']['product']['list'](input),
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -85319,6 +85319,173 @@ description: (string | null)
|
|
|
85319
85319
|
organizationId: string
|
|
85320
85320
|
}
|
|
85321
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
|
+
|
|
85322
85489
|
export interface OrganizationProductListInput {
|
|
85323
85490
|
|
|
85324
85491
|
}
|