edge-impulse-api 1.94.0 → 1.94.2

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 (42) hide show
  1. package/build/browser/edge-impulse-api.d.ts +255 -3
  2. package/build/browser/edge-impulse-api.js +1016 -229
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/api/apis.d.ts +3 -1
  5. package/build/library/sdk/api/apis.js +3 -1
  6. package/build/library/sdk/api/apis.js.map +1 -1
  7. package/build/library/sdk/api/organizationOAuthClientsApi.d.ts +167 -0
  8. package/build/library/sdk/api/organizationOAuthClientsApi.js +726 -0
  9. package/build/library/sdk/api/organizationOAuthClientsApi.js.map +1 -0
  10. package/build/library/sdk/model/createOAuthClientRequest.d.ts +8 -0
  11. package/build/library/sdk/model/createOAuthClientRequest.js +4 -0
  12. package/build/library/sdk/model/createOAuthClientRequest.js.map +1 -0
  13. package/build/library/sdk/model/createOAuthClientResponse.d.ts +13 -0
  14. package/build/library/sdk/model/createOAuthClientResponse.js +4 -0
  15. package/build/library/sdk/model/createOAuthClientResponse.js.map +1 -0
  16. package/build/library/sdk/model/deploymentTarget.d.ts +4 -1
  17. package/build/library/sdk/model/deploymentTarget.js.map +1 -1
  18. package/build/library/sdk/model/deploymentTargetEngine.js.map +1 -1
  19. package/build/library/sdk/model/feature.d.ts +1 -1
  20. package/build/library/sdk/model/feature.js +1 -1
  21. package/build/library/sdk/model/feature.js.map +1 -1
  22. package/build/library/sdk/model/getOrganizationOAuthClientResponse.d.ts +12 -0
  23. package/build/library/sdk/model/getOrganizationOAuthClientResponse.js +4 -0
  24. package/build/library/sdk/model/getOrganizationOAuthClientResponse.js.map +1 -0
  25. package/build/library/sdk/model/listOrganizationOAuthClientsResponse.d.ts +12 -0
  26. package/build/library/sdk/model/listOrganizationOAuthClientsResponse.js +4 -0
  27. package/build/library/sdk/model/listOrganizationOAuthClientsResponse.js.map +1 -0
  28. package/build/library/sdk/model/models.d.ts +7 -0
  29. package/build/library/sdk/model/models.js +7 -0
  30. package/build/library/sdk/model/models.js.map +1 -1
  31. package/build/library/sdk/model/projectDeploymentTarget.d.ts +3 -0
  32. package/build/library/sdk/model/projectDeploymentTarget.js.map +1 -1
  33. package/build/library/sdk/model/rotateOAuthClientSecretResponse.d.ts +11 -0
  34. package/build/library/sdk/model/rotateOAuthClientSecretResponse.js +4 -0
  35. package/build/library/sdk/model/rotateOAuthClientSecretResponse.js.map +1 -0
  36. package/build/library/sdk/model/selfServeOAuthClient.d.ts +13 -0
  37. package/build/library/sdk/model/selfServeOAuthClient.js +4 -0
  38. package/build/library/sdk/model/selfServeOAuthClient.js.map +1 -0
  39. package/build/library/sdk/model/updateOAuthClientRequest.d.ts +7 -0
  40. package/build/library/sdk/model/updateOAuthClientRequest.js +4 -0
  41. package/build/library/sdk/model/updateOAuthClientRequest.js.map +1 -0
  42. package/package.json +1 -1
@@ -95,7 +95,7 @@ export interface RequestDetailedFile {
95
95
  };
96
96
  }
97
97
  export type RequestFile = RequestDetailedFile;
