@leonardo-ai/sdk 1.1.1 → 1.2.1

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 (108) hide show
  1. package/README.md +30 -29
  2. package/dist/sdk/dataset.d.ts +41 -0
  3. package/dist/sdk/{creatingdatasets.js → dataset.js} +46 -46
  4. package/dist/sdk/generation.d.ts +35 -0
  5. package/dist/sdk/{generatingimages.js → generation.js} +45 -45
  6. package/dist/sdk/{initimages.d.ts → initimage.d.ts} +7 -7
  7. package/dist/sdk/{initimages.js → initimage.js} +17 -17
  8. package/dist/sdk/{trainingmodels.d.ts → model.d.ts} +10 -10
  9. package/dist/sdk/{trainingmodels.js → model.js} +38 -38
  10. package/dist/sdk/models/operations/createdataset.d.ts +22 -0
  11. package/dist/sdk/models/operations/createdataset.js +104 -0
  12. package/dist/sdk/models/operations/creategeneration.d.ts +34 -0
  13. package/dist/sdk/models/operations/creategeneration.js +180 -0
  14. package/dist/sdk/models/operations/createmodel.d.ts +27 -0
  15. package/dist/sdk/models/operations/createmodel.js +152 -0
  16. package/dist/sdk/models/operations/createvariationupscale.d.ts +18 -0
  17. package/dist/sdk/models/operations/createvariationupscale.js +96 -0
  18. package/dist/sdk/models/operations/deletedatasetbyid.d.ts +21 -0
  19. package/dist/sdk/models/operations/deletedatasetbyid.js +100 -0
  20. package/dist/sdk/models/operations/deletegenerationbyid.d.ts +21 -0
  21. package/dist/sdk/models/operations/deletegenerationbyid.js +100 -0
  22. package/dist/sdk/models/operations/deleteinitimagebyid.d.ts +21 -0
  23. package/dist/sdk/models/operations/deleteinitimagebyid.js +100 -0
  24. package/dist/sdk/models/operations/deletemodelbyid.d.ts +21 -0
  25. package/dist/sdk/models/operations/deletemodelbyid.js +100 -0
  26. package/dist/sdk/models/operations/getdatasetbyid.d.ts +34 -0
  27. package/dist/sdk/models/operations/getdatasetbyid.js +144 -0
  28. package/dist/sdk/models/operations/getgenerationbyid.d.ts +56 -0
  29. package/dist/sdk/models/operations/getgenerationbyid.js +244 -0
  30. package/dist/sdk/models/operations/getgenerationsbyuserid.d.ts +61 -0
  31. package/dist/sdk/models/operations/getgenerationsbyuserid.js +264 -0
  32. package/dist/sdk/models/operations/getinitimagebyid.d.ts +23 -0
  33. package/dist/sdk/models/operations/getinitimagebyid.js +108 -0
  34. package/dist/sdk/models/operations/getmodelbyid.d.ts +33 -0
  35. package/dist/sdk/models/operations/getmodelbyid.js +168 -0
  36. package/dist/sdk/models/operations/getuserself.d.ts +23 -0
  37. package/dist/sdk/models/operations/getuserself.js +100 -0
  38. package/dist/sdk/models/operations/getvariationbyid.d.ts +26 -0
  39. package/dist/sdk/models/operations/getvariationbyid.js +140 -0
  40. package/dist/sdk/models/operations/index.d.ts +18 -18
  41. package/dist/sdk/models/operations/index.js +18 -18
  42. package/dist/sdk/models/operations/uploaddatasetimage.d.ts +25 -0
  43. package/dist/sdk/models/operations/uploaddatasetimage.js +124 -0
  44. package/dist/sdk/models/operations/uploaddatasetimagefromgen.d.ts +22 -0
  45. package/dist/sdk/models/operations/uploaddatasetimagefromgen.js +112 -0
  46. package/dist/sdk/models/operations/uploadinitimage.d.ts +22 -0
  47. package/dist/sdk/models/operations/uploadinitimage.js +112 -0
  48. package/dist/sdk/models/shared/custommodeltypeenum.d.ts +17 -0
  49. package/dist/sdk/models/shared/custommodeltypeenum.js +21 -0
  50. package/dist/sdk/models/shared/index.d.ts +7 -0
  51. package/dist/sdk/models/shared/index.js +7 -0
  52. package/dist/sdk/models/shared/jobstatusenum.d.ts +5 -0
  53. package/dist/sdk/models/shared/jobstatusenum.js +9 -0
  54. package/dist/sdk/models/shared/sdgenerationschedulersenum.d.ts +9 -0
  55. package/dist/sdk/models/shared/sdgenerationschedulersenum.js +13 -0
  56. package/dist/sdk/models/shared/sdgenerationstyleenum.d.ts +5 -0
  57. package/dist/sdk/models/shared/sdgenerationstyleenum.js +9 -0
  58. package/dist/sdk/models/shared/sdversionsenum.d.ts +5 -0
  59. package/dist/sdk/models/shared/sdversionsenum.js +9 -0
  60. package/dist/sdk/models/shared/strengthenum.d.ts +7 -0
  61. package/dist/sdk/models/shared/strengthenum.js +11 -0
  62. package/dist/sdk/models/shared/variationtypeenum.d.ts +8 -0
  63. package/dist/sdk/models/shared/variationtypeenum.js +12 -0
  64. package/dist/sdk/sdk.d.ts +12 -12
  65. package/dist/sdk/sdk.js +13 -13
  66. package/dist/sdk/{userinformation.d.ts → user.d.ts} +3 -3
  67. package/dist/sdk/{userinformation.js → user.js} +8 -8
  68. package/dist/sdk/{imagevariations.d.ts → variation.d.ts} +7 -7
  69. package/dist/sdk/{imagevariations.js → variation.js} +30 -30
  70. package/package.json +2 -19
  71. package/dist/sdk/creatingdatasets.d.ts +0 -41
  72. package/dist/sdk/generatingimages.d.ts +0 -35
  73. package/dist/sdk/models/operations/deletedatasetsid.d.ts +0 -12
  74. package/dist/sdk/models/operations/deletedatasetsid.js +0 -72
  75. package/dist/sdk/models/operations/deletegenerationsid.d.ts +0 -12
  76. package/dist/sdk/models/operations/deletegenerationsid.js +0 -72
  77. package/dist/sdk/models/operations/deleteinitimageid.d.ts +0 -12
  78. package/dist/sdk/models/operations/deleteinitimageid.js +0 -72
  79. package/dist/sdk/models/operations/deletemodelsid.d.ts +0 -12
  80. package/dist/sdk/models/operations/deletemodelsid.js +0 -72
  81. package/dist/sdk/models/operations/getdatasetsid.d.ts +0 -12
  82. package/dist/sdk/models/operations/getdatasetsid.js +0 -72
  83. package/dist/sdk/models/operations/getgenerationsid.d.ts +0 -12
  84. package/dist/sdk/models/operations/getgenerationsid.js +0 -72
  85. package/dist/sdk/models/operations/getgenerationsuseruserid.d.ts +0 -17
  86. package/dist/sdk/models/operations/getgenerationsuseruserid.js +0 -92
  87. package/dist/sdk/models/operations/getinitimageid.d.ts +0 -12
  88. package/dist/sdk/models/operations/getinitimageid.js +0 -72
  89. package/dist/sdk/models/operations/getme.d.ts +0 -6
  90. package/dist/sdk/models/operations/getme.js +0 -48
  91. package/dist/sdk/models/operations/getmodelsid.d.ts +0 -12
  92. package/dist/sdk/models/operations/getmodelsid.js +0 -72
  93. package/dist/sdk/models/operations/getvariationsid.d.ts +0 -12
  94. package/dist/sdk/models/operations/getvariationsid.js +0 -72
  95. package/dist/sdk/models/operations/postdatasets.d.ts +0 -13
  96. package/dist/sdk/models/operations/postdatasets.js +0 -76
  97. package/dist/sdk/models/operations/postdatasetsdatasetidupload.d.ts +0 -16
  98. package/dist/sdk/models/operations/postdatasetsdatasetidupload.js +0 -88
  99. package/dist/sdk/models/operations/postdatasetsdatasetiduploadgen.d.ts +0 -16
  100. package/dist/sdk/models/operations/postdatasetsdatasetiduploadgen.js +0 -88
  101. package/dist/sdk/models/operations/postgenerations.d.ts +0 -27
  102. package/dist/sdk/models/operations/postgenerations.js +0 -132
  103. package/dist/sdk/models/operations/postinitimage.d.ts +0 -12
  104. package/dist/sdk/models/operations/postinitimage.js +0 -72
  105. package/dist/sdk/models/operations/postmodels.d.ts +0 -20
  106. package/dist/sdk/models/operations/postmodels.js +0 -104
  107. package/dist/sdk/models/operations/postvariationsupscale.d.ts +0 -12
  108. package/dist/sdk/models/operations/postvariationsupscale.js +0 -72
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.DeleteModelByIdResponse = exports.DeleteModelById200ApplicationJSON = exports.DeleteModelById200ApplicationJSONCustomModels = exports.DeleteModelByIdRequest = exports.DeleteModelByIdPathParams = void 0;
28
+ var utils_1 = require("../../../internal/utils");
29
+ var DeleteModelByIdPathParams = /** @class */ (function (_super) {
30
+ __extends(DeleteModelByIdPathParams, _super);
31
+ function DeleteModelByIdPathParams() {
32
+ return _super !== null && _super.apply(this, arguments) || this;
33
+ }
34
+ __decorate([
35
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
36
+ __metadata("design:type", String)
37
+ ], DeleteModelByIdPathParams.prototype, "id", void 0);
38
+ return DeleteModelByIdPathParams;
39
+ }(utils_1.SpeakeasyBase));
40
+ exports.DeleteModelByIdPathParams = DeleteModelByIdPathParams;
41
+ var DeleteModelByIdRequest = /** @class */ (function (_super) {
42
+ __extends(DeleteModelByIdRequest, _super);
43
+ function DeleteModelByIdRequest() {
44
+ return _super !== null && _super.apply(this, arguments) || this;
45
+ }
46
+ __decorate([
47
+ (0, utils_1.SpeakeasyMetadata)(),
48
+ __metadata("design:type", DeleteModelByIdPathParams)
49
+ ], DeleteModelByIdRequest.prototype, "pathParams", void 0);
50
+ return DeleteModelByIdRequest;
51
+ }(utils_1.SpeakeasyBase));
52
+ exports.DeleteModelByIdRequest = DeleteModelByIdRequest;
53
+ // DeleteModelById200ApplicationJSONCustomModels
54
+ /**
55
+ * columns and relationships of "custom_models"
56
+ **/
57
+ var DeleteModelById200ApplicationJSONCustomModels = /** @class */ (function (_super) {
58
+ __extends(DeleteModelById200ApplicationJSONCustomModels, _super);
59
+ function DeleteModelById200ApplicationJSONCustomModels() {
60
+ return _super !== null && _super.apply(this, arguments) || this;
61
+ }
62
+ __decorate([
63
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
64
+ __metadata("design:type", String)
65
+ ], DeleteModelById200ApplicationJSONCustomModels.prototype, "id", void 0);
66
+ return DeleteModelById200ApplicationJSONCustomModels;
67
+ }(utils_1.SpeakeasyBase));
68
+ exports.DeleteModelById200ApplicationJSONCustomModels = DeleteModelById200ApplicationJSONCustomModels;
69
+ var DeleteModelById200ApplicationJSON = /** @class */ (function (_super) {
70
+ __extends(DeleteModelById200ApplicationJSON, _super);
71
+ function DeleteModelById200ApplicationJSON() {
72
+ return _super !== null && _super.apply(this, arguments) || this;
73
+ }
74
+ __decorate([
75
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=delete_custom_models_by_pk" }),
76
+ __metadata("design:type", DeleteModelById200ApplicationJSONCustomModels)
77
+ ], DeleteModelById200ApplicationJSON.prototype, "deleteCustomModelsByPk", void 0);
78
+ return DeleteModelById200ApplicationJSON;
79
+ }(utils_1.SpeakeasyBase));
80
+ exports.DeleteModelById200ApplicationJSON = DeleteModelById200ApplicationJSON;
81
+ var DeleteModelByIdResponse = /** @class */ (function (_super) {
82
+ __extends(DeleteModelByIdResponse, _super);
83
+ function DeleteModelByIdResponse() {
84
+ return _super !== null && _super.apply(this, arguments) || this;
85
+ }
86
+ __decorate([
87
+ (0, utils_1.SpeakeasyMetadata)(),
88
+ __metadata("design:type", String)
89
+ ], DeleteModelByIdResponse.prototype, "contentType", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)(),
92
+ __metadata("design:type", Number)
93
+ ], DeleteModelByIdResponse.prototype, "statusCode", void 0);
94
+ __decorate([
95
+ (0, utils_1.SpeakeasyMetadata)(),
96
+ __metadata("design:type", DeleteModelById200ApplicationJSON)
97
+ ], DeleteModelByIdResponse.prototype, "deleteModelById200ApplicationJSONObject", void 0);
98
+ return DeleteModelByIdResponse;
99
+ }(utils_1.SpeakeasyBase));
100
+ exports.DeleteModelByIdResponse = DeleteModelByIdResponse;
@@ -0,0 +1,34 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class GetDatasetByIdPathParams extends SpeakeasyBase {
3
+ id: string;
4
+ }
5
+ export declare class GetDatasetByIdRequest extends SpeakeasyBase {
6
+ pathParams: GetDatasetByIdPathParams;
7
+ }
8
+ /**
9
+ * columns and relationships of "dataset_images"
10
+ **/
11
+ export declare class GetDatasetById200ApplicationJSONDatasetsDatasetImages extends SpeakeasyBase {
12
+ createdAt?: string;
13
+ id?: string;
14
+ url?: string;
15
+ }
16
+ /**
17
+ * columns and relationships of "datasets"
18
+ **/
19
+ export declare class GetDatasetById200ApplicationJSONDatasets extends SpeakeasyBase {
20
+ createdAt?: string;
21
+ datasetImages?: GetDatasetById200ApplicationJSONDatasetsDatasetImages[];
22
+ description?: string;
23
+ id?: string;
24
+ name?: string;
25
+ updatedAt?: string;
26
+ }
27
+ export declare class GetDatasetById200ApplicationJSON extends SpeakeasyBase {
28
+ datasetsByPk?: GetDatasetById200ApplicationJSONDatasets;
29
+ }
30
+ export declare class GetDatasetByIdResponse extends SpeakeasyBase {
31
+ contentType: string;
32
+ statusCode: number;
33
+ getDatasetById200ApplicationJSONObject?: GetDatasetById200ApplicationJSON;
34
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.GetDatasetByIdResponse = exports.GetDatasetById200ApplicationJSON = exports.GetDatasetById200ApplicationJSONDatasets = exports.GetDatasetById200ApplicationJSONDatasetsDatasetImages = exports.GetDatasetByIdRequest = exports.GetDatasetByIdPathParams = void 0;
28
+ var utils_1 = require("../../../internal/utils");
29
+ var GetDatasetByIdPathParams = /** @class */ (function (_super) {
30
+ __extends(GetDatasetByIdPathParams, _super);
31
+ function GetDatasetByIdPathParams() {
32
+ return _super !== null && _super.apply(this, arguments) || this;
33
+ }
34
+ __decorate([
35
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
36
+ __metadata("design:type", String)
37
+ ], GetDatasetByIdPathParams.prototype, "id", void 0);
38
+ return GetDatasetByIdPathParams;
39
+ }(utils_1.SpeakeasyBase));
40
+ exports.GetDatasetByIdPathParams = GetDatasetByIdPathParams;
41
+ var GetDatasetByIdRequest = /** @class */ (function (_super) {
42
+ __extends(GetDatasetByIdRequest, _super);
43
+ function GetDatasetByIdRequest() {
44
+ return _super !== null && _super.apply(this, arguments) || this;
45
+ }
46
+ __decorate([
47
+ (0, utils_1.SpeakeasyMetadata)(),
48
+ __metadata("design:type", GetDatasetByIdPathParams)
49
+ ], GetDatasetByIdRequest.prototype, "pathParams", void 0);
50
+ return GetDatasetByIdRequest;
51
+ }(utils_1.SpeakeasyBase));
52
+ exports.GetDatasetByIdRequest = GetDatasetByIdRequest;
53
+ // GetDatasetById200ApplicationJSONDatasetsDatasetImages
54
+ /**
55
+ * columns and relationships of "dataset_images"
56
+ **/
57
+ var GetDatasetById200ApplicationJSONDatasetsDatasetImages = /** @class */ (function (_super) {
58
+ __extends(GetDatasetById200ApplicationJSONDatasetsDatasetImages, _super);
59
+ function GetDatasetById200ApplicationJSONDatasetsDatasetImages() {
60
+ return _super !== null && _super.apply(this, arguments) || this;
61
+ }
62
+ __decorate([
63
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
64
+ __metadata("design:type", String)
65
+ ], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "createdAt", void 0);
66
+ __decorate([
67
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
68
+ __metadata("design:type", String)
69
+ ], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "id", void 0);
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
72
+ __metadata("design:type", String)
73
+ ], GetDatasetById200ApplicationJSONDatasetsDatasetImages.prototype, "url", void 0);
74
+ return GetDatasetById200ApplicationJSONDatasetsDatasetImages;
75
+ }(utils_1.SpeakeasyBase));
76
+ exports.GetDatasetById200ApplicationJSONDatasetsDatasetImages = GetDatasetById200ApplicationJSONDatasetsDatasetImages;
77
+ // GetDatasetById200ApplicationJSONDatasets
78
+ /**
79
+ * columns and relationships of "datasets"
80
+ **/
81
+ var GetDatasetById200ApplicationJSONDatasets = /** @class */ (function (_super) {
82
+ __extends(GetDatasetById200ApplicationJSONDatasets, _super);
83
+ function GetDatasetById200ApplicationJSONDatasets() {
84
+ return _super !== null && _super.apply(this, arguments) || this;
85
+ }
86
+ __decorate([
87
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=createdAt" }),
88
+ __metadata("design:type", String)
89
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "createdAt", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=dataset_images", elemType: GetDatasetById200ApplicationJSONDatasetsDatasetImages }),
92
+ __metadata("design:type", Array)
93
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "datasetImages", void 0);
94
+ __decorate([
95
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=description" }),
96
+ __metadata("design:type", String)
97
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "description", void 0);
98
+ __decorate([
99
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
100
+ __metadata("design:type", String)
101
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "id", void 0);
102
+ __decorate([
103
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=name" }),
104
+ __metadata("design:type", String)
105
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "name", void 0);
106
+ __decorate([
107
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=updatedAt" }),
108
+ __metadata("design:type", String)
109
+ ], GetDatasetById200ApplicationJSONDatasets.prototype, "updatedAt", void 0);
110
+ return GetDatasetById200ApplicationJSONDatasets;
111
+ }(utils_1.SpeakeasyBase));
112
+ exports.GetDatasetById200ApplicationJSONDatasets = GetDatasetById200ApplicationJSONDatasets;
113
+ var GetDatasetById200ApplicationJSON = /** @class */ (function (_super) {
114
+ __extends(GetDatasetById200ApplicationJSON, _super);
115
+ function GetDatasetById200ApplicationJSON() {
116
+ return _super !== null && _super.apply(this, arguments) || this;
117
+ }
118
+ __decorate([
119
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=datasets_by_pk" }),
120
+ __metadata("design:type", GetDatasetById200ApplicationJSONDatasets)
121
+ ], GetDatasetById200ApplicationJSON.prototype, "datasetsByPk", void 0);
122
+ return GetDatasetById200ApplicationJSON;
123
+ }(utils_1.SpeakeasyBase));
124
+ exports.GetDatasetById200ApplicationJSON = GetDatasetById200ApplicationJSON;
125
+ var GetDatasetByIdResponse = /** @class */ (function (_super) {
126
+ __extends(GetDatasetByIdResponse, _super);
127
+ function GetDatasetByIdResponse() {
128
+ return _super !== null && _super.apply(this, arguments) || this;
129
+ }
130
+ __decorate([
131
+ (0, utils_1.SpeakeasyMetadata)(),
132
+ __metadata("design:type", String)
133
+ ], GetDatasetByIdResponse.prototype, "contentType", void 0);
134
+ __decorate([
135
+ (0, utils_1.SpeakeasyMetadata)(),
136
+ __metadata("design:type", Number)
137
+ ], GetDatasetByIdResponse.prototype, "statusCode", void 0);
138
+ __decorate([
139
+ (0, utils_1.SpeakeasyMetadata)(),
140
+ __metadata("design:type", GetDatasetById200ApplicationJSON)
141
+ ], GetDatasetByIdResponse.prototype, "getDatasetById200ApplicationJSONObject", void 0);
142
+ return GetDatasetByIdResponse;
143
+ }(utils_1.SpeakeasyBase));
144
+ exports.GetDatasetByIdResponse = GetDatasetByIdResponse;
@@ -0,0 +1,56 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../shared";
3
+ export declare class GetGenerationByIdPathParams extends SpeakeasyBase {
4
+ id: string;
5
+ }
6
+ export declare class GetGenerationByIdRequest extends SpeakeasyBase {
7
+ pathParams: GetGenerationByIdPathParams;
8
+ }
9
+ /**
10
+ * columns and relationships of "generated_image_variation_generic"
11
+ **/
12
+ export declare class GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric extends SpeakeasyBase {
13
+ id?: string;
14
+ status?: shared.JobStatusEnum;
15
+ transformType?: shared.VARIATIONTYPEEnum;
16
+ url?: string;
17
+ }
18
+ /**
19
+ * columns and relationships of "generated_images"
20
+ **/
21
+ export declare class GetGenerationById200ApplicationJSONGenerationsGeneratedImages extends SpeakeasyBase {
22
+ generatedImageVariationGenerics?: GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric[];
23
+ id?: string;
24
+ likeCount?: number;
25
+ nsfw?: boolean;
26
+ url?: string;
27
+ }
28
+ /**
29
+ * columns and relationships of "generations"
30
+ **/
31
+ export declare class GetGenerationById200ApplicationJSONGenerations extends SpeakeasyBase {
32
+ generatedImages?: GetGenerationById200ApplicationJSONGenerationsGeneratedImages[];
33
+ guidanceScale?: number;
34
+ id?: string;
35
+ imageHeight?: number;
36
+ imageWidth?: number;
37
+ inferenceSteps?: number;
38
+ initStrength?: number;
39
+ modelId?: string;
40
+ negativePrompt?: string;
41
+ presetStyle?: shared.SdGenerationStyleEnum;
42
+ prompt?: string;
43
+ public?: boolean;
44
+ scheduler?: shared.SdGenerationSchedulersEnum;
45
+ sdVersion?: shared.SdVersionsEnum;
46
+ seed?: number;
47
+ status?: shared.JobStatusEnum;
48
+ }
49
+ export declare class GetGenerationById200ApplicationJSON extends SpeakeasyBase {
50
+ generationsByPk?: GetGenerationById200ApplicationJSONGenerations;
51
+ }
52
+ export declare class GetGenerationByIdResponse extends SpeakeasyBase {
53
+ contentType: string;
54
+ statusCode: number;
55
+ getGenerationById200ApplicationJSONObject?: GetGenerationById200ApplicationJSON;
56
+ }
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
34
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
35
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
36
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
37
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
38
+ };
39
+ var __importStar = (this && this.__importStar) || function (mod) {
40
+ if (mod && mod.__esModule) return mod;
41
+ var result = {};
42
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
43
+ __setModuleDefault(result, mod);
44
+ return result;
45
+ };
46
+ var __metadata = (this && this.__metadata) || function (k, v) {
47
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
48
+ };
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.GetGenerationByIdResponse = exports.GetGenerationById200ApplicationJSON = exports.GetGenerationById200ApplicationJSONGenerations = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = exports.GetGenerationByIdRequest = exports.GetGenerationByIdPathParams = void 0;
51
+ var utils_1 = require("../../../internal/utils");
52
+ var shared = __importStar(require("../shared"));
53
+ var GetGenerationByIdPathParams = /** @class */ (function (_super) {
54
+ __extends(GetGenerationByIdPathParams, _super);
55
+ function GetGenerationByIdPathParams() {
56
+ return _super !== null && _super.apply(this, arguments) || this;
57
+ }
58
+ __decorate([
59
+ (0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
60
+ __metadata("design:type", String)
61
+ ], GetGenerationByIdPathParams.prototype, "id", void 0);
62
+ return GetGenerationByIdPathParams;
63
+ }(utils_1.SpeakeasyBase));
64
+ exports.GetGenerationByIdPathParams = GetGenerationByIdPathParams;
65
+ var GetGenerationByIdRequest = /** @class */ (function (_super) {
66
+ __extends(GetGenerationByIdRequest, _super);
67
+ function GetGenerationByIdRequest() {
68
+ return _super !== null && _super.apply(this, arguments) || this;
69
+ }
70
+ __decorate([
71
+ (0, utils_1.SpeakeasyMetadata)(),
72
+ __metadata("design:type", GetGenerationByIdPathParams)
73
+ ], GetGenerationByIdRequest.prototype, "pathParams", void 0);
74
+ return GetGenerationByIdRequest;
75
+ }(utils_1.SpeakeasyBase));
76
+ exports.GetGenerationByIdRequest = GetGenerationByIdRequest;
77
+ // GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric
78
+ /**
79
+ * columns and relationships of "generated_image_variation_generic"
80
+ **/
81
+ var GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = /** @class */ (function (_super) {
82
+ __extends(GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric, _super);
83
+ function GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric() {
84
+ return _super !== null && _super.apply(this, arguments) || this;
85
+ }
86
+ __decorate([
87
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
88
+ __metadata("design:type", String)
89
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "id", void 0);
90
+ __decorate([
91
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
92
+ __metadata("design:type", String)
93
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "status", void 0);
94
+ __decorate([
95
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=transformType" }),
96
+ __metadata("design:type", String)
97
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "transformType", void 0);
98
+ __decorate([
99
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
100
+ __metadata("design:type", String)
101
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric.prototype, "url", void 0);
102
+ return GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric;
103
+ }(utils_1.SpeakeasyBase));
104
+ exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric = GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric;
105
+ // GetGenerationById200ApplicationJSONGenerationsGeneratedImages
106
+ /**
107
+ * columns and relationships of "generated_images"
108
+ **/
109
+ var GetGenerationById200ApplicationJSONGenerationsGeneratedImages = /** @class */ (function (_super) {
110
+ __extends(GetGenerationById200ApplicationJSONGenerationsGeneratedImages, _super);
111
+ function GetGenerationById200ApplicationJSONGenerationsGeneratedImages() {
112
+ return _super !== null && _super.apply(this, arguments) || this;
113
+ }
114
+ __decorate([
115
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=generated_image_variation_generics", elemType: GetGenerationById200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric }),
116
+ __metadata("design:type", Array)
117
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "generatedImageVariationGenerics", void 0);
118
+ __decorate([
119
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
120
+ __metadata("design:type", String)
121
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "id", void 0);
122
+ __decorate([
123
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=likeCount" }),
124
+ __metadata("design:type", Number)
125
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "likeCount", void 0);
126
+ __decorate([
127
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=nsfw" }),
128
+ __metadata("design:type", Boolean)
129
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "nsfw", void 0);
130
+ __decorate([
131
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=url" }),
132
+ __metadata("design:type", String)
133
+ ], GetGenerationById200ApplicationJSONGenerationsGeneratedImages.prototype, "url", void 0);
134
+ return GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
135
+ }(utils_1.SpeakeasyBase));
136
+ exports.GetGenerationById200ApplicationJSONGenerationsGeneratedImages = GetGenerationById200ApplicationJSONGenerationsGeneratedImages;
137
+ // GetGenerationById200ApplicationJSONGenerations
138
+ /**
139
+ * columns and relationships of "generations"
140
+ **/
141
+ var GetGenerationById200ApplicationJSONGenerations = /** @class */ (function (_super) {
142
+ __extends(GetGenerationById200ApplicationJSONGenerations, _super);
143
+ function GetGenerationById200ApplicationJSONGenerations() {
144
+ return _super !== null && _super.apply(this, arguments) || this;
145
+ }
146
+ __decorate([
147
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=generated_images", elemType: GetGenerationById200ApplicationJSONGenerationsGeneratedImages }),
148
+ __metadata("design:type", Array)
149
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "generatedImages", void 0);
150
+ __decorate([
151
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=guidanceScale" }),
152
+ __metadata("design:type", Number)
153
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "guidanceScale", void 0);
154
+ __decorate([
155
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=id" }),
156
+ __metadata("design:type", String)
157
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "id", void 0);
158
+ __decorate([
159
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=imageHeight" }),
160
+ __metadata("design:type", Number)
161
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "imageHeight", void 0);
162
+ __decorate([
163
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=imageWidth" }),
164
+ __metadata("design:type", Number)
165
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "imageWidth", void 0);
166
+ __decorate([
167
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=inferenceSteps" }),
168
+ __metadata("design:type", Number)
169
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "inferenceSteps", void 0);
170
+ __decorate([
171
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=initStrength" }),
172
+ __metadata("design:type", Number)
173
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "initStrength", void 0);
174
+ __decorate([
175
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=modelId" }),
176
+ __metadata("design:type", String)
177
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "modelId", void 0);
178
+ __decorate([
179
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=negativePrompt" }),
180
+ __metadata("design:type", String)
181
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "negativePrompt", void 0);
182
+ __decorate([
183
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=presetStyle" }),
184
+ __metadata("design:type", String)
185
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "presetStyle", void 0);
186
+ __decorate([
187
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=prompt" }),
188
+ __metadata("design:type", String)
189
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "prompt", void 0);
190
+ __decorate([
191
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=public" }),
192
+ __metadata("design:type", Boolean)
193
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "public", void 0);
194
+ __decorate([
195
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=scheduler" }),
196
+ __metadata("design:type", String)
197
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "scheduler", void 0);
198
+ __decorate([
199
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=sdVersion" }),
200
+ __metadata("design:type", String)
201
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "sdVersion", void 0);
202
+ __decorate([
203
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=seed" }),
204
+ __metadata("design:type", Number)
205
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "seed", void 0);
206
+ __decorate([
207
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=status" }),
208
+ __metadata("design:type", String)
209
+ ], GetGenerationById200ApplicationJSONGenerations.prototype, "status", void 0);
210
+ return GetGenerationById200ApplicationJSONGenerations;
211
+ }(utils_1.SpeakeasyBase));
212
+ exports.GetGenerationById200ApplicationJSONGenerations = GetGenerationById200ApplicationJSONGenerations;
213
+ var GetGenerationById200ApplicationJSON = /** @class */ (function (_super) {
214
+ __extends(GetGenerationById200ApplicationJSON, _super);
215
+ function GetGenerationById200ApplicationJSON() {
216
+ return _super !== null && _super.apply(this, arguments) || this;
217
+ }
218
+ __decorate([
219
+ (0, utils_1.SpeakeasyMetadata)({ data: "json, name=generations_by_pk" }),
220
+ __metadata("design:type", GetGenerationById200ApplicationJSONGenerations)
221
+ ], GetGenerationById200ApplicationJSON.prototype, "generationsByPk", void 0);
222
+ return GetGenerationById200ApplicationJSON;
223
+ }(utils_1.SpeakeasyBase));
224
+ exports.GetGenerationById200ApplicationJSON = GetGenerationById200ApplicationJSON;
225
+ var GetGenerationByIdResponse = /** @class */ (function (_super) {
226
+ __extends(GetGenerationByIdResponse, _super);
227
+ function GetGenerationByIdResponse() {
228
+ return _super !== null && _super.apply(this, arguments) || this;
229
+ }
230
+ __decorate([
231
+ (0, utils_1.SpeakeasyMetadata)(),
232
+ __metadata("design:type", String)
233
+ ], GetGenerationByIdResponse.prototype, "contentType", void 0);
234
+ __decorate([
235
+ (0, utils_1.SpeakeasyMetadata)(),
236
+ __metadata("design:type", Number)
237
+ ], GetGenerationByIdResponse.prototype, "statusCode", void 0);
238
+ __decorate([
239
+ (0, utils_1.SpeakeasyMetadata)(),
240
+ __metadata("design:type", GetGenerationById200ApplicationJSON)
241
+ ], GetGenerationByIdResponse.prototype, "getGenerationById200ApplicationJSONObject", void 0);
242
+ return GetGenerationByIdResponse;
243
+ }(utils_1.SpeakeasyBase));
244
+ exports.GetGenerationByIdResponse = GetGenerationByIdResponse;
@@ -0,0 +1,61 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import * as shared from "../shared";
3
+ export declare class GetGenerationsByUserIdPathParams extends SpeakeasyBase {
4
+ userId: string;
5
+ }
6
+ export declare class GetGenerationsByUserIdQueryParams extends SpeakeasyBase {
7
+ limit?: number;
8
+ offset?: number;
9
+ }
10
+ export declare class GetGenerationsByUserIdRequest extends SpeakeasyBase {
11
+ pathParams: GetGenerationsByUserIdPathParams;
12
+ queryParams: GetGenerationsByUserIdQueryParams;
13
+ }
14
+ /**
15
+ * columns and relationships of "generated_image_variation_generic"
16
+ **/
17
+ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric extends SpeakeasyBase {
18
+ id?: string;
19
+ status?: shared.JobStatusEnum;
20
+ transformType?: shared.VARIATIONTYPEEnum;
21
+ url?: string;
22
+ }
23
+ /**
24
+ * columns and relationships of "generated_images"
25
+ **/
26
+ export declare class GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages extends SpeakeasyBase {
27
+ generatedImageVariationGenerics?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImagesGeneratedImageVariationGeneric[];
28
+ id?: string;
29
+ likeCount?: number;
30
+ nsfw?: boolean;
31
+ url?: string;
32
+ }
33
+ /**
34
+ * columns and relationships of "generations"
35
+ **/
36
+ export declare class GetGenerationsByUserId200ApplicationJSONGenerations extends SpeakeasyBase {
37
+ generatedImages?: GetGenerationsByUserId200ApplicationJSONGenerationsGeneratedImages[];
38
+ guidanceScale?: number;
39
+ id?: string;
40
+ imageHeight?: number;
41
+ imageWidth?: number;
42
+ inferenceSteps?: number;
43
+ initStrength?: number;
44
+ modelId?: string;
45
+ negativePrompt?: string;
46
+ presetStyle?: shared.SdGenerationStyleEnum;
47
+ prompt?: string;
48
+ public?: boolean;
49
+ scheduler?: shared.SdGenerationSchedulersEnum;
50
+ sdVersion?: shared.SdVersionsEnum;
51
+ seed?: number;
52
+ status?: shared.JobStatusEnum;
53
+ }
54
+ export declare class GetGenerationsByUserId200ApplicationJSON extends SpeakeasyBase {
55
+ generations?: GetGenerationsByUserId200ApplicationJSONGenerations[];
56
+ }
57
+ export declare class GetGenerationsByUserIdResponse extends SpeakeasyBase {
58
+ contentType: string;
59
+ statusCode: number;
60
+ getGenerationsByUserId200ApplicationJSONObject?: GetGenerationsByUserId200ApplicationJSON;
61
+ }