@omnia/fx-models 7.9.24 → 7.9.25
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/BusinessProfileGptImagePromptDefault.d.ts +5 -0
- package/BusinessProfileGptImagePromptDefault.js +11 -0
- package/Constants.d.ts +3 -0
- package/Constants.js +4 -1
- package/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/ManifestIds.d.ts +3 -0
- package/ManifestIds.js +7 -0
- package/azure-openai/dalle/CreateImageResponse.d.ts +2 -1
- package/azure-openai/gptimage/TextToImagesRequest.d.ts +5 -0
- package/azure-openai/gptimage/TextToImagesRequest.js +2 -0
- package/azure-openai/gptimage/TextToImagesResponse.d.ts +10 -0
- package/azure-openai/gptimage/TextToImagesResponse.js +2 -0
- package/azure-openai/gptimage/index.d.ts +2 -0
- package/azure-openai/gptimage/index.js +5 -0
- package/azure-openai/index.d.ts +1 -0
- package/azure-openai/index.js +1 -0
- package/media-picker/Providers/GptImageProvider.d.ts +18 -0
- package/media-picker/Providers/GptImageProvider.js +23 -0
- package/media-picker/Providers/index.d.ts +1 -0
- package/media-picker/Providers/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BusinessProfileGptImagePromptDefaultSettings = void 0;
|
|
4
|
+
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
|
5
|
+
const BusinessProfile_1 = require("./BusinessProfile");
|
|
6
|
+
class BusinessProfileGptImagePromptDefaultSettings extends BusinessProfile_1.BusinessProfileProperty {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(new models_1.Guid("39df27aa-95f1-4a23-b3f6-8b231afcda82"), "gptimagepromptsettings");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BusinessProfileGptImagePromptDefaultSettings = BusinessProfileGptImagePromptDefaultSettings;
|
package/Constants.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const Constants: {
|
|
|
51
51
|
dalle: Guid;
|
|
52
52
|
mediaflow: Guid;
|
|
53
53
|
unsplash: Guid;
|
|
54
|
+
gptimage: Guid;
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
57
|
mediaGallery: {
|
|
@@ -79,6 +80,7 @@ export declare const Constants: {
|
|
|
79
80
|
dallESettingsKey: string;
|
|
80
81
|
textCompletionSettingsKey: string;
|
|
81
82
|
deploymentNameSettingKey: string;
|
|
83
|
+
gptImageDeploymentNameSettingKey: string;
|
|
82
84
|
};
|
|
83
85
|
};
|
|
84
86
|
html: {
|
|
@@ -168,6 +170,7 @@ export declare const Constants: {
|
|
|
168
170
|
provisionOmniaSearchUserData: Guid;
|
|
169
171
|
aiEngine: Guid;
|
|
170
172
|
extraIDAdditionalUserProperties: Guid;
|
|
173
|
+
managedMetadataProperties: Guid;
|
|
171
174
|
};
|
|
172
175
|
app: {
|
|
173
176
|
tableName: string;
|
package/Constants.js
CHANGED
|
@@ -82,6 +82,7 @@ exports.Constants = {
|
|
|
82
82
|
dalle: new models_1.Guid("69805036-0D70-421B-8B81-217978BB47A4"),
|
|
83
83
|
mediaflow: new models_1.Guid("F3078399-C3B6-457D-8C2F-A4C8C39B5F27"),
|
|
84
84
|
unsplash: new models_1.Guid("be222505-c2c4-4ec8-8462-a7ad9df4d440"),
|
|
85
|
+
gptimage: new models_1.Guid("7b92e19b-2d24-4660-b707-cb76b421574b")
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
mediaGallery: {
|
|
@@ -110,6 +111,7 @@ exports.Constants = {
|
|
|
110
111
|
dallESettingsKey: "omnia.openai.dalle.settings",
|
|
111
112
|
textCompletionSettingsKey: "omnia.openai.textcompletion.settings",
|
|
112
113
|
deploymentNameSettingKey: "omnia.openai.deploymentname.settings",
|
|
114
|
+
gptImageDeploymentNameSettingKey: "omnia.openai.gpt.image.deploymentname.settings"
|
|
113
115
|
}
|
|
114
116
|
},
|
|
115
117
|
html: {
|
|
@@ -198,7 +200,8 @@ exports.Constants = {
|
|
|
198
200
|
appOnlyReadAccessToSharePointTermstore: new models_1.Guid("8095f802-38f0-426c-8d81-22cb22a2a019"),
|
|
199
201
|
provisionOmniaSearchUserData: new models_1.Guid("8fc1325d-4196-406e-8dca-ebb78824896f"),
|
|
200
202
|
aiEngine: new models_1.Guid("f976ad6f-987f-44e6-973a-097d81f73fc7"),
|
|
201
|
-
extraIDAdditionalUserProperties: new models_1.Guid("8a878ffd-f4d5-4048-9ab1-107bf7109dd9")
|
|
203
|
+
extraIDAdditionalUserProperties: new models_1.Guid("8a878ffd-f4d5-4048-9ab1-107bf7109dd9"),
|
|
204
|
+
managedMetadataProperties: new models_1.Guid("e4ffbe1f-b658-4bc0-858e-eada042ca220")
|
|
202
205
|
},
|
|
203
206
|
app: {
|
|
204
207
|
tableName: "AppInstances",
|
package/Exposes.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export * from "./AzureAd";
|
|
|
97
97
|
export * from "./FilterEngineStyles";
|
|
98
98
|
export * from "./AiSettings";
|
|
99
99
|
export * from "./BusinessProfileDallEPromptDefault";
|
|
100
|
+
export * from "./BusinessProfileGptImagePromptDefault";
|
|
100
101
|
export * from "./ISpecialUserConfiguration";
|
|
101
102
|
export * from "./FileValidationResult";
|
|
102
103
|
export * from "./RollupMetricSettings";
|
package/Exposes.js
CHANGED
|
@@ -103,6 +103,7 @@ tslib_1.__exportStar(require("./AzureAd"), exports);
|
|
|
103
103
|
tslib_1.__exportStar(require("./FilterEngineStyles"), exports);
|
|
104
104
|
tslib_1.__exportStar(require("./AiSettings"), exports);
|
|
105
105
|
tslib_1.__exportStar(require("./BusinessProfileDallEPromptDefault"), exports);
|
|
106
|
+
tslib_1.__exportStar(require("./BusinessProfileGptImagePromptDefault"), exports);
|
|
106
107
|
tslib_1.__exportStar(require("./ISpecialUserConfiguration"), exports);
|
|
107
108
|
tslib_1.__exportStar(require("./FileValidationResult"), exports);
|
|
108
109
|
tslib_1.__exportStar(require("./RollupMetricSettings"), exports);
|
package/ManifestIds.d.ts
CHANGED
|
@@ -151,6 +151,8 @@ export declare class OmniaResourceManifests {
|
|
|
151
151
|
static get ScopePropertyBindingProvider(): Guid;
|
|
152
152
|
static get UserPropertyBindingProvider(): Guid;
|
|
153
153
|
static get MagicLinkCore(): Guid;
|
|
154
|
+
static get GptImageTenantFeature(): Guid;
|
|
155
|
+
static get GptImageMediaProviderFeature(): Guid;
|
|
154
156
|
}
|
|
155
157
|
export declare class OmniaWebComponentManifests {
|
|
156
158
|
static get AuthSetup(): Guid;
|
|
@@ -458,4 +460,5 @@ export declare class OmniaWebComponentManifests {
|
|
|
458
460
|
static get DateTimePropertyConfiguration(): Guid;
|
|
459
461
|
static get BirthdayPropertyConfiguration(): Guid;
|
|
460
462
|
static get AnalyticsSettings(): Guid;
|
|
463
|
+
static get FxUxGptImageProvider(): Guid;
|
|
461
464
|
}
|
package/ManifestIds.js
CHANGED
|
@@ -479,6 +479,12 @@ class OmniaResourceManifests {
|
|
|
479
479
|
static get MagicLinkCore() {
|
|
480
480
|
return new models_1.Guid("801bcf8f-94fd-4619-843f-7f1fc0c57b3c");
|
|
481
481
|
}
|
|
482
|
+
static get GptImageTenantFeature() {
|
|
483
|
+
return new models_1.Guid("1a8ac8a6-6c50-409a-89ba-8de704240517");
|
|
484
|
+
}
|
|
485
|
+
static get GptImageMediaProviderFeature() {
|
|
486
|
+
return new models_1.Guid("76f41c1b-9b18-4200-b7e1-19827aafcac1");
|
|
487
|
+
}
|
|
482
488
|
}
|
|
483
489
|
exports.OmniaResourceManifests = OmniaResourceManifests;
|
|
484
490
|
class OmniaWebComponentManifests {
|
|
@@ -1376,5 +1382,6 @@ class OmniaWebComponentManifests {
|
|
|
1376
1382
|
static get DateTimePropertyConfiguration() { return new models_1.Guid("0AA4B891-6FCF-4B1F-959C-8FD04EF8BFE9"); }
|
|
1377
1383
|
static get BirthdayPropertyConfiguration() { return new models_1.Guid("5b7f85ec-36cf-4e88-911e-7951ccec4e2b"); }
|
|
1378
1384
|
static get AnalyticsSettings() { return new models_1.Guid("4d83f393-bd89-4ea0-b1c3-eb4ebce3ad19"); }
|
|
1385
|
+
static get FxUxGptImageProvider() { return new models_1.Guid("e3bf7cc6-b08b-4148-8653-ec7c91b0aea4"); }
|
|
1379
1386
|
}
|
|
1380
1387
|
exports.OmniaWebComponentManifests = OmniaWebComponentManifests;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseResponse } from "..";
|
|
2
|
+
export interface TextToImagesResponse extends TextToImagesResult {
|
|
3
|
+
}
|
|
4
|
+
export interface TextToImagesResult extends BaseResponse {
|
|
5
|
+
created: number;
|
|
6
|
+
data: Array<TextToBase64ImageItem>;
|
|
7
|
+
}
|
|
8
|
+
export interface TextToBase64ImageItem {
|
|
9
|
+
b64_json: string;
|
|
10
|
+
}
|
package/azure-openai/index.d.ts
CHANGED
package/azure-openai/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MediaPickerProvider } from ".";
|
|
2
|
+
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
3
|
+
import { MediaPickerEnums } from "../../Enums";
|
|
4
|
+
import { IIcon } from "../../Icon";
|
|
5
|
+
import { MediaPickerPersistedImage } from "../Shared";
|
|
6
|
+
import { MediaPickerVideo } from "../MediaPickerMedia";
|
|
7
|
+
export declare class MediaPickerGptImageProvider implements MediaPickerProvider {
|
|
8
|
+
id: GuidValue;
|
|
9
|
+
category: string;
|
|
10
|
+
name: string;
|
|
11
|
+
icon: IIcon;
|
|
12
|
+
sortOrder?: number;
|
|
13
|
+
selectableMediaTypes: MediaPickerEnums.OmniaMediaTypes[];
|
|
14
|
+
providerComponentId: GuidValue;
|
|
15
|
+
supportGalleryFeature?: boolean;
|
|
16
|
+
constructor();
|
|
17
|
+
hasEditorForMedia: (media: MediaPickerVideo | MediaPickerPersistedImage) => boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediaPickerGptImageProvider = void 0;
|
|
4
|
+
const Enums_1 = require("../../Enums");
|
|
5
|
+
const Icon_1 = require("../../Icon");
|
|
6
|
+
const Constants_1 = require("../../Constants");
|
|
7
|
+
const ManifestIds_1 = require("../../ManifestIds");
|
|
8
|
+
class MediaPickerGptImageProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.hasEditorForMedia = (media) => {
|
|
11
|
+
return false;
|
|
12
|
+
};
|
|
13
|
+
this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.gptimage;
|
|
14
|
+
this.category = "image";
|
|
15
|
+
this.name = "GptImage";
|
|
16
|
+
this.icon = new Icon_1.SvgIcon("<svg width=\"24px\" height=\"24px\" style=\"color: white\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>OpenAI</title><path d=\"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z\" fill=\"white\"></path></svg>");
|
|
17
|
+
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxGptImageProvider;
|
|
18
|
+
this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
|
|
19
|
+
this.sortOrder = 80;
|
|
20
|
+
this.supportGalleryFeature = true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.MediaPickerGptImageProvider = MediaPickerGptImageProvider;
|
|
@@ -12,3 +12,4 @@ tslib_1.__exportStar(require("./DallEProvider"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./MediaflowProvider"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./IMediaPostProcess"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./MediaPickerFileHandlerProvider"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GptImageProvider"), exports);
|