@nosana/types 0.1.23 → 0.1.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.
@@ -127,26 +127,6 @@ export interface paths {
127
127
  patch?: never;
128
128
  trace?: never;
129
129
  };
130
- "/api/auth/sign-message/external": {
131
- parameters: {
132
- query?: never;
133
- header?: never;
134
- path?: never;
135
- cookie?: never;
136
- };
137
- get?: never;
138
- put?: never;
139
- /**
140
- * Get the signed message for external service authentication
141
- * @description Authentication required via Authorization header. Supports either JWT (Bearer <jwt>) or API key (Bearer <key>).
142
- */
143
- post: operations["postApiAuthSign-messageExternal"];
144
- delete?: never;
145
- options?: never;
146
- head?: never;
147
- patch?: never;
148
- trace?: never;
149
- };
150
130
  "/api/credits/balance": {
151
131
  parameters: {
152
132
  query?: never;
@@ -177,7 +157,26 @@ export interface paths {
177
157
  /** @description List all user deployments. */
178
158
  get: {
179
159
  parameters: {
180
- query?: never;
160
+ query?: {
161
+ /** @description Base64-encoded cursor for keyset pagination */
162
+ cursor?: string;
163
+ /** @description Number of items per page (10, 20, 50, or 100) */
164
+ limit?: 10 | 20 | 50 | 100 | "10" | "20" | "50" | "100";
165
+ /** @description Sort order: 'asc' (oldest first) or 'desc' (newest first) */
166
+ sort_order?: "asc" | "desc";
167
+ /** @description Filter by deployment status. Can be single value or comma-separated list */
168
+ status?: ("DRAFT" | "ERROR" | "STARTING" | "RUNNING" | "STOPPING" | "STOPPED" | "INSUFFICIENT_FUNDS" | "ARCHIVED") | string;
169
+ /** @description Filter by deployment strategy. Can be single value or comma-separated list */
170
+ strategy?: ("SIMPLE" | "SIMPLE-EXTEND" | "SCHEDULED" | "INFINITE") | string;
171
+ /** @description Filter by exact deployment ID */
172
+ id?: string;
173
+ /** @description Filter by vault public key */
174
+ vault?: string;
175
+ /** @description Filter deployments created after this date (ISO 8601 format) */
176
+ created_after?: string;
177
+ /** @description Filter deployments created before this date (ISO 8601 format) */
178
+ created_before?: string;
179
+ };
181
180
  header: {
182
181
  /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
183
182
  "x-user-id"?: string;
@@ -192,13 +191,23 @@ export interface paths {
192
191
  };
193
192
  requestBody?: never;
194
193
  responses: {
195
- /** @description List of deployments. */
194
+ /** @description List of deployments with pagination. */
196
195
  200: {
197
196
  headers: {
198
197
  [name: string]: unknown;
199
198
  };
200
199
  content: {
201
- "application/json": components["schemas"]["Deployments"];
200
+ "application/json": {
201
+ deployments: components["schemas"]["Deployment"][];
202
+ pagination: {
203
+ /** @description Cursor for next page, null if no more pages */
204
+ cursor_next: string | null;
205
+ /** @description Cursor for previous page, null if on first page */
206
+ cursor_prev: string | null;
207
+ /** @description Total number of items in collection */
208
+ total_items: number;
209
+ };
210
+ };
202
211
  };
203
212
  };
204
213
  /** @description Unauthorized. Invalid or missing authentication. */
@@ -296,7 +305,64 @@ export interface paths {
296
305
  };
297
306
  put?: never;
298
307
  post?: never;
299
- delete?: never;
308
+ /** @description Delete a deployment permanently */
309
+ delete: {
310
+ parameters: {
311
+ query?: never;
312
+ header: {
313
+ /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
314
+ "x-user-id"?: string;
315
+ /**
316
+ * @description Authentication token, either an API key or a wallet-signed message.
317
+ * @example Bearer <ApiKey> or WalletSignedMessage
318
+ */
319
+ authorization: string;
320
+ };
321
+ path: {
322
+ deployment: components["schemas"]["PublicKey"];
323
+ };
324
+ cookie?: never;
325
+ };
326
+ requestBody?: never;
327
+ responses: {
328
+ /** @description Deployment deleted successfully. */
329
+ 204: {
330
+ headers: {
331
+ [name: string]: unknown;
332
+ };
333
+ content: {
334
+ "application/json": unknown;
335
+ };
336
+ };
337
+ /** @description Unauthorized. Invalid or missing authentication. */
338
+ 401: {
339
+ headers: {
340
+ [name: string]: unknown;
341
+ };
342
+ content: {
343
+ "application/json": "Unauthorized";
344
+ };
345
+ };
346
+ /** @description Deployment not found. */
347
+ 404: {
348
+ headers: {
349
+ [name: string]: unknown;
350
+ };
351
+ content: {
352
+ "application/json": components["schemas"]["Error"];
353
+ };
354
+ };
355
+ /** @description Internal Server Error. */
356
+ 500: {
357
+ headers: {
358
+ [name: string]: unknown;
359
+ };
360
+ content: {
361
+ "application/json": components["schemas"]["Error"];
362
+ };
363
+ };
364
+ };
365
+ };
300
366
  options?: never;
301
367
  head?: never;
302
368
  patch?: never;
@@ -312,7 +378,20 @@ export interface paths {
312
378
  /** @description Get scheduled tasks for a specific deployment. */
313
379
  get: {
314
380
  parameters: {
315
- query?: never;
381
+ query?: {
382
+ /** @description Base64-encoded cursor for keyset pagination */
383
+ cursor?: string;
384
+ /** @description Number of items per page (10, 20, 50, or 100) */
385
+ limit?: 10 | 20 | 50 | 100 | "10" | "20" | "50" | "100";
386
+ /** @description Sort order: 'asc' (oldest first) or 'desc' (newest first) */
387
+ sort_order?: "asc" | "desc";
388
+ /** @description Filter by task type. Can be single value or comma-separated list */
389
+ task?: ("LIST" | "EXTEND" | "STOP") | string;
390
+ /** @description Filter tasks due after this date (ISO 8601 format) */
391
+ due_after?: string;
392
+ /** @description Filter tasks due before this date (ISO 8601 format) */
393
+ due_before?: string;
394
+ };
316
395
  header: {
317
396
  /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
318
397
  "x-user-id"?: string;
@@ -329,13 +408,23 @@ export interface paths {
329
408
  };
330
409
  requestBody?: never;
331
410
  responses: {
332
- /** @description List of scheduled tasks for the deployment. */
411
+ /** @description List of scheduled tasks for the deployment with pagination. */
333
412
  200: {
334
413
  headers: {
335
414
  [name: string]: unknown;
336
415
  };
337
416
  content: {
338
- "application/json": components["schemas"]["Task"][];
417
+ "application/json": {
418
+ tasks: components["schemas"]["Task"][];
419
+ pagination: {
420
+ /** @description Cursor for next page, null if no more pages */
421
+ cursor_next: string | null;
422
+ /** @description Cursor for previous page, null if on first page */
423
+ cursor_prev: string | null;
424
+ /** @description Total number of items in collection */
425
+ total_items: number;
426
+ };
427
+ };
339
428
  };
340
429
  };
341
430
  /** @description Unauthorized. Invalid or missing authentication. */
@@ -385,7 +474,281 @@ export interface paths {
385
474
  /** @description Get header for a specific deployment. */
386
475
  get: {
387
476
  parameters: {
388
- query?: never;
477
+ query?: never;
478
+ header: {
479
+ /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
480
+ "x-user-id"?: string;
481
+ /**
482
+ * @description Authentication token, either an API key or a wallet-signed message.
483
+ * @example Bearer <ApiKey> or WalletSignedMessage
484
+ */
485
+ authorization: string;
486
+ };
487
+ path: {
488
+ deployment: components["schemas"]["PublicKey"];
489
+ };
490
+ cookie?: never;
491
+ };
492
+ requestBody?: never;
493
+ responses: {
494
+ /** @description Returns authorization header to interact with the vaults jobs. */
495
+ 200: {
496
+ headers: {
497
+ [name: string]: unknown;
498
+ };
499
+ content: {
500
+ "application/json": {
501
+ header: string;
502
+ };
503
+ };
504
+ };
505
+ /** @description Unauthorized. Invalid or missing authentication. */
506
+ 401: {
507
+ headers: {
508
+ [name: string]: unknown;
509
+ };
510
+ content: {
511
+ "application/json": "Unauthorized";
512
+ };
513
+ };
514
+ /** @description Deployment not found. */
515
+ 404: {
516
+ headers: {
517
+ [name: string]: unknown;
518
+ };
519
+ content: {
520
+ "application/json": components["schemas"]["Error"];
521
+ };
522
+ };
523
+ /** @description Internal Server Error. */
524
+ 500: {
525
+ headers: {
526
+ [name: string]: unknown;
527
+ };
528
+ content: {
529
+ "application/json": components["schemas"]["Error"];
530
+ };
531
+ };
532
+ };
533
+ };
534
+ put?: never;
535
+ post?: never;
536
+ delete?: never;
537
+ options?: never;
538
+ head?: never;
539
+ patch?: never;
540
+ trace?: never;
541
+ };
542
+ "/api/deployments/{deployment}/jobs/{job}": {
543
+ parameters: {
544
+ query?: never;
545
+ header?: never;
546
+ path?: never;
547
+ cookie?: never;
548
+ };
549
+ /** @description Get a specific deployment job by ID. */
550
+ get: {
551
+ parameters: {
552
+ query?: never;
553
+ header: {
554
+ /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
555
+ "x-user-id"?: string;
556
+ /**
557
+ * @description Authentication token, either an API key or a wallet-signed message.
558
+ * @example Bearer <ApiKey> or WalletSignedMessage
559
+ */
560
+ authorization: string;
561
+ };
562
+ path: {
563
+ deployment: components["schemas"]["PublicKey"];
564
+ job: components["schemas"]["PublicKey"];
565
+ };
566
+ cookie?: never;
567
+ };
568
+ requestBody?: never;
569
+ responses: {
570
+ /** @description Gets a deployment job by ID. */
571
+ 200: {
572
+ headers: {
573
+ [name: string]: unknown;
574
+ };
575
+ content: {
576
+ "application/json": {
577
+ confidential: boolean;
578
+ revision: number;
579
+ market: string;
580
+ node: string;
581
+ state: string | number;
582
+ jobStatus: string | null;
583
+ jobDefinition: components["schemas"]["JobDefinition"];
584
+ jobResult: components["schemas"]["JobResults"] | null;
585
+ timeStart: number;
586
+ timeEnd: number;
587
+ listedAt: number;
588
+ };
589
+ };
590
+ };
591
+ /** @description Unauthorized. Invalid or missing authentication. */
592
+ 401: {
593
+ headers: {
594
+ [name: string]: unknown;
595
+ };
596
+ content: {
597
+ "application/json": "Unauthorized";
598
+ };
599
+ };
600
+ /** @description Deployment not found. */
601
+ 404: {
602
+ headers: {
603
+ [name: string]: unknown;
604
+ };
605
+ content: {
606
+ "application/json": components["schemas"]["Error"];
607
+ };
608
+ };
609
+ /** @description Internal Server Error. */
610
+ 500: {
611
+ headers: {
612
+ [name: string]: unknown;
613
+ };
614
+ content: {
615
+ "application/json": components["schemas"]["Error"];
616
+ };
617
+ };
618
+ };
619
+ };
620
+ put?: never;
621
+ post?: never;
622
+ delete?: never;
623
+ options?: never;
624
+ head?: never;
625
+ patch?: never;
626
+ trace?: never;
627
+ };
628
+ "/api/deployments/{deployment}/jobs": {
629
+ parameters: {
630
+ query?: never;
631
+ header?: never;
632
+ path?: never;
633
+ cookie?: never;
634
+ };
635
+ /** @description Get jobs for a specific deployment. */
636
+ get: {
637
+ parameters: {
638
+ query?: {
639
+ /** @description Base64-encoded cursor for keyset pagination */
640
+ cursor?: string;
641
+ /** @description Number of items per page (10, 20, 50, or 100) */
642
+ limit?: 10 | 20 | 50 | 100 | "10" | "20" | "50" | "100";
643
+ /** @description Sort order: 'asc' (oldest first) or 'desc' (newest first) */
644
+ sort_order?: "asc" | "desc";
645
+ /** @description Filter by job state. Can be single value or comma-separated list (e.g., 'RUNNING,COMPLETED') */
646
+ state?: ("QUEUED" | "RUNNING" | "COMPLETED" | "STOPPED") | string;
647
+ /** @description Filter by exact job ID */
648
+ job?: string;
649
+ /** @description Filter by deployment revision number */
650
+ revision?: number;
651
+ /** @description Filter jobs created after this date (ISO 8601 format) */
652
+ created_after?: string;
653
+ /** @description Filter jobs created before this date (ISO 8601 format) */
654
+ created_before?: string;
655
+ };
656
+ header: {
657
+ /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
658
+ "x-user-id"?: string;
659
+ /**
660
+ * @description Authentication token, either an API key or a wallet-signed message.
661
+ * @example Bearer <ApiKey> or WalletSignedMessage
662
+ */
663
+ authorization: string;
664
+ };
665
+ path: {
666
+ deployment: components["schemas"]["PublicKey"];
667
+ };
668
+ cookie?: never;
669
+ };
670
+ requestBody?: never;
671
+ responses: {
672
+ /** @description List of jobs for the deployment with pagination. */
673
+ 200: {
674
+ headers: {
675
+ [name: string]: unknown;
676
+ };
677
+ content: {
678
+ "application/json": {
679
+ jobs: components["schemas"]["Job"][];
680
+ pagination: {
681
+ /** @description Cursor for next page, null if no more pages */
682
+ cursor_next: string | null;
683
+ /** @description Cursor for previous page, null if on first page */
684
+ cursor_prev: string | null;
685
+ /** @description Total number of items in collection */
686
+ total_items: number;
687
+ };
688
+ };
689
+ };
690
+ };
691
+ /** @description Unauthorized. Invalid or missing authentication. */
692
+ 401: {
693
+ headers: {
694
+ [name: string]: unknown;
695
+ };
696
+ content: {
697
+ "application/json": "Unauthorized";
698
+ };
699
+ };
700
+ /** @description Deployment not found. */
701
+ 404: {
702
+ headers: {
703
+ [name: string]: unknown;
704
+ };
705
+ content: {
706
+ "application/json": components["schemas"]["Error"];
707
+ };
708
+ };
709
+ /** @description Internal Server Error. */
710
+ 500: {
711
+ headers: {
712
+ [name: string]: unknown;
713
+ };
714
+ content: {
715
+ "application/json": components["schemas"]["Error"];
716
+ };
717
+ };
718
+ };
719
+ };
720
+ put?: never;
721
+ post?: never;
722
+ delete?: never;
723
+ options?: never;
724
+ head?: never;
725
+ patch?: never;
726
+ trace?: never;
727
+ };
728
+ "/api/deployments/{deployment}/revisions": {
729
+ parameters: {
730
+ query?: never;
731
+ header?: never;
732
+ path?: never;
733
+ cookie?: never;
734
+ };
735
+ /** @description Get revisions for a specific deployment. */
736
+ get: {
737
+ parameters: {
738
+ query?: {
739
+ /** @description Base64-encoded cursor for keyset pagination */
740
+ cursor?: string;
741
+ /** @description Number of items per page (10, 20, 50, or 100) */
742
+ limit?: 10 | 20 | 50 | 100 | "10" | "20" | "50" | "100";
743
+ /** @description Sort order: 'asc' (oldest first) or 'desc' (newest first) */
744
+ sort_order?: "asc" | "desc";
745
+ /** @description Filter by exact revision number */
746
+ revision?: number;
747
+ /** @description Filter revisions created after this date (ISO 8601 format) */
748
+ created_after?: string;
749
+ /** @description Filter revisions created before this date (ISO 8601 format) */
750
+ created_before?: string;
751
+ };
389
752
  header: {
390
753
  /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
391
754
  "x-user-id"?: string;
@@ -402,14 +765,22 @@ export interface paths {
402
765
  };
403
766
  requestBody?: never;
404
767
  responses: {
405
- /** @description Returns authorization header to interact with the vaults jobs. */
768
+ /** @description List of revisions for the deployment with pagination. */
406
769
  200: {
407
770
  headers: {
408
771
  [name: string]: unknown;
409
772
  };
410
773
  content: {
411
774
  "application/json": {
412
- header: string;
775
+ revisions: components["schemas"]["Revision"][];
776
+ pagination: {
777
+ /** @description Cursor for next page, null if no more pages */
778
+ cursor_next: string | null;
779
+ /** @description Cursor for previous page, null if on first page */
780
+ cursor_prev: string | null;
781
+ /** @description Total number of items in collection */
782
+ total_items: number;
783
+ };
413
784
  };
414
785
  };
415
786
  };
@@ -450,17 +821,32 @@ export interface paths {
450
821
  patch?: never;
451
822
  trace?: never;
452
823
  };
453
- "/api/deployments/{deployment}/jobs/{job}": {
824
+ "/api/deployments/{deployment}/events": {
454
825
  parameters: {
455
826
  query?: never;
456
827
  header?: never;
457
828
  path?: never;
458
829
  cookie?: never;
459
830
  };
460
- /** @description Get a specific deployment job by ID. */
831
+ /** @description Get events for a specific deployment. */
461
832
  get: {
462
833
  parameters: {
463
- query?: never;
834
+ query?: {
835
+ /** @description Base64-encoded cursor for keyset pagination */
836
+ cursor?: string;
837
+ /** @description Number of items per page (10, 20, 50, or 100) */
838
+ limit?: 10 | 20 | 50 | 100 | "10" | "20" | "50" | "100";
839
+ /** @description Sort order: 'asc' (oldest first) or 'desc' (newest first) */
840
+ sort_order?: "asc" | "desc";
841
+ /** @description Filter by event category: 'Deployment' or 'Event'. Can be comma-separated list */
842
+ category?: ("Deployment" | "Event") | string;
843
+ /** @description Filter by event type. Can be single value or comma-separated list */
844
+ type?: string;
845
+ /** @description Filter events created after this date (ISO 8601 format) */
846
+ created_after?: string;
847
+ /** @description Filter events created before this date (ISO 8601 format) */
848
+ created_before?: string;
849
+ };
464
850
  header: {
465
851
  /** @description Required when using Wallet Authentication. The public key used to sign authentication header. */
466
852
  "x-user-id"?: string;
@@ -472,30 +858,27 @@ export interface paths {
472
858
  };
473
859
  path: {
474
860
  deployment: components["schemas"]["PublicKey"];
475
- job: components["schemas"]["PublicKey"];
476
861
  };
477
862
  cookie?: never;
478
863
  };
479
864
  requestBody?: never;
480
865
  responses: {
481
- /** @description Gets a deployment job by ID. */
866
+ /** @description List of events for the deployment with pagination. */
482
867
  200: {
483
868
  headers: {
484
869
  [name: string]: unknown;
485
870
  };
486
871
  content: {
487
872
  "application/json": {
488
- confidential: boolean;
489
- revision: number;
490
- market: string;
491
- node: string;
492
- state: string | number;
493
- jobStatus: string | null;
494
- jobDefinition: components["schemas"]["JobDefinition"];
495
- jobResult: components["schemas"]["JobResults"] | null;
496
- timeStart: number;
497
- timeEnd: number;
498
- listedAt: number;
873
+ events: components["schemas"]["Event"][];
874
+ pagination: {
875
+ /** @description Cursor for next page, null if no more pages */
876
+ cursor_next: string | null;
877
+ /** @description Cursor for previous page, null if on first page */
878
+ cursor_prev: string | null;
879
+ /** @description Total number of items in collection */
880
+ total_items: number;
881
+ };
499
882
  };
500
883
  };
501
884
  };
@@ -661,220 +1044,7 @@ export interface paths {
661
1044
  revision: number;
662
1045
  deployment: string;
663
1046
  ipfs_definition_hash: string;
664
- job_definition: {
665
- /** @enum {string} */
666
- version: "0.1";
667
- /** @enum {string} */
668
- type: "container";
669
- logistics?: {
670
- send: {
671
- /**
672
- * @description api - we receive and send via an endpoint endpoint
673
- * api-listen - we create an endpoint to listen for incoming requests
674
- * @enum {string}
675
- */
676
- type: "api" | "api-listen";
677
- /** @description Make all properties in T optional */
678
- args: {
679
- endpoint?: string;
680
- };
681
- };
682
- receive: {
683
- /**
684
- * @description api - we receive and send via an endpoint endpoint
685
- * api-listen - we create an endpoint to listen for incoming requests
686
- * @enum {string}
687
- */
688
- type: "api" | "api-listen";
689
- /** @description Make all properties in T optional */
690
- args: {
691
- endpoint?: string;
692
- };
693
- };
694
- };
695
- deployment_id?: string;
696
- meta?: {
697
- trigger?: string;
698
- /** @description Construct a type with a set of properties K of type T */
699
- system_resources?: {
700
- [key: string]: string | number;
701
- };
702
- } & {
703
- [key: string]: string | number | (string | number)[] | {
704
- [key: string]: string | number | (string | number)[];
705
- };
706
- };
707
- global?: {
708
- image?: string;
709
- gpu?: boolean;
710
- entrypoint?: string | string[];
711
- env?: {
712
- [key: string]: string;
713
- };
714
- work_dir?: string;
715
- variables?: {
716
- [key: string]: string;
717
- };
718
- };
719
- ops: {
720
- /** @enum {string} */
721
- type: "container/run" | "container/create-volume";
722
- id: string;
723
- args: {
724
- image: string;
725
- aliases?: string | string[];
726
- cmd?: string | string[];
727
- volumes?: {
728
- name: string;
729
- dest: string;
730
- }[];
731
- expose?: number | string | {
732
- __spread__: string;
733
- chunked?: boolean;
734
- } | {
735
- port: number;
736
- /** @enum {string} */
737
- type?: "api" | "web" | "websocket" | "webapi" | "none";
738
- health_checks?: ({
739
- /** @enum {string} */
740
- type: "http";
741
- path: string;
742
- /** @enum {string} */
743
- method: "GET" | "POST" | "PUT" | "DELETE";
744
- expected_status: number;
745
- /** @description Construct a type with a set of properties K of type T */
746
- headers?: {
747
- [key: string]: string;
748
- };
749
- body?: unknown;
750
- continuous: boolean;
751
- } | {
752
- /** @enum {string} */
753
- type: "websocket";
754
- expected_response: string;
755
- continuous: boolean;
756
- })[];
757
- } | (number | string | {
758
- __spread__: string;
759
- chunked?: boolean;
760
- } | {
761
- port: number;
762
- /** @enum {string} */
763
- type?: "api" | "web" | "websocket" | "webapi" | "none";
764
- health_checks?: ({
765
- /** @enum {string} */
766
- type: "http";
767
- path: string;
768
- /** @enum {string} */
769
- method: "GET" | "POST" | "PUT" | "DELETE";
770
- expected_status: number;
771
- /** @description Construct a type with a set of properties K of type T */
772
- headers?: {
773
- [key: string]: string;
774
- };
775
- body?: unknown;
776
- continuous: boolean;
777
- } | {
778
- /** @enum {string} */
779
- type: "websocket";
780
- expected_response: string;
781
- continuous: boolean;
782
- })[];
783
- })[];
784
- gpu?: boolean;
785
- work_dir?: string;
786
- entrypoint?: string | string[];
787
- env?: {
788
- [key: string]: string;
789
- };
790
- restart_policy?: {
791
- /** @enum {string} */
792
- policy: "on-failure";
793
- restart_tries?: number;
794
- } | ("no" | "always" | "unless-stopped" | "on-failure");
795
- private?: boolean;
796
- resources?: ({
797
- __spread__: string;
798
- chunked?: boolean;
799
- } | {
800
- /** @enum {string} */
801
- type: "S3";
802
- target: string;
803
- url?: string;
804
- allowWrite?: boolean;
805
- files?: string[];
806
- IAM?: {
807
- REGION: string;
808
- ACCESS_KEY_ID: string;
809
- SECRET_ACCESS_KEY: string;
810
- };
811
- } | {
812
- /** @enum {string} */
813
- type: "S3";
814
- target: string;
815
- bucket: string;
816
- url?: string;
817
- allowWrite?: boolean;
818
- IAM?: {
819
- REGION: string;
820
- ACCESS_KEY_ID: string;
821
- SECRET_ACCESS_KEY: string;
822
- };
823
- } | {
824
- /** @enum {string} */
825
- type: "S3";
826
- target: string;
827
- buckets: {
828
- url: string;
829
- files?: string[];
830
- }[];
831
- url?: string;
832
- allowWrite?: boolean;
833
- IAM?: {
834
- REGION: string;
835
- ACCESS_KEY_ID: string;
836
- SECRET_ACCESS_KEY: string;
837
- };
838
- } | {
839
- /** @enum {string} */
840
- type: "HF";
841
- target: string;
842
- repo: string;
843
- revision?: string;
844
- files?: string[];
845
- accessToken?: string;
846
- } | {
847
- /** @enum {string} */
848
- type: "Ollama";
849
- model: string;
850
- target?: string;
851
- } | "__remove-if-empty__")[];
852
- authentication?: {
853
- docker?: {
854
- username?: string;
855
- password?: string;
856
- email?: string;
857
- server?: string;
858
- };
859
- };
860
- } | {
861
- name: string;
862
- };
863
- results?: {
864
- [key: string]: string | {
865
- regex: string;
866
- logType: ("stdin" | "stdout" | "stderr" | "nodeerr")[];
867
- };
868
- };
869
- execution?: {
870
- group?: string;
871
- depends_on: string[];
872
- stop_if_dependent_stops?: boolean;
873
- } | {
874
- group?: string;
875
- };
876
- }[];
877
- };
1047
+ job_definition: components["schemas"]["JobDefinition"];
878
1048
  /** Format: date-time */
879
1049
  created_at: string;
880
1050
  }[];
@@ -1857,251 +2027,8 @@ export interface components {
1857
2027
  market: string;
1858
2028
  owner: string;
1859
2029
  status: "DRAFT" | "ERROR" | "STARTING" | "RUNNING" | "STOPPING" | "STOPPED" | "INSUFFICIENT_FUNDS" | "ARCHIVED";
1860
- revisions: {
1861
- revision: number;
1862
- deployment: string;
1863
- ipfs_definition_hash: string;
1864
- job_definition: {
1865
- /** @enum {string} */
1866
- version: "0.1";
1867
- /** @enum {string} */
1868
- type: "container";
1869
- logistics?: {
1870
- send: {
1871
- /**
1872
- * @description api - we receive and send via an endpoint endpoint
1873
- * api-listen - we create an endpoint to listen for incoming requests
1874
- * @enum {string}
1875
- */
1876
- type: "api" | "api-listen";
1877
- /** @description Make all properties in T optional */
1878
- args: {
1879
- endpoint?: string;
1880
- };
1881
- };
1882
- receive: {
1883
- /**
1884
- * @description api - we receive and send via an endpoint endpoint
1885
- * api-listen - we create an endpoint to listen for incoming requests
1886
- * @enum {string}
1887
- */
1888
- type: "api" | "api-listen";
1889
- /** @description Make all properties in T optional */
1890
- args: {
1891
- endpoint?: string;
1892
- };
1893
- };
1894
- };
1895
- deployment_id?: string;
1896
- meta?: {
1897
- trigger?: string;
1898
- /** @description Construct a type with a set of properties K of type T */
1899
- system_resources?: {
1900
- [key: string]: string | number;
1901
- };
1902
- } & {
1903
- [key: string]: string | number | (string | number)[] | {
1904
- [key: string]: string | number | (string | number)[];
1905
- };
1906
- };
1907
- global?: {
1908
- image?: string;
1909
- gpu?: boolean;
1910
- entrypoint?: string | string[];
1911
- env?: {
1912
- [key: string]: string;
1913
- };
1914
- work_dir?: string;
1915
- variables?: {
1916
- [key: string]: string;
1917
- };
1918
- };
1919
- ops: {
1920
- /** @enum {string} */
1921
- type: "container/run" | "container/create-volume";
1922
- id: string;
1923
- args: {
1924
- image: string;
1925
- aliases?: string | string[];
1926
- cmd?: string | string[];
1927
- volumes?: {
1928
- name: string;
1929
- dest: string;
1930
- }[];
1931
- expose?: number | string | {
1932
- __spread__: string;
1933
- chunked?: boolean;
1934
- } | {
1935
- port: number;
1936
- /** @enum {string} */
1937
- type?: "api" | "web" | "websocket" | "webapi" | "none";
1938
- health_checks?: ({
1939
- /** @enum {string} */
1940
- type: "http";
1941
- path: string;
1942
- /** @enum {string} */
1943
- method: "GET" | "POST" | "PUT" | "DELETE";
1944
- expected_status: number;
1945
- /** @description Construct a type with a set of properties K of type T */
1946
- headers?: {
1947
- [key: string]: string;
1948
- };
1949
- body?: unknown;
1950
- continuous: boolean;
1951
- } | {
1952
- /** @enum {string} */
1953
- type: "websocket";
1954
- expected_response: string;
1955
- continuous: boolean;
1956
- })[];
1957
- } | (number | string | {
1958
- __spread__: string;
1959
- chunked?: boolean;
1960
- } | {
1961
- port: number;
1962
- /** @enum {string} */
1963
- type?: "api" | "web" | "websocket" | "webapi" | "none";
1964
- health_checks?: ({
1965
- /** @enum {string} */
1966
- type: "http";
1967
- path: string;
1968
- /** @enum {string} */
1969
- method: "GET" | "POST" | "PUT" | "DELETE";
1970
- expected_status: number;
1971
- /** @description Construct a type with a set of properties K of type T */
1972
- headers?: {
1973
- [key: string]: string;
1974
- };
1975
- body?: unknown;
1976
- continuous: boolean;
1977
- } | {
1978
- /** @enum {string} */
1979
- type: "websocket";
1980
- expected_response: string;
1981
- continuous: boolean;
1982
- })[];
1983
- })[];
1984
- gpu?: boolean;
1985
- work_dir?: string;
1986
- entrypoint?: string | string[];
1987
- env?: {
1988
- [key: string]: string;
1989
- };
1990
- restart_policy?: {
1991
- /** @enum {string} */
1992
- policy: "on-failure";
1993
- restart_tries?: number;
1994
- } | ("no" | "always" | "unless-stopped" | "on-failure");
1995
- private?: boolean;
1996
- resources?: ({
1997
- __spread__: string;
1998
- chunked?: boolean;
1999
- } | {
2000
- /** @enum {string} */
2001
- type: "S3";
2002
- target: string;
2003
- url?: string;
2004
- allowWrite?: boolean;
2005
- files?: string[];
2006
- IAM?: {
2007
- REGION: string;
2008
- ACCESS_KEY_ID: string;
2009
- SECRET_ACCESS_KEY: string;
2010
- };
2011
- } | {
2012
- /** @enum {string} */
2013
- type: "S3";
2014
- target: string;
2015
- bucket: string;
2016
- url?: string;
2017
- allowWrite?: boolean;
2018
- IAM?: {
2019
- REGION: string;
2020
- ACCESS_KEY_ID: string;
2021
- SECRET_ACCESS_KEY: string;
2022
- };
2023
- } | {
2024
- /** @enum {string} */
2025
- type: "S3";
2026
- target: string;
2027
- buckets: {
2028
- url: string;
2029
- files?: string[];
2030
- }[];
2031
- url?: string;
2032
- allowWrite?: boolean;
2033
- IAM?: {
2034
- REGION: string;
2035
- ACCESS_KEY_ID: string;
2036
- SECRET_ACCESS_KEY: string;
2037
- };
2038
- } | {
2039
- /** @enum {string} */
2040
- type: "HF";
2041
- target: string;
2042
- repo: string;
2043
- revision?: string;
2044
- files?: string[];
2045
- accessToken?: string;
2046
- } | {
2047
- /** @enum {string} */
2048
- type: "Ollama";
2049
- model: string;
2050
- target?: string;
2051
- } | "__remove-if-empty__")[];
2052
- authentication?: {
2053
- docker?: {
2054
- username?: string;
2055
- password?: string;
2056
- email?: string;
2057
- server?: string;
2058
- };
2059
- };
2060
- } | {
2061
- name: string;
2062
- };
2063
- results?: {
2064
- [key: string]: string | {
2065
- regex: string;
2066
- logType: ("stdin" | "stdout" | "stderr" | "nodeerr")[];
2067
- };
2068
- };
2069
- execution?: {
2070
- group?: string;
2071
- depends_on: string[];
2072
- stop_if_dependent_stops?: boolean;
2073
- } | {
2074
- group?: string;
2075
- };
2076
- }[];
2077
- };
2078
- /** Format: date-time */
2079
- created_at: string;
2080
- }[];
2081
2030
  replicas: number;
2082
2031
  timeout: number;
2083
- jobs: {
2084
- tx: string;
2085
- job: string;
2086
- deployment: string;
2087
- market: string;
2088
- revision: number;
2089
- state: "QUEUED" | "RUNNING" | "COMPLETED" | "STOPPED";
2090
- time_start: number;
2091
- /** Format: date-time */
2092
- created_at: string;
2093
- /** Format: date-time */
2094
- updated_at: string;
2095
- }[];
2096
- events: {
2097
- category: "Deployment" | "Event";
2098
- deploymentId: string;
2099
- type: string;
2100
- message: string;
2101
- tx?: string;
2102
- /** Format: date-time */
2103
- created_at: string;
2104
- }[];
2105
2032
  endpoints: {
2106
2033
  opId: string;
2107
2034
  port: number | string;
@@ -2109,6 +2036,7 @@ export interface components {
2109
2036
  }[];
2110
2037
  confidential: boolean;
2111
2038
  active_revision: number;
2039
+ active_jobs: number;
2112
2040
  /** Format: date-time */
2113
2041
  created_at: string;
2114
2042
  /** Format: date-time */
@@ -2141,220 +2069,7 @@ export interface components {
2141
2069
  timeout: number;
2142
2070
  vault?: string;
2143
2071
  confidential?: boolean;
2144
- job_definition: {
2145
- /** @enum {string} */
2146
- version: "0.1";
2147
- /** @enum {string} */
2148
- type: "container";
2149
- logistics?: {
2150
- send: {
2151
- /**
2152
- * @description api - we receive and send via an endpoint endpoint
2153
- * api-listen - we create an endpoint to listen for incoming requests
2154
- * @enum {string}
2155
- */
2156
- type: "api" | "api-listen";
2157
- /** @description Make all properties in T optional */
2158
- args: {
2159
- endpoint?: string;
2160
- };
2161
- };
2162
- receive: {
2163
- /**
2164
- * @description api - we receive and send via an endpoint endpoint
2165
- * api-listen - we create an endpoint to listen for incoming requests
2166
- * @enum {string}
2167
- */
2168
- type: "api" | "api-listen";
2169
- /** @description Make all properties in T optional */
2170
- args: {
2171
- endpoint?: string;
2172
- };
2173
- };
2174
- };
2175
- deployment_id?: string;
2176
- meta?: {
2177
- trigger?: string;
2178
- /** @description Construct a type with a set of properties K of type T */
2179
- system_resources?: {
2180
- [key: string]: string | number;
2181
- };
2182
- } & {
2183
- [key: string]: string | number | (string | number)[] | {
2184
- [key: string]: string | number | (string | number)[];
2185
- };
2186
- };
2187
- global?: {
2188
- image?: string;
2189
- gpu?: boolean;
2190
- entrypoint?: string | string[];
2191
- env?: {
2192
- [key: string]: string;
2193
- };
2194
- work_dir?: string;
2195
- variables?: {
2196
- [key: string]: string;
2197
- };
2198
- };
2199
- ops: {
2200
- /** @enum {string} */
2201
- type: "container/run" | "container/create-volume";
2202
- id: string;
2203
- args: {
2204
- image: string;
2205
- aliases?: string | string[];
2206
- cmd?: string | string[];
2207
- volumes?: {
2208
- name: string;
2209
- dest: string;
2210
- }[];
2211
- expose?: number | string | {
2212
- __spread__: string;
2213
- chunked?: boolean;
2214
- } | {
2215
- port: number;
2216
- /** @enum {string} */
2217
- type?: "api" | "web" | "websocket" | "webapi" | "none";
2218
- health_checks?: ({
2219
- /** @enum {string} */
2220
- type: "http";
2221
- path: string;
2222
- /** @enum {string} */
2223
- method: "GET" | "POST" | "PUT" | "DELETE";
2224
- expected_status: number;
2225
- /** @description Construct a type with a set of properties K of type T */
2226
- headers?: {
2227
- [key: string]: string;
2228
- };
2229
- body?: unknown;
2230
- continuous: boolean;
2231
- } | {
2232
- /** @enum {string} */
2233
- type: "websocket";
2234
- expected_response: string;
2235
- continuous: boolean;
2236
- })[];
2237
- } | (number | string | {
2238
- __spread__: string;
2239
- chunked?: boolean;
2240
- } | {
2241
- port: number;
2242
- /** @enum {string} */
2243
- type?: "api" | "web" | "websocket" | "webapi" | "none";
2244
- health_checks?: ({
2245
- /** @enum {string} */
2246
- type: "http";
2247
- path: string;
2248
- /** @enum {string} */
2249
- method: "GET" | "POST" | "PUT" | "DELETE";
2250
- expected_status: number;
2251
- /** @description Construct a type with a set of properties K of type T */
2252
- headers?: {
2253
- [key: string]: string;
2254
- };
2255
- body?: unknown;
2256
- continuous: boolean;
2257
- } | {
2258
- /** @enum {string} */
2259
- type: "websocket";
2260
- expected_response: string;
2261
- continuous: boolean;
2262
- })[];
2263
- })[];
2264
- gpu?: boolean;
2265
- work_dir?: string;
2266
- entrypoint?: string | string[];
2267
- env?: {
2268
- [key: string]: string;
2269
- };
2270
- restart_policy?: {
2271
- /** @enum {string} */
2272
- policy: "on-failure";
2273
- restart_tries?: number;
2274
- } | ("no" | "always" | "unless-stopped" | "on-failure");
2275
- private?: boolean;
2276
- resources?: ({
2277
- __spread__: string;
2278
- chunked?: boolean;
2279
- } | {
2280
- /** @enum {string} */
2281
- type: "S3";
2282
- target: string;
2283
- url?: string;
2284
- allowWrite?: boolean;
2285
- files?: string[];
2286
- IAM?: {
2287
- REGION: string;
2288
- ACCESS_KEY_ID: string;
2289
- SECRET_ACCESS_KEY: string;
2290
- };
2291
- } | {
2292
- /** @enum {string} */
2293
- type: "S3";
2294
- target: string;
2295
- bucket: string;
2296
- url?: string;
2297
- allowWrite?: boolean;
2298
- IAM?: {
2299
- REGION: string;
2300
- ACCESS_KEY_ID: string;
2301
- SECRET_ACCESS_KEY: string;
2302
- };
2303
- } | {
2304
- /** @enum {string} */
2305
- type: "S3";
2306
- target: string;
2307
- buckets: {
2308
- url: string;
2309
- files?: string[];
2310
- }[];
2311
- url?: string;
2312
- allowWrite?: boolean;
2313
- IAM?: {
2314
- REGION: string;
2315
- ACCESS_KEY_ID: string;
2316
- SECRET_ACCESS_KEY: string;
2317
- };
2318
- } | {
2319
- /** @enum {string} */
2320
- type: "HF";
2321
- target: string;
2322
- repo: string;
2323
- revision?: string;
2324
- files?: string[];
2325
- accessToken?: string;
2326
- } | {
2327
- /** @enum {string} */
2328
- type: "Ollama";
2329
- model: string;
2330
- target?: string;
2331
- } | "__remove-if-empty__")[];
2332
- authentication?: {
2333
- docker?: {
2334
- username?: string;
2335
- password?: string;
2336
- email?: string;
2337
- server?: string;
2338
- };
2339
- };
2340
- } | {
2341
- name: string;
2342
- };
2343
- results?: {
2344
- [key: string]: string | {
2345
- regex: string;
2346
- logType: ("stdin" | "stdout" | "stderr" | "nodeerr")[];
2347
- };
2348
- };
2349
- execution?: {
2350
- group?: string;
2351
- depends_on: string[];
2352
- stop_if_dependent_stops?: boolean;
2353
- } | {
2354
- group?: string;
2355
- };
2356
- }[];
2357
- };
2072
+ job_definition: components["schemas"]["JobDefinition"];
2358
2073
  } & ({
2359
2074
  strategy: "SIMPLE" | "SIMPLE-EXTEND";
2360
2075
  } | {
@@ -2380,8 +2095,8 @@ export interface components {
2380
2095
  Error: {
2381
2096
  error: string;
2382
2097
  };
2383
- /** Events */
2384
- Events: {
2098
+ /** Event */
2099
+ Event: {
2385
2100
  category: "Deployment" | "Event";
2386
2101
  deploymentId: string;
2387
2102
  type: string;
@@ -2390,8 +2105,8 @@ export interface components {
2390
2105
  /** Format: date-time */
2391
2106
  created_at: string;
2392
2107
  };
2393
- /** Jobs */
2394
- Jobs: {
2108
+ /** Job */
2109
+ Job: {
2395
2110
  tx: string;
2396
2111
  job: string;
2397
2112
  deployment: string;
@@ -2438,220 +2153,7 @@ export interface components {
2438
2153
  revision: number;
2439
2154
  deployment: string;
2440
2155
  ipfs_definition_hash: string;
2441
- job_definition: {
2442
- /** @enum {string} */
2443
- version: "0.1";
2444
- /** @enum {string} */
2445
- type: "container";
2446
- logistics?: {
2447
- send: {
2448
- /**
2449
- * @description api - we receive and send via an endpoint endpoint
2450
- * api-listen - we create an endpoint to listen for incoming requests
2451
- * @enum {string}
2452
- */
2453
- type: "api" | "api-listen";
2454
- /** @description Make all properties in T optional */
2455
- args: {
2456
- endpoint?: string;
2457
- };
2458
- };
2459
- receive: {
2460
- /**
2461
- * @description api - we receive and send via an endpoint endpoint
2462
- * api-listen - we create an endpoint to listen for incoming requests
2463
- * @enum {string}
2464
- */
2465
- type: "api" | "api-listen";
2466
- /** @description Make all properties in T optional */
2467
- args: {
2468
- endpoint?: string;
2469
- };
2470
- };
2471
- };
2472
- deployment_id?: string;
2473
- meta?: {
2474
- trigger?: string;
2475
- /** @description Construct a type with a set of properties K of type T */
2476
- system_resources?: {
2477
- [key: string]: string | number;
2478
- };
2479
- } & {
2480
- [key: string]: string | number | (string | number)[] | {
2481
- [key: string]: string | number | (string | number)[];
2482
- };
2483
- };
2484
- global?: {
2485
- image?: string;
2486
- gpu?: boolean;
2487
- entrypoint?: string | string[];
2488
- env?: {
2489
- [key: string]: string;
2490
- };
2491
- work_dir?: string;
2492
- variables?: {
2493
- [key: string]: string;
2494
- };
2495
- };
2496
- ops: {
2497
- /** @enum {string} */
2498
- type: "container/run" | "container/create-volume";
2499
- id: string;
2500
- args: {
2501
- image: string;
2502
- aliases?: string | string[];
2503
- cmd?: string | string[];
2504
- volumes?: {
2505
- name: string;
2506
- dest: string;
2507
- }[];
2508
- expose?: number | string | {
2509
- __spread__: string;
2510
- chunked?: boolean;
2511
- } | {
2512
- port: number;
2513
- /** @enum {string} */
2514
- type?: "api" | "web" | "websocket" | "webapi" | "none";
2515
- health_checks?: ({
2516
- /** @enum {string} */
2517
- type: "http";
2518
- path: string;
2519
- /** @enum {string} */
2520
- method: "GET" | "POST" | "PUT" | "DELETE";
2521
- expected_status: number;
2522
- /** @description Construct a type with a set of properties K of type T */
2523
- headers?: {
2524
- [key: string]: string;
2525
- };
2526
- body?: unknown;
2527
- continuous: boolean;
2528
- } | {
2529
- /** @enum {string} */
2530
- type: "websocket";
2531
- expected_response: string;
2532
- continuous: boolean;
2533
- })[];
2534
- } | (number | string | {
2535
- __spread__: string;
2536
- chunked?: boolean;
2537
- } | {
2538
- port: number;
2539
- /** @enum {string} */
2540
- type?: "api" | "web" | "websocket" | "webapi" | "none";
2541
- health_checks?: ({
2542
- /** @enum {string} */
2543
- type: "http";
2544
- path: string;
2545
- /** @enum {string} */
2546
- method: "GET" | "POST" | "PUT" | "DELETE";
2547
- expected_status: number;
2548
- /** @description Construct a type with a set of properties K of type T */
2549
- headers?: {
2550
- [key: string]: string;
2551
- };
2552
- body?: unknown;
2553
- continuous: boolean;
2554
- } | {
2555
- /** @enum {string} */
2556
- type: "websocket";
2557
- expected_response: string;
2558
- continuous: boolean;
2559
- })[];
2560
- })[];
2561
- gpu?: boolean;
2562
- work_dir?: string;
2563
- entrypoint?: string | string[];
2564
- env?: {
2565
- [key: string]: string;
2566
- };
2567
- restart_policy?: {
2568
- /** @enum {string} */
2569
- policy: "on-failure";
2570
- restart_tries?: number;
2571
- } | ("no" | "always" | "unless-stopped" | "on-failure");
2572
- private?: boolean;
2573
- resources?: ({
2574
- __spread__: string;
2575
- chunked?: boolean;
2576
- } | {
2577
- /** @enum {string} */
2578
- type: "S3";
2579
- target: string;
2580
- url?: string;
2581
- allowWrite?: boolean;
2582
- files?: string[];
2583
- IAM?: {
2584
- REGION: string;
2585
- ACCESS_KEY_ID: string;
2586
- SECRET_ACCESS_KEY: string;
2587
- };
2588
- } | {
2589
- /** @enum {string} */
2590
- type: "S3";
2591
- target: string;
2592
- bucket: string;
2593
- url?: string;
2594
- allowWrite?: boolean;
2595
- IAM?: {
2596
- REGION: string;
2597
- ACCESS_KEY_ID: string;
2598
- SECRET_ACCESS_KEY: string;
2599
- };
2600
- } | {
2601
- /** @enum {string} */
2602
- type: "S3";
2603
- target: string;
2604
- buckets: {
2605
- url: string;
2606
- files?: string[];
2607
- }[];
2608
- url?: string;
2609
- allowWrite?: boolean;
2610
- IAM?: {
2611
- REGION: string;
2612
- ACCESS_KEY_ID: string;
2613
- SECRET_ACCESS_KEY: string;
2614
- };
2615
- } | {
2616
- /** @enum {string} */
2617
- type: "HF";
2618
- target: string;
2619
- repo: string;
2620
- revision?: string;
2621
- files?: string[];
2622
- accessToken?: string;
2623
- } | {
2624
- /** @enum {string} */
2625
- type: "Ollama";
2626
- model: string;
2627
- target?: string;
2628
- } | "__remove-if-empty__")[];
2629
- authentication?: {
2630
- docker?: {
2631
- username?: string;
2632
- password?: string;
2633
- email?: string;
2634
- server?: string;
2635
- };
2636
- };
2637
- } | {
2638
- name: string;
2639
- };
2640
- results?: {
2641
- [key: string]: string | {
2642
- regex: string;
2643
- logType: ("stdin" | "stdout" | "stderr" | "nodeerr")[];
2644
- };
2645
- };
2646
- execution?: {
2647
- group?: string;
2648
- depends_on: string[];
2649
- stop_if_dependent_stops?: boolean;
2650
- } | {
2651
- group?: string;
2652
- };
2653
- }[];
2654
- };
2156
+ job_definition: components["schemas"]["JobDefinition"];
2655
2157
  /** Format: date-time */
2656
2158
  created_at: string;
2657
2159
  };
@@ -2786,7 +2288,7 @@ export interface components {
2786
2288
  /** @enum {string} */
2787
2289
  policy: "on-failure";
2788
2290
  restart_tries?: number;
2789
- } | ("no" | "always" | "unless-stopped" | "on-failure");
2291
+ } | ("on-failure" | "no" | "always" | "unless-stopped");
2790
2292
  private?: boolean;
2791
2293
  resources?: ({
2792
2294
  __spread__: string;
@@ -2925,7 +2427,7 @@ export interface components {
2925
2427
  End: string;
2926
2428
  ExitCode: number;
2927
2429
  Output: string;
2928
- }[];
2430
+ }[] | null;
2929
2431
  };
2930
2432
  RestartCount: number;
2931
2433
  };
@@ -2958,9 +2460,9 @@ export interface operations {
2958
2460
  postApiJobsList: {
2959
2461
  parameters: {
2960
2462
  query?: never;
2961
- header: {
2463
+ header?: {
2962
2464
  /** @description Authorization header: Bearer <jwt> or Bearer <key> */
2963
- authorization: string;
2465
+ authorization?: string;
2964
2466
  };
2965
2467
  path?: never;
2966
2468
  cookie?: never;
@@ -3033,9 +2535,9 @@ export interface operations {
3033
2535
  postApiJobsByAddressExtend: {
3034
2536
  parameters: {
3035
2537
  query?: never;
3036
- header: {
2538
+ header?: {
3037
2539
  /** @description Authorization header: Bearer <jwt> or Bearer <key> */
3038
- authorization: string;
2540
+ authorization?: string;
3039
2541
  };
3040
2542
  path: {
3041
2543
  address: string;
@@ -3095,9 +2597,9 @@ export interface operations {
3095
2597
  postApiJobsByAddressStop: {
3096
2598
  parameters: {
3097
2599
  query?: never;
3098
- header: {
2600
+ header?: {
3099
2601
  /** @description Authorization header: Bearer <jwt> or Bearer <key> */
3100
- authorization: string;
2602
+ authorization?: string;
3101
2603
  };
3102
2604
  path: {
3103
2605
  address: string;
@@ -3612,110 +3114,12 @@ export interface operations {
3612
3114
  };
3613
3115
  };
3614
3116
  };
3615
- "postApiAuthSign-messageExternal": {
3616
- parameters: {
3617
- query?: never;
3618
- header: {
3619
- /** @description JWT token (with or without Bearer prefix) */
3620
- authorization: string;
3621
- };
3622
- path?: never;
3623
- cookie?: never;
3624
- };
3625
- requestBody: {
3626
- content: {
3627
- "application/json": {
3628
- /** @description The message to be signed with the user's private key */
3629
- message: string;
3630
- };
3631
- "multipart/form-data": {
3632
- /** @description The message to be signed with the user's private key */
3633
- message: string;
3634
- };
3635
- "text/plain": {
3636
- /** @description The message to be signed with the user's private key */
3637
- message: string;
3638
- };
3639
- };
3640
- };
3641
- responses: {
3642
- 200: {
3643
- headers: {
3644
- [name: string]: unknown;
3645
- };
3646
- content: {
3647
- "application/json": {
3648
- /** @description The signed message in base58 format */
3649
- signature: string;
3650
- /** @description The original message that was signed */
3651
- message: string;
3652
- /** @description The address of the user whose private key should be used for signing */
3653
- userAddress: string;
3654
- };
3655
- "multipart/form-data": {
3656
- /** @description The signed message in base58 format */
3657
- signature: string;
3658
- /** @description The original message that was signed */
3659
- message: string;
3660
- /** @description The address of the user whose private key should be used for signing */
3661
- userAddress: string;
3662
- };
3663
- "text/plain": {
3664
- /** @description The signed message in base58 format */
3665
- signature: string;
3666
- /** @description The original message that was signed */
3667
- message: string;
3668
- /** @description The address of the user whose private key should be used for signing */
3669
- userAddress: string;
3670
- };
3671
- };
3672
- };
3673
- 401: {
3674
- headers: {
3675
- [name: string]: unknown;
3676
- };
3677
- content: {
3678
- "application/json": {
3679
- name: string;
3680
- message: string;
3681
- };
3682
- "multipart/form-data": {
3683
- name: string;
3684
- message: string;
3685
- };
3686
- "text/plain": {
3687
- name: string;
3688
- message: string;
3689
- };
3690
- };
3691
- };
3692
- 500: {
3693
- headers: {
3694
- [name: string]: unknown;
3695
- };
3696
- content: {
3697
- "application/json": {
3698
- name: string;
3699
- message: string;
3700
- };
3701
- "multipart/form-data": {
3702
- name: string;
3703
- message: string;
3704
- };
3705
- "text/plain": {
3706
- name: string;
3707
- message: string;
3708
- };
3709
- };
3710
- };
3711
- };
3712
- };
3713
3117
  getApiCreditsBalance: {
3714
3118
  parameters: {
3715
3119
  query?: never;
3716
- header: {
3120
+ header?: {
3717
3121
  /** @description Authorization header: Bearer <jwt> or Bearer <key> */
3718
- authorization: string;
3122
+ authorization?: string;
3719
3123
  };
3720
3124
  path?: never;
3721
3125
  cookie?: never;