98
- export const APIS: (typeof AdminApi | typeof AuthApi | typeof CDNApi | typeof CanaryApi | typeof ClassifyApi | typeof DSPApi | typeof DatasetVersionsApi | typeof DeploymentApi | typeof DevicesApi | typeof EmailVerificationApi | typeof ExportApi | typeof FeatureFlagsApi | typeof HealthApi | typeof ImpulseApi | typeof IntegrationsApi | typeof JobsApi | typeof LearnApi | typeof LoginApi | typeof MetricsApi | typeof MonitoringApi | typeof OptimizationApi | typeof OrganizationBlocksApi | typeof OrganizationCreateProjectApi | typeof OrganizationDataApi | typeof OrganizationDataCampaignsApi | typeof OrganizationJobsApi | typeof OrganizationPipelinesApi | typeof OrganizationPortalsApi | typeof OrganizationsApi | typeof PerformanceCalibrationApi | typeof PostProcessingApi | typeof ProjectsApi | typeof RawDataApi | typeof TestApi | typeof ThemesApi | typeof UploadPortalApi | typeof UserApi | typeof VlmApi | typeof WhitelabelsApi)[];
98
+ export const APIS: (typeof AdminApi | typeof AuthApi | typeof CDNApi | typeof CanaryApi | typeof ClassifyApi | typeof DSPApi | typeof DatasetVersionsApi | typeof DeploymentApi | typeof DevicesApi | typeof EmailVerificationApi | typeof ExportApi | typeof FeatureFlagsApi | typeof HealthApi | typeof ImpulseApi | typeof IntegrationsApi | typeof JobsApi | typeof LearnApi | typeof LoginApi | typeof MetricsApi | typeof MonitoringApi | typeof OptimizationApi | typeof OrganizationBlocksApi | typeof OrganizationCreateProjectApi | typeof OrganizationDataApi | typeof OrganizationDataCampaignsApi | typeof OrganizationJobsApi | typeof OrganizationOAuthClientsApi | typeof OrganizationPipelinesApi | typeof OrganizationPortalsApi | typeof OrganizationsApi | typeof PerformanceCalibrationApi | typeof PostProcessingApi | typeof ProjectsApi | typeof RawDataApi | typeof TestApi | typeof ThemesApi | typeof UploadPortalApi | typeof UserApi | typeof VlmApi | typeof WhitelabelsApi)[];
99
99
 
100
100
 
