@nimiplatform/sdk 0.13.0 → 0.15.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/CHANGELOG.md +33 -0
- package/README.md +318 -4
- package/dist/core/ai/capability-configuration.d.ts +3 -0
- package/dist/core/ai/capability-configuration.d.ts.map +1 -1
- package/dist/core/ai/capability-configuration.js +3 -0
- package/dist/core/ai/capability-configuration.js.map +1 -1
- package/dist/core/ai/local-app-model.d.ts.map +1 -1
- package/dist/core/ai/local-app-model.js +1 -0
- package/dist/core/ai/local-app-model.js.map +1 -1
- package/dist/core/ai/voice-reference-input.d.ts +9 -0
- package/dist/core/ai/voice-reference-input.d.ts.map +1 -0
- package/dist/core/ai/voice-reference-input.js +17 -0
- package/dist/core/ai/voice-reference-input.js.map +1 -0
- package/dist/core/app/index.d.ts +6 -0
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js +3 -0
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-audio-separation.d.ts +6 -0
- package/dist/core/app/local-app-audio-separation.d.ts.map +1 -0
- package/dist/core/app/local-app-audio-separation.js +31 -0
- package/dist/core/app/local-app-audio-separation.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai-config.js +7 -0
- package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts +21 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +88 -12
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-validation.js +8 -0
- package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
- package/dist/core/app/local-app-text-annotation.d.ts +24 -0
- package/dist/core/app/local-app-text-annotation.d.ts.map +1 -0
- package/dist/core/app/local-app-text-annotation.js +71 -0
- package/dist/core/app/local-app-text-annotation.js.map +1 -0
- package/dist/core/app/local-app-transcription.d.ts +12 -0
- package/dist/core/app/local-app-transcription.d.ts.map +1 -0
- package/dist/core/app/local-app-transcription.js +28 -0
- package/dist/core/app/local-app-transcription.js.map +1 -0
- package/dist/core-generated/realm-typed-client.d.ts +73 -5
- package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
- package/dist/core-generated/realm-typed-client.js +64 -2
- package/dist/core-generated/realm-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +375 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +760 -5
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +128 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +254 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +123 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +189 -8
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +15 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +15 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +34 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +36 -4
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts +13 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js +17 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +4 -4
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +1 -1
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/features/generation/index.d.ts +2 -0
- package/dist/features/generation/index.d.ts.map +1 -1
- package/dist/features/generation/index.js +12 -2
- package/dist/features/generation/index.js.map +1 -1
- package/dist/runtime/config-projections.d.ts.map +1 -1
- package/dist/runtime/config-projections.js +30 -1
- package/dist/runtime/config-projections.js.map +1 -1
- package/dist/runtime/connector-inventory.js +3 -3
- package/dist/runtime/connector-inventory.js.map +1 -1
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/machine-loadouts.d.ts +15 -1
- package/dist/runtime/machine-loadouts.d.ts.map +1 -1
- package/dist/runtime/machine-loadouts.js +13 -2
- package/dist/runtime/machine-loadouts.js.map +1 -1
- package/dist/runtime/node-grpc.d.ts.map +1 -1
- package/dist/runtime/node-grpc.js +35 -4
- package/dist/runtime/node-grpc.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.js +4 -0
- package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +10 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +5 -1
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
- package/dist/runtime/shared-local-agent-ai-config.js +3 -0
- package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +8 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +8 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +2 -0
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +2 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/package.json +1 -1
|
@@ -3601,6 +3601,244 @@ class ApprovedAppCatalogStorageDisclosure$Type extends MessageType {
|
|
|
3601
3601
|
*/
|
|
3602
3602
|
export const ApprovedAppCatalogStorageDisclosure = new ApprovedAppCatalogStorageDisclosure$Type();
|
|
3603
3603
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3604
|
+
class AppSafetyOutputDeclaration$Type extends MessageType {
|
|
3605
|
+
constructor() {
|
|
3606
|
+
super("nimi.runtime.v1.AppSafetyOutputDeclaration", [
|
|
3607
|
+
{ no: 1, name: "modality", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3608
|
+
{ no: 2, name: "exposure", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3609
|
+
{ no: 3, name: "publication_control", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3610
|
+
{ no: 4, name: "in_product_notice", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3611
|
+
{ no: 5, name: "export_visible_marking", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3612
|
+
{ no: 6, name: "machine_readable_marking", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3613
|
+
]);
|
|
3614
|
+
}
|
|
3615
|
+
create(value) {
|
|
3616
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3617
|
+
message.modality = "";
|
|
3618
|
+
message.exposure = "";
|
|
3619
|
+
message.publicationControl = "";
|
|
3620
|
+
message.inProductNotice = "";
|
|
3621
|
+
message.exportVisibleMarking = "";
|
|
3622
|
+
message.machineReadableMarking = "";
|
|
3623
|
+
if (value !== undefined)
|
|
3624
|
+
reflectionMergePartial(this, message, value);
|
|
3625
|
+
return message;
|
|
3626
|
+
}
|
|
3627
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3628
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3629
|
+
while (reader.pos < end) {
|
|
3630
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3631
|
+
switch (fieldNo) {
|
|
3632
|
+
case /* string modality */ 1:
|
|
3633
|
+
message.modality = reader.string();
|
|
3634
|
+
break;
|
|
3635
|
+
case /* string exposure */ 2:
|
|
3636
|
+
message.exposure = reader.string();
|
|
3637
|
+
break;
|
|
3638
|
+
case /* string publication_control */ 3:
|
|
3639
|
+
message.publicationControl = reader.string();
|
|
3640
|
+
break;
|
|
3641
|
+
case /* string in_product_notice */ 4:
|
|
3642
|
+
message.inProductNotice = reader.string();
|
|
3643
|
+
break;
|
|
3644
|
+
case /* string export_visible_marking */ 5:
|
|
3645
|
+
message.exportVisibleMarking = reader.string();
|
|
3646
|
+
break;
|
|
3647
|
+
case /* string machine_readable_marking */ 6:
|
|
3648
|
+
message.machineReadableMarking = reader.string();
|
|
3649
|
+
break;
|
|
3650
|
+
default:
|
|
3651
|
+
let u = options.readUnknownField;
|
|
3652
|
+
if (u === "throw")
|
|
3653
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3654
|
+
let d = reader.skip(wireType);
|
|
3655
|
+
if (u !== false)
|
|
3656
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3657
|
+
}
|
|
3658
|
+
}
|
|
3659
|
+
return message;
|
|
3660
|
+
}
|
|
3661
|
+
internalBinaryWrite(message, writer, options) {
|
|
3662
|
+
/* string modality = 1; */
|
|
3663
|
+
if (message.modality !== "")
|
|
3664
|
+
writer.tag(1, WireType.LengthDelimited).string(message.modality);
|
|
3665
|
+
/* string exposure = 2; */
|
|
3666
|
+
if (message.exposure !== "")
|
|
3667
|
+
writer.tag(2, WireType.LengthDelimited).string(message.exposure);
|
|
3668
|
+
/* string publication_control = 3; */
|
|
3669
|
+
if (message.publicationControl !== "")
|
|
3670
|
+
writer.tag(3, WireType.LengthDelimited).string(message.publicationControl);
|
|
3671
|
+
/* string in_product_notice = 4; */
|
|
3672
|
+
if (message.inProductNotice !== "")
|
|
3673
|
+
writer.tag(4, WireType.LengthDelimited).string(message.inProductNotice);
|
|
3674
|
+
/* string export_visible_marking = 5; */
|
|
3675
|
+
if (message.exportVisibleMarking !== "")
|
|
3676
|
+
writer.tag(5, WireType.LengthDelimited).string(message.exportVisibleMarking);
|
|
3677
|
+
/* string machine_readable_marking = 6; */
|
|
3678
|
+
if (message.machineReadableMarking !== "")
|
|
3679
|
+
writer.tag(6, WireType.LengthDelimited).string(message.machineReadableMarking);
|
|
3680
|
+
let u = options.writeUnknownFields;
|
|
3681
|
+
if (u !== false)
|
|
3682
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3683
|
+
return writer;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.AppSafetyOutputDeclaration
|
|
3688
|
+
*/
|
|
3689
|
+
export const AppSafetyOutputDeclaration = new AppSafetyOutputDeclaration$Type();
|
|
3690
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3691
|
+
class AppSafetyDeclaration$Type extends MessageType {
|
|
3692
|
+
constructor() {
|
|
3693
|
+
super("nimi.runtime.v1.AppSafetyDeclaration", [
|
|
3694
|
+
{ no: 1, name: "intended_audience", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3695
|
+
{ no: 2, name: "content_descriptors", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3696
|
+
{ no: 3, name: "ai_direct_interaction", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3697
|
+
{ no: 4, name: "ai_interaction_notice", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3698
|
+
{ no: 5, name: "ai_risk_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3699
|
+
{ no: 6, name: "ai_subject_notice", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3700
|
+
{ no: 7, name: "ai_outputs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppSafetyOutputDeclaration },
|
|
3701
|
+
{ no: 8, name: "publisher_direct_external_network", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3702
|
+
{ no: 9, name: "telemetry", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3703
|
+
{ no: 10, name: "third_party_account", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3704
|
+
{ no: 11, name: "user_content_sharing", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3705
|
+
{ no: 12, name: "commercial_features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3706
|
+
{ no: 13, name: "sensitive_data_categories", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3707
|
+
{ no: 14, name: "high_impact_decision_uses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3708
|
+
]);
|
|
3709
|
+
}
|
|
3710
|
+
create(value) {
|
|
3711
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3712
|
+
message.intendedAudience = "";
|
|
3713
|
+
message.contentDescriptors = [];
|
|
3714
|
+
message.aiDirectInteraction = false;
|
|
3715
|
+
message.aiInteractionNotice = "";
|
|
3716
|
+
message.aiRiskFeatures = [];
|
|
3717
|
+
message.aiSubjectNotice = "";
|
|
3718
|
+
message.aiOutputs = [];
|
|
3719
|
+
message.publisherDirectExternalNetwork = false;
|
|
3720
|
+
message.telemetry = [];
|
|
3721
|
+
message.thirdPartyAccount = "";
|
|
3722
|
+
message.userContentSharing = "";
|
|
3723
|
+
message.commercialFeatures = [];
|
|
3724
|
+
message.sensitiveDataCategories = [];
|
|
3725
|
+
message.highImpactDecisionUses = [];
|
|
3726
|
+
if (value !== undefined)
|
|
3727
|
+
reflectionMergePartial(this, message, value);
|
|
3728
|
+
return message;
|
|
3729
|
+
}
|
|
3730
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3731
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3732
|
+
while (reader.pos < end) {
|
|
3733
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3734
|
+
switch (fieldNo) {
|
|
3735
|
+
case /* string intended_audience */ 1:
|
|
3736
|
+
message.intendedAudience = reader.string();
|
|
3737
|
+
break;
|
|
3738
|
+
case /* repeated string content_descriptors */ 2:
|
|
3739
|
+
message.contentDescriptors.push(reader.string());
|
|
3740
|
+
break;
|
|
3741
|
+
case /* bool ai_direct_interaction */ 3:
|
|
3742
|
+
message.aiDirectInteraction = reader.bool();
|
|
3743
|
+
break;
|
|
3744
|
+
case /* string ai_interaction_notice */ 4:
|
|
3745
|
+
message.aiInteractionNotice = reader.string();
|
|
3746
|
+
break;
|
|
3747
|
+
case /* repeated string ai_risk_features */ 5:
|
|
3748
|
+
message.aiRiskFeatures.push(reader.string());
|
|
3749
|
+
break;
|
|
3750
|
+
case /* string ai_subject_notice */ 6:
|
|
3751
|
+
message.aiSubjectNotice = reader.string();
|
|
3752
|
+
break;
|
|
3753
|
+
case /* repeated nimi.runtime.v1.AppSafetyOutputDeclaration ai_outputs */ 7:
|
|
3754
|
+
message.aiOutputs.push(AppSafetyOutputDeclaration.internalBinaryRead(reader, reader.uint32(), options));
|
|
3755
|
+
break;
|
|
3756
|
+
case /* bool publisher_direct_external_network */ 8:
|
|
3757
|
+
message.publisherDirectExternalNetwork = reader.bool();
|
|
3758
|
+
break;
|
|
3759
|
+
case /* repeated string telemetry */ 9:
|
|
3760
|
+
message.telemetry.push(reader.string());
|
|
3761
|
+
break;
|
|
3762
|
+
case /* string third_party_account */ 10:
|
|
3763
|
+
message.thirdPartyAccount = reader.string();
|
|
3764
|
+
break;
|
|
3765
|
+
case /* string user_content_sharing */ 11:
|
|
3766
|
+
message.userContentSharing = reader.string();
|
|
3767
|
+
break;
|
|
3768
|
+
case /* repeated string commercial_features */ 12:
|
|
3769
|
+
message.commercialFeatures.push(reader.string());
|
|
3770
|
+
break;
|
|
3771
|
+
case /* repeated string sensitive_data_categories */ 13:
|
|
3772
|
+
message.sensitiveDataCategories.push(reader.string());
|
|
3773
|
+
break;
|
|
3774
|
+
case /* repeated string high_impact_decision_uses */ 14:
|
|
3775
|
+
message.highImpactDecisionUses.push(reader.string());
|
|
3776
|
+
break;
|
|
3777
|
+
default:
|
|
3778
|
+
let u = options.readUnknownField;
|
|
3779
|
+
if (u === "throw")
|
|
3780
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3781
|
+
let d = reader.skip(wireType);
|
|
3782
|
+
if (u !== false)
|
|
3783
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
return message;
|
|
3787
|
+
}
|
|
3788
|
+
internalBinaryWrite(message, writer, options) {
|
|
3789
|
+
/* string intended_audience = 1; */
|
|
3790
|
+
if (message.intendedAudience !== "")
|
|
3791
|
+
writer.tag(1, WireType.LengthDelimited).string(message.intendedAudience);
|
|
3792
|
+
/* repeated string content_descriptors = 2; */
|
|
3793
|
+
for (let i = 0; i < message.contentDescriptors.length; i++)
|
|
3794
|
+
writer.tag(2, WireType.LengthDelimited).string(message.contentDescriptors[i]);
|
|
3795
|
+
/* bool ai_direct_interaction = 3; */
|
|
3796
|
+
if (message.aiDirectInteraction !== false)
|
|
3797
|
+
writer.tag(3, WireType.Varint).bool(message.aiDirectInteraction);
|
|
3798
|
+
/* string ai_interaction_notice = 4; */
|
|
3799
|
+
if (message.aiInteractionNotice !== "")
|
|
3800
|
+
writer.tag(4, WireType.LengthDelimited).string(message.aiInteractionNotice);
|
|
3801
|
+
/* repeated string ai_risk_features = 5; */
|
|
3802
|
+
for (let i = 0; i < message.aiRiskFeatures.length; i++)
|
|
3803
|
+
writer.tag(5, WireType.LengthDelimited).string(message.aiRiskFeatures[i]);
|
|
3804
|
+
/* string ai_subject_notice = 6; */
|
|
3805
|
+
if (message.aiSubjectNotice !== "")
|
|
3806
|
+
writer.tag(6, WireType.LengthDelimited).string(message.aiSubjectNotice);
|
|
3807
|
+
/* repeated nimi.runtime.v1.AppSafetyOutputDeclaration ai_outputs = 7; */
|
|
3808
|
+
for (let i = 0; i < message.aiOutputs.length; i++)
|
|
3809
|
+
AppSafetyOutputDeclaration.internalBinaryWrite(message.aiOutputs[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3810
|
+
/* bool publisher_direct_external_network = 8; */
|
|
3811
|
+
if (message.publisherDirectExternalNetwork !== false)
|
|
3812
|
+
writer.tag(8, WireType.Varint).bool(message.publisherDirectExternalNetwork);
|
|
3813
|
+
/* repeated string telemetry = 9; */
|
|
3814
|
+
for (let i = 0; i < message.telemetry.length; i++)
|
|
3815
|
+
writer.tag(9, WireType.LengthDelimited).string(message.telemetry[i]);
|
|
3816
|
+
/* string third_party_account = 10; */
|
|
3817
|
+
if (message.thirdPartyAccount !== "")
|
|
3818
|
+
writer.tag(10, WireType.LengthDelimited).string(message.thirdPartyAccount);
|
|
3819
|
+
/* string user_content_sharing = 11; */
|
|
3820
|
+
if (message.userContentSharing !== "")
|
|
3821
|
+
writer.tag(11, WireType.LengthDelimited).string(message.userContentSharing);
|
|
3822
|
+
/* repeated string commercial_features = 12; */
|
|
3823
|
+
for (let i = 0; i < message.commercialFeatures.length; i++)
|
|
3824
|
+
writer.tag(12, WireType.LengthDelimited).string(message.commercialFeatures[i]);
|
|
3825
|
+
/* repeated string sensitive_data_categories = 13; */
|
|
3826
|
+
for (let i = 0; i < message.sensitiveDataCategories.length; i++)
|
|
3827
|
+
writer.tag(13, WireType.LengthDelimited).string(message.sensitiveDataCategories[i]);
|
|
3828
|
+
/* repeated string high_impact_decision_uses = 14; */
|
|
3829
|
+
for (let i = 0; i < message.highImpactDecisionUses.length; i++)
|
|
3830
|
+
writer.tag(14, WireType.LengthDelimited).string(message.highImpactDecisionUses[i]);
|
|
3831
|
+
let u = options.writeUnknownFields;
|
|
3832
|
+
if (u !== false)
|
|
3833
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3834
|
+
return writer;
|
|
3835
|
+
}
|
|
3836
|
+
}
|
|
3837
|
+
/**
|
|
3838
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.AppSafetyDeclaration
|
|
3839
|
+
*/
|
|
3840
|
+
export const AppSafetyDeclaration = new AppSafetyDeclaration$Type();
|
|
3841
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3604
3842
|
class ApprovedAppCatalogTarget$Type extends MessageType {
|
|
3605
3843
|
constructor() {
|
|
3606
3844
|
super("nimi.runtime.v1.ApprovedAppCatalogTarget", [
|
|
@@ -3630,7 +3868,8 @@ class ApprovedAppCatalogTarget$Type extends MessageType {
|
|
|
3630
3868
|
{ no: 24, name: "policy_reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3631
3869
|
{ no: 25, name: "policy_revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
3632
3870
|
{ no: 26, name: "macos_notarization", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3633
|
-
{ no: 27, name: "macos_developer_id_subject", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
3871
|
+
{ no: 27, name: "macos_developer_id_subject", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3872
|
+
{ no: 28, name: "safety_declaration", kind: "message", T: () => AppSafetyDeclaration }
|
|
3634
3873
|
]);
|
|
3635
3874
|
}
|
|
3636
3875
|
create(value) {
|
|
@@ -3749,6 +3988,9 @@ class ApprovedAppCatalogTarget$Type extends MessageType {
|
|
|
3749
3988
|
case /* optional string macos_developer_id_subject */ 27:
|
|
3750
3989
|
message.macosDeveloperIdSubject = reader.string();
|
|
3751
3990
|
break;
|
|
3991
|
+
case /* nimi.runtime.v1.AppSafetyDeclaration safety_declaration */ 28:
|
|
3992
|
+
message.safetyDeclaration = AppSafetyDeclaration.internalBinaryRead(reader, reader.uint32(), options, message.safetyDeclaration);
|
|
3993
|
+
break;
|
|
3752
3994
|
default:
|
|
3753
3995
|
let u = options.readUnknownField;
|
|
3754
3996
|
if (u === "throw")
|
|
@@ -3842,6 +4084,9 @@ class ApprovedAppCatalogTarget$Type extends MessageType {
|
|
|
3842
4084
|
/* optional string macos_developer_id_subject = 27; */
|
|
3843
4085
|
if (message.macosDeveloperIdSubject !== undefined)
|
|
3844
4086
|
writer.tag(27, WireType.LengthDelimited).string(message.macosDeveloperIdSubject);
|
|
4087
|
+
/* nimi.runtime.v1.AppSafetyDeclaration safety_declaration = 28; */
|
|
4088
|
+
if (message.safetyDeclaration)
|
|
4089
|
+
AppSafetyDeclaration.internalBinaryWrite(message.safetyDeclaration, writer.tag(28, WireType.LengthDelimited).fork(), options).join();
|
|
3845
4090
|
let u = options.writeUnknownFields;
|
|
3846
4091
|
if (u !== false)
|
|
3847
4092
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4618,7 +4863,8 @@ class AppPackageInfo$Type extends MessageType {
|
|
|
4618
4863
|
{ no: 15, name: "os_storage_disclosure", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ApprovedAppCatalogStorageDisclosure },
|
|
4619
4864
|
{ no: 16, name: "author", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4620
4865
|
{ no: 17, name: "homepage_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4621
|
-
{ no: 18, name: "support_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4866
|
+
{ no: 18, name: "support_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4867
|
+
{ no: 19, name: "safety_declaration", kind: "message", T: () => AppSafetyDeclaration }
|
|
4622
4868
|
]);
|
|
4623
4869
|
}
|
|
4624
4870
|
create(value) {
|
|
@@ -4704,6 +4950,9 @@ class AppPackageInfo$Type extends MessageType {
|
|
|
4704
4950
|
case /* string support_url */ 18:
|
|
4705
4951
|
message.supportUrl = reader.string();
|
|
4706
4952
|
break;
|
|
4953
|
+
case /* nimi.runtime.v1.AppSafetyDeclaration safety_declaration */ 19:
|
|
4954
|
+
message.safetyDeclaration = AppSafetyDeclaration.internalBinaryRead(reader, reader.uint32(), options, message.safetyDeclaration);
|
|
4955
|
+
break;
|
|
4707
4956
|
default:
|
|
4708
4957
|
let u = options.readUnknownField;
|
|
4709
4958
|
if (u === "throw")
|
|
@@ -4770,6 +5019,9 @@ class AppPackageInfo$Type extends MessageType {
|
|
|
4770
5019
|
/* string support_url = 18; */
|
|
4771
5020
|
if (message.supportUrl !== "")
|
|
4772
5021
|
writer.tag(18, WireType.LengthDelimited).string(message.supportUrl);
|
|
5022
|
+
/* nimi.runtime.v1.AppSafetyDeclaration safety_declaration = 19; */
|
|
5023
|
+
if (message.safetyDeclaration)
|
|
5024
|
+
AppSafetyDeclaration.internalBinaryWrite(message.safetyDeclaration, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
4773
5025
|
let u = options.writeUnknownFields;
|
|
4774
5026
|
if (u !== false)
|
|
4775
5027
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|