@science-corporation/synapse 2.2.5 → 2.2.7
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/dist/api/api.d.ts +312 -0
- package/dist/api/api.js +659 -0
- package/dist/api/proto.json +28 -0
- package/dist/device.d.ts +19 -0
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +140 -0
- package/dist/device.js.map +1 -1
- package/package.json +1 -1
- package/src/api/api.d.ts +312 -0
- package/src/api/api.js +659 -0
- package/src/api/proto.json +28 -0
- package/src/device.ts +140 -0
- package/synapse-api/api/app.proto +16 -0
- package/synapse-api/api/synapse.proto +1 -0
package/dist/api/api.d.ts
CHANGED
|
@@ -2828,6 +2828,20 @@ export namespace synapse {
|
|
|
2828
2828
|
*/
|
|
2829
2829
|
public deployApp(request: synapse.IAppPackageChunk): Promise<synapse.AppDeployResponse>;
|
|
2830
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Calls ListApps.
|
|
2833
|
+
* @param request ListAppsRequest message or plain object
|
|
2834
|
+
* @param callback Node-style callback called with the error, if any, and ListAppsResponse
|
|
2835
|
+
*/
|
|
2836
|
+
public listApps(request: synapse.IListAppsRequest, callback: synapse.SynapseDevice.ListAppsCallback): void;
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* Calls ListApps.
|
|
2840
|
+
* @param request ListAppsRequest message or plain object
|
|
2841
|
+
* @returns Promise
|
|
2842
|
+
*/
|
|
2843
|
+
public listApps(request: synapse.IListAppsRequest): Promise<synapse.ListAppsResponse>;
|
|
2844
|
+
|
|
2831
2845
|
/**
|
|
2832
2846
|
* Calls ListFiles.
|
|
2833
2847
|
* @param request Empty message or plain object
|
|
@@ -2978,6 +2992,13 @@ export namespace synapse {
|
|
|
2978
2992
|
*/
|
|
2979
2993
|
type DeployAppCallback = (error: (Error|null), response?: synapse.AppDeployResponse) => void;
|
|
2980
2994
|
|
|
2995
|
+
/**
|
|
2996
|
+
* Callback as used by {@link synapse.SynapseDevice#listApps}.
|
|
2997
|
+
* @param error Error, if any
|
|
2998
|
+
* @param [response] ListAppsResponse
|
|
2999
|
+
*/
|
|
3000
|
+
type ListAppsCallback = (error: (Error|null), response?: synapse.ListAppsResponse) => void;
|
|
3001
|
+
|
|
2981
3002
|
/**
|
|
2982
3003
|
* Callback as used by {@link synapse.SynapseDevice#listFiles}.
|
|
2983
3004
|
* @param error Error, if any
|
|
@@ -8256,6 +8277,297 @@ export namespace synapse {
|
|
|
8256
8277
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8257
8278
|
}
|
|
8258
8279
|
|
|
8280
|
+
/** Properties of an AppInfo. */
|
|
8281
|
+
interface IAppInfo {
|
|
8282
|
+
|
|
8283
|
+
/** AppInfo name */
|
|
8284
|
+
name?: (string|null);
|
|
8285
|
+
|
|
8286
|
+
/** AppInfo version */
|
|
8287
|
+
version?: (string|null);
|
|
8288
|
+
}
|
|
8289
|
+
|
|
8290
|
+
/** Represents an AppInfo. */
|
|
8291
|
+
class AppInfo implements IAppInfo {
|
|
8292
|
+
|
|
8293
|
+
/**
|
|
8294
|
+
* Constructs a new AppInfo.
|
|
8295
|
+
* @param [properties] Properties to set
|
|
8296
|
+
*/
|
|
8297
|
+
constructor(properties?: synapse.IAppInfo);
|
|
8298
|
+
|
|
8299
|
+
/** AppInfo name. */
|
|
8300
|
+
public name: string;
|
|
8301
|
+
|
|
8302
|
+
/** AppInfo version. */
|
|
8303
|
+
public version: string;
|
|
8304
|
+
|
|
8305
|
+
/**
|
|
8306
|
+
* Creates a new AppInfo instance using the specified properties.
|
|
8307
|
+
* @param [properties] Properties to set
|
|
8308
|
+
* @returns AppInfo instance
|
|
8309
|
+
*/
|
|
8310
|
+
public static create(properties?: synapse.IAppInfo): synapse.AppInfo;
|
|
8311
|
+
|
|
8312
|
+
/**
|
|
8313
|
+
* Encodes the specified AppInfo message. Does not implicitly {@link synapse.AppInfo.verify|verify} messages.
|
|
8314
|
+
* @param message AppInfo message or plain object to encode
|
|
8315
|
+
* @param [writer] Writer to encode to
|
|
8316
|
+
* @returns Writer
|
|
8317
|
+
*/
|
|
8318
|
+
public static encode(message: synapse.IAppInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8319
|
+
|
|
8320
|
+
/**
|
|
8321
|
+
* Encodes the specified AppInfo message, length delimited. Does not implicitly {@link synapse.AppInfo.verify|verify} messages.
|
|
8322
|
+
* @param message AppInfo message or plain object to encode
|
|
8323
|
+
* @param [writer] Writer to encode to
|
|
8324
|
+
* @returns Writer
|
|
8325
|
+
*/
|
|
8326
|
+
public static encodeDelimited(message: synapse.IAppInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8327
|
+
|
|
8328
|
+
/**
|
|
8329
|
+
* Decodes an AppInfo message from the specified reader or buffer.
|
|
8330
|
+
* @param reader Reader or buffer to decode from
|
|
8331
|
+
* @param [length] Message length if known beforehand
|
|
8332
|
+
* @returns AppInfo
|
|
8333
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8334
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8335
|
+
*/
|
|
8336
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.AppInfo;
|
|
8337
|
+
|
|
8338
|
+
/**
|
|
8339
|
+
* Decodes an AppInfo message from the specified reader or buffer, length delimited.
|
|
8340
|
+
* @param reader Reader or buffer to decode from
|
|
8341
|
+
* @returns AppInfo
|
|
8342
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8343
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8344
|
+
*/
|
|
8345
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.AppInfo;
|
|
8346
|
+
|
|
8347
|
+
/**
|
|
8348
|
+
* Verifies an AppInfo message.
|
|
8349
|
+
* @param message Plain object to verify
|
|
8350
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8351
|
+
*/
|
|
8352
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8353
|
+
|
|
8354
|
+
/**
|
|
8355
|
+
* Creates an AppInfo message from a plain object. Also converts values to their respective internal types.
|
|
8356
|
+
* @param object Plain object
|
|
8357
|
+
* @returns AppInfo
|
|
8358
|
+
*/
|
|
8359
|
+
public static fromObject(object: { [k: string]: any }): synapse.AppInfo;
|
|
8360
|
+
|
|
8361
|
+
/**
|
|
8362
|
+
* Creates a plain object from an AppInfo message. Also converts values to other types if specified.
|
|
8363
|
+
* @param message AppInfo
|
|
8364
|
+
* @param [options] Conversion options
|
|
8365
|
+
* @returns Plain object
|
|
8366
|
+
*/
|
|
8367
|
+
public static toObject(message: synapse.AppInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8368
|
+
|
|
8369
|
+
/**
|
|
8370
|
+
* Converts this AppInfo to JSON.
|
|
8371
|
+
* @returns JSON object
|
|
8372
|
+
*/
|
|
8373
|
+
public toJSON(): { [k: string]: any };
|
|
8374
|
+
|
|
8375
|
+
/**
|
|
8376
|
+
* Gets the default type url for AppInfo
|
|
8377
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8378
|
+
* @returns The default type url
|
|
8379
|
+
*/
|
|
8380
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8381
|
+
}
|
|
8382
|
+
|
|
8383
|
+
/** Properties of a ListAppsRequest. */
|
|
8384
|
+
interface IListAppsRequest {
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
/** Represents a ListAppsRequest. */
|
|
8388
|
+
class ListAppsRequest implements IListAppsRequest {
|
|
8389
|
+
|
|
8390
|
+
/**
|
|
8391
|
+
* Constructs a new ListAppsRequest.
|
|
8392
|
+
* @param [properties] Properties to set
|
|
8393
|
+
*/
|
|
8394
|
+
constructor(properties?: synapse.IListAppsRequest);
|
|
8395
|
+
|
|
8396
|
+
/**
|
|
8397
|
+
* Creates a new ListAppsRequest instance using the specified properties.
|
|
8398
|
+
* @param [properties] Properties to set
|
|
8399
|
+
* @returns ListAppsRequest instance
|
|
8400
|
+
*/
|
|
8401
|
+
public static create(properties?: synapse.IListAppsRequest): synapse.ListAppsRequest;
|
|
8402
|
+
|
|
8403
|
+
/**
|
|
8404
|
+
* Encodes the specified ListAppsRequest message. Does not implicitly {@link synapse.ListAppsRequest.verify|verify} messages.
|
|
8405
|
+
* @param message ListAppsRequest message or plain object to encode
|
|
8406
|
+
* @param [writer] Writer to encode to
|
|
8407
|
+
* @returns Writer
|
|
8408
|
+
*/
|
|
8409
|
+
public static encode(message: synapse.IListAppsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8410
|
+
|
|
8411
|
+
/**
|
|
8412
|
+
* Encodes the specified ListAppsRequest message, length delimited. Does not implicitly {@link synapse.ListAppsRequest.verify|verify} messages.
|
|
8413
|
+
* @param message ListAppsRequest message or plain object to encode
|
|
8414
|
+
* @param [writer] Writer to encode to
|
|
8415
|
+
* @returns Writer
|
|
8416
|
+
*/
|
|
8417
|
+
public static encodeDelimited(message: synapse.IListAppsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8418
|
+
|
|
8419
|
+
/**
|
|
8420
|
+
* Decodes a ListAppsRequest message from the specified reader or buffer.
|
|
8421
|
+
* @param reader Reader or buffer to decode from
|
|
8422
|
+
* @param [length] Message length if known beforehand
|
|
8423
|
+
* @returns ListAppsRequest
|
|
8424
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8425
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8426
|
+
*/
|
|
8427
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.ListAppsRequest;
|
|
8428
|
+
|
|
8429
|
+
/**
|
|
8430
|
+
* Decodes a ListAppsRequest message from the specified reader or buffer, length delimited.
|
|
8431
|
+
* @param reader Reader or buffer to decode from
|
|
8432
|
+
* @returns ListAppsRequest
|
|
8433
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8434
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8435
|
+
*/
|
|
8436
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.ListAppsRequest;
|
|
8437
|
+
|
|
8438
|
+
/**
|
|
8439
|
+
* Verifies a ListAppsRequest message.
|
|
8440
|
+
* @param message Plain object to verify
|
|
8441
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8442
|
+
*/
|
|
8443
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8444
|
+
|
|
8445
|
+
/**
|
|
8446
|
+
* Creates a ListAppsRequest message from a plain object. Also converts values to their respective internal types.
|
|
8447
|
+
* @param object Plain object
|
|
8448
|
+
* @returns ListAppsRequest
|
|
8449
|
+
*/
|
|
8450
|
+
public static fromObject(object: { [k: string]: any }): synapse.ListAppsRequest;
|
|
8451
|
+
|
|
8452
|
+
/**
|
|
8453
|
+
* Creates a plain object from a ListAppsRequest message. Also converts values to other types if specified.
|
|
8454
|
+
* @param message ListAppsRequest
|
|
8455
|
+
* @param [options] Conversion options
|
|
8456
|
+
* @returns Plain object
|
|
8457
|
+
*/
|
|
8458
|
+
public static toObject(message: synapse.ListAppsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8459
|
+
|
|
8460
|
+
/**
|
|
8461
|
+
* Converts this ListAppsRequest to JSON.
|
|
8462
|
+
* @returns JSON object
|
|
8463
|
+
*/
|
|
8464
|
+
public toJSON(): { [k: string]: any };
|
|
8465
|
+
|
|
8466
|
+
/**
|
|
8467
|
+
* Gets the default type url for ListAppsRequest
|
|
8468
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8469
|
+
* @returns The default type url
|
|
8470
|
+
*/
|
|
8471
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8472
|
+
}
|
|
8473
|
+
|
|
8474
|
+
/** Properties of a ListAppsResponse. */
|
|
8475
|
+
interface IListAppsResponse {
|
|
8476
|
+
|
|
8477
|
+
/** ListAppsResponse apps */
|
|
8478
|
+
apps?: (synapse.IAppInfo[]|null);
|
|
8479
|
+
}
|
|
8480
|
+
|
|
8481
|
+
/** Represents a ListAppsResponse. */
|
|
8482
|
+
class ListAppsResponse implements IListAppsResponse {
|
|
8483
|
+
|
|
8484
|
+
/**
|
|
8485
|
+
* Constructs a new ListAppsResponse.
|
|
8486
|
+
* @param [properties] Properties to set
|
|
8487
|
+
*/
|
|
8488
|
+
constructor(properties?: synapse.IListAppsResponse);
|
|
8489
|
+
|
|
8490
|
+
/** ListAppsResponse apps. */
|
|
8491
|
+
public apps: synapse.IAppInfo[];
|
|
8492
|
+
|
|
8493
|
+
/**
|
|
8494
|
+
* Creates a new ListAppsResponse instance using the specified properties.
|
|
8495
|
+
* @param [properties] Properties to set
|
|
8496
|
+
* @returns ListAppsResponse instance
|
|
8497
|
+
*/
|
|
8498
|
+
public static create(properties?: synapse.IListAppsResponse): synapse.ListAppsResponse;
|
|
8499
|
+
|
|
8500
|
+
/**
|
|
8501
|
+
* Encodes the specified ListAppsResponse message. Does not implicitly {@link synapse.ListAppsResponse.verify|verify} messages.
|
|
8502
|
+
* @param message ListAppsResponse message or plain object to encode
|
|
8503
|
+
* @param [writer] Writer to encode to
|
|
8504
|
+
* @returns Writer
|
|
8505
|
+
*/
|
|
8506
|
+
public static encode(message: synapse.IListAppsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8507
|
+
|
|
8508
|
+
/**
|
|
8509
|
+
* Encodes the specified ListAppsResponse message, length delimited. Does not implicitly {@link synapse.ListAppsResponse.verify|verify} messages.
|
|
8510
|
+
* @param message ListAppsResponse message or plain object to encode
|
|
8511
|
+
* @param [writer] Writer to encode to
|
|
8512
|
+
* @returns Writer
|
|
8513
|
+
*/
|
|
8514
|
+
public static encodeDelimited(message: synapse.IListAppsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8515
|
+
|
|
8516
|
+
/**
|
|
8517
|
+
* Decodes a ListAppsResponse message from the specified reader or buffer.
|
|
8518
|
+
* @param reader Reader or buffer to decode from
|
|
8519
|
+
* @param [length] Message length if known beforehand
|
|
8520
|
+
* @returns ListAppsResponse
|
|
8521
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8522
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8523
|
+
*/
|
|
8524
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): synapse.ListAppsResponse;
|
|
8525
|
+
|
|
8526
|
+
/**
|
|
8527
|
+
* Decodes a ListAppsResponse message from the specified reader or buffer, length delimited.
|
|
8528
|
+
* @param reader Reader or buffer to decode from
|
|
8529
|
+
* @returns ListAppsResponse
|
|
8530
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8531
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8532
|
+
*/
|
|
8533
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): synapse.ListAppsResponse;
|
|
8534
|
+
|
|
8535
|
+
/**
|
|
8536
|
+
* Verifies a ListAppsResponse message.
|
|
8537
|
+
* @param message Plain object to verify
|
|
8538
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8539
|
+
*/
|
|
8540
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8541
|
+
|
|
8542
|
+
/**
|
|
8543
|
+
* Creates a ListAppsResponse message from a plain object. Also converts values to their respective internal types.
|
|
8544
|
+
* @param object Plain object
|
|
8545
|
+
* @returns ListAppsResponse
|
|
8546
|
+
*/
|
|
8547
|
+
public static fromObject(object: { [k: string]: any }): synapse.ListAppsResponse;
|
|
8548
|
+
|
|
8549
|
+
/**
|
|
8550
|
+
* Creates a plain object from a ListAppsResponse message. Also converts values to other types if specified.
|
|
8551
|
+
* @param message ListAppsResponse
|
|
8552
|
+
* @param [options] Conversion options
|
|
8553
|
+
* @returns Plain object
|
|
8554
|
+
*/
|
|
8555
|
+
public static toObject(message: synapse.ListAppsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8556
|
+
|
|
8557
|
+
/**
|
|
8558
|
+
* Converts this ListAppsResponse to JSON.
|
|
8559
|
+
* @returns JSON object
|
|
8560
|
+
*/
|
|
8561
|
+
public toJSON(): { [k: string]: any };
|
|
8562
|
+
|
|
8563
|
+
/**
|
|
8564
|
+
* Gets the default type url for ListAppsResponse
|
|
8565
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8566
|
+
* @returns The default type url
|
|
8567
|
+
*/
|
|
8568
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8569
|
+
}
|
|
8570
|
+
|
|
8259
8571
|
/** Properties of a FunctionProfile. */
|
|
8260
8572
|
interface IFunctionProfile {
|
|
8261
8573
|
|