@sparkelf/dsh-dataops-managed 0.3.30 → 0.3.31
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/lib/client.js +137 -137
- package/lib/index.js +12 -1
- package/lib/types/resource-management-api.d.ts +2 -5
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -747,22 +747,22 @@ window.__ModuleLoader__.load({
|
|
|
747
747
|
document.head.appendChild(tag);
|
|
748
748
|
}
|
|
749
749
|
var ManagedDataOpsSection_module_css_default = {
|
|
750
|
-
"
|
|
750
|
+
"status": "_2dqzjG_status",
|
|
751
|
+
"row": "_2dqzjG_row",
|
|
751
752
|
"meta": "_2dqzjG_meta",
|
|
752
|
-
"
|
|
753
|
-
"reviewHint": "_2dqzjG_reviewHint",
|
|
754
|
-
"reviewRow": "_2dqzjG_reviewRow",
|
|
755
|
-
"label": "_2dqzjG_label",
|
|
756
|
-
"refusal": "_2dqzjG_refusal",
|
|
757
|
-
"heading": "_2dqzjG_heading",
|
|
753
|
+
"section": "_2dqzjG_section",
|
|
758
754
|
"copy": "_2dqzjG_copy",
|
|
755
|
+
"fields": "_2dqzjG_fields",
|
|
756
|
+
"heading": "_2dqzjG_heading",
|
|
757
|
+
"label": "_2dqzjG_label",
|
|
758
|
+
"reviewHint": "_2dqzjG_reviewHint",
|
|
759
759
|
"reviewRows": "_2dqzjG_reviewRows",
|
|
760
|
+
"title": "_2dqzjG_title",
|
|
760
761
|
"actions": "_2dqzjG_actions",
|
|
761
|
-
"
|
|
762
|
-
"
|
|
762
|
+
"refusal": "_2dqzjG_refusal",
|
|
763
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
763
764
|
"reviewActions": "_2dqzjG_reviewActions",
|
|
764
|
-
"
|
|
765
|
-
"row": "_2dqzjG_row"
|
|
765
|
+
"card": "_2dqzjG_card"
|
|
766
766
|
};
|
|
767
767
|
//#endregion
|
|
768
768
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1618,23 +1618,23 @@ window.__ModuleLoader__.load({
|
|
|
1618
1618
|
}
|
|
1619
1619
|
var NotificationBell_module_css_default = {
|
|
1620
1620
|
"rowMeta": "tE0trG_rowMeta",
|
|
1621
|
-
"
|
|
1622
|
-
"rowBody": "tE0trG_rowBody",
|
|
1623
|
-
"demo": "tE0trG_demo",
|
|
1624
|
-
"linkButton": "tE0trG_linkButton",
|
|
1625
|
-
"pager": "tE0trG_pager",
|
|
1621
|
+
"bell": "tE0trG_bell",
|
|
1626
1622
|
"badge": "tE0trG_badge",
|
|
1623
|
+
"linkButton": "tE0trG_linkButton",
|
|
1627
1624
|
"rowTitle": "tE0trG_rowTitle",
|
|
1628
|
-
"
|
|
1629
|
-
"list": "tE0trG_list",
|
|
1630
|
-
"rowTime": "tE0trG_rowTime",
|
|
1625
|
+
"pager": "tE0trG_pager",
|
|
1631
1626
|
"rowText": "tE0trG_rowText",
|
|
1627
|
+
"list": "tE0trG_list",
|
|
1628
|
+
"rowBody": "tE0trG_rowBody",
|
|
1632
1629
|
"button": "tE0trG_button",
|
|
1633
|
-
"
|
|
1630
|
+
"dot": "tE0trG_dot",
|
|
1631
|
+
"rowIcon": "tE0trG_rowIcon",
|
|
1634
1632
|
"actions": "tE0trG_actions",
|
|
1635
|
-
"
|
|
1633
|
+
"demo": "tE0trG_demo",
|
|
1634
|
+
"empty": "tE0trG_empty",
|
|
1636
1635
|
"dialog": "tE0trG_dialog",
|
|
1637
|
-
"
|
|
1636
|
+
"row": "tE0trG_row",
|
|
1637
|
+
"rowTime": "tE0trG_rowTime"
|
|
1638
1638
|
};
|
|
1639
1639
|
//#endregion
|
|
1640
1640
|
//#region src/client/NotificationBell.tsx
|
|
@@ -1925,62 +1925,62 @@ window.__ModuleLoader__.load({
|
|
|
1925
1925
|
document.head.appendChild(tag);
|
|
1926
1926
|
}
|
|
1927
1927
|
var SkillPlazaSection_module_css_default = {
|
|
1928
|
-
"
|
|
1929
|
-
"
|
|
1930
|
-
"
|
|
1931
|
-
"
|
|
1928
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
1929
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
1930
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
1931
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
1932
|
+
"severity": "_9FdZvq_severity",
|
|
1932
1933
|
"finding": "_9FdZvq_finding",
|
|
1933
|
-
"
|
|
1934
|
-
"
|
|
1934
|
+
"findingText": "_9FdZvq_findingText",
|
|
1935
|
+
"audit": "_9FdZvq_audit",
|
|
1936
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
1937
|
+
"findingHint": "_9FdZvq_findingHint",
|
|
1938
|
+
"riskFailed": "_9FdZvq_riskFailed",
|
|
1939
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
1940
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
1941
|
+
"findings": "_9FdZvq_findings",
|
|
1942
|
+
"mine": "_9FdZvq_mine",
|
|
1943
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
1944
|
+
"dialog": "_9FdZvq_dialog",
|
|
1935
1945
|
"auditDialog": "_9FdZvq_auditDialog",
|
|
1936
|
-
"
|
|
1937
|
-
"
|
|
1938
|
-
"
|
|
1939
|
-
"
|
|
1940
|
-
"
|
|
1946
|
+
"notice": "_9FdZvq_notice",
|
|
1947
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
1948
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
1949
|
+
"risk": "_9FdZvq_risk",
|
|
1950
|
+
"noteField": "_9FdZvq_noteField",
|
|
1951
|
+
"card": "_9FdZvq_card",
|
|
1952
|
+
"empty": "_9FdZvq_empty",
|
|
1953
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
1954
|
+
"title": "_9FdZvq_title",
|
|
1941
1955
|
"departmentBar": "_9FdZvq_departmentBar",
|
|
1942
|
-
"
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1945
|
-
"
|
|
1946
|
-
"findingHint": "_9FdZvq_findingHint",
|
|
1956
|
+
"tabs": "_9FdZvq_tabs",
|
|
1957
|
+
"status": "_9FdZvq_status",
|
|
1958
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
1959
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
1947
1960
|
"cards": "_9FdZvq_cards",
|
|
1948
1961
|
"titleCount": "_9FdZvq_titleCount",
|
|
1949
|
-
"tabActive": "_9FdZvq_tabActive",
|
|
1950
|
-
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1951
|
-
"severity": "_9FdZvq_severity",
|
|
1952
|
-
"cardMarks": "_9FdZvq_cardMarks",
|
|
1953
|
-
"reviewError": "_9FdZvq_reviewError",
|
|
1954
|
-
"cardDesc": "_9FdZvq_cardDesc",
|
|
1955
|
-
"mark": "_9FdZvq_mark",
|
|
1956
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
1957
|
-
"demoTag": "_9FdZvq_demoTag",
|
|
1958
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
1959
|
-
"cardEnd": "_9FdZvq_cardEnd",
|
|
1960
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
1961
|
-
"tabCount": "_9FdZvq_tabCount",
|
|
1962
|
-
"audit": "_9FdZvq_audit",
|
|
1963
1962
|
"cardIcon": "_9FdZvq_cardIcon",
|
|
1964
1963
|
"detail": "_9FdZvq_detail",
|
|
1965
|
-
"
|
|
1966
|
-
"section": "_9FdZvq_section",
|
|
1967
|
-
"detailLabel": "_9FdZvq_detailLabel",
|
|
1964
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
1968
1965
|
"emptyText": "_9FdZvq_emptyText",
|
|
1969
|
-
"findingText": "_9FdZvq_findingText",
|
|
1970
|
-
"riskHead": "_9FdZvq_riskHead",
|
|
1971
|
-
"noteField": "_9FdZvq_noteField",
|
|
1972
|
-
"headRow": "_9FdZvq_headRow",
|
|
1973
|
-
"findings": "_9FdZvq_findings",
|
|
1974
1966
|
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
1975
|
-
"
|
|
1976
|
-
"
|
|
1977
|
-
"
|
|
1978
|
-
"
|
|
1967
|
+
"riskSummary": "_9FdZvq_riskSummary",
|
|
1968
|
+
"head": "_9FdZvq_head",
|
|
1969
|
+
"cardMarks": "_9FdZvq_cardMarks",
|
|
1970
|
+
"tabCount": "_9FdZvq_tabCount",
|
|
1971
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
1972
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
1973
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
1974
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
1975
|
+
"detailValue": "_9FdZvq_detailValue",
|
|
1976
|
+
"mark": "_9FdZvq_mark",
|
|
1977
|
+
"section": "_9FdZvq_section",
|
|
1979
1978
|
"reviewButton": "_9FdZvq_reviewButton",
|
|
1980
|
-
"
|
|
1981
|
-
"
|
|
1982
|
-
"
|
|
1983
|
-
"
|
|
1979
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
1980
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
1981
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
1982
|
+
"headRow": "_9FdZvq_headRow",
|
|
1983
|
+
"tab": "_9FdZvq_tab"
|
|
1984
1984
|
};
|
|
1985
1985
|
//#endregion
|
|
1986
1986
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2646,17 +2646,17 @@ window.__ModuleLoader__.load({
|
|
|
2646
2646
|
}
|
|
2647
2647
|
var WanxiangBrand_module_css_default = {
|
|
2648
2648
|
"animatedMark": "s0HPxG_animatedMark",
|
|
2649
|
-
"sidebarName": "s0HPxG_sidebarName",
|
|
2650
|
-
"wordmark": "s0HPxG_wordmark",
|
|
2651
2649
|
"unit-right": "s0HPxG_unit-right",
|
|
2652
|
-
"
|
|
2653
|
-
"
|
|
2650
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
2651
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2654
2652
|
"unitCore": "s0HPxG_unitCore",
|
|
2653
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2654
|
+
"unit-left": "s0HPxG_unit-left",
|
|
2655
2655
|
"unitRight": "s0HPxG_unitRight",
|
|
2656
2656
|
"unit-core": "s0HPxG_unit-core",
|
|
2657
|
-
"
|
|
2658
|
-
"
|
|
2659
|
-
"
|
|
2657
|
+
"harness": "s0HPxG_harness",
|
|
2658
|
+
"unitTop": "s0HPxG_unitTop",
|
|
2659
|
+
"sidebarName": "s0HPxG_sidebarName",
|
|
2660
2660
|
"mark": "s0HPxG_mark"
|
|
2661
2661
|
};
|
|
2662
2662
|
//#endregion
|
|
@@ -3075,71 +3075,71 @@ window.__ModuleLoader__.load({
|
|
|
3075
3075
|
}
|
|
3076
3076
|
var PermissionCenterSection_module_css_default = {
|
|
3077
3077
|
"empty": "PNbOqW_empty",
|
|
3078
|
-
"combobox": "PNbOqW_combobox",
|
|
3079
|
-
"deptAdmins": "PNbOqW_deptAdmins",
|
|
3080
|
-
"candidates": "PNbOqW_candidates",
|
|
3081
|
-
"rowActions": "PNbOqW_rowActions",
|
|
3082
|
-
"comboboxList": "PNbOqW_comboboxList",
|
|
3083
|
-
"subtitle": "PNbOqW_subtitle",
|
|
3084
|
-
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3085
|
-
"error": "PNbOqW_error",
|
|
3086
|
-
"demo": "PNbOqW_demo",
|
|
3087
|
-
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3088
3078
|
"muted": "PNbOqW_muted",
|
|
3089
3079
|
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3090
|
-
"matrix": "PNbOqW_matrix",
|
|
3091
|
-
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3092
|
-
"department": "PNbOqW_department",
|
|
3093
|
-
"permission": "PNbOqW_permission",
|
|
3094
|
-
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3095
|
-
"pager": "PNbOqW_pager",
|
|
3096
|
-
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3097
3080
|
"permDescription": "PNbOqW_permDescription",
|
|
3098
|
-
"
|
|
3099
|
-
"
|
|
3100
|
-
"
|
|
3081
|
+
"rowActions": "PNbOqW_rowActions",
|
|
3082
|
+
"adminTag": "PNbOqW_adminTag",
|
|
3083
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
3101
3084
|
"permCopy": "PNbOqW_permCopy",
|
|
3102
|
-
"
|
|
3103
|
-
"
|
|
3104
|
-
"
|
|
3105
|
-
"
|
|
3106
|
-
"panelHead": "PNbOqW_panelHead",
|
|
3107
|
-
"field": "PNbOqW_field",
|
|
3108
|
-
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3109
|
-
"departments": "PNbOqW_departments",
|
|
3110
|
-
"readOnly": "PNbOqW_readOnly",
|
|
3085
|
+
"combobox": "PNbOqW_combobox",
|
|
3086
|
+
"matrix": "PNbOqW_matrix",
|
|
3087
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3088
|
+
"tabs": "PNbOqW_tabs",
|
|
3111
3089
|
"candidate": "PNbOqW_candidate",
|
|
3112
|
-
"
|
|
3113
|
-
"
|
|
3114
|
-
"
|
|
3115
|
-
"
|
|
3116
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3117
|
-
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3118
|
-
"table": "PNbOqW_table",
|
|
3090
|
+
"department": "PNbOqW_department",
|
|
3091
|
+
"panelHead": "PNbOqW_panelHead",
|
|
3092
|
+
"demo": "PNbOqW_demo",
|
|
3093
|
+
"tabActive": "PNbOqW_tabActive",
|
|
3119
3094
|
"notice": "PNbOqW_notice",
|
|
3120
|
-
"
|
|
3121
|
-
"
|
|
3122
|
-
"
|
|
3123
|
-
"protected": "PNbOqW_protected",
|
|
3095
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
3096
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
3097
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
3124
3098
|
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3129
|
-
"tabActive": "PNbOqW_tabActive",
|
|
3099
|
+
"candidates": "PNbOqW_candidates",
|
|
3100
|
+
"waiting": "PNbOqW_waiting",
|
|
3101
|
+
"table": "PNbOqW_table",
|
|
3130
3102
|
"panel": "PNbOqW_panel",
|
|
3131
|
-
"
|
|
3103
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
3104
|
+
"treeToggle": "PNbOqW_treeToggle",
|
|
3132
3105
|
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3133
|
-
"
|
|
3134
|
-
"
|
|
3135
|
-
"
|
|
3106
|
+
"field": "PNbOqW_field",
|
|
3107
|
+
"error": "PNbOqW_error",
|
|
3108
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3109
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
3110
|
+
"page": "PNbOqW_page",
|
|
3111
|
+
"treeRow": "PNbOqW_treeRow",
|
|
3112
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
3136
3113
|
"dialogHint": "PNbOqW_dialogHint",
|
|
3137
|
-
"
|
|
3138
|
-
"
|
|
3114
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3115
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3116
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3117
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
3118
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3119
|
+
"tab": "PNbOqW_tab",
|
|
3120
|
+
"tableScroll": "PNbOqW_tableScroll",
|
|
3121
|
+
"departments": "PNbOqW_departments",
|
|
3139
3122
|
"dialog": "PNbOqW_dialog",
|
|
3140
|
-
"
|
|
3141
|
-
"
|
|
3142
|
-
"
|
|
3123
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3124
|
+
"search": "PNbOqW_search",
|
|
3125
|
+
"permission": "PNbOqW_permission",
|
|
3126
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3127
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3128
|
+
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3129
|
+
"deptAdmins": "PNbOqW_deptAdmins",
|
|
3130
|
+
"treeActions": "PNbOqW_treeActions",
|
|
3131
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
3132
|
+
"protected": "PNbOqW_protected",
|
|
3133
|
+
"copied": "PNbOqW_copied",
|
|
3134
|
+
"treeName": "PNbOqW_treeName",
|
|
3135
|
+
"readOnly": "PNbOqW_readOnly",
|
|
3136
|
+
"pager": "PNbOqW_pager",
|
|
3137
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
3138
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3139
|
+
"subtitle": "PNbOqW_subtitle",
|
|
3140
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
3141
|
+
"head": "PNbOqW_head",
|
|
3142
|
+
"title": "PNbOqW_title"
|
|
3143
3143
|
};
|
|
3144
3144
|
//#endregion
|
|
3145
3145
|
//#region src/client/combobox.ts
|
|
@@ -4568,18 +4568,18 @@ window.__ModuleLoader__.load({
|
|
|
4568
4568
|
document.head.appendChild(tag);
|
|
4569
4569
|
}
|
|
4570
4570
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4571
|
-
"error": "razUfG_error",
|
|
4572
4571
|
"sessionPath": "razUfG_sessionPath",
|
|
4573
|
-
"
|
|
4574
|
-
"banner": "razUfG_banner",
|
|
4575
|
-
"sessionRow": "razUfG_sessionRow",
|
|
4572
|
+
"dialogText": "razUfG_dialogText",
|
|
4576
4573
|
"dialogBody": "razUfG_dialogBody",
|
|
4577
|
-
"
|
|
4574
|
+
"error": "razUfG_error",
|
|
4575
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4576
|
+
"banner": "razUfG_banner",
|
|
4577
|
+
"copy": "razUfG_copy",
|
|
4578
4578
|
"actions": "razUfG_actions",
|
|
4579
|
-
"dialogText": "razUfG_dialogText",
|
|
4580
4579
|
"sessionList": "razUfG_sessionList",
|
|
4581
|
-
"
|
|
4582
|
-
"
|
|
4580
|
+
"body": "razUfG_body",
|
|
4581
|
+
"sessionTitle": "razUfG_sessionTitle",
|
|
4582
|
+
"title": "razUfG_title"
|
|
4583
4583
|
};
|
|
4584
4584
|
//#endregion
|
|
4585
4585
|
//#region src/client/WorkspaceUpgradePrompt.tsx
|
package/lib/index.js
CHANGED
|
@@ -1250,6 +1250,11 @@ var CollectApi = class {
|
|
|
1250
1250
|
};
|
|
1251
1251
|
//#endregion
|
|
1252
1252
|
//#region src/resource-management-api.ts
|
|
1253
|
+
/**
|
|
1254
|
+
* DataOps resource-management transport: pending approval tasks, existing access grants,
|
|
1255
|
+
* batch grant/revoke, and approval decisions. Disclosure is handled by tool-scope; this file
|
|
1256
|
+
* only speaks to the existing DataOps APIs.
|
|
1257
|
+
*/
|
|
1253
1258
|
const reasonOf = (body) => {
|
|
1254
1259
|
if (typeof body !== "object" || body === null || Array.isArray(body)) return "";
|
|
1255
1260
|
const record = body;
|
|
@@ -1307,6 +1312,7 @@ var ResourceManagementApi = class {
|
|
|
1307
1312
|
const action = decision.decision === "approve" ? "complete" : "reject";
|
|
1308
1313
|
return this.call("/api/tasks/" + decision.taskId.toString() + "/user-tasks/" + encodeURIComponent(decision.userTaskId) + "/" + action, {
|
|
1309
1314
|
method: "POST",
|
|
1315
|
+
headers: { "idempotency-key": decision.idempotencyKey?.trim() || "dataops-managed-" + randomUUID() },
|
|
1310
1316
|
body: JSON.stringify({
|
|
1311
1317
|
expectedVersion: decision.expectedVersion ?? 0,
|
|
1312
1318
|
comment: decision.comment?.trim() || (decision.decision === "approve" ? "同意" : "驳回")
|
|
@@ -2591,6 +2597,10 @@ function buildAiManagementTools(ctx, reviewApi, readScope, collectHub) {
|
|
|
2591
2597
|
expected_version: {
|
|
2592
2598
|
type: "number",
|
|
2593
2599
|
description: "Current taskVersion; read from task detail when omitted."
|
|
2600
|
+
},
|
|
2601
|
+
idempotency_key: {
|
|
2602
|
+
type: "string",
|
|
2603
|
+
description: "Optional replay key; reuse the original key to retry a timed-out command."
|
|
2594
2604
|
}
|
|
2595
2605
|
},
|
|
2596
2606
|
additionalProperties: false
|
|
@@ -2628,7 +2638,8 @@ function buildAiManagementTools(ctx, reviewApi, readScope, collectHub) {
|
|
|
2628
2638
|
userTaskId,
|
|
2629
2639
|
decision: action,
|
|
2630
2640
|
comment: decision.comment,
|
|
2631
|
-
expectedVersion
|
|
2641
|
+
expectedVersion,
|
|
2642
|
+
idempotencyKey: decision.idempotency_key
|
|
2632
2643
|
});
|
|
2633
2644
|
results.push({
|
|
2634
2645
|
taskId,
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataOps resource-management transport: pending approval tasks, existing access grants,
|
|
3
|
-
* batch grant/revoke, and approval decisions. Disclosure is handled by tool-scope; this file
|
|
4
|
-
* only speaks to the existing DataOps APIs.
|
|
5
|
-
*/
|
|
6
1
|
import type { ReviewApi } from './review-api.ts';
|
|
7
2
|
export type ResourceGrantTargetType = 'USER' | 'ROLE' | 'DEPARTMENT' | 'APPLICATION';
|
|
8
3
|
export type ResourceGrantPermission = 'READ' | 'WRITE' | 'MANAGE';
|
|
@@ -20,6 +15,8 @@ export interface PendingTaskDecision {
|
|
|
20
15
|
decision: 'approve' | 'reject';
|
|
21
16
|
comment?: string;
|
|
22
17
|
expectedVersion?: number;
|
|
18
|
+
/** Optional replay key; omit for a fresh generated key. */
|
|
19
|
+
idempotencyKey?: string;
|
|
23
20
|
}
|
|
24
21
|
/** Thin typed wrapper over the existing DataOps REST endpoints. */
|
|
25
22
|
export declare class ResourceManagementApi {
|
package/package.json
CHANGED