@alicloud/paimodelgallery20250630 1.0.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.
Files changed (131) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +25 -0
  3. package/dist/client.d.ts +243 -0
  4. package/dist/client.js +623 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/models/CreateJobPlanRequest.d.ts +118 -0
  7. package/dist/models/CreateJobPlanRequest.js +121 -0
  8. package/dist/models/CreateJobPlanRequest.js.map +1 -0
  9. package/dist/models/CreateJobPlanResponse.d.ts +19 -0
  10. package/dist/models/CreateJobPlanResponse.js +69 -0
  11. package/dist/models/CreateJobPlanResponse.js.map +1 -0
  12. package/dist/models/CreateJobPlanResponseBody.d.ts +29 -0
  13. package/dist/models/CreateJobPlanResponseBody.js +60 -0
  14. package/dist/models/CreateJobPlanResponseBody.js.map +1 -0
  15. package/dist/models/DeleteJobPlanRequest.d.ts +13 -0
  16. package/dist/models/DeleteJobPlanRequest.js +54 -0
  17. package/dist/models/DeleteJobPlanRequest.js.map +1 -0
  18. package/dist/models/DeleteJobPlanResponse.d.ts +19 -0
  19. package/dist/models/DeleteJobPlanResponse.js +69 -0
  20. package/dist/models/DeleteJobPlanResponse.js.map +1 -0
  21. package/dist/models/DeleteJobPlanResponseBody.d.ts +21 -0
  22. package/dist/models/DeleteJobPlanResponseBody.js +58 -0
  23. package/dist/models/DeleteJobPlanResponseBody.js.map +1 -0
  24. package/dist/models/DistillationTemplate.d.ts +301 -0
  25. package/dist/models/DistillationTemplate.js +231 -0
  26. package/dist/models/DistillationTemplate.js.map +1 -0
  27. package/dist/models/DistillationTemplateSummary.d.ts +142 -0
  28. package/dist/models/DistillationTemplateSummary.js +135 -0
  29. package/dist/models/DistillationTemplateSummary.js.map +1 -0
  30. package/dist/models/GetDistillationTemplateRequest.d.ts +13 -0
  31. package/dist/models/GetDistillationTemplateRequest.js +54 -0
  32. package/dist/models/GetDistillationTemplateRequest.js.map +1 -0
  33. package/dist/models/GetDistillationTemplateResponse.d.ts +19 -0
  34. package/dist/models/GetDistillationTemplateResponse.js +69 -0
  35. package/dist/models/GetDistillationTemplateResponse.js.map +1 -0
  36. package/dist/models/GetDistillationTemplateResponseBody.d.ts +27 -0
  37. package/dist/models/GetDistillationTemplateResponseBody.js +64 -0
  38. package/dist/models/GetDistillationTemplateResponseBody.js.map +1 -0
  39. package/dist/models/GetJobPlanRequest.d.ts +13 -0
  40. package/dist/models/GetJobPlanRequest.js +54 -0
  41. package/dist/models/GetJobPlanRequest.js.map +1 -0
  42. package/dist/models/GetJobPlanResponse.d.ts +19 -0
  43. package/dist/models/GetJobPlanResponse.js +69 -0
  44. package/dist/models/GetJobPlanResponse.js.map +1 -0
  45. package/dist/models/GetJobPlanResponseBody.d.ts +190 -0
  46. package/dist/models/GetJobPlanResponseBody.js +139 -0
  47. package/dist/models/GetJobPlanResponseBody.js.map +1 -0
  48. package/dist/models/JobPlan.d.ts +72 -0
  49. package/dist/models/JobPlan.js +137 -0
  50. package/dist/models/JobPlan.js.map +1 -0
  51. package/dist/models/ListDistillationTemplatesRequest.d.ts +53 -0
  52. package/dist/models/ListDistillationTemplatesRequest.js +66 -0
  53. package/dist/models/ListDistillationTemplatesRequest.js.map +1 -0
  54. package/dist/models/ListDistillationTemplatesResponse.d.ts +19 -0
  55. package/dist/models/ListDistillationTemplatesResponse.js +69 -0
  56. package/dist/models/ListDistillationTemplatesResponse.js.map +1 -0
  57. package/dist/models/ListDistillationTemplatesResponseBody.d.ts +51 -0
  58. package/dist/models/ListDistillationTemplatesResponseBody.js +70 -0
  59. package/dist/models/ListDistillationTemplatesResponseBody.js.map +1 -0
  60. package/dist/models/ListJobPlansRequest.d.ts +122 -0
  61. package/dist/models/ListJobPlansRequest.js +100 -0
  62. package/dist/models/ListJobPlansRequest.js.map +1 -0
  63. package/dist/models/ListJobPlansResponse.d.ts +19 -0
  64. package/dist/models/ListJobPlansResponse.js +69 -0
  65. package/dist/models/ListJobPlansResponse.js.map +1 -0
  66. package/dist/models/ListJobPlansResponseBody.d.ts +35 -0
  67. package/dist/models/ListJobPlansResponseBody.js +66 -0
  68. package/dist/models/ListJobPlansResponseBody.js.map +1 -0
  69. package/dist/models/ListJobPlansShrinkRequest.d.ts +94 -0
  70. package/dist/models/ListJobPlansShrinkRequest.js +76 -0
  71. package/dist/models/ListJobPlansShrinkRequest.js.map +1 -0
  72. package/dist/models/ListModelGalleryModelsRequest.d.ts +273 -0
  73. package/dist/models/ListModelGalleryModelsRequest.js +160 -0
  74. package/dist/models/ListModelGalleryModelsRequest.js.map +1 -0
  75. package/dist/models/ListModelGalleryModelsResponse.d.ts +19 -0
  76. package/dist/models/ListModelGalleryModelsResponse.js +69 -0
  77. package/dist/models/ListModelGalleryModelsResponse.js.map +1 -0
  78. package/dist/models/ListModelGalleryModelsResponseBody.d.ts +38 -0
  79. package/dist/models/ListModelGalleryModelsResponseBody.js +66 -0
  80. package/dist/models/ListModelGalleryModelsResponseBody.js.map +1 -0
  81. package/dist/models/ListModelGalleryModelsShrinkRequest.d.ts +209 -0
  82. package/dist/models/ListModelGalleryModelsShrinkRequest.js +110 -0
  83. package/dist/models/ListModelGalleryModelsShrinkRequest.js.map +1 -0
  84. package/dist/models/ModelGalleryModel.d.ts +375 -0
  85. package/dist/models/ModelGalleryModel.js +172 -0
  86. package/dist/models/ModelGalleryModel.js.map +1 -0
  87. package/dist/models/UpdateJobPlanRequest.d.ts +54 -0
  88. package/dist/models/UpdateJobPlanRequest.js +84 -0
  89. package/dist/models/UpdateJobPlanRequest.js.map +1 -0
  90. package/dist/models/UpdateJobPlanResponse.d.ts +19 -0
  91. package/dist/models/UpdateJobPlanResponse.js +69 -0
  92. package/dist/models/UpdateJobPlanResponse.js.map +1 -0
  93. package/dist/models/UpdateJobPlanResponseBody.d.ts +21 -0
  94. package/dist/models/UpdateJobPlanResponseBody.js +58 -0
  95. package/dist/models/UpdateJobPlanResponseBody.js.map +1 -0
  96. package/dist/models/model.d.ts +48 -0
  97. package/dist/models/model.js +100 -0
  98. package/dist/models/model.js.map +1 -0
  99. package/package.json +29 -0
  100. package/src/client.ts +658 -0
  101. package/src/models/CreateJobPlanRequest.ts +174 -0
  102. package/src/models/CreateJobPlanResponse.ts +40 -0
  103. package/src/models/CreateJobPlanResponseBody.ts +44 -0
  104. package/src/models/DeleteJobPlanRequest.ts +24 -0
  105. package/src/models/DeleteJobPlanResponse.ts +40 -0
  106. package/src/models/DeleteJobPlanResponseBody.ts +34 -0
  107. package/src/models/DistillationTemplate.ts +440 -0
  108. package/src/models/DistillationTemplateSummary.ts +214 -0
  109. package/src/models/GetDistillationTemplateRequest.ts +24 -0
  110. package/src/models/GetDistillationTemplateResponse.ts +40 -0
  111. package/src/models/GetDistillationTemplateResponseBody.ts +45 -0
  112. package/src/models/GetJobPlanRequest.ts +24 -0
  113. package/src/models/GetJobPlanResponse.ts +40 -0
  114. package/src/models/GetJobPlanResponseBody.ts +264 -0
  115. package/src/models/JobPlan.ts +144 -0
  116. package/src/models/ListDistillationTemplatesRequest.ts +74 -0
  117. package/src/models/ListDistillationTemplatesResponse.ts +40 -0
  118. package/src/models/ListDistillationTemplatesResponseBody.ts +75 -0
  119. package/src/models/ListJobPlansRequest.ts +168 -0
  120. package/src/models/ListJobPlansResponse.ts +40 -0
  121. package/src/models/ListJobPlansResponseBody.ts +55 -0
  122. package/src/models/ListJobPlansShrinkRequest.ts +125 -0
  123. package/src/models/ListModelGalleryModelsRequest.ts +370 -0
  124. package/src/models/ListModelGalleryModelsResponse.ts +40 -0
  125. package/src/models/ListModelGalleryModelsResponseBody.ts +58 -0
  126. package/src/models/ListModelGalleryModelsShrinkRequest.ts +274 -0
  127. package/src/models/ModelGalleryModel.ts +481 -0
  128. package/src/models/UpdateJobPlanRequest.ts +84 -0
  129. package/src/models/UpdateJobPlanResponse.ts +40 -0
  130. package/src/models/UpdateJobPlanResponseBody.ts +34 -0
  131. package/src/models/model.ts +48 -0