101
101
  /**
@@ -8003,6 +8003,164 @@ export class OrganizationJobsApi {
8003
8003
  export {};
8004
8004
 
8005
8005
 
8006
+ /**
8007
+ * Edge Impulse API
8008
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8009
+ *
8010
+ * The version of the OpenAPI document: 1.0.0
8011
+ *
8012
+ *
8013
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8014
+ * https://openapi-generator.tech
8015
+ * Do not edit the class manually.
8016
+ */
8017
+ export enum OrganizationOAuthClientsApiApiKeys {
8018
+ ApiKeyAuthentication = 0,
8019
+ JWTAuthentication = 1,
8020
+ JWTHttpHeaderAuthentication = 2
8021
+ }
8022
+ export type uploadOrganizationOAuthClientLogoFormParams = {
8023
+ image: RequestFile;
8024
+ };
8025
+ export type OrganizationOAuthClientsApiOpts = {
8026
+ extraHeaders?: Record<string, string>;
8027
+ };
8028
+ export class OrganizationOAuthClientsApi {
8029
+ protected _basePath: string;
8030
+ protected defaultHeaders: Record<string, string>;
8031
+ protected _opts: OrganizationOAuthClientsApiOpts;
8032
+ protected authentications: {
8033
+ default: Authentication;
8034
+ ApiKeyAuthentication: ApiKeyAuth;
8035
+ OAuth2: OAuth;
8036
+ JWTAuthentication: ApiKeyAuth;
8037
+ JWTHttpHeaderAuthentication: ApiKeyAuth;
8038
+ };
8039
+ protected handleResponse(response: Response | Response, returnType: string | undefined): Promise<any>;
8040
+ constructor(basePath?: string, opts?: OrganizationOAuthClientsApiOpts);
8041
+ set basePath(basePath: string);
8042
+ get basePath(): string;
8043
+ set opts(opts: OrganizationOAuthClientsApiOpts);
8044
+ get opts(): OrganizationOAuthClientsApiOpts;
8045
+ setDefaultAuthentication(auth: Authentication): void;
8046
+ setApiKey(key: OrganizationOAuthClientsApiApiKeys, value: string | undefined): void;
8047
+ set accessToken(token: string);
8048
+ /**
8049
+ * Registers a new OAuth app owned by the developer profile organization and returns the client id and one-time client secret.
8050
+ * @summary Create an OAuth app
8051
+ * @param organizationId Organization ID
8052
+ * @param createOAuthClientRequest
8053
+ */
8054
+ createOrganizationOAuthClient(organizationId: number, createOAuthClientRequest: CreateOAuthClientRequest, options?: {
8055
+ headers: {
8056
+ [name: string]: string;
8057
+ };
8058
+ responseHeadersCallback?: (headers: {
8059
+ [name: string]: string;
8060
+ }) => void;
8061
+ }): Promise<CreateOAuthClientResponse>;
8062
+ /**
8063
+ * Deletes an OAuth app owned by the developer profile organization and revokes its tokens and authorization codes.
8064
+ * @summary Delete an OAuth app
8065
+ * @param organizationId Organization ID
8066
+ * @param oauthClientId
8067
+ */
8068
+ deleteOrganizationOAuthClient(organizationId: number, oauthClientId: number, options?: {
8069
+ headers: {
8070
+ [name: string]: string;
8071
+ };
8072
+ responseHeadersCallback?: (headers: {
8073
+ [name: string]: string;
8074
+ }) => void;
8075
+ }): Promise<GenericApiResponse>;
8076
+ /**
8077
+ * Deletes the logo of an OAuth app owned by the developer profile organization.
8078
+ * @summary Delete an OAuth app logo
8079
+ * @param organizationId Organization ID
8080
+ * @param oauthClientId
8081
+ */
8082
+ deleteOrganizationOAuthClientLogo(organizationId: number, oauthClientId: number, options?: {
8083
+ headers: {
8084
+ [name: string]: string;
8085
+ };
8086
+ responseHeadersCallback?: (headers: {
8087
+ [name: string]: string;
8088
+ }) => void;
8089
+ }): Promise<GenericApiResponse>;
8090
+ /**
8091
+ * Retrieves a single OAuth app owned by the developer profile organization.
8092
+ * @summary Get an OAuth app
8093
+ * @param organizationId Organization ID
8094
+ * @param oauthClientId
8095
+ */
8096
+ getOrganizationOAuthClient(organizationId: number, oauthClientId: number, options?: {
8097
+ headers: {
8098
+ [name: string]: string;
8099
+ };
8100
+ responseHeadersCallback?: (headers: {
8101
+ [name: string]: string;
8102
+ }) => void;
8103
+ }): Promise<GetOrganizationOAuthClientResponse>;
8104
+ /**
8105
+ * Lists the OAuth apps owned by the developer profile organization.
8106
+ * @summary List OAuth apps
8107
+ * @param organizationId Organization ID
8108
+ */
8109
+ listOrganizationOAuthClients(organizationId: number, options?: {
8110
+ headers: {
8111
+ [name: string]: string;
8112
+ };
8113
+ responseHeadersCallback?: (headers: {
8114
+ [name: string]: string;
8115
+ }) => void;
8116
+ }): Promise<ListOrganizationOAuthClientsResponse>;
8117
+ /**
8118
+ * Rotates the client secret of an OAuth app owned by the developer profile organization and returns the new one-time secret.
8119
+ * @summary Rotate an OAuth app client secret
8120
+ * @param organizationId Organization ID
8121
+ * @param oauthClientId
8122
+ */
8123
+ rotateOrganizationOAuthClientSecret(organizationId: number, oauthClientId: number, options?: {
8124
+ headers: {
8125
+ [name: string]: string;
8126
+ };
8127
+ responseHeadersCallback?: (headers: {
8128
+ [name: string]: string;
8129
+ }) => void;
8130
+ }): Promise<RotateOAuthClientSecretResponse>;
8131
+ /**
8132
+ * Updates the mutable properties of an OAuth app owned by the developer profile organization.
8133
+ * @summary Update an OAuth app
8134
+ * @param organizationId Organization ID
8135
+ * @param oauthClientId
8136
+ * @param updateOAuthClientRequest
8137
+ */
8138
+ updateOrganizationOAuthClient(organizationId: number, oauthClientId: number, updateOAuthClientRequest: UpdateOAuthClientRequest, options?: {
8139
+ headers: {
8140
+ [name: string]: string;
8141
+ };
8142
+ responseHeadersCallback?: (headers: {
8143
+ [name: string]: string;
8144
+ }) => void;
8145
+ }): Promise<GenericApiResponse>;
8146
+ /**
8147
+ * Uploads a PNG or JPEG logo for an OAuth app owned by the developer profile organization.
8148
+ * @summary Upload an OAuth app logo
8149
+ * @param organizationId Organization ID
8150
+ * @param oauthClientId
8151
+ * @param image
8152
+ */
8153
+ uploadOrganizationOAuthClientLogo(organizationId: number, oauthClientId: number, params: uploadOrganizationOAuthClientLogoFormParams, options?: {
8154
+ headers: {
8155
+ [name: string]: string;
8156
+ };
8157
+ responseHeadersCallback?: (headers: {
8158
+ [name: string]: string;
8159
+ }) => void;
8160
+ }): Promise<GenericApiResponse>;
8161
+ }
8162
+
8163
+
8006
8164
  /**
8007
8165
  * Edge Impulse API
8008
8166
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -16881,6 +17039,31 @@ export type CreateNewEmptyImpulseResponse = {
16881
17039
  };
16882
17040
 
16883
17041
 
17042
+ export type CreateOAuthClientRequest = {
17043
+ name: string;
17044
+ description?: string | null;
17045
+ homepageUrl?: string | null;
17046
+ redirectUris: string[];
17047
+ scopes: string[];
17048
+ isPublic?: boolean;
17049
+ };
17050
+
17051
+
17052
+ export type CreateOAuthClientResponse = {
17053
+ /**
17054
+ * Whether the operation succeeded
17055
+ */
17056
+ success: boolean;
17057
+ /**
17058
+ * Optional error description (set if 'success' was false)
17059
+ */
17060
+ error?: string;
17061
+ id: number;
17062
+ clientId: string;
17063
+ clientSecret?: string | null;
17064
+ };
17065
+
17066
+
16884
17067
  export type CreateOrganizationBucketRequest = {
16885
17068
  name: string;
16886
17069
  };
@@ -18611,7 +18794,10 @@ export type DeploymentTarget = {
18611
18794
  * Preferably use supportedEngines / preferredEngine
18612
18795
  */
18613
18796
  hasNordicAxon: boolean;
18614
- hsasQaic: boolean;
18797
+ /**
18798
+ * Preferably use supportedEngines / preferredEngine
18799
+ */
18800
+ hasQaic: boolean;
18615
18801
  hideOptimizations: boolean;
18616
18802
  badge?: DeploymentTargetBadge;
18617
18803
  uiSection: DeploymentTargetUiSectionEnum;
@@ -19647,7 +19833,7 @@ export const ExtensionVisibilityValues: string[];
19647
19833
  /**
19648
19834
  * Known feature identifiers.
19649
19835
  */
19650
- export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-storage' | 'monthly-compute-limit-enforcement' | 'pay-as-you-go' | 'user-screening-check' | 'oauth2' | 'external-apps-redirect-flow' | 'dataset-versioning';
19836
+ export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-storage' | 'monthly-compute-limit-enforcement' | 'pay-as-you-go' | 'user-screening-check' | 'oauth2' | 'external-apps-redirect-flow' | 'dataset-versioning' | 'oauth2-self-serve';
19651
19837
  export const FeatureValues: string[];
19652
19838
 
19653
19839
 
@@ -20748,6 +20934,19 @@ export type GetOrganizationExtensionBlockResponse = {
20748
20934
  };
20749
20935
 
20750
20936
 
20937
+ export type GetOrganizationOAuthClientResponse = {
20938
+ /**
20939
+ * Whether the operation succeeded
20940
+ */
20941
+ success: boolean;
20942
+ /**
20943
+ * Optional error description (set if 'success' was false)
20944
+ */
20945
+ error?: string;
20946
+ oauthClient: SelfServeOAuthClient;
20947
+ };
20948
+
20949
+
20751
20950
  export type GetOrganizationPipelinesResponse = {
20752
20951
  /**
20753
20952
  * Whether the operation succeeded
@@ -23228,6 +23427,19 @@ export type ListOrganizationFilesResponse = {
23228
23427
  };
23229
23428
 
23230
23429
 
23430
+ export type ListOrganizationOAuthClientsResponse = {
23431
+ /**
23432
+ * Whether the operation succeeded
23433
+ */
23434
+ success: boolean;
23435
+ /**
23436
+ * Optional error description (set if 'success' was false)
23437
+ */
23438
+ error?: string;
23439
+ oauthClients: SelfServeOAuthClient[];
23440
+ };
23441
+
23442
+
23231
23443
  export type ListOrganizationPipelinesResponse = {
23232
23444
  /**
23233
23445
  * Whether the operation succeeded
@@ -26927,6 +27139,9 @@ export type ProjectDeploymentTarget = {
26927
27139
  * Preferably use supportedEngines / preferredEngine
26928
27140
  */
26929
27141
  hasNordicAxon: boolean;
27142
+ /**
27143
+ * Preferably use supportedEngines / preferredEngine
27144
+ */
26930
27145
  hasQaic: boolean;
26931
27146
  hideOptimizations: boolean;
26932
27147
  badge?: DeploymentTargetBadge;
@@ -27849,6 +28064,19 @@ export type RestoreProjectRequest = {
27849
28064
  };
27850
28065
 
27851
28066
 
28067
+ export type RotateOAuthClientSecretResponse = {
28068
+ /**
28069
+ * Whether the operation succeeded
28070
+ */
28071
+ success: boolean;
28072
+ /**
28073
+ * Optional error description (set if 'success' was false)
28074
+ */
28075
+ error?: string;
28076
+ clientSecret: string;
28077
+ };
28078
+
28079
+
27852
28080
  export type RotateWebhookDestinationSecretResponse = {
27853
28081
  /**
27854
28082
  * Whether the operation succeeded
@@ -28163,6 +28391,21 @@ export type SegmentSampleRequestSegments = {
28163
28391
  };
28164
28392
 
28165
28393
 
28394
+ export type SelfServeOAuthClient = {
28395
+ id: number;
28396
+ clientId: string;
28397
+ name: string;
28398
+ description?: string | null;
28399
+ homepageUrl?: string | null;
28400
+ redirectUris: string[];
28401
+ scopes: string[];
28402
+ isPublic: boolean;
28403
+ requirePkce: boolean;
28404
+ created?: Date | null;
28405
+ logoUrl?: string | null;
28406
+ };
28407
+
28408
+
28166
28409
  export type SendUserFeedbackRequest = {
28167
28410
  type: SendUserFeedbackRequestTypeEnum;
28168
28411
  /**
@@ -29541,6 +29784,15 @@ export type UpdateJobRequest = {
29541
29784
  };
29542
29785
 
29543
29786
 
29787
+ export type UpdateOAuthClientRequest = {
29788
+ name?: string;
29789
+ description?: string | null;
29790
+ homepageUrl?: string | null;
29791
+ redirectUris?: string[];
29792
+ scopes?: string[];
29793
+ };
29794
+
29795
+
29544
29796
  export type UpdateOrganizationAddCollaboratorRequest = {
29545
29797
  /**
29546
29798
  * The ID of the project to add the collaborator to.