@@ -0,0 +1,168 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListJobPlansRequestTag extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The tag key.
9
+ *
10
+ * @example
11
+ * key
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The tag value.
17
+ *
18
+ * @example
19
+ * value
20
+ */
21
+ value?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ key: 'Key',
25
+ value: 'Value',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ key: 'string',
32
+ value: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class ListJobPlansRequest extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * Specifies whether to filter by template association. Valid values:
49
+ * - true: Returns only scenario-specific job plans that have a template.
50
+ * - false: Returns only general-purpose job plans that do not have a template.
51
+ *
52
+ * If this parameter is not specified, no filtering is applied. If both this parameter and TemplateId are specified, the value of TemplateId takes precedence.
53
+ *
54
+ * @example
55
+ * true
56
+ */
57
+ hasTemplate?: boolean;
58
+ /**
59
+ * @remarks
60
+ * The name of the job plan.
61
+ *
62
+ * @example
63
+ * JobPlan1
64
+ */
65
+ jobPlanName?: string;
66
+ /**
67
+ * @remarks
68
+ * The type of the job plan.
69
+ *
70
+ * @example
71
+ * Distillation
72
+ */
73
+ jobPlanType?: string;
74
+ /**
75
+ * @remarks
76
+ * The sort order.
77
+ *
78
+ * @example
79
+ * DESC
80
+ */
81
+ order?: string;
82
+ /**
83
+ * @remarks
84
+ * The page number.
85
+ *
86
+ * @example
87
+ * 1
88
+ */
89
+ pageNumber?: number;
90
+ /**
91
+ * @remarks
92
+ * The number of entries per page.
93
+ *
94
+ * @example
95
+ * 10
96
+ */
97
+ pageSize?: number;
98
+ /**
99
+ * @remarks
100
+ * The field by which to sort the results.
101
+ *
102
+ * @example
103
+ * GmtCreateTime
104
+ */
105
+ sortBy?: string;
106
+ /**
107
+ * @remarks
108
+ * The list of tags.
109
+ */
110
+ tag?: ListJobPlansRequestTag[];
111
+ /**
112
+ * @remarks
113
+ * The distillation template ID. Filters results to return only scenario-specific tasks that use the specified template.
114
+ *
115
+ * @example
116
+ * advanced_cot_distill
117
+ */
118
+ templateId?: string;
119
+ /**
120
+ * @remarks
121
+ * The workspace ID.
122
+ *
123
+ * @example
124
+ * 32495
125
+ */
126
+ workspaceId?: string;
127
+ static names(): { [key: string]: string } {
128
+ return {
129
+ hasTemplate: 'HasTemplate',
130
+ jobPlanName: 'JobPlanName',
131
+ jobPlanType: 'JobPlanType',
132
+ order: 'Order',
133
+ pageNumber: 'PageNumber',
134
+ pageSize: 'PageSize',
135
+ sortBy: 'SortBy',
136
+ tag: 'Tag',
137
+ templateId: 'TemplateId',
138
+ workspaceId: 'WorkspaceId',
139
+ };
140
+ }
141
+
142
+ static types(): { [key: string]: any } {
143
+ return {
144
+ hasTemplate: 'boolean',
145
+ jobPlanName: 'string',
146
+ jobPlanType: 'string',
147
+ order: 'string',
148
+ pageNumber: 'number',
149
+ pageSize: 'number',
150
+ sortBy: 'string',
151
+ tag: { 'type': 'array', 'itemType': ListJobPlansRequestTag },
152
+ templateId: 'string',
153
+ workspaceId: 'string',
154
+ };
155
+ }
156
+
157
+ validate() {
158
+ if(Array.isArray(this.tag)) {
159
+ $dara.Model.validateArray(this.tag);
160
+ }
161
+ super.validate();
162
+ }
163
+
164
+ constructor(map?: { [key: string]: any }) {
165
+ super(map);
166
+ }
167
+ }
168
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListJobPlansResponseBody } from "./ListJobPlansResponseBody";
4
+
5
+
6
+ export class ListJobPlansResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListJobPlansResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ListJobPlansResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,55 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { JobPlan } from "./JobPlan";
4
+
5
+
6
+ export class ListJobPlansResponseBody extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * The list of job plans.
10
+ */
11
+ jobPlans?: JobPlan[];
12
+ /**
13
+ * @remarks
14
+ * The request ID.
15
+ *
16
+ * @example
17
+ * 40325405-579C-4D82-9624-EC2B1779848E
18
+ */
19
+ requestId?: string;
20
+ /**
21
+ * @remarks
22
+ * The total number of entries.
23
+ *
24
+ * @example
25
+ * 15
26
+ */
27
+ totalCount?: number;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ jobPlans: 'JobPlans',
31
+ requestId: 'RequestId',
32
+ totalCount: 'TotalCount',
33
+ };
34
+ }
35
+
36
+ static types(): { [key: string]: any } {
37
+ return {
38
+ jobPlans: { 'type': 'array', 'itemType': JobPlan },
39
+ requestId: 'string',
40
+ totalCount: 'number',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ if(Array.isArray(this.jobPlans)) {
46
+ $dara.Model.validateArray(this.jobPlans);
47
+ }
48
+ super.validate();
49
+ }
50
+
51
+ constructor(map?: { [key: string]: any }) {
52
+ super(map);
53
+ }
54
+ }
55
+
@@ -0,0 +1,125 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListJobPlansShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to filter by template association. Valid values:
9
+ * - true: Returns only scenario-specific job plans that have a template.
10
+ * - false: Returns only general-purpose job plans that do not have a template.
11
+ *
12
+ * If this parameter is not specified, no filtering is applied. If both this parameter and TemplateId are specified, the value of TemplateId takes precedence.
13
+ *
14
+ * @example
15
+ * true
16
+ */
17
+ hasTemplate?: boolean;
18
+ /**
19
+ * @remarks
20
+ * The name of the job plan.
21
+ *
22
+ * @example
23
+ * JobPlan1
24
+ */
25
+ jobPlanName?: string;
26
+ /**
27
+ * @remarks
28
+ * The type of the job plan.
29
+ *
30
+ * @example
31
+ * Distillation
32
+ */
33
+ jobPlanType?: string;
34
+ /**
35
+ * @remarks
36
+ * The sort order.
37
+ *
38
+ * @example
39
+ * DESC
40
+ */
41
+ order?: string;
42
+ /**
43
+ * @remarks
44
+ * The page number.
45
+ *
46
+ * @example
47
+ * 1
48
+ */
49
+ pageNumber?: number;
50
+ /**
51
+ * @remarks
52
+ * The number of entries per page.
53
+ *
54
+ * @example
55
+ * 10
56
+ */
57
+ pageSize?: number;
58
+ /**
59
+ * @remarks
60
+ * The field by which to sort the results.
61
+ *
62
+ * @example
63
+ * GmtCreateTime
64
+ */
65
+ sortBy?: string;
66
+ /**
67
+ * @remarks
68
+ * The list of tags.
69
+ */
70
+ tagShrink?: string;
71
+ /**
72
+ * @remarks
73
+ * The distillation template ID. Filters results to return only scenario-specific tasks that use the specified template.
74
+ *
75
+ * @example
76
+ * advanced_cot_distill
77
+ */
78
+ templateId?: string;
79
+ /**
80
+ * @remarks
81
+ * The workspace ID.
82
+ *
83
+ * @example
84
+ * 32495
85
+ */
86
+ workspaceId?: string;
87
+ static names(): { [key: string]: string } {
88
+ return {
89
+ hasTemplate: 'HasTemplate',
90
+ jobPlanName: 'JobPlanName',
91
+ jobPlanType: 'JobPlanType',
92
+ order: 'Order',
93
+ pageNumber: 'PageNumber',
94
+ pageSize: 'PageSize',
95
+ sortBy: 'SortBy',
96
+ tagShrink: 'Tag',
97
+ templateId: 'TemplateId',
98
+ workspaceId: 'WorkspaceId',
99
+ };
100
+ }
101
+
102
+ static types(): { [key: string]: any } {
103
+ return {
104
+ hasTemplate: 'boolean',
105
+ jobPlanName: 'string',
106
+ jobPlanType: 'string',
107
+ order: 'string',
108
+ pageNumber: 'number',
109
+ pageSize: 'number',
110
+ sortBy: 'string',
111
+ tagShrink: 'string',
112
+ templateId: 'string',
113
+ workspaceId: 'string',
114
+ };
115
+ }
116
+
117
+ validate() {
118
+ super.validate();
119
+ }
120
+
121
+ constructor(map?: { [key: string]: any }) {
122
+ super(map);
123
+ }
124
+ }
125
+